/* Home page ("The week", baseline 2026-11-19). Self-contained: no third-party requests, no inline styles, no scripts.
   Fonts are self-hosted (SIL Open Font License 1.1; licences in /fonts/). Motion is CSS only; everything except the headline word stops under prefers-reduced-motion (owner decision 2026-11-19: the word always runs).
   Colours: the shipped app's tokens (Harbor blue #0a64a8 on #f7f8fa). The app mocks are drawn as live HTML (the .amity-ui block). */
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin-wght.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f7f8fa; --surface: #fff; --ink: #16181d; --muted: #5b616e; --line: #e2e4e9;
  --accent: #0a64a8; --accent-ink: #fff; --sand: #e4d9c6; --sand-2: #efe7d9;
  --font-display: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px); --max: 1200px; --nav-h: 64px; --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font-text); overflow-x: clip; }
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.link { font-weight: 600; }
.t-label { font: 700 .85rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--font-text); text-decoration: none; transition: background-color .2s, box-shadow .2s, transform .2s; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #08528a; }
.btn--secondary { color: var(--ink); box-shadow: inset 0 0 0 1px #c9cdd5; background: var(--surface); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(247, 248, 250, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav__bar { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.3rem/1 var(--font-display); color: var(--ink); text-decoration: none; }
.nav__links { display: flex; gap: 4px; margin-left: 24px; }
.nav__links a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
.nav__links a:hover { background: #eceef2; }
.nav__cta { margin-left: auto; min-height: 44px; padding: .6rem 1.2rem; }
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(22,24,29,.35); display: grid; }
.nav__menu nav a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 10px; }
.nav__menu nav a:hover { background: #eceef2; }
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 479px) { .nav__cta { display: none; } .nav__menu { margin-left: auto; } }

