/* Quiet Rhythms (docs/brand.md) for the public Brotia site. */
@font-face { font-family: Cormorant; src: url(/fonts/CormorantGaramond-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/CormorantGaramond-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/NunitoSans-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/NunitoSans-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/NunitoSans-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --teal: #214D4B;
  --teal-deep: #183B39;
  --sea: #8FAAA3;
  --coral: #DC8C70;
  --apricot: #F0CFB6;
  --ivory: #F7F2E8;
  --surface: #FCF9F3;
  --text: #214D4B;
  --text-soft: #4E625F;
  --rule: #E5DDCF;
  --sea-wash: #E9EFEC;
  --apricot-wash: #F8E9DD;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 17px/1.6 Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-weight: 600; margin: 0; }
h1, .editorial-title, .program h3, .player h3 { font-family: Cormorant, Georgia, serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: 24px; line-height: 32px; margin-bottom: 12px; }
h3 { font-size: 20px; line-height: 28px; margin-bottom: 6px; }
.editorial-title { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; }
.program h3, .player h3 { font-size: 28px; line-height: 34px; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--text-soft); max-width: 32em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 12px; }
.muted { color: var(--text-soft); }
.small { font-size: 15px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo img { height: 34px; width: auto; }
nav.links { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--text-soft); }
nav.links a:hover { color: var(--text); }
.langs { display: flex; gap: 4px; }
.langs button {
  font: 700 14px Nunito, system-ui, sans-serif; color: var(--text-soft);
  background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px;
}
.langs button[aria-pressed='true'] { color: var(--text); border-color: var(--rule); background: var(--surface); }

/* Hero */
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { max-width: 12em; margin: 0 auto 18px; }
.hero .lead { margin: 0 auto 28px; }
.hero-art { margin: 8px auto 0; width: 100%; max-width: 980px; height: auto; }
.cta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  background: var(--teal); color: var(--surface); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.badge svg { width: 18px; height: 18px; fill: currentColor; }
.cta .note { font-size: 15px; color: var(--text-soft); }

section { padding: 72px 0; }
section.tint { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; }
section.tint .step { background: var(--ivory); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--apricot-wash); color: var(--teal); font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--text-soft); font-size: 16px; margin: 0; }

/* Example answer card */
.answer { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 28px;
  box-shadow: 0 1px 0 rgba(33, 77, 75, 0.04);
}
.card .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.card h3 { margin: 6px 0 14px; }
.bars { display: grid; gap: 12px; margin: 18px 0; }
.bar { display: grid; grid-template-columns: 7.5em 1fr 2.5em; gap: 12px; align-items: center; font-size: 15px; }
.bar span:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.track { height: 12px; background: var(--sea-wash); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: var(--sea); }
.fill.after { background: var(--teal); }
.pill { display: inline-block; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 5px 12px; background: var(--apricot-wash); }
.example { font-size: 13px; color: var(--text-soft); margin-top: 14px; }

/* Programs */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.program { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
.program img { width: 100%; height: auto; aspect-ratio: 2.6 / 1; object-fit: contain; background: var(--ivory); }
.program div { padding: 24px 26px 28px; }
.program p { color: var(--text-soft); margin: 0; }

.days { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--rule); }
.days li { display: grid; grid-template-columns: 4.2em 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.days span { color: var(--text-soft); font-size: 14px; font-weight: 700; padding-top: 1px; }
.days em { font-style: normal; color: var(--text-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.days li.more { display: block; color: var(--text-soft); border-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

.player img { width: 100%; height: auto; aspect-ratio: 2.6 / 1; object-fit: contain; margin-bottom: 14px; }
.player h3 { margin: 6px 0 8px; }
.progress { height: 6px; background: var(--sea-wash); border-radius: 999px; margin-top: 18px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); margin-top: 6px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--text-soft); }
.chips span.on { background: var(--teal); border-color: var(--teal); color: var(--surface); }

.tools + .tools { margin-top: 28px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.tool { border-top: 2px solid var(--apricot); padding-top: 16px; }
.tool p { color: var(--text-soft); font-size: 16px; margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 30px; }
.plan.plus { background: var(--teal); color: var(--surface); border-color: var(--teal); }
.plan.plus .muted, .plan.plus li { color: #DCE6E3; }
.price { font-family: Nunito, system-ui, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 12px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text-soft); }
.plan li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.plan.plus li::before { background: var(--apricot); }

/* Privacy band */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise div { background: var(--sea-wash); border-radius: 18px; padding: 20px 22px; }
.promise b { display: block; margin-bottom: 4px; }
.promise span { color: var(--text-soft); font-size: 16px; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; color: var(--coral); }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; color: var(--text-soft); }

footer.bottom { padding: 40px 0 56px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--text-soft); }
footer.bottom .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 16px; }
footer.bottom .disclaimer { max-width: 48em; }

/* Long-form pages (privacy) */
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin: 24px 0 8px; }
.doc h2 { font-size: 24px; line-height: 32px; margin: 40px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.summary { background: var(--sea-wash); border-radius: 22px; padding: 24px 28px; margin-top: 8px; }
.summary h2 { margin-top: 0; }
.summary ul { margin-bottom: 0; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .answer { grid-template-columns: 1fr; gap: 28px; }
  nav.links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .logo img { height: 28px; }
  .hero { padding: 28px 0 8px; }
  .lead { font-size: 18px; }
  section { padding: 52px 0; }
  .steps, .duo, .tools, .plans, .promise { grid-template-columns: 1fr; }
  .card, .plan { padding: 22px; }
  .bar { grid-template-columns: 6.5em 1fr 2.2em; }
  .summary { padding: 20px; }
}

