/* goodbuddy.ai: "lamplight at dusk".
   One idea: it is evening, the house is quiet, and there is a light on. A calm sea, midnight blue to
   morning blue, sits behind everything (since 2026-11-25); the lamp glows amber. One sans-serif face
   (Atkinson Hyperlegible) for everything, no serif anywhere. Action buttons are green, like the
   widget's "Tap to talk", never red. Body text stays large, plain and very high contrast, because
   the people reading it may be eighty. All motion stops under prefers-reduced-motion. */

:root {
  --night: #0c2552;       /* sky, top (Calm Sea, 2026-11-25) */
  --dusk: #113570;        /* sky, middle */
  --moon: #f6f2e4;        /* text */
  --moon-soft: #c9cbec;   /* supporting text */
  --amber: #3edc84;       /* the lamp */
  --amber-soft: #8af5b6;
  --ink: #1a1440;         /* text on amber */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.16);
  --gold: linear-gradient(100deg, #b8f5cf 0%, #3edc84 45%, #5fb4ff 100%);
  --go-ink: #052a17;      /* text on green, as on the widget's button (web/src/widget/widget.css) */
  --go: #3edc84;          /* action buttons: green, never red */
  --go-soft: #b8f5cf;

  --display: 'Atkinson Hyperlegible', system-ui, sans-serif;   /* no serif type (the owner, 2026-10-08) */
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 26px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  color: var(--moon);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.45rem; }
/* the words that carry the feeling are set in gold */
h1 em, h2 em, .figure-n { color: var(--amber-soft); }
h1 em, h2 em { font-style: italic; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em, h2 em, .figure-n {
    background: var(--gold); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 9s ease-in-out infinite alternate;
  }
}
p { max-width: var(--measure); }
a { color: var(--amber-soft); text-underline-offset: 3px; }
ul, ol { padding-left: 1.2rem; }
.lede { font-size: 1.25rem; color: var(--moon-soft); }
.fine { font-size: 0.95rem; color: var(--moon-soft); }
.fine.free-note { font-size: 1.25rem; color: var(--moon-soft); }   /* as big as the lede and, since 2026-11-20 (the owner), its colour too: no longer yellow */
.eyebrow { font-family: var(--body); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: var(--amber-soft); margin-bottom: 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: 0.5rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the sky: the calm sea, fixed behind everything (a copy of web/src/sky.css; "Calm Sea", the client's approval,
   2026-11-25). Only the three waves move, by sliding; they hold still in a call and with reduced motion ---- */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    /* a faint warm light on the horizon, where the sun is about to rise */
    radial-gradient(30% 20% at 80% 77%, rgba(255, 220, 170, 0.16), transparent 70%),
    /* midnight blue at the top, morning blue at the horizon */
    linear-gradient(180deg, #0c2552 0%, #113570 40%, #17457f 66%, #285a95 78%);
}
/* three soft clouds, drifting slowly to one side and back (40 s each way; 80 s was too slow to see, the owner,
   2026-11-25). Their layer is 20% wider than the
   screen, so the sizes and places below are the proposal's (22% 3.5% at 28% 20%, ...) written for it; it only slides
   (transform), so the phone's graphics chip moves it without drawing it again */
.sky::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -10%; right: -10%;
  background:
    radial-gradient(18.33% 3.5% at 31.67% 20%, rgba(255, 255, 255, 0.07), transparent 100%),
    radial-gradient(21.67% 4% at 63.33% 34%, rgba(255, 255, 255, 0.06), transparent 100%),
    radial-gradient(13.33% 3% at 45% 50%, rgba(255, 255, 255, 0.05), transparent 100%);
  animation: gb-clouds 40s ease-in-out infinite alternate;
}
/* the light's glow on the water, over the waves (its thin streak below went on 2026-11-25, the owner: on a phone it
   was a white line) */
.sky::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(9% 5% at 80% 80%, rgba(255, 236, 205, 0.08), transparent 100%);
}

/* the sea, as the approved proposal has it: three waves, each a strip whose top edge is two gentle swells in a 1600 px
   tile, sliding sideways at its own slow pace; each strip rises and falls once every 10 s, the pace of slow
   breathing */
