/* Shared styles for the 2026-11 redesign: sprint page and homepage. Self-contained, separate from styles.css. */

:root {
  --paper: #f6ede1;
  --ink: #241a16;
  --muted: #5e5149;
  --rule: #e2d4c1;
  --wash: rgba(255, 250, 243, .62);
  --wash-edge: rgba(120, 90, 60, .10);
  --accent: #7a1730;
  --accent-dark: #5c0f23;
  --on-accent: #ffffff;
  --bar: rgba(246,237,225,.74);
  --edge: clamp(16px, 5vw, 64px);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111111; --ink: #f2efe9; --muted: #a8a29a; --rule: #2e2e2e; --wash: #1b1b1b; --wash-edge: transparent;
    --accent: #e0798d; --accent-dark: #ea8a9c; --bar: rgba(17,17,17,.72); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .btn { background: #9e2443; }
}
:root[data-theme="dark"] {
  --paper: #111111; --ink: #f2efe9; --muted: #a8a29a; --rule: #2e2e2e; --wash: #1b1b1b; --wash-edge: transparent;
  --accent: #e0798d; --accent-dark: #ea8a9c; --bar: rgba(17,17,17,.72); color-scheme: dark;
}
:root[data-theme="dark"] .btn { background: #9e2443; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--paper); }
body { margin: 0; background: transparent; color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Translucent bar, content scrolls under it */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--rule); }
.bar-in { max-width: 1080px; margin: 0 auto; padding: 10px var(--edge); display: flex; align-items: center; gap: 20px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .9375rem; }
.bar nav a { text-decoration: none; padding: 10px 0; }
.bar nav a[aria-current] { font-weight: 700; }
.bar .btn { padding: 8px 14px; font-size: .875rem; min-height: 36px; }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--paper); backdrop-filter: none; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--edge); }
section { padding: clamp(72px, 12vw, 136px) 0; }
section + section { border-top: 1px solid var(--rule); }

h1, h2 { font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.5vw, 5.25rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.lede { font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.45; color: var(--muted); max-width: 34ch; margin: 24px 0 0; }
.lede b { color: var(--ink); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; transition: transform 100ms ease-out, background 150ms; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.97); }

