/* Shared additions for the multi-page site. Tokens come from styles.css. */
.nav { top: 0; background: rgba(252, 250, 248, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.links a[aria-current="page"] { opacity: 1; }
.links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--ember)); }
.hero { padding-top: 130px; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; margin-inline-start: auto; }
.muted { color: var(--muted); }
.textlink { text-decoration: underline; text-underline-offset: 3px; }
.more { margin-top: 24px; font-size: 17px; color: var(--muted); }
.note { padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); font-size: 17px; margin: 20px 0; }
.note[hidden] { display: none; }
code { font-size: 0.88em; background: var(--sand); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* Page hero + prose */
.page-hero { padding: 150px 0 30px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.05; margin: 12px 0 18px; max-width: 20ch; }
.page-hero .cta-row { margin-bottom: 0; }
.prose { width: min(var(--wrap), 100% - 48px); margin-inline: auto; padding: 10px 0 100px; }
.prose > * { max-width: 780px; }
.prose > * + * { margin-top: 16px; }
.prose > .info-grid, .prose > .cta-row { max-width: none; }
.prose h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 14px 0 22px; color: #3a3733; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); max-width: none; margin: 44px 0 10px; letter-spacing: -0.02em; }
.prose h3 { font-size: 22px; margin: 28px 0 6px; font-weight: 600; }
.prose p, .prose li { color: var(--ink); opacity: 0.9; }
.prose ul { list-style: disc; padding-inline-start: 24px; display: grid; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .pill { text-decoration: none; }
.crumbs { font-size: 15px; color: var(--muted); }
.logo-sample { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; width: 160px; height: 160px; }
.swatches { list-style: none !important; padding: 0 !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.swatches li { display: flex; align-items: center; gap: 12px; }
.swatches i { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--c); flex: none; }

/* Two-column home sections and callouts */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.callout { padding: 34px; border-radius: var(--radius); background: var(--charcoal); color: #fff; }
.callout b { display: block; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 10px; }
.callout p { color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.sec .more a, .sec .sub a { text-decoration: underline; text-underline-offset: 3px; }

/* Store badges: official artwork, unmodified, not links */
.store-badges { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 22px 0; }
.store-badges-light { justify-content: center; }
.store-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.store-item img { height: 54px; width: auto; }
.soon { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.store-badges-light .soon { color: rgba(255, 255, 255, 0.9); }

/* Help center */
.help { padding-bottom: 100px; }
.help-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.help-search input { width: 100%; max-width: 640px; min-height: 56px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; font-size: 18px; background: #fff; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.help-group { margin-top: 40px; }
.help-group h2 { font-size: 28px; max-width: none; margin: 0 0 10px; }
.help-group[hidden], .help-list li[hidden] { display: none; }
.help-list { list-style: none !important; padding: 0 !important; display: grid; gap: 0 !important; }
.help-list li { border-bottom: 1px solid var(--line); }
.help-list a { display: block; padding: 16px 0; font-size: 19px; text-decoration: none !important; }
.help-list a:hover { text-decoration: underline !important; }
.help-article h1 { max-width: none; }

/* Status */
.status-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.status-line { font-size: 24px; }
.status-ok { color: #1b6b45; }
.status-bad { color: #9a3412; }

/* Cards on dedicated pages */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.prose .info-card h2 { font-size: 24px; margin: 0; }
.info-card p { margin: 0; color: var(--muted); font-size: 17px; overflow-wrap: anywhere; }
.info-card .pill { margin-top: 6px; align-self: flex-start; max-width: 100%; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .links { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0; padding: 12px 24px 20px; background: var(--canvas); border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links a { padding: 14px 0; font-size: 19px; opacity: 1; }
  .links a[aria-current="page"]::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-in { gap: 12px; }
}
@media (max-width: 640px) {
  .nav .pill-sm { display: none; }
  .page-hero { padding-top: 110px; }
  .prose { width: min(var(--wrap), 100% - 36px); }
  .hero-copy h1, .hero h1 { overflow-wrap: anywhere; }
}
[dir="rtl"] .pill .arrow { transform: none; }
[dir="rtl"] .prose, [dir="rtl"] .wrap { text-align: start; }
[dir="rtl"] .store-item { align-items: flex-end; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .chip, .pill { transition: none; }
}
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 12px; left: auto; }

/* ===== Editorial components: Tala page, rows, FAQ, principles ===== */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 600; color: var(--muted); }
.mono.light, .kicker.mono.light { color: rgba(255, 255, 255, 0.62); }
.wrap.narrow { width: min(820px, 100% - 48px); }
.sub.light { color: rgba(255, 255, 255, 0.76); }
.dark-sec h2, .dark-sec h3 { color: #fff; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag-row li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; }

/* Tala hero */
.tala-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 150px 0 96px; }
.tala-copy h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; margin: 14px 0 20px; color: #3a3733; max-width: 17ch; }
.tala-copy .lead { font-size: 21px; color: var(--muted); max-width: 52ch; }
.tala-stage { position: relative; overflow: hidden; padding: 36px 28px 24px; border-radius: 36px; border: 1px solid var(--line); }
.tala-portrait { display: block; width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 24px 50px -18px rgba(25, 25, 25, 0.45); animation: bob 5s ease-in-out infinite; }
.tala-portrait.sm { width: 96px; height: 96px; margin: 0 0 14px; }
.chat { display: grid; gap: 10px; padding: 20px; border-radius: 26px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 30px 60px -30px rgba(25, 25, 25, 0.4); }
.chat-label { margin: 0 0 2px; }
.bubble { margin: 0; padding: 12px 16px; max-width: 90%; border-radius: 20px; font-size: 16px; line-height: 1.45; }
.bubble.me { justify-self: end; background: #191919; color: #fff; border-bottom-right-radius: 6px; }
.bubble.tala { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.tweak { display: grid; gap: 6px; padding: 14px 16px; border: 1.5px dashed #b8b4ae; border-radius: 18px; background: #fffaf5; font-size: 15px; }
.tweak b { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tweak-actions { display: flex; gap: 8px; margin-top: 4px; }
.tweak-actions i { font-style: normal; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: #191919; color: #fff; }
.tweak-actions i:last-child { background: transparent; color: #191919; border: 1.5px solid #191919; }
.stage-note { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }
.tala-stage.in .chat > * { animation: pop 0.6s var(--ease) both; }
.tala-stage.in .chat > :nth-child(2) { animation-delay: 0.35s; }
.tala-stage.in .chat > :nth-child(3) { animation-delay: 1s; }
.tala-stage.in .chat > :nth-child(4) { animation-delay: 1.7s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Home Tala card */
.tala-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.tala-card .bubble { margin-bottom: 16px; max-width: none; }
.tala-card .callout { padding: 22px; }

/* Three steps */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.trio li { padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.trio .big { display: block; font-size: 72px; line-height: 1; font-weight: 300; letter-spacing: -0.04em; color: #a3b8c8; }
.trio h3 { margin: 14px 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: #3a3733; }
.trio p { color: var(--muted); font-size: 17px; }

/* Editorial rows */
.rows { margin-top: 36px; }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row > img { width: 180px; height: 180px; justify-self: center; object-fit: contain; transition: transform 0.5s var(--ease); }
.row:hover > img { transform: rotate(-4deg) scale(1.05); }
.row-main h3 { margin: 10px 0 18px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; color: #3a3733; }
.row-main .mono { margin: 0; }
.row-text { max-width: 48ch; color: var(--muted); font-size: 19px; }

/* Transparency card */
.xfer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.xfer-col { padding: 28px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 26px; background: rgba(255, 255, 255, 0.05); }
.xfer-col h3 { margin-bottom: 14px; font-size: 24px; font-weight: 500; }
.xfer-col.never { border-color: rgba(255, 122, 61, 0.45); background: rgba(255, 122, 61, 0.1); }
.nos { display: grid; gap: 10px; }
.nos li { position: relative; padding-left: 32px; color: rgba(255, 255, 255, 0.84); font-size: 17px; }
.nos li::before, .nos li::after { content: ""; position: absolute; left: 3px; top: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--ember); transform: rotate(45deg); }
.nos li::after { transform: rotate(-45deg); }
.callout.alert { margin-top: 28px; border: 1px solid rgba(255, 122, 61, 0.5); background: rgba(255, 122, 61, 0.16); }
.callout.alert b { color: #fff; }

/* FAQ accordion */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 300; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { max-width: 62ch; margin: 0 0 14px; color: var(--muted); font-size: 18px; }
.faq details p:last-child { margin-bottom: 24px; }

/* Closing band */
.cta-band { background: var(--tile-dark, #1d1d1f); color: #fff; }
.cta-band h2 { margin-inline: auto; color: #fff; }
.cta-band .sub { margin-inline: auto; color: rgba(255, 255, 255, 0.76); }
.tala-mini { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; }

@media (max-width: 1080px) {
  .tala-hero { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; }
  .trio, .xfer { grid-template-columns: 1fr; }
  .row { grid-template-columns: 120px minmax(0, 1fr); gap: 20px 24px; }
  .row > img { width: 110px; height: 110px; }
  .row-text { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .tala-portrait { animation: none; }
  .tala-stage.in .chat > * { animation: none; }
  .row > img { transition: none; }
}

/* Principles (hand-drawn connector) */
.pr-grid { position: relative; display: grid; grid-template-columns: minmax(260px, 420px) minmax(120px, 300px) minmax(0, 1fr); align-items: start; margin-top: 44px; }
.pr-tabs { display: grid; gap: 2px; }
.pr-tabs button { appearance: none; border: 0; background: none; padding: 6px 0; text-align: left; font: inherit; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; color: #857e73; cursor: pointer; transition: color 0.25s; min-height: 44px; }
.pr-tabs button:hover, .pr-tabs button[aria-selected="true"] { color: #3a3733; }
.pr-loop { width: 100%; height: auto; margin-top: var(--y, 0px); transition: margin-top 0.5s var(--ease); overflow: visible; }
.pr-loop path { fill: none; stroke: #3a3733; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pr-grid.draw .pr-loop path { animation: draw 0.9s var(--ease) both; }
.pr-panels { padding-top: calc(var(--y, 0px) + 8px); transition: padding-top 0.5s var(--ease); }
.pr-panels [role="tabpanel"] p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.32; letter-spacing: -0.015em; color: #3a3733; max-width: 24ch; }
.pr-panels [role="tabpanel"][hidden] { display: none; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-loop { display: none; }
  .pr-panels { padding-top: 16px; }
  .pr-panels [role="tabpanel"] p { max-width: none; }
}

/* Pack stage */
.pack-stage { text-align: center; padding: 36px 28px; }
.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px auto 0; max-width: 420px; }
.seats li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); box-shadow: 0 18px 36px -22px rgba(25, 25, 25, 0.4); overflow: hidden; }
.seats li img { width: 82%; height: 82%; object-fit: contain; }
.seats li.empty { background: transparent; border: 2px dashed #b8b4ae; box-shadow: none; font-size: 40px; font-weight: 300; color: #b8b4ae; }
.seat-count { margin: 18px 0 0; font-size: 18px; }
.xfer.light-x .xfer-col { border-color: var(--line); background: #fff; }
.xfer.light-x .xfer-col.never { border-color: rgba(255, 122, 61, 0.5); background: #fff7f1; }
.xfer.light-x .xfer-col h3 { color: #3a3733; }
.xfer.light-x .nos li { color: var(--ink); }
.xfer.light-x .checks li { color: var(--ink); }

/* Help center: start-here cards */
.feat { margin: 8px 0 36px; }
.feat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.feat-head h2 { font-size: 28px; margin: 0; }
.arrows { display: flex; gap: 8px; }
.arrow-btn { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; }
.arrow-btn:hover { border-color: var(--ink); }
.feat-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.feat-row::-webkit-scrollbar { display: none; }
.feat-row li { flex: 0 0 min(400px, 82%); scroll-snap-align: start; }
.feat-card { display: flex; gap: 18px; align-items: stretch; height: 100%; padding: 16px; border-radius: 24px; background: var(--sand); text-decoration: none !important; transition: transform 0.3s var(--ease), background 0.3s; }
.feat-card:hover { transform: translateY(-3px); background: #efe9df; }
.feat-card img { flex: none; width: 110px; height: 110px; align-self: center; object-fit: contain; border-radius: 18px; background: #fff; }
.feat-body { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; }
.feat-body b { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) { .pr-loop, .pr-panels, .feat-card { transition: none; } .pr-grid.draw .pr-loop path { animation: none; } }

/* ===== Product design layer =====
   Apple-grade discipline in Lvl Up's own palette: one idea per screen, large tight headlines, rounded tiles on a warm
   neutral, solid pill buttons, sentence-case labels, calm motion. Loaded after styles.css, so it overrides it. */
:root { --ink: #1d1d1f; --link: #0066b8; --tile: #f5f2ee; --tile-dark: #1d1d1f; --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }
body { color: var(--ink); text-rendering: optimizeLegibility; }

/* Navigation: slim, translucent, quiet */
.nav { position: fixed; top: 0; inset-inline: 0; height: 52px; background: rgba(252, 250, 248, 0.72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: none; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled { top: 0; background: rgba(252, 250, 248, 0.88); border-bottom-color: rgba(29, 29, 31, 0.1); }
.nav-in { height: 52px; }
.nav .brand { font-size: 19px; }
.nav .brand img { width: 26px; height: 26px; }
.links { gap: 30px; margin-inline: auto; }
.links a { font-size: 14px; letter-spacing: -0.01em; opacity: 0.78; }
.links a[aria-current="page"] { opacity: 1; }
.nav .pill-sm { min-height: 34px; padding: 0 16px; font-size: 13px; }
.nav .pill .arrow { display: none; }
.menu-btn { min-height: 36px; padding: 0 16px; font-size: 14px; border-width: 1px; }

/* Buttons: solid ink pill, quiet secondary, blue text link */
.pill { min-height: 48px; padding: 0 26px; gap: 8px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: transform 0.35s var(--ease-out), background 0.25s, box-shadow 0.35s; }
.pill:hover { background: #000; color: #fff; transform: scale(1.03); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5); }
.pill .arrow { width: auto; height: auto; border: 0; font-size: inherit; }
.pill-sm { min-height: 40px; padding: 0 20px; font-size: 15px; }
.pill-ghost { padding: 0 26px; background: rgba(29, 29, 31, 0.07); color: var(--ink); }
.pill-ghost:hover { background: rgba(29, 29, 31, 0.13); color: var(--ink); box-shadow: none; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #fff; color: var(--ink); }
.pill-light.pill-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pill-light.pill-ghost:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.tlink { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.tlink span { transition: transform 0.3s var(--ease-out); }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.tlink:hover span { transform: translateX(3px); }
.promo { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: rgba(29, 29, 31, 0.06); color: var(--ink); font-size: 15px; transition: background 0.25s; }
.promo b { padding: 3px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.promo:hover { background: rgba(29, 29, 31, 0.1); }
.fine-print { margin-top: 22px; color: var(--muted); font-size: 14px; }

/* Type */
.kicker, .kicker.mono { font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.kicker.light, .kicker.mono.light, .mono.light { color: rgba(255, 255, 255, 0.7); }
.mono, .card .tag, .step .tag { font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-transform: none; color: var(--muted); }
.card .tag { opacity: 0.8; color: inherit; }
h1 { font-weight: 600; letter-spacing: -0.042em; color: var(--ink); }
h2 { font-size: clamp(38px, 6vw, 76px); font-weight: 600; letter-spacing: -0.038em; line-height: 1.04; color: var(--ink); }
.sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.012em; max-width: 44ch; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.reveal { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transform: translateY(32px); }
.reveal.in { transform: none; }

/* Hero: centred, one idea, phones rising out of a soft glow */
.hero { display: block; min-height: 0; padding: 116px 0 0; text-align: center; isolation: isolate; overflow-x: clip; }
.hero-copy { max-width: 1000px; margin-inline: auto; }
.hero h1 { max-width: 12ch; margin: 22px auto 22px; font-size: clamp(46px, 8.6vw, 116px); line-height: 1.02; }
.hero .lead { max-width: 36ch; margin-inline: auto; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.3; letter-spacing: -0.015em; }
.hero .cta-row { justify-content: center; align-items: center; gap: 14px 30px; margin: 34px 0 0; }
.hero-stage { position: relative; width: min(1180px, 100% - 32px); height: clamp(380px, 54vw, 700px); margin: 64px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent); }
.hero-stage .phone { width: 26%; }
.hero-stage .p-front { left: 34.5%; top: 2%; width: 31% !important; }
.hero-stage .p-back-l { left: 8%; top: 12%; transform: rotate(-5deg); }
.hero-stage .p-back-r { right: 8%; top: 12%; transform: rotate(5deg); }
.hero-text { padding-bottom: 40px; }

/* Statement: words light up as it scrolls through */
.statement { padding: clamp(96px, 15vw, 190px) 0; }
.statement-text { max-width: 17em; margin-inline: auto; font-size: clamp(30px, 5vw, 64px); font-weight: 600; letter-spacing: -0.036em; line-height: 1.12; text-wrap: balance; }
.statement-text.rw-ready span { color: #cdc8c0; transition: color 0.4s; }
.statement-text.rw-ready span.on { color: var(--ink); }

/* How it works, steps */
.step .num { font-weight: 600; letter-spacing: -0.05em; background: linear-gradient(100deg, #6e9fc2, #c78f6a 70%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.step > p:not(.num):not(.tag) { font-size: 21px; line-height: 1.4; }

/* Tiles */
.bento { gap: 20px; margin-top: 64px; }
.card { min-height: 600px; padding: clamp(32px, 4vw, 56px); border: 0; border-radius: 32px; background: var(--tile); text-align: left; }
.card.plain { background: var(--tile); border: 0; }
.card.dark { background: var(--tile-dark); }
.card h3 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.card p { max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; }
.mini-card { padding: 36px; border: 0; border-radius: 28px; background: var(--tile); text-align: left; }
.mini-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.sand .mini-card { background: #fff; }
.trio h3, .row-main h3 { font-weight: 600; }

/* Numbers */
.nums { padding: clamp(72px, 10vw, 140px) 0; }
.nums-in { gap: 40px 20px; }
.num-card { text-align: center; }
.num-card b { font-weight: 600; letter-spacing: -0.05em; background: linear-gradient(100deg, #6e9fc2 0%, #c78f6a 60%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-card span { max-width: 22ch; margin-inline: auto; font-size: 18px; }

/* Tala spotlight */
#tala { padding: clamp(24px, 4vw, 56px) 0; }
#tala .split { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 88px); border-radius: 40px; background: var(--tile-dark); color: #fff; }
#tala .split > * { position: relative; }
#tala h2, #tala .kicker { color: #fff; }
#tala .kicker { color: rgba(255, 255, 255, 0.7); }
#tala .sub, #tala .checks li, #tala .more, #tala .more a { color: rgba(255, 255, 255, 0.78); }
#tala .checks li::before { border-color: rgba(255, 255, 255, 0.4); }

/* Closing band */
.final { padding: clamp(96px, 14vw, 180px) 0; }
.final h2 { max-width: 14ch; font-size: clamp(40px, 7vw, 92px); color: #fff; }

/* Inner pages: centred hero, centred reading column */
.page-hero { padding: 128px 0 36px; text-align: center; }
.page-hero h1 { max-width: 16ch; margin: 12px auto 18px; font-size: clamp(42px, 7vw, 88px); line-height: 1.04; letter-spacing: -0.042em; color: var(--ink); }
.page-hero .lead { max-width: 40ch; margin-inline: auto; font-size: clamp(19px, 2.2vw, 26px); }
.page-hero .cta-row { justify-content: center; }
.prose > * { margin-inline: auto; }
.prose h1 { color: var(--ink); }
.tala-copy h1 { font-weight: 600; letter-spacing: -0.042em; color: var(--ink); }

@media (max-width: 1080px) {
  .hero { padding-top: 96px; }
  .page-hero { padding-top: 104px; }
}
@media (max-width: 700px) {
  .hero-stage { height: 118vw; margin-top: 40px; }
  .hero-stage .p-front { left: 22%; width: 56% !important; }
  .hero-stage .p-back-l { left: -10%; top: 10%; width: 44%; }
  .hero-stage .p-back-r { right: -10%; top: 10%; width: 44%; }
  .hero .cta-row { flex-direction: column; }
  #tala .split { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill:hover, .tlink:hover span { transform: none; }
  .statement-text.rw-ready span { transition: none; }
}

/* Device frames: the app screenshots start at the very top, so no notch is drawn over them */
.phone::before { display: none; }
#tala .tala-card { color: var(--ink); }

/* Section panels: every coloured band is an inset, softly rounded panel, never a sharp edge-to-edge strip.
   Radii step down with nesting: panel 44, tile 32, card 28. */
.sand, .dark-sec, .final, .cta-band, .ill-sec { margin: 8px 16px; border-radius: 44px; overflow: hidden; }
.foot { margin-top: 8px; }
@media (max-width: 700px) {
  .sand, .dark-sec, .final, .cta-band, .ill-sec { margin-inline: 8px; border-radius: 28px; }
}

/* Keep headings inside the centred reading column (an earlier rule let them run full width) */
.prose > h1, .prose > h2, .prose > h3 { max-width: 780px; margin-inline: auto; }

/* ===== Gradient systems =====
   The same systems as the app (docs/handbook/15-gradients-and-native-parity.md). The mesh palettes in mesh.css and the
   brand bands (--band-*) are generated from src/theme/tokens.ts. Rules: one palette per meaning (launch for the opening and
   closing, ember default, dusk for Packs); headlines in the light top two thirds; small text on a white pill or card, never
   directly on a saturated blob; every blob fades to transparent, so there is no hard edge. */

/* Hero: an inset rounded panel on the launch mesh, phones rising out of its strongest corners */
.hero { margin: 60px 16px 0; padding: 72px 0 0; border-radius: 44px; overflow: hidden; color: var(--mesh-text); }
.hero h1, .hero .lead, .hero .fine-print, .hero .tlink { color: var(--mesh-text); }
.hero .lead, .hero .fine-print { color: rgba(43, 36, 32, 0.86); }
.hero .grad { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.hero .promo { background: rgba(255, 255, 255, 0.72); }
.hero .promo:hover { background: rgba(255, 255, 255, 0.92); }
.hero-stage { -webkit-mask-image: none; mask-image: none; margin-top: 52px; }

/* Closing band: the launch mesh again, so the page ends where it began. Headline in the light top, small print on white. */
.final { margin-top: 8px; padding-bottom: clamp(150px, 22vw, 300px); }
.final h2, .final p { color: var(--mesh-text); }
.final p { opacity: 0.86; }
.final .pill-light { background: var(--ink); color: #fff; }
.final .pill-light:hover { background: #000; color: #fff; }
.final .store-badges-light { display: flex; width: fit-content; margin: 26px auto 0; padding: 14px 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.92); }
.final .store-badges-light .soon { color: var(--muted); }

/* Surfaces on a mesh: text uses the mesh's own colour; small captions get a white pill */
.mesh-ember, .mesh-dusk, .mesh-launch { color: var(--mesh-text); }
.card.mesh-ember p, .card.mesh-ember .tag { color: var(--mesh-text); }
.card.mesh-ember p { opacity: 0.88; }
.stage-note, .seat-count { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--muted); }
.seat-count { color: var(--mesh-text); font-size: 17px; }

/* Dark panels: the dark brand band glows along the bottom edge */
#tala .split::before, .cta-band::before, .dark-sec::before { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: var(--band-dark); filter: blur(46px); pointer-events: none; }
.cta-band > .wrap, .dark-sec > .wrap { position: relative; }

/* Inner page headers: a soft light brand band behind the title */
.page-hero { position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 84px; width: min(1000px, 92%); height: 200px; translate: -50% 0; background: var(--band-light); filter: blur(36px); opacity: 0.6; pointer-events: none; }

/* Gradient text on paper: brand blue to deep ember, interpolated through pink so it never goes grey */
.step .num, .num-card b { background-image: linear-gradient(100deg, #0077c8, #c2410c); }
@supports (background-image: linear-gradient(in oklch, red, blue)) {
  .step .num, .num-card b { background-image: linear-gradient(100deg in oklch, #0077c8, #c2410c); }
}
@media (max-width: 1080px) { .hero { padding-top: 56px; } }
@media (max-width: 700px) {
  .hero { margin-inline: 8px; }
  .final { padding-bottom: 130px; }
}

/* ===== Apple standard =====
   Numbers measured on apple.com product pages: a 44px global nav and a 52px sticky local nav, a content column of about
   1100px with tiles 1100px wide at a 28px radius, headlines of 56 to 64px at line-height 1 with almost no tracking, and
   17px/600 pills at full radius. The global nav scrolls away on pages with a local nav, which then sticks to the top. */
:root { --wrap: 1100px; }
html { scroll-padding-top: 76px; }

/* Type scale */
h1 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.07; }
.hero h1 { max-width: 17ch; font-size: clamp(40px, 6vw, 80px); line-height: 1.03; }
.page-hero h1 { max-width: 17ch; font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.025em; }
.tala-copy h1 { max-width: 16ch; font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.025em; }
.card h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.step h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.statement-text { font-size: clamp(28px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.final h2 { max-width: 16ch; font-size: clamp(36px, 5.6vw, 72px); }
.hero .lead { font-size: clamp(19px, 2.1vw, 28px); }
.sub { font-size: clamp(18px, 1.8vw, 24px); }
.pill { font-weight: 600; }
.hero .pill { min-height: 56px; padding: 0 30px; }

/* Global nav: the blur lives on a pseudo-element so the full-screen mobile menu is not trapped inside the bar */
.nav { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(252, 250, 248, 0.72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled::before { background: rgba(252, 250, 248, 0.88); border-bottom-color: rgba(29, 29, 31, 0.1); }
.menu-cta { display: none; }

/* Local nav: sticky title bar with section links and one pill */
.has-localnav .nav { position: absolute; }
.has-localnav main { padding-top: 52px; }
.has-localnav .hero { margin-top: 8px; }
.has-localnav .tala-hero { padding-top: 64px; }
.localnav { position: sticky; top: 0; z-index: 49; height: 52px; background: rgba(252, 250, 248, 0.72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.localnav.stuck { background: rgba(252, 250, 248, 0.88); border-bottom-color: rgba(29, 29, 31, 0.1); }
.localnav-in { display: flex; align-items: center; gap: 24px; width: min(var(--wrap), 100% - 48px); height: 52px; margin-inline: auto; }
.ln-title { margin-inline-end: auto; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.ln-links { display: flex; gap: 26px; margin-inline-end: 8px; }
.ln-links a { color: var(--ink); font-size: 13px; opacity: 0.72; transition: opacity 0.2s; }
.ln-links a:hover, .ln-links a.active { opacity: 1; }
.localnav .pill-sm { min-height: 30px; padding: 0 14px; font-size: 12px; }

/* Hero: scroll-linked. --hp runs 0 to 1 as the hero scrolls out; the headline eases away, the phones rise and grow a little */
.hero-copy { opacity: calc(1 - var(--hp, 0) * 0.9); transform: translateY(calc(var(--hp, 0) * -36px)); }
.hero-stage { transform: translateY(calc(var(--hp, 0) * -48px)) scale(calc(1 + var(--hp, 0) * 0.05)); transform-origin: 50% 0; }

/* Breadcrumb above the footer */
.crumbbar { width: min(var(--wrap), 100% - 48px); margin: 56px auto 0; border-top: 1px solid var(--line); }
.crumbbar ol { display: flex; align-items: center; gap: 8px; padding: 16px 0 22px; color: var(--muted); font-size: 13px; }
.crumbbar li + li::before { content: "\203A"; margin-right: 8px; }
.crumbbar a { color: var(--ink); }
.crumbbar a:hover { text-decoration: underline; }

/* Site map */
.sitemap { padding: 10px 0 40px; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 32px; margin-top: 8px; }
.sitemap h2 { max-width: none; margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.sitemap ul { display: grid; gap: 8px; }
.sitemap a { font-size: 17px; }
.sitemap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sitemap .sm-title { margin: 64px 0 24px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; }
.sm-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.sm-help h3 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.sm-help a { color: var(--muted); font-size: 16px; }

/* Learn more links on tiles */
.card-link { margin-top: 18px; }
.card .tlink { color: inherit; font-size: 19px; opacity: 0.92; }
.card .tlink:hover { opacity: 1; }

@media (max-width: 1080px) {
  /* Full-screen menu */
  html.menu-open { overflow: hidden; }
  .links { position: fixed; inset: 52px 0 0 0; z-index: 48; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; margin: 0; padding: 20px 24px 40px; overflow-y: auto; background: rgba(252, 250, 248, 0.98); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; opacity: 1; }
  .links a[aria-current="page"]::after { display: none; }
  .links.open a { animation: menu-in 0.5s var(--ease-out) both; }
  .links.open a:nth-child(2) { animation-delay: 0.04s; } .links.open a:nth-child(3) { animation-delay: 0.08s; } .links.open a:nth-child(4) { animation-delay: 0.12s; } .links.open a:nth-child(5) { animation-delay: 0.16s; } .links.open a:nth-child(6) { animation-delay: 0.2s; }
  .links .menu-cta { display: inline-flex; align-self: flex-start; margin-top: 28px; padding: 0 26px; border-bottom: 0; font-size: 17px; color: #fff; }
  .nav .pill-sm { display: none; }
  .has-localnav .nav { position: absolute; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .ln-links { display: none; } .ln-title { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-stage { transform: none; opacity: 1; }
  .links, .links.open a { transition: none; animation: none; }
}

/* Print: drop navigation chrome and animation, keep the content */
@media print {
  .nav, .localnav, .skip, .menu-btn { display: none !important; }
  html, body { background: #fff !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]:not(.brand):not(.pill)::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  h1, h2, h3, img { break-after: avoid; break-inside: avoid; }
}
