/* Shared styles for Wordly's inner pages (privacy, terms, support, contact).
   Tokens mirror index.html, which mirror src/theme.ts in the app. */
:root {
  --bg: #f3f2f2; --surface: #eae9e9; --paper: #f8f4f4; --text: #201f1d;
  --muted: #605d5d; --faint: #9b9797; --line: rgba(32,31,29,0.14);
  --accent: #b68235; --accent-ink: #7d5411;
  --a100: #fff3e4; --a200: #ffe3bf; --a400: #e1ad66;
  --shadow: 45,43,43;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Lora", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1917; --surface: #23211f; --paper: #262422; --text: #ece8e2;
    --muted: #b1adaa; --faint: #75716e; --line: rgba(236,232,226,0.14);
    --accent: #c9974a; --accent-ink: #e1ad66;
    --a100: #3a2a14; --a200: #4a3518; --a400: #a07433; --shadow: 0,0,0;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1917; --surface: #23211f; --paper: #262422; --text: #ece8e2;
  --muted: #b1adaa; --faint: #75716e; --line: rgba(236,232,226,0.14);
  --accent: #c9974a; --accent-ink: #e1ad66;
  --a100: #3a2a14; --a200: #4a3518; --a400: #a07433; --shadow: 0,0,0;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
.eyebrow { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
em.soft { font-style: italic; color: var(--accent); }

/* Nav */
nav.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 28px; font-weight: 600; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
nav.top .links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
nav.top .links a { text-decoration: none; color: var(--muted); }
nav.top .links a:hover, nav.top .links a[aria-current] { color: var(--text); }
nav.top .links a.yt { display: inline-flex; align-items: center; gap: 6px; }
nav.top .links a.yt svg { color: #ff0033; flex: none; }
nav.top .links a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.nav-cta { font-family: var(--serif); font-size: 19px; font-weight: 600; text-decoration: none; color: var(--accent); border: 1.5px solid var(--accent); padding: 6px 18px; border-radius: 4px; transition: background .2s, color .2s; }
.nav-cta:hover { background: var(--accent); color: var(--bg); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--text); cursor: pointer; place-items: center; border-radius: 8px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s, background .25s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
nav.top.open .menu-btn span { background: transparent; }
nav.top.open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
nav.top.open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  nav.top .wrap { gap: 14px; }
  .menu-btn { margin-left: auto; }
  .menu-btn { display: grid; }
  nav.top .links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 6px 16px 14px; font-size: 17px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(var(--shadow), .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  nav.top.open .links { opacity: 1; visibility: visible; transform: none; }
  nav.top .links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  nav.top .links a:last-child { border-bottom: 0; }
  /* Floating rounded sheet, matching the home page */
  nav.top .links {
    left: 12px; right: 12px; top: calc(100% + 6px); padding: 6px; gap: 2px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 28px 50px -24px rgba(var(--shadow), .45);
  }
  nav.top .links a { padding: 12px 16px; border-bottom: 0; border-radius: 12px; transition: background .2s, color .2s; }
  nav.top .links a:hover, nav.top .links a:active, nav.top .links a[aria-current] { background: var(--a100); color: var(--accent-ink); text-decoration: none; }
  .nav-cta { border-radius: 999px; }
}
@media (max-width: 400px) {
  .brand { font-size: 24px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .nav-cta { font-size: 17px; padding: 5px 13px; }
}
@media (prefers-reduced-motion: reduce) { nav.top .links, .menu-btn span, .menu-btn span::before, .menu-btn span::after { transition: none; } }

/* Page head */
.page-head { padding: 72px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(46px, 7vw, 76px); margin: 14px 0 14px; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 32em; font-size: 18px; }
.page-head .note { font-style: italic; font-size: 15px; color: var(--faint); margin-top: 10px; }
.rule { width: 72px; height: 1.5px; background: var(--accent); margin: 28px auto 0; opacity: .8; }

/* Long-form document (privacy, terms) */
.doc { padding: 10px 0 90px; }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 40px; background: var(--paper); }
.toc b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.doc section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.doc h2 { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.doc p { margin: 0 0 12px; color: var(--muted); }
.doc ul { color: var(--muted); padding-left: 22px; margin: 0 0 12px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.card svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.card h3 { font-size: 26px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .val { font-family: var(--serif); font-size: 21px; color: var(--text); word-break: break-word; margin-top: 4px; }
.card .act { margin-top: auto; padding-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; color: var(--accent); border: 1.5px solid var(--accent); background: transparent; padding: 8px 22px; border-radius: 4px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.solid { background: var(--accent); color: var(--bg); }
.btn.solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 24px; color: var(--accent); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; color: var(--muted); }
.faq-group { margin-bottom: 50px; }
.faq-group > .eyebrow { display: block; margin-bottom: 8px; }

/* Form */
form.contact { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
form.contact label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; width: 100%;
}
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
form.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form.contact .row2 { grid-template-columns: 1fr; } form.contact { padding: 20px; } }
form.contact small { color: var(--faint); font-size: 13px; }

.callout { margin-top: 50px; text-align: center; padding: 44px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.callout h2 { font-size: 40px; margin-bottom: 10px; }
.callout p { color: var(--muted); margin: 0 0 22px; }
.callout .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer .brand { font-size: 22px; }
footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ================= About ================= */
/* One content width for every About section (nav/footer keep the site-wide .wrap). */
.about main .wrap, .about main .narrow { width: min(960px, 100% - 32px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head h2 { font-size: clamp(38px, 5vw, 58px); margin-top: 12px; }
.section-head p { color: var(--muted); font-style: italic; margin: 12px auto 0; }
.btn.pill { border-radius: 999px; padding: 10px 28px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Hero */
.ab-hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.ab-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 45% 60% at 76% 48%, var(--a100), transparent 70%); }
.ab-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.ab-hero h1 { font-size: clamp(48px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.015em; margin: 16px 0 24px; }
.ab-hero h1 em { display: block; }
.ab-hero .lede { color: var(--muted); font-size: 19px; max-width: 29em; margin: 0 0 34px; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.cross-card { position: relative; width: min(430px, 100%); margin-inline: auto; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 44px 80px -50px rgba(var(--shadow), .6); }
.cross { position: relative; width: 100%; aspect-ratio: 5 / 6; }
.cross .g { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); }
.cross .g i { margin: 3%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 4.4vw, 32px); color: var(--faint); opacity: .75; }
.cross .g i.on { color: var(--accent-ink); opacity: 1; }
.cross svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cross .g.letters { z-index: 2; }
.cross .g.letters i { background: none; border-color: transparent; }
.cross line { stroke-linecap: round; stroke-dasharray: 10; stroke-dashoffset: 10; animation: draw 1.1s .2s ease forwards; }
.cross line.v { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Crossword "clue" chips with the makers' faces */
.clue {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); white-space: nowrap;
  box-shadow: 0 20px 36px -20px rgba(var(--shadow), .55); animation: bob 7s ease-in-out infinite;
}
.clue i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fbf7f1 no-repeat 59% 24% / 360%; box-shadow: 0 0 0 1.5px var(--a400); }
.clue small { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); line-height: 1.3; }
.clue b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.05; }
.clue:hover { border-color: var(--a400); }
.clue.across { left: 28px; bottom: -26px; }
.clue.down { right: 28px; top: -26px; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Story */
.ab-story { padding: 40px 0 100px; scroll-margin-top: 68px; }
.pull { position: relative; margin: 44px 0 36px; padding: 34px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.22; color: var(--text); text-wrap: balance; }
.pull::before { content: "\201C"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 84px; line-height: 1; color: var(--accent); opacity: .7; }
.story-body p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.story-body a { color: var(--accent-ink); }
.sig { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 25px; color: var(--accent-ink); }
.avatars { display: flex; }
.avatars i { width: 46px; height: 46px; border-radius: 50%; background: #fbf7f1 no-repeat 59% 24% / 360%; border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--a400); }
.avatars i + i { margin-left: -12px; }

/* At a glance */
.ab-facts { padding: 0 0 100px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px -48px rgba(var(--shadow), .5); }
.facts li { padding: 30px 18px 28px; text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: 50px; font-weight: 500; line-height: 1; }
.facts b em { font-style: normal; color: var(--accent); }
.facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Makers */
.makers { padding: 0 0 110px; scroll-margin-top: 68px; }
.makers .section-head { margin-bottom: 52px; }
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo .amp {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 2; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; padding-bottom: 4px; background: var(--paper); border: 1px solid var(--a400); color: var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; box-shadow: 0 14px 30px -14px rgba(var(--shadow), .5);
}
.maker { scroll-margin-top: 84px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 12px; box-shadow: 0 34px 64px -46px rgba(var(--shadow), .6); transition: transform .35s ease, box-shadow .35s ease; }
.maker:hover { transform: translateY(-6px); box-shadow: 0 44px 74px -44px rgba(var(--shadow), .65); }
/* The illustrations are drawn on white, so the stage stays a light "print" in both themes
   and multiply melts the white into its warm tint. */
.stage { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 42%, #fff6e8 0%, #f6ecdf 62%, #efe2d0 100%); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(182,130,53,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(182,130,53,.13) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%); }
.stage img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: translateY(1%) scale(1.02); transition: transform .5s ease; }
.maker:hover .stage img { transform: translateY(-1%) scale(1.06); }
.maker .info { padding: 0 16px 20px; text-align: center; }
.name-tiles { position: relative; z-index: 1; display: flex; justify-content: center; gap: 5px; margin: -22px 0 14px; flex-wrap: wrap; }
.name-tiles span { width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--serif); font-size: 23px; font-weight: 600; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 8px 16px -10px rgba(var(--shadow), .5); transition: transform .25s; }
.name-tiles span.shared { background: var(--a200); border-color: var(--a400); color: var(--accent-ink); }
.maker:hover .name-tiles span.shared { transform: translateY(-3px); }
.maker .role { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.maker .bio { margin: 14px auto 0; max-width: 32ch; color: var(--muted); font-size: 15.5px; line-height: 1.65; text-wrap: pretty; }
.maker .bio em { font-family: var(--serif); font-size: 1.2em; color: var(--accent-ink); }

/* Values */
.ab-values { padding: 0 0 110px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.values > div { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px 32px; transition: border-color .3s, transform .3s; }
.values > div:hover { border-color: var(--a400); transform: translateY(-4px); }
.values .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--accent-ink); background: radial-gradient(circle at 30% 25%, var(--paper), var(--a100) 70%); border: 1px solid var(--a400); }
.values .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.values h3 { font-size: 27px; font-weight: 600; margin: 20px 0 8px; }
.values p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Closing card */
.ab-cta { padding: 0 0 110px; }
.cta-card { position: relative; overflow: hidden; padding: 60px 28px 52px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; }
.cta-card::before { content: ""; position: absolute; left: 50%; top: 0; width: 720px; height: 420px; transform: translate(-50%, -45%); border-radius: 50%; background: radial-gradient(closest-side, var(--a100), transparent); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card .icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 34px -18px rgba(var(--shadow), .45); }
.cta-card h2 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 12px; }
.cta-card p { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0 auto 30px; }
.cta-card .hello { margin-top: 24px; font-size: 19px; }

/* Store badges (same as the home page) */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 220px; height: 66px; padding: 0 24px 0 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 14px 26px -18px rgba(0,0,0,.7); transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgba(0,0,0,.75); }
.store:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* App Store not live yet: non-clickable badge with a "Coming soon" tag on its top edge */
.store.soon { position: relative; opacity: .9; cursor: default; }
.store.soon:hover { transform: none; box-shadow: 0 14px 26px -18px rgba(0,0,0,.7); }
.store.soon::after {
  content: "Coming soon"; position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--bg);
  font: 600 10.5px/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none;
}
.store svg { width: 34px; height: 34px; flex: none; }
.store.ios svg { fill: #fff; width: 32px; height: 32px; margin-top: -3px; }
.store small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; color: rgba(255,255,255,.9); white-space: nowrap; }
.store.ios small { font-size: 13px; letter-spacing: .01em; text-transform: none; }
.store b { display: block; font-size: 25px; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; color: #fff; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .cross line { animation: none; stroke-dashoffset: 0; }
  .clue { animation: none; }
  .maker, .stage img, .name-tiles span, .values > div, .store { transition: none; }
}

/* Tablet */
@media (max-width: 900px) {
  .ab-hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .ab-hero .lede { margin-inline: auto; }
  .ab-actions { justify-content: center; }
  .ab-hero::before { background: radial-gradient(ellipse 70% 40% at 50% 72%, var(--a100), transparent 70%); }
  .values { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 0; }
  .duo .amp { position: relative; left: auto; top: auto; transform: none; justify-self: center; margin: -18px 0; width: 56px; height: 56px; font-size: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Phones: tighter vertical rhythm */
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .page-head { padding: 48px 0 28px; }
  .page-head p { font-size: 17px; }
  .doc { padding-bottom: 64px; }
  .doc h2 { font-size: 27px; }
  .callout { padding: 34px 20px; margin-top: 36px; }
  .callout h2 { font-size: 34px; }

  /* About */
  .wrap, .narrow { width: min(1160px, 100% - 40px); }
  .narrow { width: min(760px, 100% - 40px); }
  .about main .wrap, .about main .narrow { width: min(960px, 100% - 40px); }
  .ab-hero { padding: 36px 0 64px; }
  .ab-hero-grid { gap: 48px; }
  .ab-hero h1 { font-size: clamp(40px, 11.4vw, 50px); margin: 14px 0 18px; }
  .ab-hero .lede { font-size: 16.5px; line-height: 1.6; margin-bottom: 28px; }
  .ab-actions { flex-direction: column; gap: 16px; }
  .ab-actions .btn { width: 100%; max-width: 320px; }
  .cross-card { padding: 14px; border-radius: 22px; width: min(340px, 100%); }
  .cross .g i { border-radius: 8px; }
  .clue { gap: 8px; padding: 5px 14px 5px 5px; }
  .clue i { width: 34px; height: 34px; }
  .clue small { font-size: 9.5px; }
  .clue b { font-size: 18px; }
  .clue.across { left: 14px; bottom: -22px; }
  .clue.down { right: 14px; top: -22px; }
  .ab-visual { padding-block: 10px; }
  .ab-story { padding: 20px 0 64px; }
  .section-head h2 { font-size: clamp(33px, 9.4vw, 40px); }
  .pull { margin: 32px 0 26px; font-size: 26px; }
  .story-body p { font-size: 16.5px; line-height: 1.7; }
  .sig { font-size: 21px; margin-top: 28px; padding-top: 22px; }
  .avatars i { width: 38px; height: 38px; }
  .ab-facts { padding-bottom: 64px; }
  .facts { border-radius: 20px; }
  .facts li { padding: 22px 12px 20px; }
  .facts b { font-size: 38px; }
  .facts span { font-size: 13px; }
  .makers { padding-bottom: 72px; }
  .makers .section-head { margin-bottom: 32px; }
  .maker { border-radius: 22px; }
  .name-tiles span { width: 36px; height: 36px; font-size: 21px; }
  .ab-values { padding-bottom: 72px; }
  .values { margin-top: 32px; gap: 12px; }
  .values > div { padding: 24px 22px 26px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .values .ic { width: 44px; height: 44px; grid-row: span 2; }
  .values .ic svg { width: 20px; height: 20px; }
  .values h3 { font-size: 23px; margin: 4px 0 6px; }
  .values p { font-size: 14.5px; }
  .ab-cta { padding-bottom: 64px; }
  .cta-card { padding: 44px 20px 40px; border-radius: 24px; }
  .cta-card .icon { width: 72px; height: 72px; border-radius: 18px; }
  .cta-card h2 { font-size: clamp(32px, 9vw, 40px); }
  .cta-card p { font-size: 16px; margin-bottom: 26px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin-inline: auto; }
  .store { min-width: 0; height: 60px; justify-content: center; gap: 8px; padding: 0 10px; border-radius: 11px; }
  .store svg { width: 28px; height: 28px; }
  .store.ios svg { width: 27px; height: 27px; }
  .store small { font-size: 9.5px; }
  .store.ios small { font-size: 10.5px; }
  .store b { font-size: 18px; }

  /* Footer: centred and quiet (all inner pages) */
  footer { padding: 32px 0 36px; font-size: 13px; }
  footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
  footer nav { justify-content: center; gap: 6px 18px; font-size: 13.5px; }
}