/* Hero */
.hero { text-align: center; padding-top: clamp(64px, 11vw, 128px); }
.hero h1 { max-width: 13ch; margin: 0 auto; }
.hero .lede { margin: 24px auto 0; }
.hero .act { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.facts b { color: var(--ink); font-weight: 700; }
.small { font-size: .875rem; color: var(--muted); margin: 0; }

/* Day 30 list */
.have { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; }
.have li { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.4; }
.have li:last-child { border-bottom: 1px solid var(--rule); }
.teach li { grid-template-columns: 1fr; }
.have span { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Weeks */
.weeks { margin: 48px 0 0; }
.weeks details { border-top: 1px solid var(--rule); }
.weeks details:last-child { border-bottom: 1px solid var(--rule); }
.weeks summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 7.5rem 1fr 1.5rem; gap: 16px; align-items: baseline; padding: 24px 0; min-height: 48px; }
.weeks summary::-webkit-details-marker { display: none; }
.weeks .when { color: var(--muted); font-size: .9375rem; font-weight: 600; }
.weeks .what { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.weeks .plus { justify-self: end; width: 14px; height: 14px; position: relative; }
.weeks .plus::before, .weeks .plus::after { content: ""; position: absolute; inset: 6px 0 auto 0; height: 2px; background: currentColor; transition: transform 200ms ease; }
.weeks .plus::after { transform: rotate(90deg); }
.weeks details[open] .plus::after { transform: rotate(0deg); }
.weeks .body { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 0 0 28px; }
.weeks .body > div { grid-column: 2; max-width: 52ch; }
.weeks .body p { margin: 0 0 12px; }
.weeks .leave { color: var(--muted); }
.weeks .leave b { color: var(--ink); }
@media (max-width: 640px) {
  .weeks summary { grid-template-columns: 1fr 1.5rem; }
  .weeks .when { grid-column: 1 / -1; }
  .weeks .body { grid-template-columns: 1fr; }
  .weeks .body > div { grid-column: 1; }
}

/* Tools */
.tools { margin: 48px 0 0; width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.tools th, .tools td { text-align: left; padding: 18px 16px 18px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.tools tr:last-child td { border-bottom: 1px solid var(--rule); }
.tools thead th { font-size: .875rem; color: var(--muted); font-weight: 600; border-top: 0; padding-bottom: 12px; }
.tools td:first-child { font-weight: 700; width: 30%; }
.tools td:nth-child(2) { width: 28%; }
@media (max-width: 640px) {
  .tools thead { position: absolute; left: -999px; }
  .tools tr { display: block; border-top: 1px solid var(--rule); padding: 16px 0; }
  .tools tr:last-child { border-bottom: 1px solid var(--rule); }
  .tools td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .tools td:nth-child(2) { color: var(--accent); font-weight: 600; }
}

/* Community */
.split { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--rule); }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points b { display: block; font-size: 1.1875rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.points span { color: var(--muted); }

/* Proof */
.proof { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof li { background: var(--wash); border-radius: 20px; padding: 28px; }
.proof .num { display: block; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.proof .who { display: block; font-weight: 700; margin: 16px 0 6px; }
.proof p { margin: 0; color: var(--muted); }

/* About */
.about { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 340px 1fr; gap: 64px; } }
.about img { width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; display: block; }
.about p { margin: 20px 0 0; max-width: 46ch; font-size: 1.125rem; }
.sig { font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-size: 1.75rem; margin-top: 20px; }

/* FAQ */
.faq { margin: 40px 0 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.125rem; min-height: 48px; }
.faq p { margin: 0 0 20px; max-width: 60ch; color: var(--muted); }

.final { text-align: center; }
.final h2 { margin: 0 auto; }
.final .act { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: .875rem; color: var(--muted); }


.vh { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.theme-toggle { display: none; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin-inline-start: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Offer cards (homepage). Cards are literal objects here: two things you can buy.
   Apple-style: the name is the headline, a one-line promise, then the price. 1:1 is the inverted card. */
.offers2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 48px 0 0; }
@media (min-width: 860px) { .offers2 { grid-template-columns: 1fr 1fr; } }
.offer { background: var(--wash); border-radius: 28px; padding: clamp(28px, 4.5vw, 52px); display: flex; flex-direction: column; }
.offer h3 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.offer .tagline { margin: 12px 0 0; font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.35; color: var(--muted); font-weight: 500; }
.offer .price { margin: 28px 0 28px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .9375rem; }
.offer .price span { color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.offer ul { list-style: none; margin: 0 0 36px; padding: 0; }
.offer li { padding: 12px 0; border-top: 1px solid var(--rule); }
.offer li:last-child { border-bottom: 1px solid var(--rule); }
.offer .act { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.offer-one { --ink: #f6ede1; --muted: #c9bcae; --rule: rgba(246,237,225,.16); background: #241a16; color: var(--ink); box-shadow: none; }
.offer-one .btn { background: #f6ede1; color: #241a16; }
.offer-one .btn:hover { background: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .offer-one { --ink: #241a16; --muted: #5e5149; --rule: #e2d4c1; background: #f6ede1; }
  :root:not([data-theme="light"]) .offer-one .btn { background: #7a1730; color: #fff; }
}
:root[data-theme="dark"] .offer-one { --ink: #241a16; --muted: #5e5149; --rule: #e2d4c1; background: #f6ede1; }
:root[data-theme="dark"] .offer-one .btn { background: #7a1730; color: #fff; }

/* Also from me */
.also { list-style: none; margin: 40px 0 0; padding: 0; max-width: 760px; }
.also li { padding: 22px 0; border-top: 1px solid var(--rule); }
.also li:last-child { border-bottom: 1px solid var(--rule); }
.also b { display: block; font-size: 1.1875rem; margin-bottom: 4px; }
.also p { margin: 0 0 8px; color: var(--muted); }
.also a { font-weight: 600; color: var(--accent); }

/* Credentials */
.stats { list-style: none; margin: clamp(48px, 8vw, 80px) 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stats li { background: var(--wash); border-radius: 24px; padding: clamp(24px, 4vw, 40px); color: var(--muted); font-size: 1.0625rem; min-width: 0; }
.stats .num { display: block; color: var(--ink); font-size: clamp(2.5rem, 6vw, 4.25rem); white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.stats a { color: inherit; }
.built-h { margin: clamp(48px, 8vw, 72px) 0 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; }
.built-h + .also { margin-top: 16px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--wash); color: var(--accent); font-size: .8125rem; font-weight: 700; }

/* Homepage hero stage: real product screens and a real photo, plus the one hand-drawn mark */
.inked { position: relative; display: inline-block; white-space: nowrap; }
.ink-line { position: absolute; left: 0; bottom: -0.2em; width: calc(100% - 0.3em); height: 0.2em; overflow: visible; }
.ink-line path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ink-line { clip-path: inset(-50% 100% -50% 0); animation: ink 900ms cubic-bezier(.3,.7,.2,1) 350ms forwards; }
@media (min-width: 700px) { .ink-line path { stroke-width: 5; } }
@keyframes ink { to { clip-path: inset(-50% -5% -50% 0); } }

.stage { margin: clamp(48px, 8vw, 88px) 0 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; text-align: left; }
.tile { margin: 0; background: var(--wash); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(24px); animation: rise 700ms cubic-bezier(.2,.8,.2,1) forwards; }
.tile figcaption { margin-top: 14px; font-size: .9375rem; font-weight: 600; }
.tile-web { grid-column: 1 / -1; animation-delay: 150ms; }
.tile-web figcaption { margin-top: auto; padding-top: 14px; }
.tile-phone { animation-delay: 300ms; align-items: center; }
.tile-me { animation-delay: 450ms; padding: 0; }
.tile-me img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: 50% 30%; display: block; aspect-ratio: 4 / 5; }
.tile-me figcaption { margin: 0; padding: 14px 20px 18px; }
@keyframes rise { to { opacity: 1; transform: none; } }

.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px -12px rgba(0,0,0,.25); }
.browser-bar { display: flex; justify-content: center; padding: 8px 12px; background: #f1f1f3; border-bottom: 1px solid #e3e3e6; }
.browser-bar span { font-size: .75rem; color: #555; background: #fff; border-radius: 6px; padding: 3px 14px; }
.browser img { display: block; width: 100%; height: auto; }

.phone { width: min(100%, 220px); aspect-ratio: 550 / 1170; border-radius: 28px; border: 6px solid #1d1d1f; overflow: hidden; background: #fff; box-shadow: 0 12px 32px -12px rgba(0,0,0,.35); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (min-width: 900px) {
  .stage { grid-template-columns: 7fr 2.6fr 3.4fr; align-items: stretch; }
  .tile-web { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; opacity: 1; transform: none; }
  .ink-line { animation: none; clip-path: none; }
}

/* The red-pen underline under the name, linking home */
.brand { position: relative; white-space: nowrap; padding-bottom: 4px; }
.brand-ink { position: absolute; left: -2px; right: -4px; bottom: -3px; width: calc(100% + 6px); height: 9px; overflow: visible; }
.brand-ink path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.brand-ink { clip-path: inset(-50% 100% -50% 0); animation: ink 800ms cubic-bezier(.3,.7,.2,1) 150ms forwards; }
.bar nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .bar-in { gap: 12px; }
  .bar nav { gap: 12px; font-size: .875rem; }
  .bar .theme-toggle { margin-inline-start: -10px; }
}
@media (prefers-reduced-motion: reduce) { .brand-ink { animation: none; clip-path: none; } }

/* Paper ground in light mode: cream with a warm light leak, an oat ombre and fine grain (after twombly.ink) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    radial-gradient(120% 85% at 18% 0%, rgba(231, 163, 62, .16), transparent 60%),
    radial-gradient(130% 100% at 100% 100%, rgba(217, 198, 174, .55), transparent 65%),
    linear-gradient(180deg, #f8f1e7 0%, #f6ede1 55%, #efe2d0 100%);
  background-size: 260px 260px, 900px 900px, auto, auto, auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { display: none; } }
:root[data-theme="dark"] body::before { display: none; }
.proof li, .stats li, .tile, .offer { box-shadow: inset 0 0 0 1px var(--wash-edge); }

/* Big numbers: tiles rise in a stagger and the figures count up once, as each group scrolls into view */
.js .countable li { opacity: 0; transform: translateY(28px); }
.js .countable.in li { animation: rise 800ms cubic-bezier(.2,.8,.2,1) forwards; }
.js .countable.in li:nth-child(2) { animation-delay: 90ms; }
.js .countable.in li:nth-child(3) { animation-delay: 180ms; }
.js .countable.in li:nth-child(4) { animation-delay: 270ms; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .js .countable li { opacity: 1; transform: none; animation: none !important; } }

/* Weekly email sign-up (homepage) */
.weekly h2 { max-width: 18ch; }
.wk-form { margin-top: 32px; max-width: 560px; }
.wk-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wk-row input { flex: 1 1 240px; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--muted); background: var(--paper); color: var(--ink); font: inherit; }
.wk-row input::placeholder { color: var(--muted); }
.wk-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.wk-row .btn { min-height: 52px; }
.wk-form .small { margin-top: 12px; }
.wk-form .small a { color: var(--ink); }

/* ---- 2026-11-04: Apple pass (kicker, icons, week tracker, buy bar, page transitions, espresso band) ---- */
.kicker { margin: 0 0 18px; font-size: clamp(1rem, 1.6vw, 1.1875rem); font-weight: 700; color: var(--accent); letter-spacing: -0.005em; }

/* Day 30 list: one thin line icon per outcome, in the brand colour */
.have .ico { display: inline-flex; align-items: flex-start; padding-top: 2px; }
.have .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Week tracker: pinned beside the weeks on wide screens */
.tracker { display: none; }
@media (min-width: 900px) {
  .journey { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 48px; align-items: start; }
  .journey .weeks { margin: 0; }
  .tracker { display: block; position: sticky; top: 120px; background: var(--wash); border-radius: 28px; padding: 40px; box-shadow: inset 0 0 0 1px var(--wash-edge); }
  .t-when { margin: 0; font-size: 1rem; font-weight: 700; color: var(--accent); }
  .t-what { margin: 8px 0 32px; font-size: clamp(2.5rem, 4.4vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
  .tracker.swap .t-when, .tracker.swap .t-what { animation: swapIn 420ms cubic-bezier(.2,.8,.2,1); }
  .t-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .t-rail li { height: 4px; border-radius: 2px; background: var(--rule); transition: background 300ms ease; }
  .t-rail li.on { background: var(--accent); }
  .journey .weeks summary { cursor: default; pointer-events: none; grid-template-columns: 7.5rem 1fr; }
  .journey .weeks .plus { display: none; }
  .journey .weeks .what { transition: color 300ms ease; }
  .journey .weeks details.active .what { color: var(--accent); }
  .journey .weeks .body { grid-template-columns: 7.5rem 1fr; }
}
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Buy bar: slim, translucent, one tap from joining. Top on wide screens, bottom (thumb reach) on phones. */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform 380ms cubic-bezier(.2,.8,.2,1); }
.buybar.show { transform: none; }
.buybar-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.buybar p { margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.buybar p span { color: var(--muted); font-size: .875rem; }
.buybar .btn { min-height: 44px; padding: 10px 20px; white-space: nowrap; flex: none; }
.buybar p { min-width: 0; }
@media (min-width: 900px) {
  .buybar { top: var(--bar-h, 65px); bottom: auto; padding: 8px var(--edge); border-top: 0; border-bottom: 1px solid var(--rule); transform: translateY(-120%); z-index: 4; }
  .buybar p { flex-direction: row; align-items: baseline; gap: 14px; }
}
@media (prefers-reduced-transparency: reduce) { .buybar { background: var(--paper); backdrop-filter: none; } }

/* Moving between pages: the bar stays put and the page cross-fades */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .bar { view-transition-name: topbar; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
}

/* Results on an espresso band: one dark beat in the cream rhythm */
.band-dark { --ink: #f6ede1; --muted: #c9bcae; --rule: rgba(246,237,225,.16); --wash: rgba(246,237,225,.06); --wash-edge: rgba(246,237,225,.08); background: #241a16; color: var(--ink); border-top: 0 !important; }
.band-dark + section { border-top: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-dark { --ink: #241a16; --muted: #5e5149; --rule: #e2d4c1; --wash: rgba(36,26,22,.05); --wash-edge: rgba(36,26,22,.10); background: #f6ede1; }
}
:root[data-theme="dark"] .band-dark { --ink: #241a16; --muted: #5e5149; --rule: #e2d4c1; --wash: rgba(36,26,22,.05); --wash-edge: rgba(36,26,22,.10); background: #f6ede1; }

@media (prefers-reduced-motion: reduce) {
  .buybar { transition: none; }
  .tracker.swap .t-when, .tracker.swap .t-what { animation: none; }
  .journey .weeks .what { transition: none; }
}