/* each strip reaches 1.5vh below the screen, so its rise never shows a line of sky under it */
.sky .swell { position: absolute; left: 0; right: 0; bottom: -1.5vh; animation: gb-swell 10s ease-in-out infinite alternate; }
.sky .swell.s1 { height: 45.5vh; animation-delay: -3s; }
.sky .swell.s2 { height: 33.5vh; animation-delay: -6s; }
.sky .swell.s3 { height: 21.5vh; }
.sky .wave { position: absolute; left: 0; bottom: 0; width: calc(100% + 1600px); height: 100%; }
.sky .s1 .wave {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'200'%20viewBox%3D'0%200%201600%20200'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2C200%20L0%2C100.0%20L20%2C102.2%20L40%2C104.3%20L60%2C106.4%20L80%2C108.2%20L100%2C109.9%20L120%2C111.3%20L140%2C112.5%20L160%2C113.3%20L180%2C113.8%20L200%2C114.0%20L220%2C113.8%20L240%2C113.3%20L260%2C112.5%20L280%2C111.3%20L300%2C109.9%20L320%2C108.2%20L340%2C106.4%20L360%2C104.3%20L380%2C102.2%20L400%2C100.0%20L420%2C97.8%20L440%2C95.7%20L460%2C93.6%20L480%2C91.8%20L500%2C90.1%20L520%2C88.7%20L540%2C87.5%20L560%2C86.7%20L580%2C86.2%20L600%2C86.0%20L620%2C86.2%20L640%2C86.7%20L660%2C87.5%20L680%2C88.7%20L700%2C90.1%20L720%2C91.8%20L740%2C93.6%20L760%2C95.7%20L780%2C97.8%20L800%2C100.0%20L820%2C102.2%20L840%2C104.3%20L860%2C106.4%20L880%2C108.2%20L900%2C109.9%20L920%2C111.3%20L940%2C112.5%20L960%2C113.3%20L980%2C113.8%20L1000%2C114.0%20L1020%2C113.8%20L1040%2C113.3%20L1060%2C112.5%20L1080%2C111.3%20L1100%2C109.9%20L1120%2C108.2%20L1140%2C106.4%20L1160%2C104.3%20L1180%2C102.2%20L1200%2C100.0%20L1220%2C97.8%20L1240%2C95.7%20L1260%2C93.6%20L1280%2C91.8%20L1300%2C90.1%20L1320%2C88.7%20L1340%2C87.5%20L1360%2C86.7%20L1380%2C86.2%20L1400%2C86.0%20L1420%2C86.2%20L1440%2C86.7%20L1460%2C87.5%20L1480%2C88.7%20L1500%2C90.1%20L1520%2C91.8%20L1540%2C93.6%20L1560%2C95.7%20L1580%2C97.8%20L1600%2C100.0%20L1600%2C200%20Z'%20fill%3D'white'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 / 1600px 100%;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'200'%20viewBox%3D'0%200%201600%20200'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2C200%20L0%2C100.0%20L20%2C102.2%20L40%2C104.3%20L60%2C106.4%20L80%2C108.2%20L100%2C109.9%20L120%2C111.3%20L140%2C112.5%20L160%2C113.3%20L180%2C113.8%20L200%2C114.0%20L220%2C113.8%20L240%2C113.3%20L260%2C112.5%20L280%2C111.3%20L300%2C109.9%20L320%2C108.2%20L340%2C106.4%20L360%2C104.3%20L380%2C102.2%20L400%2C100.0%20L420%2C97.8%20L440%2C95.7%20L460%2C93.6%20L480%2C91.8%20L500%2C90.1%20L520%2C88.7%20L540%2C87.5%20L560%2C86.7%20L580%2C86.2%20L600%2C86.0%20L620%2C86.2%20L640%2C86.7%20L660%2C87.5%20L680%2C88.7%20L700%2C90.1%20L720%2C91.8%20L740%2C93.6%20L760%2C95.7%20L780%2C97.8%20L800%2C100.0%20L820%2C102.2%20L840%2C104.3%20L860%2C106.4%20L880%2C108.2%20L900%2C109.9%20L920%2C111.3%20L940%2C112.5%20L960%2C113.3%20L980%2C113.8%20L1000%2C114.0%20L1020%2C113.8%20L1040%2C113.3%20L1060%2C112.5%20L1080%2C111.3%20L1100%2C109.9%20L1120%2C108.2%20L1140%2C106.4%20L1160%2C104.3%20L1180%2C102.2%20L1200%2C100.0%20L1220%2C97.8%20L1240%2C95.7%20L1260%2C93.6%20L1280%2C91.8%20L1300%2C90.1%20L1320%2C88.7%20L1340%2C87.5%20L1360%2C86.7%20L1380%2C86.2%20L1400%2C86.0%20L1420%2C86.2%20L1440%2C86.7%20L1460%2C87.5%20L1480%2C88.7%20L1500%2C90.1%20L1520%2C91.8%20L1540%2C93.6%20L1560%2C95.7%20L1580%2C97.8%20L1600%2C100.0%20L1600%2C200%20Z'%20fill%3D'white'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 / 1600px 100%;
  background: linear-gradient(180deg, #3a6ca6 32%, #244f88 52%, #183f74 100%);
  animation: gb-flow 120s linear infinite;
}
.sky .s2 .wave {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'200'%20viewBox%3D'0%200%201600%20200'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2C200%20L0%2C117.8%20L20%2C117.3%20L40%2C116.3%20L60%2C114.9%20L80%2C113.1%20L100%2C111.0%20L120%2C108.6%20L140%2C106.0%20L160%2C103.3%20L180%2C100.5%20L200%2C97.7%20L220%2C94.9%20L240%2C92.3%20L260%2C89.8%20L280%2C87.6%20L300%2C85.7%20L320%2C84.2%20L340%2C83.0%20L360%2C82.3%20L380%2C82.0%20L400%2C82.2%20L420%2C82.7%20L440%2C83.7%20L460%2C85.1%20L480%2C86.9%20L500%2C89.0%20L520%2C91.4%20L540%2C94.0%20L560%2C96.7%20L580%2C99.5%20L600%2C102.3%20L620%2C105.1%20L640%2C107.7%20L660%2C110.2%20L680%2C112.4%20L700%2C114.3%20L720%2C115.8%20L740%2C117.0%20L760%2C117.7%20L780%2C118.0%20L800%2C117.8%20L820%2C117.3%20L840%2C116.3%20L860%2C114.9%20L880%2C113.1%20L900%2C111.0%20L920%2C108.6%20L940%2C106.0%20L960%2C103.3%20L980%2C100.5%20L1000%2C97.7%20L1020%2C94.9%20L1040%2C92.3%20L1060%2C89.8%20L1080%2C87.6%20L1100%2C85.7%20L1120%2C84.2%20L1140%2C83.0%20L1160%2C82.3%20L1180%2C82.0%20L1200%2C82.2%20L1220%2C82.7%20L1240%2C83.7%20L1260%2C85.1%20L1280%2C86.9%20L1300%2C89.0%20L1320%2C91.4%20L1340%2C94.0%20L1360%2C96.7%20L1380%2C99.5%20L1400%2C102.3%20L1420%2C105.1%20L1440%2C107.7%20L1460%2C110.2%20L1480%2C112.4%20L1500%2C114.3%20L1520%2C115.8%20L1540%2C117.0%20L1560%2C117.7%20L1580%2C118.0%20L1600%2C117.8%20L1600%2C200%20Z'%20fill%3D'white'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 / 1600px 100%;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'200'%20viewBox%3D'0%200%201600%20200'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2C200%20L0%2C117.8%20L20%2C117.3%20L40%2C116.3%20L60%2C114.9%20L80%2C113.1%20L100%2C111.0%20L120%2C108.6%20L140%2C106.0%20L160%2C103.3%20L180%2C100.5%20L200%2C97.7%20L220%2C94.9%20L240%2C92.3%20L260%2C89.8%20L280%2C87.6%20L300%2C85.7%20L320%2C84.2%20L340%2C83.0%20L360%2C82.3%20L380%2C82.0%20L400%2C82.2%20L420%2C82.7%20L440%2C83.7%20L460%2C85.1%20L480%2C86.9%20L500%2C89.0%20L520%2C91.4%20L540%2C94.0%20L560%2C96.7%20L580%2C99.5%20L600%2C102.3%20L620%2C105.1%20L640%2C107.7%20L660%2C110.2%20L680%2C112.4%20L700%2C114.3%20L720%2C115.8%20L740%2C117.0%20L760%2C117.7%20L780%2C118.0%20L800%2C117.8%20L820%2C117.3%20L840%2C116.3%20L860%2C114.9%20L880%2C113.1%20L900%2C111.0%20L920%2C108.6%20L940%2C106.0%20L960%2C103.3%20L980%2C100.5%20L1000%2C97.7%20L1020%2C94.9%20L1040%2C92.3%20L1060%2C89.8%20L1080%2C87.6%20L1100%2C85.7%20L1120%2C84.2%20L1140%2C83.0%20L1160%2C82.3%20L1180%2C82.0%20L1200%2C82.2%20L1220%2C82.7%20L1240%2C83.7%20L1260%2C85.1%20L1280%2C86.9%20L1300%2C89.0%20L1320%2C91.4%20L1340%2C94.0%20L1360%2C96.7%20L1380%2C99.5%20L1400%2C102.3%20L1420%2C105.1%20L1440%2C107.7%20L1460%2C110.2%20L1480%2C112.4%20L1500%2C114.3%20L1520%2C115.8%20L1540%2C117.0%20L1560%2C117.7%20L1580%2C118.0%20L1600%2C117.8%20L1600%2C200%20Z'%20fill%3D'white'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 / 1600px 100%;
  background: linear-gradient(180deg, #2d5f99 32%, #1b467f 52%, #123566 100%);
  animation: gb-flow 80s linear infinite reverse;
}
.sky .s3 .wave {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'200'%20viewBox%3D'0%200%201600%20200'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2C200%20L0%2C100.9%20L20%2C97.5%20L40%2C94.1%20L60%2C90.8%20L80%2C87.8%20L100%2C85.1%20L120%2C82.8%20L140%2C80.8%20L160%2C79.4%20L180%2C78.4%20L200%2C78.0%20L220%2C78.1%20L240%2C78.8%20L260%2C80.0%20L280%2C81.7%20L300%2C83.8%20L320%2C86.3%20L340%2C89.2%20L360%2C92.3%20L380%2C95.7%20L400%2C99.1%20L420%2C102.5%20L440%2C105.9%20L460%2C109.2%20L480%2C112.2%20L500%2C114.9%20L520%2C117.2%20L540%2C119.2%20L560%2C120.6%20L580%2C121.6%20L600%2C122.0%20L620%2C121.9%20L640%2C121.2%20L660%2C120.0%20L680%2C118.3%20L700%2C116.2%20L720%2C113.7%20L740%2C110.8%20L760%2C107.7%20L780%2C104.3%20L800%2C100.9%20L820%2C97.5%20L840%2C94.1%20L860%2C90.8%20L880%2C87.8%20L900%2C85.1%20L920%2C82.8%20L940%2C80.8%20L960%2C79.4%20L980%2C78.4%20L1000%2C78.0%20L1020%2C78.1%20L1040%2C78.8%20L1060%2C80.0%20L1080%2C81.7%20L1100%2C83.8%20L1120%2C86.3%20L1140%2C89.2%20L1160%2C92.3%20L1180%2C95.7%20L1200%2C99.1%20L1220%2C102.5%20L1240%2C105.9%20L1260%2C109.2%20L1280%2C112.2%20L1300%2C114.9%20L1320%2C117.2%20L1340%2C119.2%20L1360%2C120.6%20L1380%2C121.6%20L1400%2C122.0%20L1420%2C121.9%20L1440%2C121.2%20L1460%2C120.0%20L1480%2C118.3%20L1500%2C116.2%20L1520%2C113.7%20L1540%2C110.8%20L1560%2C107.7%20L1580%2C104.3%20L1600%2C100.9%20L1600%2C200%20Z'%20fill%3D'white'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 / 1600px 100%;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1600'%20height%3D'200'%20viewBox%3D'0%200%201600%20200'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2C200%20L0%2C100.9%20L20%2C97.5%20L40%2C94.1%20L60%2C90.8%20L80%2C87.8%20L100%2C85.1%20L120%2C82.8%20L140%2C80.8%20L160%2C79.4%20L180%2C78.4%20L200%2C78.0%20L220%2C78.1%20L240%2C78.8%20L260%2C80.0%20L280%2C81.7%20L300%2C83.8%20L320%2C86.3%20L340%2C89.2%20L360%2C92.3%20L380%2C95.7%20L400%2C99.1%20L420%2C102.5%20L440%2C105.9%20L460%2C109.2%20L480%2C112.2%20L500%2C114.9%20L520%2C117.2%20L540%2C119.2%20L560%2C120.6%20L580%2C121.6%20L600%2C122.0%20L620%2C121.9%20L640%2C121.2%20L660%2C120.0%20L680%2C118.3%20L700%2C116.2%20L720%2C113.7%20L740%2C110.8%20L760%2C107.7%20L780%2C104.3%20L800%2C100.9%20L820%2C97.5%20L840%2C94.1%20L860%2C90.8%20L880%2C87.8%20L900%2C85.1%20L920%2C82.8%20L940%2C80.8%20L960%2C79.4%20L980%2C78.4%20L1000%2C78.0%20L1020%2C78.1%20L1040%2C78.8%20L1060%2C80.0%20L1080%2C81.7%20L1100%2C83.8%20L1120%2C86.3%20L1140%2C89.2%20L1160%2C92.3%20L1180%2C95.7%20L1200%2C99.1%20L1220%2C102.5%20L1240%2C105.9%20L1260%2C109.2%20L1280%2C112.2%20L1300%2C114.9%20L1320%2C117.2%20L1340%2C119.2%20L1360%2C120.6%20L1380%2C121.6%20L1400%2C122.0%20L1420%2C121.9%20L1440%2C121.2%20L1460%2C120.0%20L1480%2C118.3%20L1500%2C116.2%20L1520%2C113.7%20L1540%2C110.8%20L1560%2C107.7%20L1580%2C104.3%20L1600%2C100.9%20L1600%2C200%20Z'%20fill%3D'white'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 / 1600px 100%;
  background: linear-gradient(180deg, #23558f 32%, #14396c 54%, #0c2852 100%);
  animation: gb-flow 55s linear infinite;
}

@keyframes gb-flow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-1600px, 0, 0); } }
@keyframes gb-swell { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -1.2vh, 0); } }
@keyframes gb-clouds { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(12%, 0, 0); } }

