/* VOICE   tender and composed: a family wellness centre speaking to Coimbatore families and partners
   IDEA    an illustrated book about a place in the hills: each page a chapter, one serif voice throughout
   PICTURE the frozen V5 mountain scene (layered moss ridges, drifting mist) opening and closing every story
   COLOUR  beige #E9D8BE ground, natural #DFCAAA bands, Oxford Blue #002147 ink, moss #5B5B3A, one terracotta #A3502E accent
   TYPE    Newsreader for every word (decided 20 Nov); Google Sans for Tamil (decided 20 Nov)
   LAYOUT  laptop: copy left over the hills, fact strip on the hero's foot; phone: one column, title, scene, actions */

:root {
  color-scheme: light;
  --bg: #E9D8BE;
  --bg-2: #DFCAAA;
  --sky-top: #F3EADC;
  --ink: #002147;
  --ink-2: #33415C;
  --mute: #5A5144;
  --moss: #5B5B3A;
  --moss-2: #4A4A2E;
  --terracotta: #A3502E;
  --ochre: #9C6A1B;
  --petal: #F7C51E; /* logo petals on Oxford Blue: bright gold (21 Nov) */
  --petal-light: #956C2D; /* logo petals on light backgrounds: bronze (21 Nov) */
  --line: rgba(0, 33, 71, 0.16);
  --line-2: rgba(0, 33, 71, 0.32);
  --display: "Cinzel", "Trajan Pro", "Newsreader", Georgia, serif;
  --serif: "Newsreader", "Google Sans", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1360px;
  --hdr-h: 88px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
:root[data-theme=dark], :root[data-theme=light] { color-scheme: light; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.65; font-weight: 400; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
[lang=ta] { font-family: "Google Sans", "Noto Sans Tamil", system-ui, sans-serif; letter-spacing: 0; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--moss); color: var(--sky-top); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Page transitions: header stays, content glides (V1a) */
@view-transition { navigation: auto; }
.hdr { view-transition-name: site-header; }
main { view-transition-name: site-main; }
::view-transition-old(site-main) { animation: vt-out .24s var(--ease) both; }
::view-transition-new(site-main) { animation: vt-in .46s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(site-main), ::view-transition-new(site-main) { animation: none; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* Header */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color .38s var(--ease), border-color .38s var(--ease); }
.hdr.scrolled, .hdr.solid { background: rgba(233, 216, 190, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.hdr .wrap { height: var(--hdr-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; display: block; }
.brand svg { height: 58px; width: 58px; color: var(--petal-light); flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 17px; color: var(--ink-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .22s, color .22s; }
.nav a:hover, .nav a[aria-current=page] { color: var(--ink); border-bottom-color: var(--terracotta); }
.hdr-actions { display: flex; gap: 10px; flex: none; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mnav { position: fixed; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 29; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(var(--gutter), 16px) 22px; display: grid; gap: 2px; }
.mnav a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.mnav .pill { margin-top: 14px; justify-self: start; }
@media (max-width: 1240px) { .nav { display: none; } .hdr-actions { margin-left: auto; } }
@media (max-width: 860px) { .hdr-actions .pill-line { display: none; } .menu-btn { display: grid; margin-left: 0; } }
@media (max-width: 560px) { :root { --hdr-h: 72px; } .brand img { height: 36px; } .brand svg { height: 42px; width: 42px; } .hdr-actions { display: none; } .menu-btn { margin-left: auto; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 17px; line-height: 1.2; padding: 13px 24px; min-height: 48px; border: 1px solid transparent; transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease); white-space: nowrap; }
.pill-solid { background: var(--ink); color: var(--sky-top); }
.pill-solid:hover { background: #0B2F5C; }
.pill-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.pill-line:hover { background: var(--ink); color: var(--sky-top); }
.textlink { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; font-size: 17px; background: none; border-top: 0; border-left: 0; border-right: 0; }
.textlink:hover { border-bottom-color: var(--terracotta); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 8px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-weight: 300; font-size: clamp(44px, 6.4vw, 104px); line-height: 1.0; letter-spacing: -0.03em; }
h2 { font-weight: 300; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -0.024em; }
h3 { font-weight: 400; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.15; letter-spacing: -0.012em; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--line-2); flex: none; }
.lede { margin: 0; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; font-weight: 400; }
.prose p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.prose p.big { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.45; color: var(--ink); }
.small { font-size: 16px; color: var(--mute); margin: 0; max-width: 60ch; }
.prose { display: grid; gap: 18px; }

/* Scenes (frozen V5 mountains) */
.scene { position: relative; overflow: hidden; background: var(--bg); isolation: isolate; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.scene.no-gl { background: linear-gradient(to bottom, var(--sky-top), var(--bg) 55%, #CDBB97 78%, var(--moss)); }
.hero { min-height: max(700px, min(100svh, 980px)); display: flex; flex-direction: column; }
.hero > .wrap:first-of-type { padding-top: calc(var(--hdr-h) + clamp(36px, 7vh, 96px)); padding-bottom: 40px; flex: 1; }
.hero-copy { max-width: 900px; display: grid; gap: 26px; }
.hero .lede { max-width: 40ch; }

/* Fact strip on the hero's foot (H3) */
.facts { position: relative; background: rgba(233, 216, 190, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.facts ul { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding-block: 24px 26px; padding-inline: 0 22px; display: grid; gap: 4px; }
.facts li + li { border-left: 1px solid var(--line); padding-left: 26px; }
.facts .k { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts .v { font-size: 19px; line-height: 1.35; color: var(--ink); }
@media (max-width: 860px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; padding-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Bands */
.band > .wrap { padding-block: clamp(72px, 9vw, 128px); }
.band.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 72px; align-items: start; }
.split > div { display: grid; gap: 22px; }
.head { display: grid; gap: 20px; margin-bottom: clamp(36px, 4vw, 56px); max-width: 820px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Rows: hairlines, no cards */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 12px 56px; padding: 32px 0 34px 0; border-bottom: 1px solid var(--line); align-items: start; transition: opacity .4s var(--ease); }
.row.num { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr); }
.row .n { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 8px; letter-spacing: .06em; }
.row p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.row .tag { font-style: italic; font-size: 20px; color: var(--ink-2); margin-top: 8px; }
.row .more { margin-top: 14px; display: inline-block; }
.row > div { display: grid; gap: 4px; align-content: start; }
@media (max-width: 860px) { .row, .row.num { grid-template-columns: 1fr; gap: 10px; } .row .n { padding-top: 0; } }

/* Reading highlight (W2) */
.reading .row { opacity: .7; }
.reading .row.on { opacity: 1; }
.reading .row::before { content: ""; position: absolute; left: calc(-1 * min(var(--gutter), 28px)); top: 30px; bottom: 30px; width: 2px; background: var(--terracotta); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.reading .row.on::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .reading .row { opacity: 1; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 6px 56px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: "0" counter(s); font-size: 15px; color: var(--mute); letter-spacing: .06em; }
.steps .t { font-size: 24px; color: var(--ink); }
.steps .d { color: var(--ink-2); }
@media (max-width: 860px) { .steps li { grid-template-columns: 44px 1fr; } .steps .d { grid-column: 2; } }

/* Questions: tabs + accordions (Q1, Q2) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tabs button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 16px; color: var(--ink-2); }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--sky-top); border-color: var(--ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 20px 0; font-size: clamp(20px, 1.7vw, 24px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; color: var(--mute); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; display: grid; gap: 10px; }
.faq .a p { margin: 0; }
.faq .a strong { color: var(--ink); font-weight: 600; }
.faq .a ul { margin: 0; padding-left: 20px; }
.faq-group[hidden] { display: none; }
.no-js .faq-group[hidden] { display: block !important; }

/* Journey strip (C1) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.journey li { padding: 26px 22px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.journey li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--moss); }
.journey li.done::before { background: var(--moss); }
.journey li.now::before { background: var(--terracotta); border-color: var(--terracotta); }
.journey .st { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.journey .t { font-size: 24px; color: var(--ink); line-height: 1.2; }
.journey p { margin: 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }

/* Closing scene */
.closing { min-height: clamp(640px, 92vh, 880px); border-top: 1px solid var(--line); }
.closing .wrap { padding-top: clamp(72px, 10vh, 120px); padding-bottom: 40vh; }
.closing-copy { max-width: 680px; display: grid; gap: 22px; }
.sig { font-style: italic; font-size: 22px; color: var(--ink-2); margin: 0; }

/* Page top for inner pages */
.page-top > .wrap { padding-top: calc(var(--hdr-h) + clamp(48px, 8vh, 110px)); padding-bottom: clamp(48px, 6vw, 84px); display: grid; gap: 24px; }
.crumbs { font-size: 16px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.answer { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 0; }
.answer strong { color: var(--ink); font-weight: 500; }
.reviewed { font-size: 16px; color: var(--mute); display: flex; align-items: center; gap: 10px; margin: 0; }
.reviewed::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--moss); }
.legal { font-size: 16px; color: var(--mute); border-left: 1px solid var(--terracotta); padding-left: 16px; max-width: 70ch; margin: 0; }

/* Quotes and note from Pure */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.quotes figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.quotes blockquote { margin: 0; }
.quotes .ta { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.6; color: var(--ink); }
.quotes .en { font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.quotes figcaption { font-size: 16px; color: var(--mute); }
.note { display: grid; gap: 18px; max-width: 64ch; }
.note p { margin: 0; color: var(--ink-2); }
.note .by { color: var(--ink); font-size: 18px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Next chapter */
.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; text-decoration: none; padding-block: 8px; }
.next .k { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.next .t { font-size: clamp(34px, 4.2vw, 62px); font-weight: 300; line-height: 1.05; letter-spacing: -0.024em; display: block; }
.next .arrow { font-size: 40px; color: var(--terracotta); }

/* Forms (S1: no browser blue) */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 16px; color: var(--mute); }
.form input[type=text], .form input[type=email], .form select, .form textarea { font: inherit; font-size: 17px; color: var(--ink); background: rgba(243, 234, 220, .75); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px; }
.form textarea { min-height: 120px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23002147' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form option { background: var(--sky-top); color: var(--ink); }
.form input:-webkit-autofill, .form input:autofill { -webkit-box-shadow: 0 0 0 40px #F0E6D6 inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .rchips label { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; min-height: 44px; font-size: 16px; color: var(--ink); cursor: pointer; }
.form input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--moss); border-radius: 5px; background: var(--sky-top); display: inline-grid; place-content: center; flex: none; cursor: pointer; }
.form input[type=checkbox]::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--sky-top); border-bottom: 2px solid var(--sky-top); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.form input[type=checkbox]:checked { background: var(--moss); }
.form input[type=checkbox]:checked::after { opacity: 1; }
.form .consent { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.form .consent input { margin-top: 4px; }
.form .pill-solid { justify-self: start; }
.thanks { display: grid; gap: 12px; }
.preview-note { font-size: 15px; color: var(--terracotta); margin: 0; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }

dialog { border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); color: var(--ink); padding: 0; width: min(580px, calc(100vw - 28px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(0, 33, 71, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog .in { padding: 32px 30px; display: grid; gap: 18px; }
dialog h2 { font-size: 36px; }
dialog .x { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--mute); }

/* Footer (C2) */
.foot { background: var(--moss); color: #EFE5D2; }
.foot a { color: #F3EADC; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .wrap { padding-block: 56px 28px; display: grid; gap: 36px; }
.f-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; }
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand img { height: 46px; width: auto; }
.f-brand svg { width: 52px; height: 52px; color: var(--petal); }
.f-top p { margin: 0; font-size: 19px; font-style: italic; color: #EFE5D2; }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 40px; border-top: 1px solid rgba(243, 234, 220, .22); padding-top: 32px; }
.f-cols h2 { font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #D9CDB4; margin-bottom: 12px; }
.f-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; }
.f-cols .nw { white-space: nowrap; }
.f-em { margin: 0; padding: 14px 18px; border: 1px solid rgba(243, 234, 220, .3); border-radius: 12px; font-size: 17px; }
.f-em b { font-weight: 600; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 15px; color: #D9CDB4; border-top: 1px solid rgba(243, 234, 220, .22); padding-top: 20px; }
.f-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.f-bottom p { margin: 0; }
@media (max-width: 860px) { .f-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .f-cols { grid-template-columns: 1fr; } }

/* Privacy draft */
.policy { max-width: 74ch; display: grid; gap: 28px; }
.policy section { display: grid; gap: 10px; }
.policy h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; }
.policy p, .policy li { color: var(--ink-2); margin: 0; }
.policy ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.draft { border: 1px solid var(--terracotta); border-radius: 12px; padding: 14px 18px; color: var(--terracotta); font-size: 16px; margin: 0; max-width: 74ch; }

/* Pure's guide */
.pg-launch { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--moss); color: #F3EADC; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(40, 40, 20, .3); }
.pg-launch:hover { background: var(--moss-2); }
.pg-launch .dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--terracotta); border: 2px solid var(--bg); }
.pg { position: fixed; right: 20px; bottom: 94px; z-index: 41; width: min(400px, calc(100vw - 24px)); height: min(660px, calc(100vh - 120px)); background: var(--bg); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(40, 40, 20, .28); }
.pg-head { background: var(--moss); color: #F3EADC; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--terracotta); }
.pg-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-top); display: grid; place-items: center; flex: none; }
.pg-head .av svg { width: 26px; height: 26px; color: var(--petal-light); }
.pg-head .nm { font-size: 21px; line-height: 1.1; }
.pg-head .st { font-size: 15px; opacity: .9; }
.pg-head .x { margin-left: auto; width: 44px; height: 44px; background: none; border: 0; color: inherit; font-size: 26px; line-height: 1; }
.pg-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 16.5px; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: var(--sky-top); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.me { background: var(--ink); color: var(--sky-top); border-bottom-right-radius: 5px; align-self: flex-end; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg .acts button, .msg .acts a { border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 7px 13px; min-height: 40px; font-size: 15px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.typing { align-self: flex-start; color: var(--mute); font-size: 15px; padding-left: 4px; }
.pg-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.pg-chips button { flex: none; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 8px 13px; min-height: 40px; font-size: 15px; color: var(--ink-2); }
.pg-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.pg-in input { flex: 1; font: inherit; font-size: 16px; border: 1px solid var(--line-2); background: var(--sky-top); border-radius: 999px; padding: 11px 16px; color: var(--ink); min-width: 0; }
.pg-in button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; }
.pg-in .mic { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.pg-in .mic.on { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.pg-in .send { background: var(--ink); color: var(--sky-top); }
.pg-note { padding: 10px 16px 14px; font-size: 15px; line-height: 1.45; color: var(--mute); border-top: 1px solid var(--line); max-height: 120px; overflow-y: auto; }
.pg-note p { margin: 0 0 6px; }

/* Preview controls and review notes */
.pv-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 39; background: rgba(0, 33, 71, .94); color: #F3EADC; border-radius: 999px; padding: 5px 6px 5px 14px; font-size: 15px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (max-width: 560px) { .pv-bar span { display: none; } .pv-bar { left: 16px; transform: none; padding: 5px; } }
.pv-bar button { border: 1px solid rgba(243, 234, 220, .45); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 15px; }
.pv-bar button[aria-pressed=true] { background: #F3EADC; color: var(--ink); }
.rn { display: none; font-size: 15px; line-height: 1.4; color: var(--terracotta); border: 1px dashed var(--terracotta); border-radius: 8px; padding: 6px 10px; margin: 6px 0 0; max-width: 60ch; background: rgba(243, 234, 220, .6); }
body.notes .rn { display: block; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--sky-top); padding: 12px 18px; border-radius: 10px; font-size: 16px; max-width: calc(100vw - 32px); }

/* Choice chips (replaces the "I am writing as" dropdown; P1-1, 20 Nov) */
.form fieldset.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form fieldset.chips legend { padding: 0; margin-bottom: 10px; font-size: 16px; color: var(--ink); }
.form .rchip { position: relative; display: inline-flex; cursor: pointer; }
.form .rchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form .rchip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--moss); border-radius: 999px; background: rgba(243, 234, 220, .75); color: var(--ink); font-size: 16px; line-height: 1.3; transition: background .2s, color .2s, border-color .2s; }
.form .rchip:hover span { border-color: var(--ink); }
.form .rchip input:checked + span { background: var(--moss); border-color: var(--moss); color: var(--sky-top); }
.form .rchip input:focus-visible + span { outline: 2px solid var(--terracotta, #A3502E); outline-offset: 2px; }


/* Brand display face (decided 21 Nov): Cinzel for headings, hero, section titles, menu, buttons and labels.
   Reading text (paragraphs, answers, forms, chat) stays in Newsreader. Tamil stays in Google Sans via [lang=ta]. */
h1, h2, h3, h4 { font-family: var(--display); font-optical-sizing: none; }
h1 { font-weight: 400; font-size: clamp(36px, 5vw, 80px); line-height: 1.12; letter-spacing: .01em; }
h2 { font-weight: 400; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.14; letter-spacing: .01em; }
h3 { font-weight: 500; letter-spacing: .02em; }
.eyebrow, .nav a, .mnav a, .pill, .tabs button, .crumbs, .k, .next .t, .reviewed, .preview-bar, .ftr h3, .ftr h4 { font-family: var(--display); }
.nav a, .pill { letter-spacing: .04em; }
.pill { font-size: 15.5px; font-weight: 500; }
.eyebrow { letter-spacing: .14em; }
[lang=ta], h1 [lang=ta], h2 [lang=ta], h3 [lang=ta] { font-family: "Google Sans", "Noto Sans Tamil", system-ui, sans-serif; letter-spacing: 0; }
.nav a, .pill { white-space: nowrap; }
.nav a { font-size: 14.5px; letter-spacing: .03em; }
@media (max-width: 1380px) { .nav { gap: 20px; } .nav a { font-size: 13.5px; } .hdr-actions .pill { padding: 11px 18px; font-size: 14px; } }

/* Pure at a glance: one quiet line in the hero, hills left clear (22 Nov) */
.glance { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--display); font-size: 14.5px; letter-spacing: .06em; color: var(--ink-2); }
.glance li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.glance svg { width: 15px; height: 15px; color: var(--petal-light); flex: none; }
@media (max-width: 560px) { .glance { gap: 8px 20px; font-size: 13.5px; } }
