/* Accent values mirror shared/palette.json and are checked by the tooling tests. */
:root {
  color-scheme: light dark;
  --bg: #fcf9f3;
  --phone-bezel: 5px;
  --screen-corner: .18;
  --surface: #ffffff;
  --text: #253c36;
  --muted: #53645d;
  --border: #d4dcd5;
  --accent: #0B7A70;
  --accent-label: #ffffff;
  --mint: #e6f0e7;
  --peach: #f7e5d5;
  --lilac: #eee8f3;
  --window: #F3CC5D;
  --lena: #053D93;
  --lena-label: #FFFFFF;
  --ben: #F77D27;
  --ben-label: #1C1C1E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17231f;
    --surface: #202f29;
    --text: #f5f2e9;
    --muted: #bfcbc1;
    --border: #46584d;
    --accent: #3CD6C2;
    --accent-label: #1c1c1e;
    --mint: #263e32;
    --peach: #453529;
    --lilac: #353042;
    --window: #EFC64A;
    --lena: #508DF1;
    --lena-label: #1C1C1E;
    --ben: #F3843D;
    --ben-label: #1C1C1E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 74rem; margin-inline: auto; padding-inline: 1.5rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 750; font-size: 1.6rem; letter-spacing: -0.06em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 24%; }
.nav, .lang, .footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav, .lang { font-size: 0.875rem; }
.nav a, .lang a, .lang button { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.nav a:hover, .lang a:hover, .lang button:hover { color: var(--text); text-decoration: underline; }
.lang { gap: 0.2rem 0.9rem; }
.lang a[aria-current], .lang button[aria-pressed="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 0.4em; font-weight: 650; }
.lang button { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
main { padding-block: 4rem 5rem; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1, h2 { letter-spacing: -0.045em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); margin: 3rem 0 1.25rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.025em; margin: 1.75rem 0 0.7rem; }
p { margin: 0 0 1.25rem; }
.prose { max-width: 49rem; }
.prose h2 { font-size: 1.65rem; margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose li { margin-bottom: 0.6rem; }
.meta { color: var(--muted); }
code { font-size: 0.9em; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.6; }
pre code { overflow-wrap: normal; }
address { font-style: normal; }
.home { padding-top: 0; padding-bottom: 0; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.075em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-block: 4rem; }
.hero h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); line-height: 1.06; margin-bottom: 1.75rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 32rem; font-size: 1.125rem; color: var(--muted); }
.store-badge { display: inline-block; padding: 0.8rem 1.1rem; border-radius: 0.85rem; background: var(--text); color: var(--bg); font-size: 0.875rem; font-weight: 650; margin-block: 0.4rem 1rem; }
.text-link { display: table; font-size: 0.9375rem; font-weight: 650; padding-block: 0.5rem; }
.text-link span { display: inline-block; margin-left: 0.5rem; }
.hero-visual { position: relative; display: grid; place-items: center; padding: 1.5rem 0; }
.app-shot { container-type: inline-size; position: relative; z-index: 1; margin: 0; width: min(100%, 17rem); text-align: center; }
.phone-frame { --screen-radius: calc((100cqw - 2 * var(--phone-bezel)) * var(--screen-corner)); padding: var(--phone-bezel); border-radius: calc(var(--screen-radius) + var(--phone-bezel)); background: var(--surface); box-shadow: 0 15px 35px color-mix(in srgb, var(--text) 10%, transparent); }
.app-shot picture { display: block; overflow: hidden; border-radius: var(--screen-radius); }
.app-shot img { display: block; width: 100%; height: auto; border-radius: inherit; }
.app-shot figcaption { font-size: 0.8125rem; font-weight: 550; line-height: 1.5; margin: 1rem -0.25rem 0; color: var(--muted); }
.hero-shot { width: min(100%, 17rem); }
.situations { padding-block: 3.5rem 4.5rem; border-top: 1px solid var(--border); }
.situations h2 { max-width: 39rem; margin-top: 0; }
.situation-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 0; margin: 2.5rem 0 0; }
.situation-list li { border-top: 3px solid var(--accent); padding-top: 1.25rem; }
.step { font-size: 0.8125rem; font-weight: 650; color: var(--accent); }
.situation-list h3 { margin-top: 0.75rem; font-size: 1.375rem; }
.situation-list p { margin: 0; color: var(--muted); }
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding: 3rem 4rem; border-radius: 2rem; margin-block: 1.5rem; }
.story-shift { background: var(--peach); }
.story-event { background: var(--lilac); }
.story-copy { max-width: 29rem; }
.story h2 { margin-top: 0; }
.story-copy p:last-child { margin-bottom: 0; }
.aside { color: var(--muted); }
.story-visual { display: grid; place-items: center; }
.story-event .story-copy { order: 2; }
.story-event .story-visual { order: 1; }
.story .app-shot { width: min(100%, 15rem); }
.screen-note { text-align: center; color: var(--muted); font-size: 0.8125rem; margin: 1.5rem 0 0; }
.extras { padding-block: 4rem; }
.extras h2 { margin-top: 0; }
.section-intro { color: var(--muted); max-width: 38rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem 2.5rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.features li { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.features h3 { margin-top: 0; }
.features p { color: var(--muted); font-size: 1rem; }
.faq { max-width: 49rem; margin: 0 auto; padding-block: 1rem 4rem; }
.faq h2 { margin-top: 0; margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--border); padding-block: 1rem; }
summary { cursor: pointer; font-weight: 650; padding-right: 0.5rem; }
summary::marker { color: var(--accent); }
details p { margin: 0.75rem 0 0; }
.closing { text-align: center; background: var(--mint); padding: 3.5rem 1.5rem; border-radius: 2rem; margin-block: 1rem 5rem; }
.closing h2 { margin-top: 1.25rem; }
.closing p { color: var(--muted); }
.closing .store-badge { color: var(--bg); }
.invite { text-align: center; max-width: 42rem; padding-block: 4rem; }
.invite h1 { font-size: clamp(2rem, 5vw, 3rem); }
.invite-code { font: 650 2.25rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; background: var(--mint); color: var(--text); border-radius: 1rem; padding: 1rem; margin: 0 auto 2rem; }
.invite-code:empty { display: none; }
.invite ol { text-align: left; max-width: 29rem; margin: 1.5rem auto; }
.invite li { margin-bottom: 0.6rem; }
.invite button { color: var(--accent-label); background: var(--accent); border: 0; border-radius: 0.75rem; padding: 0.75rem 1.25rem; cursor: pointer; }
.site-footer { border-top: 1px solid var(--border); padding-block: 2.75rem; color: var(--muted); font-size: 0.875rem; }
.footer-brand { font-size: 1.6rem; font-weight: 750; color: var(--text); letter-spacing: -0.06em; line-height: 1.3; margin-bottom: 1.5rem; }
.footer-brand span { display: block; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 0.5rem; }
.footer-links { gap: 0.4rem 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (min-width: 56rem) {
  .header-row nav:last-child { border-left: 1px solid var(--border); padding-left: 1.75rem; }
}
@media (max-width: 55.99rem) {
  .header-row { gap: 0.25rem 1.5rem; }
  .header-row nav:last-child { flex-basis: 100%; }
  .hero { gap: 2rem; }
  .hero h1 { font-size: 3.1rem; }
  .story { padding: 2.5rem 2rem; gap: 2rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 39.99rem) {
  .wrap { padding-inline: 1.25rem; }
  main { padding-block: 2.5rem 3.5rem; }
  .header-row { padding-block: 0.8rem 0.4rem; gap: 0.25rem 0.75rem; }
  .brand { font-size: 1.5rem; }
  .nav { gap: 0.75rem; font-size: 0.8125rem; }
  .lang { gap: 1.25rem; }
  .hero { grid-template-columns: 1fr; gap: 1rem; padding-block: 2.5rem 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.25rem); }
  .hero .eyebrow { margin-bottom: 1rem; }
  .lead { font-size: 1.0625rem; }
  .hero-visual { margin-inline: 1.25rem; padding-block: 1.75rem; }
  .hero-shot { width: 15rem; }
  .situations { padding-block: 2.5rem 3rem; }
  .situation-list { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2rem; }
  .situation-list li { border-top-width: 2px; }
  .situation-list h3 { margin-block: 0.5rem; }
  .story { grid-template-columns: 1fr; padding: 2rem 1.25rem; gap: 2rem; border-radius: 1.5rem; }
  .story h2 br { display: none; }
  .story .story-copy { order: 1; }
  .story .story-visual { order: 2; }
  .story .app-shot { width: 15rem; }
  .extras { padding-block: 3rem 2rem; }
  .features { grid-template-columns: 1fr; gap: 0.5rem; }
  .features li { padding-top: 1.25rem; }
  .faq { padding-bottom: 2.5rem; }
  .closing { margin-block: 1rem 3rem; padding-block: 2.5rem; border-radius: 1.5rem; }
  .closing h2 { font-size: 1.9rem; }
  .site-footer { padding-block: 2rem; }
  .footer-links { gap: 0.25rem 1.25rem; }
  .invite { padding-block: 2.5rem; }
}

/* Long localized headings must be allowed to shrink inside the two-column layouts. */
.hero > *, .story > * { min-width: 0; }

.use-cases { padding-block: 0.5rem 3rem; }
.use-cases h2 { margin-top: 0; }
.use-case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.use-case-list li { background: var(--mint); border-radius: 1.25rem; padding: 1.5rem; }
.use-case-list li:nth-child(2), .use-case-list li:nth-child(3) { background: var(--peach); }
.use-case-list h3 { margin: 0 0 0.75rem; }
.use-case-list p { color: var(--muted); margin: 0; }
@media (max-width: 39.99rem) {
  .use-cases { padding-bottom: 1.5rem; }
  .use-case-list { grid-template-columns: 1fr; }
}

/* Inline symbols share the same palette as the surrounding page. */
.illustration-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.illustration { display: block; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.illustration-defs path, .illustration-defs rect, .illustration-defs circle { vector-effect: non-scaling-stroke; }
.hero { column-gap: 2rem; }
.hero-visual { --phone-width: 14.5rem; padding: 1.5rem 0 0; }
.hero-shot { width: var(--phone-width); }
.hero-shot figcaption { margin: 6.5rem -3rem 0; }
.hero-scene { position: absolute; z-index: 2; width: 100%; height: auto; bottom: 2.25rem; pointer-events: none; }
.step-art { width: 9rem; height: 6.75rem; margin-bottom: 1rem; stroke-width: 2.3; }
.situation-list li { position: relative; border-top-width: 1px; border-top-color: var(--border); }
.situation-list .step { position: absolute; top: 1.5rem; right: 0; }
.situation-list h3 { margin-top: 0; }
.rotation-section { display: grid; grid-template-columns: .85fr 1.65fr; gap: 3rem; align-items: center; padding: 2rem 2.5rem; border: 1px solid var(--border); border-radius: 1.5rem; margin: 0 0 4.5rem; background: var(--surface); }
.rotation-copy .eyebrow { margin-bottom: .65rem; }
.rotation-copy h2 { margin: 0 0 1rem; font-size: 2rem; }
.rotation-copy p:last-child { color: var(--muted); font-size: .9375rem; margin: 0; }
.rotation-row h3 { margin: 0 0 .75rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.rotation-row.after { margin-top: 1.5rem; }
.rotation-row.after h3 { margin-bottom: 1.5rem; }
.turns { position: relative; --week-gap: .5rem; --swap-lift: 1.25rem; }
.turns ol { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--week-gap); padding: 0; margin: 0; }
.turn { min-width: 0; text-align: center; }
.turn-week { display: block; color: var(--muted); font-size: .6875rem; line-height: 1.3; margin-bottom: .45rem; }
.turn-card { background: var(--bg); border: 1px solid var(--border); border-radius: .75rem; padding: .75rem .25rem; }
.turn-person { --travel: calc(100% + var(--week-gap) + .5rem + 2px); display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; }
.turn-person strong { font-size: .875rem; font-weight: 650; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.8rem; height: 1.8rem; border-radius: 50%; font-size: .875rem; font-weight: 800; line-height: 1; }
.lena { background: var(--lena); color: var(--lena-label); }
.ben { background: var(--ben); color: var(--ben-label); }
.swapped .turn-card { border-style: dashed; border-color: var(--accent); }
/* Only the curves stretch. The outer SVG keeps arrowheads in CSS pixels. */
.swap-arrows { position: absolute; left: 0; top: -1.2rem; width: 100%; height: calc(100% + 2.4rem); overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.swap-arrows path { vector-effect: non-scaling-stroke; }
.rotation-note { color: var(--muted); font-size: .8125rem; margin: 2rem 0 0; }
.use-case-list li { display: grid; grid-template-columns: 10rem minmax(0,1fr); grid-template-areas: "art title" "art copy"; column-gap: 1.25rem; row-gap: .75rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); }
.use-case-list li:nth-child(2), .use-case-list li:nth-child(3) { background: var(--surface); }
.card-art { grid-area: art; width: 10rem; height: 7.5rem; align-self: center; stroke-width: 2; }
.use-case-list h3 { grid-area: title; align-self: end; margin: 0; hyphens: auto; }
.use-case-list p { grid-area: copy; }
.story-art { width: 14rem; height: 7rem; margin-top: 1.5rem; }
.story-event .story-art { width: 11rem; height: 8.25rem; }
.feature-art { width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; stroke-width: 2.1; }
.closing-scene { width: min(100%,28rem); height: auto; margin: 0 auto 1.5rem; }

@media (max-width: 63.99rem) {
  .rotation-section { grid-template-columns: 1fr; gap: 1.75rem; }
  .rotation-copy { max-width: 34rem; }
  .use-case-list li { grid-template-columns: 8rem minmax(0,1fr); grid-template-areas: "art title" "copy copy"; padding: 1.5rem; }
  .card-art { width: 8rem; height: 6rem; }
  .use-case-list h3 { align-self: center; }
}
@media (min-width: 40rem) and (max-width: 55.99rem) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .hero-visual { --phone-width: 12rem; }
  .hero-shot figcaption { margin-top: 5.5rem; margin-inline: 0; }
}
@media (max-width: 39.99rem) {
  .hero-visual { margin-inline: 0; padding-top: 1rem; }
  .hero-visual { --phone-width: 13rem; }
  .hero-shot figcaption { margin: 8rem 0 0; }
  .hero-scene { top: calc(1rem + (var(--phone-width) - 2 * var(--phone-bezel)) * 1434 / 660 + 2 * var(--phone-bezel) - 2.4rem); bottom: auto; }
  .step-art { width: 9rem; height: 6.75rem; margin-bottom: 1rem; }
  .situation-list .step { top: 1.5rem; }
  .rotation-section { margin-bottom: 3rem; padding: 1.5rem 1rem; gap: 1.5rem; border-radius: 1.25rem; }
  .rotation-copy h2 { font-size: 1.8rem; }
  .turn-person { flex-direction: column; gap: .4rem; }
  .turn-card { padding-block: .6rem; }
  .turn-person strong { font-size: .8125rem; }
  .turn-week { font-size: .625rem; }
  .turns { --week-gap: .4rem; --swap-lift: 1.9rem; }
  .use-case-list li { padding: 1.25rem; column-gap: 1rem; }
  .use-case-list h3 { font-size: 1.2rem; }
  .story-art { width: 12rem; height: 6rem; margin-top: 1.25rem; }
  .story-event .story-art { width: 9rem; height: 6.75rem; }
  .features li { position: relative; padding-left: 4rem; }
  .feature-art { position: absolute; left: 0; top: 1.25rem; }
  .closing-scene { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal { opacity: 0; transform: translateY(8px); transition: opacity .55s ease, transform .55s ease; }
  .motion-ready .reveal.is-visible, .motion-ready .reveal:focus-within { opacity: 1; transform: none; }
  .motion-ready .swap-example.is-visible .turn:nth-child(2) .turn-person { animation: turn-left 1.35s ease-in-out both; }
  .motion-ready .swap-example.is-visible .turn:nth-child(3) .turn-person { animation: turn-right 1.35s ease-in-out both; }
}
@keyframes turn-left {
  0%, 20% { transform: translateX(var(--travel)); }
  50% { transform: translate(calc(var(--travel) / 2), var(--swap-lift)); }
  85%, 100% { transform: none; }
}
@keyframes turn-right {
  0%, 20% { transform: translateX(calc(-1 * var(--travel))); }
  50% { transform: translate(calc(-1 * var(--travel) / 2), calc(-1 * var(--swap-lift))); }
  85%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home .reveal, .home .turn-person { opacity: 1; transform: none; transition: none; animation: none; }
}