/* hero */
.hero { padding-top: clamp(40px, 7vh, 72px); }
.hero__c { display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero__c .lead { max-width: 40rem; }
.pill { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; font-weight: 600; }
.pill .muted { font-weight: 400; }
.word { display: inline-grid; height: 1.04em; overflow: hidden; vertical-align: bottom; padding-bottom: .02em; text-align: left; }
.word__list { display: grid; }
.word__list > span { height: 1.04em; color: var(--accent); }
.hero__window { margin-top: clamp(32px, 6vh, 56px); border-radius: 28px 28px 0 0; padding: clamp(16px, 4vw, 48px) clamp(12px, 8vw, 120px) 0; overflow: hidden; }
.lit { background: radial-gradient(120% 80% at 50% 0%, var(--sand-2), var(--sand)); }

/* sections */
.section { padding-block: clamp(72px, 12vh, 128px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__h { max-width: 46rem; margin-bottom: clamp(32px, 5vh, 56px); }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 8%; align-items: end; margin-bottom: clamp(32px, 5vh, 56px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 8%; align-items: center; }
.split__text { display: grid; gap: 20px; align-content: start; }
.split__visual { border-radius: var(--r); min-height: 420px; display: grid; place-items: center; padding: clamp(20px, 4vw, 40px); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { padding: 14px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 899px) { .split, .split-head { grid-template-columns: minmax(0, 1fr); } .split__visual { min-height: 0; } }

/* A Tuesday: four steps, each with its phone */
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.day { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; }
.day h3 { font-size: 1.15rem; }
.day__t { display: block; font: 700 .9rem/1.4 var(--font-text); color: var(--accent); letter-spacing: .02em; }
.day p { color: var(--muted); font-size: 1rem; }
.day__v { margin: 8px 0 0; border-radius: var(--r); padding: 20px 16px; display: grid; place-items: center; }
@media (max-width: 1023px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }
@media (max-width: 599px) { .days { grid-template-columns: minmax(0, 1fr); } }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: 1rem; max-width: 34rem; }
.panel { margin-top: 10px; border-radius: var(--r); padding: 32px 24px; display: grid; place-items: center; min-height: 260px; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 .95rem/1 var(--font-text); }
.card:has(.step-num) { grid-template-rows: auto auto auto 1fr; }
@media (max-width: 899px) { .cards, .cards--3 { grid-template-columns: minmax(0, 1fr); } .panel { min-height: 0; padding: 24px 16px; } }

/* privacy statement */
.statement .wrap { display: grid; gap: 28px; justify-items: start; }
.statement__text { max-width: 980px; }
.statement__text { font: 700 clamp(1.6rem, 3.4vw, 2.6rem)/1.25 var(--font-display); letter-spacing: -.015em; }
.hl { background: linear-gradient(transparent 62%, #dcebf7 62%) no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* FAQ */
.faq { display: grid; }
.faq__item { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item p { color: var(--muted); }

/* footer and close */
.footer { background: var(--ink); color: #f7f8fa; padding-top: clamp(64px, 10vh, 112px); overflow: hidden; }
.footer h2 { color: #f7f8fa; }
.footer .lead { color: #c9ccd2; margin-top: 12px; }
.footer a { color: #f7f8fa; }
.close { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.footer .btn--primary { background: #f7f8fa; color: var(--ink); }
.footer .btn--primary:hover { background: #fff; }
.close__word { font: 900 clamp(5rem, 22vw, 18rem)/.8 var(--font-display); letter-spacing: -.05em; color: #23252a; margin: clamp(32px, 6vh, 64px) 0 0; text-align: center; user-select: none; }
.footer__base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 24px 0 32px; border-top: 1px solid #2c2f36; font-size: .95rem; color: #b3b7bf; }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.footer__base a, .footer__base button { color: #d6d9de; }

/* analytics consent notice (added by the build only when analytics is configured; same behaviour as site.css) */
[hidden] { display: none !important; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); padding: 1rem var(--gutter); }
.consent p { max-width: var(--max); margin: 0 auto .75rem; }
.consent .row { max-width: var(--max); margin: 0 auto; display: flex; gap: .75rem; flex-wrap: wrap; }
.consent button, button.linklike { font: inherit; cursor: pointer; }
.consent button { padding: .5rem 1rem; border-radius: .5rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; }
button.linklike { background: none; border: 0; padding: .25rem 0; color: inherit; text-decoration: underline; }

/* ---------- the app, drawn as live HTML (tokens from the shipped web app) ---------- */
.amity-ui { --a-bg: #f7f8fa; --a-surface: #fff; --a-high: #f1f3f6; --a-ink: #16181d; --a-muted: #5b616e; --a-line: #e2e4e9;
  --a-primary: #0a64a8; --a-primary-c: #dcebf7; --a-ok: #2f7350; --a-ok-c: #e2f1e8; --a-wait: #8f5a06; --a-wait-c: #fbefd9;
  --a-alex: #c9433a; --a-alex-fill: #ff6b5e; --a-alex-wash: #f8dfde; --a-blake: #0a64a8; --a-blake-fill: #2f8fd6; --a-blake-wash: #dcebf7;
  --a-ext: #2f7350; --a-ext-wash: #e2f1e8;
  font-family: var(--font-text); color: var(--a-ink); font-size: 13px; line-height: 1.35; text-align: left; }
.amity-ui b { font-weight: 600; }
.av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 600 11px/1 var(--font-text); color: #14161a; flex: none; }
.av--a { background: var(--a-alex-fill); } .av--b { background: var(--a-blake-fill); color: #fff; } .av--p { background: #ffd23f; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--a-wait-c); color: var(--a-wait); justify-self: start; }
.chip--ok { background: var(--a-ok-c); color: var(--a-ok); }
.chip--x { background: var(--a-ext-wash); color: var(--a-ext); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acts span { text-align: center; padding: 9px; border-radius: 99px; font-weight: 600; font-size: 13px; background: var(--a-primary); color: #fff; }
.acts span + span { background: transparent; color: var(--a-ink); box-shadow: inset 0 0 0 1px var(--a-line); }
.acts--stack { grid-template-columns: 1fr; gap: 6px; }
.acts--stack span { padding: 6px; font-size: 12px; }

/* hero: the web app's week */
.aw { display: grid; grid-template-columns: 148px 1fr; background: var(--a-surface); border: 1px solid var(--a-line); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(22,24,29,.35); }
.aw__side { border-right: 1px solid var(--a-line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.aw__brand { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font-display); padding: 0 6px 12px; }
.aw__nav { padding: 8px 10px; border-radius: 10px; color: var(--a-muted); }
.aw__nav.is-on { background: var(--a-primary-c); color: var(--a-primary); font-weight: 600; }
.aw__main { padding: 14px 16px 0; min-width: 0; }
.aw__top { display: flex; align-items: center; gap: 10px; }
.aw__title { font: 700 19px/1.1 var(--font-display); }
.aw__seg { margin-left: auto; display: flex; border: 1px solid var(--a-line); border-radius: 99px; overflow: hidden; }
.aw__seg span { padding: 5px 10px; font-size: 12px; color: var(--a-muted); }
.aw__seg span.is-on { background: var(--a-high); color: var(--a-ink); font-weight: 600; }
.aw__add { background: var(--a-primary); color: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.wk { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); margin-top: 12px; }
.wk__h { text-align: center; padding: 4px 0 6px; font-size: 11px; color: var(--a-muted); }
.wk__h b { display: block; font: 600 16px/1.3 var(--font-text); color: var(--a-ink); }
.wk__h.is-today b { display: grid; margin: 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--a-primary); color: #fff; }
.wk__h i { display: block; height: 4px; margin: 4px 6px 0; border-radius: 4px; background: var(--a-alex); }
.wk__h i.b { background: var(--a-blake); } .wk__h i.ab { background: linear-gradient(90deg, var(--a-alex) 50%, var(--a-blake) 50%); }
.wk__t { font-size: 10.5px; color: var(--a-muted); text-align: right; padding-right: 6px; height: 40px; transform: translateY(-6px); }
.wk__c { position: relative; height: 40px; border-left: 1px solid rgba(22,24,29,.06); border-top: 1px solid rgba(22,24,29,.06); background: var(--a-alex-wash); }
.wk__c.sw { background: repeating-linear-gradient(135deg, var(--a-blake-wash) 0 6px, #c8dbea 6px 8px); }
.wk__ev { position: absolute; left: 3px; right: 3px; top: 3px; z-index: 1; border-radius: 6px; padding: 3px 5px; font-size: 10.5px; line-height: 1.2; background: #fff; border-left: 3px solid var(--a-alex); box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow: hidden; }
.wk__ev.b { border-left-color: var(--a-blake); } .wk__ev.x { border-left-color: var(--a-ext); background: var(--a-ext-wash); }
.wk__ev small { display: block; color: var(--a-muted); font-size: 10px; }
.wk__mark { position: absolute; left: 3px; right: 3px; top: 50%; z-index: 1; border-top: 2px solid var(--a-blake); }
.wk__mark span { position: absolute; left: 0; top: -9px; background: #fff; border-radius: 99px; padding: 0 5px; font-size: 10px; font-weight: 600; color: var(--a-blake); border: 1px solid var(--a-line); }
@media (max-width: 1023px) { .aw { grid-template-columns: 1fr; } .aw__side { display: none; } }
@media (max-width: 639px) {
  .aw__seg, .aw__add { display: none; }
  .wk { grid-template-columns: 34px repeat(4, minmax(0, 1fr)); }
  .wk > :nth-child(8n+2), .wk > :nth-child(8n+3), .wk > :nth-child(8n+8) { display: none; }
  .wk__h { font-size: 10px; } .wk__h b { font-size: 13px; } .wk__h.is-today b { width: 22px; height: 22px; }
}

/* phones */
.ph { position: relative; width: 100%; max-width: 250px; aspect-ratio: 9 / 18.5; border-radius: 34px; background: #111317; padding: 8px; box-shadow: 0 30px 60px -30px rgba(22,24,29,.5); }
.ph__s { position: relative; height: 100%; border-radius: 27px; overflow: hidden; background: var(--a-bg); display: flex; flex-direction: column; }
.ph__s::before { content: ""; position: absolute; top: 8px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); border-radius: 99px; background: #111317; z-index: 2; }
.ph__bar { height: 30px; flex: none; }
.lock { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 18px 10px; gap: 2px; }
.lock--top { padding-top: 22px; gap: 8px; }
.lock__d { font-size: 12px; font-weight: 600; }
.lock__t { font: 300 54px/1 var(--font-display); letter-spacing: -.02em; margin-bottom: 14px; }
.wid { align-self: stretch; background: rgba(255,255,255,.94); border-radius: 18px; padding: 12px; display: grid; gap: 4px; }
.wid small { color: var(--a-muted); font-size: 11px; }
.wid b { font-size: 13.5px; line-height: 1.25; }
.wid .bar { height: 5px; border-radius: 4px; background: var(--a-alex); margin: 4px 0 2px; }
.notif { align-self: stretch; display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 8px; background: rgba(255,255,255,.85); border-radius: 18px; padding: 10px 12px; }
.notif img { width: 26px; height: 26px; grid-row: span 2; }
.notif time { color: var(--a-muted); font-size: 11px; }
.notif span { grid-column: 2 / 4; font-size: 12px; }
.sheet { margin-top: auto; align-self: stretch; background: #fff; border-radius: 18px; padding: 12px; display: grid; gap: 7px; box-shadow: 0 -8px 24px rgba(22,24,29,.08); }
.sheet__h { font: 700 14px/1.25 var(--font-display); }
.sheet__row { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--a-muted); border-top: 1px solid var(--a-line); padding-top: 7px; }
.sheet__row b { color: var(--a-ink); }
.mo { padding: 6px 10px 0; flex: 1; }
.mo__h { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 8px; }
.mo__h b { font: 700 19px/1 var(--font-display); }
.mo__g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; text-align: center; font-size: 11px; }
.mo__g .dw { color: var(--a-muted); font-size: 10px; }
.mo__g span { padding: 4px 0 7px; position: relative; }
.mo__g span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 4px; background: var(--a-alex); }
.mo__g span.b::after { background: var(--a-blake); }
.mo__g span.s::after { background: repeating-linear-gradient(135deg, var(--a-blake) 0 3px, transparent 3px 5px); height: 6px; bottom: 0; }
.mo__g span.dw::after, .mo__g span.o::after { content: none; }
.mo__g span.o { color: #8a8f99; }
.mo__g span.t { font-weight: 700; color: var(--a-primary); }
.mo__leg { display: flex; gap: 10px; padding: 8px 2px; font-size: 11px; color: var(--a-muted); }
.mo__leg i { display: inline-block; width: 12px; height: 4px; border-radius: 4px; background: var(--a-alex); margin-right: 4px; vertical-align: middle; }
.mo__leg i.b { background: var(--a-blake); } .mo__leg i.s { background: repeating-linear-gradient(135deg, var(--a-blake) 0 3px, transparent 3px 5px); height: 6px; }
.mo__ev { margin: 4px 0; background: #fff; border-radius: 12px; padding: 9px 10px; display: grid; gap: 3px; border-left: 3px solid var(--a-blake); }
.mo__ev small { color: var(--a-muted); }
.call { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 34px 16px 26px; gap: 6px; }
.call .av { width: 84px; height: 84px; font-size: 32px; margin-bottom: 8px; }
.call b { font: 600 22px/1.2 var(--font-display); }
.call small { color: #c4cedb; font-size: 12px; }
.call__ctl { margin-top: auto; display: flex; gap: 14px; }
.call__ctl i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.call__ctl i.end { background: #e5483a; }
.call__ctl svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* message and call cards */
.mini { width: 100%; max-width: 400px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(22,24,29,.35); }
.mini__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--a-line); font-weight: 600; font-size: 13px; }
.mini--night { background: #14284a; color: #eef3f9; border-color: #14284a; }
.mini--night .mini__bar { border-color: rgba(255,255,255,.12); }
.mini__call { display: grid; justify-items: center; gap: 6px; padding: 18px 12px; }
.mini__call .av { width: 56px; height: 56px; font-size: 22px; }
.mini__call small { color: #c4cedb; }
.mini__call--ask { justify-items: stretch; }
.rq { background: #fff; color: var(--a-ink); border-radius: 16px; padding: 12px; display: grid; gap: 8px; font-size: 12.5px; }
.th { display: grid; gap: 8px; padding: 12px; align-content: start; }
.th__day { justify-self: center; font-size: 11px; color: var(--a-muted); }
.bub { max-width: 82%; padding: 8px 11px; border-radius: 16px; background: var(--a-high); font-size: 12.5px; }
.bub--me { justify-self: end; background: #c5d5e0; color: #0f1720; }
.bub__meta { justify-self: end; font-size: 11px; color: var(--a-ok); font-weight: 600; }
.bub__meta--muted { color: var(--a-muted); }
.att { justify-self: end; width: 62%; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--a-line); border-radius: 12px; padding: 8px; font-size: 12px; }
.att i { width: 30px; height: 38px; border-radius: 4px; background: #fff; border: 1px solid #cfd3da; position: relative; }
.att i::before { content: ""; position: absolute; inset: 7px 5px auto; height: 14px; background: repeating-linear-gradient(#cfd3da 0 2px, transparent 2px 5px); }
.att small { display: block; color: var(--a-muted); }
.ask { justify-self: end; font-size: 11px; font-weight: 600; color: var(--a-wait); background: var(--a-wait-c); border-radius: 99px; padding: 3px 9px; }

/* calendar: two panes */
.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--r); box-shadow: 0 24px 60px -30px rgba(22,24,29,.35); overflow: hidden; }
.app__pane { min-width: 0; }
.app__pane + .app__pane { border-left: 1px solid var(--a-line); }
.ag { padding: 16px 0; }
.ag__h { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 10px; font: 700 16px/1.2 var(--font-display); }
.ag__day { padding: 10px 18px 4px; font-size: 11.5px; font-weight: 600; color: var(--a-muted); }
.ag__row { display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; align-items: center; padding: 8px 18px; font-size: 13px; }
.ag__row > i { align-self: stretch; border-radius: 4px; background: var(--a-alex); }
.ag__row > i.b { background: var(--a-blake); } .ag__row > i.x { background: var(--a-ext); }
.ag__row small { display: block; color: var(--a-muted); font-size: 11.5px; }
.ag__row time { color: var(--a-muted); font-size: 12px; }
.ag__row.is-on { background: var(--a-primary-c); }
.ag__who { padding: 6px 18px; font-size: 12px; color: var(--a-muted); display: flex; align-items: center; gap: 8px; }
.ag__who::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--a-alex); }
.ag__who.b::before { background: var(--a-blake); }
.ev { padding: 22px 28px; display: grid; gap: 14px; align-content: start; }
.ev__h { display: grid; gap: 6px; }
.ev__h b { font: 700 24px/1.15 var(--font-display); }
.ev__h small { color: var(--a-muted); font-size: 13.5px; }
.ev__card { border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; }
.ev__card > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.ev__card > div + div { border-top: 1px solid var(--a-line); }
.ev__card b { display: inline-flex; align-items: center; gap: 6px; }
.ev__card span:first-child { color: var(--a-muted); }
.ev__btn { justify-self: start; background: var(--a-primary); color: #fff; border-radius: 99px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; }
.ev__note { font-size: 12.5px; color: var(--a-muted); }
.seg2 { display: inline-flex; border: 1px solid var(--a-line); border-radius: 99px; overflow: hidden; }
.seg2 span { padding: 5px 12px; font-size: 12.5px; color: var(--a-muted); font-family: var(--font-text); font-weight: 400; }
.seg2 span.is-on { background: var(--a-primary-c); color: var(--a-primary); font-weight: 600; }
@media (max-width: 899px) { .app { grid-template-columns: minmax(0, 1fr); } .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--a-line); } }
@media (max-width: 599px) { .app__pane--list { display: none; } .app__pane + .app__pane { border-top: 0; } .ev { padding: 20px 16px; } }

/* record: the signed copy */
.file { width: 100%; max-width: 460px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 14px; font-size: 13px; box-shadow: 0 24px 50px -30px rgba(22,24,29,.4); }
.file__h { display: flex; align-items: center; gap: 12px; }
.file__h b { display: block; font: 500 14px/1.3 var(--font-mono); overflow-wrap: anywhere; }
.file__h small { color: var(--a-muted); }
.file__sig { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 12.5px; }
.file__sig dt { color: var(--a-muted); }
.file__sig dd { margin: 0; font-family: var(--font-mono); }
.zip { width: 34px; height: 42px; border-radius: 6px; background: var(--a-primary-c); border: 1px solid #b9d4ea; position: relative; flex: none; }
.zip::before { content: ""; position: absolute; left: 14px; top: 4px; width: 5px; height: 22px; background: repeating-linear-gradient(var(--a-primary) 0 3px, transparent 3px 6px); }

/* getting started */
.stp { width: 100%; max-width: 320px; display: grid; gap: 10px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; padding: 16px; box-shadow: 0 18px 40px -26px rgba(22,24,29,.35); }
.stp__h { font: 700 14px/1.2 var(--font-display); }
.stp__opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--a-line); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.stp__opt.is-on { border-color: var(--a-primary); background: var(--a-primary-c); color: var(--a-primary); font-weight: 600; }
.stp__people { display: flex; gap: 8px; flex-wrap: wrap; }
.stp__people > span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--a-line); border-radius: 99px; padding: 4px 10px 4px 4px; font-size: 12.5px; }

/* ---------- motion: CSS only; everything here stops under prefers-reduced-motion, except the headline word (below) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* hero entrance */
  .hero__c > *, .hero__window { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__c > :nth-child(2) { animation-delay: .06s; } .hero__c > :nth-child(3) { animation-delay: .12s; } .hero__c > :nth-child(4) { animation-delay: .18s; }
  .hero__window { animation-delay: .26s; }
  /* moment 1: each Tuesday step rises as it scrolls in; moment 2: the privacy statement inks as it is read (where scroll timelines exist) */
  @supports (animation-timeline: view()) {
    .day { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
    .hl { background-size: 0% 100%; animation: ink linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  }
}
/* the live word: calendar, messaging, calling, notes, back to calendar; about 2.5 s a word, loops forever (the last row repeats the first, so the jump back is invisible). The box is as wide as the widest word, so nothing in the headline moves. OWNER DECISION 2026-11-19: it runs regardless of prefers-reduced-motion (see docs/decisions). */
.word__list { animation: words 10s 1s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ink { to { background-size: 100% 100%; } }
@keyframes words {
  0%, 21% { transform: translateY(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  25%, 46% { transform: translateY(-20%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  50%, 71% { transform: translateY(-40%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  75%, 96% { transform: translateY(-60%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { transform: translateY(-80%); }
}
@media (max-width: 599px) { .day__v .ph { max-width: 200px; } .day__v { padding: 16px; } }

@media (max-width: 599px) { .br-wide { display: none; } }

/* Section "Made for today's phones, foldables and tablets" (#devices), design 2026-11-19.
   Replaces the old #devices section of the home page.
   Uses home.css tokens and its .amity-ui pieces (.ag__row, .ag__who, .ev__h, .ev__card, .av, .th, .bub, .ph, .lock, .lb-night).
   No scripts, no inline styles. Motion: one unfold, CSS scroll timeline, only under prefers-reduced-motion: no-preference. */

/* the stage: three devices standing on the lit ground, bottoms level */
.stage { border-radius: var(--r); padding: clamp(16px, 2vw, 28px) clamp(16px, 3vw, 40px); overflow: hidden; }
.stage__row { display: flex; align-items: flex-end; justify-content: center; gap: 3.5%; }

/* tablet, landscape: the agenda beside the item it opened */
.tab { width: 41%; flex: none; aspect-ratio: 4 / 3; border-radius: 26px; background: #111317; padding: 10px; box-shadow: 0 30px 60px -30px rgba(22,24,29,.5); }
.tab__s { height: 100%; border-radius: 17px; overflow: hidden; background: var(--a-bg); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.tab__list { padding: 14px 0; background: var(--a-surface); border-right: 1px solid var(--a-line); min-width: 0; }
.tab__top { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; font: 700 14px/1.2 var(--font-display); }
.tab__today { font: 600 11px/1 var(--font-text); padding: 5px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--a-line); }
.tab .ag__who { padding: 6px 12px; font-size: 11px; }
.tab .ag__row { padding: 7px 12px; font-size: 12px; gap: 8px; }
.tab .ag__row small { font-size: 10.5px; }
.tab .ag__row time { font-size: 11px; }
.tab__detail { padding: 18px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tab .ev__h b { font-size: 18px; }
.tab .ev__h small { font-size: 12px; }
.tab .ev__card > div { padding: 8px 10px; font-size: 12px; }

/* foldable, open: rail and list on the left half, the open conversation on the right half */
.fd { width: 28%; flex: none; aspect-ratio: 1.04; border-radius: 22px; background: #111317; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 30px 60px -30px rgba(22,24,29,.5); perspective: 1200px; }
.fd__l, .fd__r { min-width: 0; overflow: hidden; background: var(--a-bg); }
.fd__l { border-radius: 15px 0 0 15px; display: grid; grid-template-columns: 26px 1fr; }
.fd__r { border-radius: 0 15px 15px 0; background: var(--a-surface); box-shadow: inset 1px 0 0 rgba(22,24,29,.08); transform-origin: left center; }
.fd__rail { display: grid; align-content: start; gap: 12px; padding: 30px 0 0 7px; }
.fd__ri { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px #b9bec8; }
.fd__ri.is-on { background: var(--a-primary); box-shadow: 0 0 0 3px var(--a-primary-c); }
.fd__list { padding: 24px 6px 0 4px; display: grid; align-content: start; gap: 6px; }
.fd__h { font: 800 15px/1.1 var(--font-display); padding: 0 4px 4px; }
.fd__row { display: grid; grid-template-columns: 20px 1fr; gap: 6px; align-items: start; padding: 6px 4px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.fd__row.is-on { background: var(--a-primary-c); }
.fd__row small { display: block; font-weight: 400; color: var(--a-muted); font-size: 10px; line-height: 1.25; }
.fd .av { width: 20px; height: 20px; font-size: 10px; }
.fd__bar { display: flex; align-items: center; gap: 6px; padding: 24px 10px 8px; border-bottom: 1px solid var(--a-line); font-size: 11.5px; }
.fd__x { margin-left: auto; width: 14px; height: 14px; position: relative; }
.fd__x::before, .fd__x::after { content: ""; position: absolute; left: 1px; right: 1px; top: 6px; height: 2px; border-radius: 2px; background: var(--a-ink); transform: rotate(45deg); }
.fd__x::after { transform: rotate(-45deg); }
.fd .th { padding: 8px; gap: 6px; }
.fd .th__day { font-size: 10px; }
.fd .bub { font-size: 10.5px; padding: 6px 8px; max-width: 92%; }

/* iPhone lock screen at night: the lock screen widget and a notification with its button */
.stage .ph { width: 14.5%; max-width: 190px; flex: none; }
.stage .lock { padding: 14px 8px; }
.stage .lock__d { font-size: 10.5px; }
.stage .lock__t { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 8px; }
.lw { display: grid; gap: 1px; justify-items: center; text-align: center; font-size: 10px; line-height: 1.25; color: #eef3f9; margin-bottom: 10px; }
.lw b { font-size: 11px; }
.nt { align-self: stretch; margin-top: auto; background: rgba(255,255,255,.9); color: var(--a-ink); border-radius: 14px; padding: 8px; display: grid; gap: 6px; }
.nt__h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.nt__h img { width: 18px; height: 18px; border-radius: 5px; }
.nt__h time { margin-left: auto; color: var(--a-muted); font-size: 9.5px; }
.nt__t { font-size: 10px; line-height: 1.3; }
.nt__a { text-align: center; padding: 6px; border-radius: 10px; background: rgba(22,24,29,.07); font-weight: 600; font-size: 10.5px; }

/* the five facts: one ruled row, no cards */
.facts { list-style: none; margin: clamp(28px, 4.5vh, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.facts li { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.facts h3 { font-size: 1.1rem; }
.facts p { color: var(--muted); font-size: 1rem; }

/* under 1200: the tablet and the foldable; the lock screen needs the widest stage to stay readable */
@media (max-width: 1199px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .facts li:last-child { grid-column: 1 / -1; }
  .tab { width: 58%; }
  .fd { width: 38%; }
  .stage .ph { display: none; }
}
/* phones: the open foldable alone, as wide as the column; the tablet and the lock screen wait for a wider screen */
@media (max-width: 639px) {
  .stage { padding: 20px 12px; }
  .tab { display: none; }
  .fd { width: 100%; max-width: 380px; }
  .fd .bub { font-size: 11.5px; }
  .fd__row { font-size: 12px; } .fd__row small { font-size: 11px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts li:last-child { grid-column: auto; }
  .facts li { padding: 16px 0; }
  .facts li:last-child { border-bottom: 1px solid var(--line); }
}

/* motion: the foldable opens as the section comes into view. At rest (reduced motion, or a browser without
   scroll timelines) it is simply open. Nothing else in the section moves. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .fd__r { animation: unfold linear both; animation-timeline: view(); animation-range: entry 15% cover 40%; }
  }
}
@keyframes unfold { from { transform: rotateY(-115deg); opacity: .35; } to { transform: none; opacity: 1; } }

/* Living background behind the drawn app screens (owner 2026-11-19). The web app's recipe (coparent-web livingBackground.ts, palette.css), as a still picture: one
   sweep at 35 degrees plus three glows at the app's places, in the app's palette fill tones. The app's ceiling is 0.20; the app itself lowers a theme where its text would fall under AA (its per-theme alpha scales), and so does this: 10% by day, 6% in the evening, 14% at night. Four times of day: morning, afternoon, evening,
   night (night uses the app's dark tones on the dark screen). Still pictures, as the web app's is between minute ticks, so no reduced-motion case exists; gradients only. The text on top keeps AA (test/coming-soon.test.ts computes it over the strongest overlap). */
.lb-morning, .lb-afternoon, .lb-evening, .lb-night { --sa: 10%; --ga: 10%; --lb-base: linear-gradient(var(--a-bg), var(--a-bg));
  background: radial-gradient(ellipse 70% 70% at 5% 10%, color-mix(in srgb, var(--g1) var(--ga), transparent), transparent), radial-gradient(ellipse 65% 65% at 95% 45%, color-mix(in srgb, var(--g2) var(--ga), transparent), transparent), radial-gradient(ellipse 75% 75% at 30% 98%, color-mix(in srgb, var(--g3) var(--ga), transparent), transparent), linear-gradient(125deg, color-mix(in srgb, var(--s1) var(--sa), transparent), color-mix(in srgb, var(--s2) var(--sa), transparent), color-mix(in srgb, var(--s3) var(--sa), transparent)), var(--lb-base); }
.lb-morning { --s1: #FFD23F; --s2: #FFAA00; --s3: #FF4F9A; --g1: #FF7A1A; --g2: #FF6B5E; --g3: #17B5F0; }
.lb-afternoon { --s1: #17B5F0; --s2: #12B8A6; --s3: #A3D92B; --g1: #FF7A1A; --g2: #2DBE5C; --g3: #FFAA00; }
.lb-evening { --s1: #FF7A1A; --s2: #FF4F9A; --s3: #8B3DF5; --g1: #FF6B5E; --g2: #8B3DF5; --g3: #4F46E5; --sa: 6%; --ga: 6%; }
.lb-night { --s1: #8C86FF; --s2: #5B9BFF; --s3: #B27CFF; --g1: #5B9BFF; --g2: #2DD4BF; --g3: #8C86FF; --sa: 14%; --ga: 14%; --lb-base: linear-gradient(#0f1d33, #14284a); color: #eef3f9; }
/* the surfaces that sit on it stay solid cards; the foldable's two halves share one picture */
.ev__card { background: var(--a-surface); }
.tab__list { background: rgba(255, 255, 255, .72); }
.fd .lb-evening { background-size: 200% 100%; }
.fd__r.lb-evening { background-position: 100% 0; }