/* held still while a call is on (widget/callCalm.ts: a phone grew hot in long calls, 2026-11-21); it moves again
   when the call ends */
.gb-in-call .sky::before, .gb-in-call .sky .swell, .gb-in-call .sky .wave { animation-play-state: paused; }

@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---- header: the brand and "Free of charge" on the left; Sign in, then the menu button, on the
   right. The section links live in the menu on phones and tablets; on a wide screen they sit in the bar
   (2026-11-18, the end of this block). ---- */
.top {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1.1rem var(--gutter);
  max-width: 76rem; margin-inline: auto;
}
.brand-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.8rem; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-decoration: none; color: var(--moon); }
.top-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.menu-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer; font: inherit;
  color: var(--moon); background: var(--glass); border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
  transition: background-color 180ms ease, border-color 180ms ease;
  touch-action: manipulation;
}
.menu-btn:hover { background: var(--glass-strong); border-color: var(--amber-soft); }
.menu-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.menu-btn .icon-close, .menu-btn[aria-expanded='true'] .icon-open { display: none; }
.menu-btn[aria-expanded='true'] .icon-close { display: block; }
.menu {
  position: absolute; top: calc(100% - 0.4rem); right: var(--gutter);
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.5rem; border-radius: 20px;
  background: rgba(21, 53, 108, 0.97); border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px -18px rgba(0, 0, 0, 0.75);
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.menu a { display: block; min-height: 48px; padding: 0.75rem 1rem; border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--moon); }
.menu a:hover { background: var(--glass-strong); color: var(--amber-soft); }
.menu a:focus-visible { outline-offset: -3px; border-radius: 14px; }
.menu a[aria-current='page'] { color: var(--amber-soft); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* a wide screen (2026-11-18): the links in the bar, before Sign in, and no menu button. Talk to Buddy is left out on
   the home page, where the button to talk is beside them; other pages keep it (its link is /#talk) */
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .menu, .menu[hidden] {
    display: block; position: static; order: 1; margin-left: auto; width: auto; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .top-actions { order: 2; }
  .menu ul { display: flex; align-items: center; gap: 0.25rem; }
  .menu li:has(> a[href='#talk']) { display: none; }
  .menu a { display: inline-flex; align-items: center; padding: 0.5rem 0.85rem; white-space: nowrap; }
}

/* ---- the app bar (index.html), on phones only: one line and a button to /app, the installed app's
   start page, directly under the header, in the footer's colours. Hidden here; shown by the phones
   block at the end; hidden again in the installed app itself. ---- */
.app-bar {
  display: none; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 0.7rem var(--gutter);
  background: rgba(6, 8, 28, 0.7); border-block: 1px solid var(--hairline);
}
.app-bar p { font-size: 1rem; line-height: 1.35; font-weight: 700; }
.app-bar .btn { flex-shrink: 0; }
/* ---- buttons ---- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--moon); background: var(--glass); border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
  padding: 0.8em 1.6em; min-height: 48px;
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 180ms ease, border-color 180ms ease;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); background: var(--glass-strong); border-color: var(--amber-soft); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  color: var(--go-ink); border-color: transparent;
  background: linear-gradient(180deg, #8af5b6 0%, var(--go) 58%, #22c46f 100%);
  box-shadow: 0 0 0 1px rgba(184, 245, 207, 0.5), 0 10px 34px -6px rgba(62, 220, 132, 0.55);
}
.btn.primary:hover { background: linear-gradient(180deg, #a2f8c6 0%, #52e594 58%, #2ccf79 100%); border-color: transparent; box-shadow: 0 0 0 1px rgba(184, 245, 207, 0.8), 0 14px 46px -4px rgba(62, 220, 132, 0.8); }
/* a slow glint crosses the main button */
.btn.primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: glint 5.5s ease-in-out infinite;
}
@keyframes glint { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.small { padding: 0.5em 1.1em; min-height: 44px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber-soft); outline-offset: 4px; border-radius: 6px; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 999px; }

/* ---- glass surfaces: watery glass, without a blur of the moving sea behind it (as the app, 2026-11-25) ---- */
.tablet, .three article, .memory-card, .quiet-card, .free-card, .faq details, .figures li, .note, .table-wrap table {
  background: radial-gradient(120% 70% at 18% -20%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(150, 205, 255, 0.14) 0%, rgba(100, 165, 240, 0.06) 40%, rgba(60, 125, 215, 0.12) 100%);
  border: 1px solid rgba(175, 220, 255, 0.34);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -22px 34px -22px rgba(130, 200, 255, 0.35),
    0 16px 36px -18px rgba(0, 8, 30, 0.75);
}

/* ---- hero ---- */
.hero {
  display: grid; gap: 1.75rem 3rem; align-items: center;   /* rows (a phone: the words, then the button) 28% closer, 2026-11-17 */
  max-width: 76rem; margin-inline: auto; padding: clamp(2rem, 4.35vw, 3.6rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}   /* the top about 28% less than it was (the owner, 2026-11-17: less space above the button); a phone's 2rem is the same */
.hero-copy h1 { margin: 0 0 1.4rem; max-width: 13ch; }
/* the first screen's words (the owner, 2026-11-20): the promise in the green of the Talk button, then what
   GoodBuddy is, in white, the "and" smaller as the owner drew it */
/* "Always on your side" as large as its line allows (the owner, 2026-11-20): on one line, edge to edge of the
   words' column, which on a phone is the screen. The line is 9.15 times its font size wide in the site's face,
   so 10.5% of the column's width per unit leaves a few pixels to spare (8vw where a browser has no such unit) */
.hero-copy { container-type: inline-size; }
.hero-copy h1.hero-side {
  max-width: none; margin-bottom: 0.9rem; color: #38fc04; white-space: nowrap; font-size: 8vw; font-size: 10.5cqw;
}
/* in the green of the logo's "Good" (the owner, 2026-11-20): the logo is a picture whose "Good" runs from lime
   at the top to a deeper green at the bottom (read off its pixels); the plain colour above is its middle, for a
   browser that cannot paint a gradient into letters */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-copy h1.hero-side {
    background: linear-gradient(180deg, #adfc05 8%, #53fc04 40%, #09f608 68%, #01db04 92%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}
.hero-what { margin: 0 0 1.2rem; font-weight: 700; font-size: clamp(1rem, 5.2vw, 2.1rem); line-height: 1.25; color: #fff; }
.hero-what > span { display: block; }   /* two lines, broken before "and", as the owner drew it */
.hero-what .hero-and { font-size: 0.72em; }
/* the first screen's words centred, each line on the middle of its column (the owner, 2026-11-20) */
.hero-copy { text-align: center; }
.hero-copy > * { margin-inline: auto; }
.hero-copy .lede { margin-bottom: 0.2rem; font-size: 1.25rem; font-size: min(1.25rem, 5.1cqw); white-space: nowrap; }   /* one line on a phone */
/* "or set it up for someone you care about": the way to the family's set-up, underlined so it reads as a link
   (the owner, 2026-11-20); the line's own colour, and tall enough to press */
.hero-copy .hero-other {
  display: inline-block; padding-block: 0.45rem; color: inherit; text-decoration: underline;
  text-underline-offset: 0.2em; text-decoration-thickness: 2px;
}
.hero-copy .hero-other:hover, .hero-copy .hero-other:focus-visible { color: #fff; }
/* once Talk is pressed the words go, to make way for the call: the widget has the whole hero */
.hero:has(.gbw.is-call) .hero-copy { display: none; }
.hero:has(.gbw.is-call) .hero-demo { grid-column: 1 / -1; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 2rem 0 1rem; }

.hero-demo { display: grid; gap: 1rem; justify-items: center; scroll-margin-top: 1rem; }
.live-widget { width: 100%; min-height: 420px; display: grid; justify-items: center; }
.tablet {
  width: min(100%, 25rem); border-radius: 34px;
  padding: 1.75rem 1.4rem 1.5rem; display: grid; justify-items: center; gap: 1.6rem;
}
.tablet-greeting { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-align: center; }
.lamp {
  position: relative;
  width: 160px; height: 160px; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 38% 32%, #d8ffe6 0%, #6ff0a6 34%, var(--amber) 62%, #0f9a52 100%);
  display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 0 40px 6px rgba(64, 196, 230, 0.6), 0 0 120px 30px rgba(62, 220, 132, 0.28);
  animation: breathe 3.6s ease-in-out infinite;
}
.lamp span { max-width: 7ch; position: relative; z-index: 1; }
.lamp::before, .lamp::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(138, 245, 182, 0.7);
  animation: ring 3.6s ease-out infinite;
}
.lamp::after { animation-delay: 1.8s; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 40px 6px rgba(64, 196, 230, 0.55), 0 0 120px 30px rgba(62, 220, 132, 0.25); }
  50% { box-shadow: 0 0 56px 12px rgba(140, 200, 255, 0.8), 0 0 160px 50px rgba(62, 220, 132, 0.38); }
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
.bubbles { display: grid; gap: 0.6rem; width: 100%; }
.bubble { font-size: 1rem; line-height: 1.4; padding: 0.7rem 0.95rem; border-radius: 18px; max-width: 100%; }
.bubble.buddy { background: rgba(138, 245, 182, 0.14); border: 1px solid rgba(138, 245, 182, 0.3); font-weight: 700; border-bottom-left-radius: 6px; }
.bubble.you { color: var(--moon-soft); font-style: italic; text-align: right; }
.caption { font-size: 0.95rem; color: var(--moon-soft); text-align: center; }

/* ---- bands and splits ---- */
.band, .split, .steps-section, .faq, .closing { max-width: 76rem; margin-inline: auto; padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter); }
.band.dark {
  max-width: none;
  background: linear-gradient(180deg, rgba(6, 8, 28, 0.72), rgba(6, 8, 28, 0.55));
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(138, 245, 182, 0.6), transparent) 1;
}
.band.dark > * { max-width: 76rem; margin-inline: auto; }
.band.dark h2 { color: var(--amber-soft); }
.band.dark .fine { margin-top: 1.5rem; }
.three { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.75rem; }
.three article { padding: 1.6rem 1.5rem 1.7rem; transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.three article:hover { transform: translateY(-4px); border-color: rgba(138, 245, 182, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 70px -28px rgba(62, 220, 132, 0.45); }
.three article p { max-width: none; color: var(--moon-soft); }
/* a small four-point sparkle marks each card and each promise */
.three h3::before, .checks li::before {
  content: ''; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.5em;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.split { display: grid; gap: 3rem; align-items: start; }
.split p + p { margin-top: 1rem; }
.split > div > p { color: var(--moon-soft); }
.memory-card, .quiet-card { padding: 1.75rem; }
.memory-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.9rem; color: var(--amber-soft); }
.memory-card ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; font-size: 1rem; }
.memory-card li { color: var(--moon-soft); }
.memory-card strong { color: var(--moon); }
.checks { list-style: none; padding: 0; display: grid; gap: 1rem; }
.checks li { padding-left: 1.9rem; position: relative; color: var(--moon-soft); }
.checks li strong { color: var(--moon); }
.checks li::before { position: absolute; left: 0; top: 0.42em; margin: 0; width: 1rem; height: 1rem; }
.quote { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1.45; }
.quote-who { margin-top: 1rem; font-size: 0.95rem; color: var(--moon-soft); }

/* ---- steps: three lamps on a line ---- */
.steps { list-style: none; padding: 0; display: grid; gap: 1.75rem; margin: 1.75rem 0 2.25rem; position: relative; }
.steps::before { content: ''; position: absolute; left: 1.35rem; top: 1.5rem; bottom: 1.5rem; border-left: 2px dashed rgba(138, 245, 182, 0.4); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; position: relative; }
.steps p { color: var(--moon-soft); }
.num {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 38% 32%, #d8ffe6, var(--amber) 70%);
  box-shadow: 0 0 22px 2px rgba(64, 196, 230, 0.6);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center;
}

/* ---- free of charge ---- */
.free-card { padding: clamp(1.5rem, 4vw, 2.25rem); max-width: 42rem; display: grid; gap: 0.8rem; border-color: rgba(111, 240, 166, 0.4); }
.free-lead { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.25; }
.free-card p:not(.free-lead) { color: var(--moon-soft); }

/* ---- faq ---- */
.faq details { padding: 0.15rem 1.4rem; max-width: 48rem; margin-top: 0.8rem; border-radius: 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.2rem; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0.75rem; font-size: 1.6rem; line-height: 1; color: var(--amber-soft); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: rgba(138, 245, 182, 0.45); }
.faq details p { padding-bottom: 1.1rem; color: var(--moon-soft); }
.faq > h1 { margin-bottom: 1.25rem; }

.closing { text-align: center; display: grid; gap: 1.75rem; justify-items: center; position: relative; }
.closing::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(90vw, 44rem); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(62, 220, 132, 0.2), transparent 70%); z-index: -1; pointer-events: none;
}
.closing .cta-row { justify-content: center; margin: 0; }
.closing h2 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }

.foot { background: rgba(6, 8, 28, 0.7); border-top: 1px solid var(--hairline); padding: 2.5rem var(--gutter); font-size: 0.95rem; color: var(--moon-soft); }
.foot strong { color: var(--moon); }
.foot p { margin-bottom: 0.5rem; max-width: none; }
.foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---- sections rise gently into view (only when scripting is on) ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- the science page: a long article, set for reading ---- */
.article { max-width: 54rem; margin-inline: auto; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(2.5rem, 7vw, 5rem); }
.article section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.article p + p, .article ul + p, .article .table-wrap + p { margin-top: 1rem; }
.article h3 { margin-top: 1.75rem; }
.article-head h1 { max-width: 16ch; margin-bottom: 1.25rem; }
.article-head .fine { margin-top: 1rem; }
.crumbs { font-size: 0.95rem; color: var(--moon-soft); margin-bottom: 1.5rem; }
.plain { display: grid; gap: 0.5rem; margin-top: 1rem; max-width: var(--measure); }
.plain li::marker { color: var(--amber); }
.ref { font-size: 0.85em; font-weight: 700; text-decoration: none; padding: 0 0.1em; }
.ref:hover { text-decoration: underline; }

.figures { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.figures li { padding: 1.4rem 1.4rem 1.5rem; }
.figures li p:last-child { color: var(--moon-soft); }
.figure-n { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.45rem; text-wrap: balance; }

.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
table { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 46rem; overflow: hidden; font-size: 1rem; }
.table-wrap table { border-radius: 18px; }
caption { text-align: left; font-weight: 700; padding: 0 0.75rem 0.7rem; color: var(--amber-soft); }
th, td { text-align: left; padding: 0.8rem 1rem; border-top: 1px solid var(--hairline); vertical-align: top; }
thead th { border-top: none; background: rgba(255, 255, 255, 0.1); font-family: var(--display); font-weight: 700; }
tbody th { font-weight: 400; }
td { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--amber-soft); }

.note { border-left: 6px solid var(--amber); padding: 1.6rem 1.6rem 1.8rem; }
.sources { display: grid; gap: 0.9rem; margin-top: 1rem; max-width: 46rem; font-size: 1rem; color: var(--moon-soft); }
.sources li:target { background: rgba(62, 220, 132, 0.18); outline: 8px solid rgba(62, 220, 132, 0.18); border-radius: 4px; color: var(--moon); }
.sources a { overflow-wrap: anywhere; }
.sources + .fine { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .hero .cta-row { display: none; }   /* the widget is beside the copy: no link down to it */
  /* in a call the widget is the screen's height, so the copy beside it stays centred on the call and never moves:
     without it the widget grew and shrank with Buddy's words and the centred copy moved each sentence (the owner,
     2026-11-18), and the browser's scroll anchoring, following it, scrolled the button off the top of the screen */
  .hero-demo:has(.gbw.is-call) { min-height: calc(100vh - 2rem); }
  .split { grid-template-columns: 1fr 1fr; }
}

/* Stillness for those who ask for it: the sky stays, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lamp::before, .lamp::after { display: none; }
}

/* phones: a smaller brand and Sign in, so the header stays one row (the label wraps under the
   brand on the narrowest screens) */
@media (max-width: 640px) {
  .brand { font-size: 1.25rem; gap: 0.5rem; }
  .brand img { width: 86px; height: auto; }   /* the logo a quarter smaller on a phone (the owner, 2026-11-20) */
  /* and less height around it and in the two top buttons (the owner, 2026-11-20): the bar is about a third
     lower, so the first screen's words and the Talk button sit higher. The buttons stay 40 px tall to tap */
  .top { padding-block: 0.4rem; }
  .brand { min-height: 36px; }
  .top-actions .btn.small { font-size: 1rem; padding: 0.25em 0.95em; min-height: 40px; }
  .menu-btn { width: 40px; height: 40px; }
  /* the first words sit midway between the logo's bottom and the top of the Talk button (the owner,
     2026-11-20): 34 px above them (8 of it the bar's own padding) and 34 px below (10 of row gap and the
     button's own 24 px margin). Before, 16 px above and 52 below */
  .hero { padding-top: 1.625rem; row-gap: 0.625rem; }
  td { white-space: normal; }
  /* the app bar, only once the person has signed up (web/src/widget/appBar.ts: a keep or a sign-in; never at
     load and never for a visitor, so the hero stays at the top), and its button the size of Sign in */
  .app-bar.is-due { display: flex; }
  .app-bar .btn.small { font-size: 1rem; padding: 0.5em 0.95em; }
}

/* the installed app, should it show this page: it is the app already */
@media (display-mode: standalone) {
  .app-bar { display: none; }
}
