/* jaksa.run's front page and its download page, jaksa.run/app (#1791), from the
   approved mock (docs/design/2026-11-08-front-page/index.html, Emil 8 Nov: «ok love it»).
   Light and dark: <html data-theme> is set before the page is drawn, from the
   visitor's own choice (the bar's switch) or else the computer's setting. Dark is
   the site's own palette (style.css); light takes its ground, ink and green from
   the brand file (app/brand/logo.js COLORS.light), as logo-light.svg does.
   Neither page links style.css: its .hero, h1 and footer rules would collide, and
   its color-scheme is dark for the 34 signed-in pages. */

:root {
  --bg: #101215; --panel: #1b1d21; --line: #33363b; --ink: #f4f5f7; --mute: #a5a9b0; --soft: #d6d8dc;
  --accent: #c8ef4c; --accent-ink: #c8ef4c; --on-accent: #14140c; --dot-glow: rgba(200, 239, 76, .2);
  --bar: rgba(16, 18, 21, .86); --shadow: rgba(0, 0, 0, .5);
  --coach-bg: #23261d; --coach-line: #3c4426; --you-bg: #22252a;
  --ghost-bg: transparent; --ghost-line: #3a3d42;
  --m-distance: #4f9dff; --m-pace: #33d1c6; --m-heart: #ff6a33; --m-time: #ffd84a;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* The phone pictures are tokens like every colour, so the theme on <html> picks them too: nothing flashes, nothing loads twice. */
  --shot-01: url(/img/front/dark/01.webp); --shot-02: url(/img/front/dark/02.webp); --shot-04: url(/img/front/dark/04.webp);
  --shot-05: url(/img/front/dark/05.webp); --shot-06: url(/img/front/dark/06.webp); --shot-07: url(/img/front/dark/07.webp);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f5f0; --panel: #ffffff; --line: #dcdfd5; --ink: #15170f; --mute: #575c56; --soft: #2e322b;
  --accent-ink: #3f7a12; --dot-glow: rgba(63, 122, 18, .16);
  --bar: rgba(244, 245, 240, .88); --shadow: rgba(21, 23, 15, .16);
  --coach-bg: #f0f7dc; --coach-line: #cfe3a0; --you-bg: #eaece5;
  --ghost-bg: #ffffff; --ghost-line: #c9cec0;
  --m-distance: #1f6fe0; --m-pace: #0b8a81; --m-heart: #d4470f; --m-time: #946f00;
  --shot-01: url(/img/front/light/01.webp); --shot-02: url(/img/front/light/02.webp); --shot-04: url(/img/front/light/04.webp);
  --shot-05: url(/img/front/light/05.webp); --shot-06: url(/img/front/light/06.webp); --shot-07: url(/img/front/light/07.webp);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 68px); }
h3 { font-size: 30px; }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 16px; }

/* Signed in or not (the server marks <html data-signed-in>, web/src/worker.ts page()). */
html:not([data-signed-in]) .when-in, html[data-signed-in] .when-out { display: none !important; }
/* The light logo and the moon only in light; the dark logo and the sun only in dark. */
.lt { display: none !important; }
:root[data-theme="light"] .dk { display: none !important; }
:root[data-theme="light"] .lt { display: block !important; }

/* The three headlines that take turns (issue #236): only the visitor's own shows. */
.headline { display: none; }
html[data-headline="personal"] .headline[data-is="personal"],
html[data-headline="every-workout"] .headline[data-is="every-workout"],
html[data-headline="in-your-ear"] .headline[data-is="in-your-ear"],
html:not([data-headline]) .headline[data-is="in-your-ear"] { display: block; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bar); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled, .bar.ruled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.bar .mark { display: block; line-height: 0; }
.bar .mark img { height: 40px; width: auto; }
.bar nav { display: flex; gap: 24px; margin-left: 12px; }
.bar nav a { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 15px; }
.bar nav a:hover { color: var(--ink); }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.bar .right a.in { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.theme svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .bar nav { display: none; } }

/* Buttons: Jaksa's own, never dressed as a store's badge (Apple forbids home-made ones). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font: 700 17px/1 var(--body); text-decoration: none; padding: 18px 30px; border: 0; cursor: pointer; white-space: nowrap; }
.btn.go { background: var(--accent); color: var(--on-accent); }
.btn.go:hover { filter: brightness(1.05); }
.btn.small { padding: 11px 18px; font-size: 15px; }
.btn.ghost { background: var(--ghost-bg); color: var(--ink); border: 1.5px solid var(--ghost-line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.dark { background: #14140c; color: #f4f5f7; }
.btn.card { padding: 13px 16px; font-size: 15px; }
.under { font-size: 14px; color: var(--mute); margin: 14px 0 0; }
.under b { color: var(--ink); font-weight: 600; }

/* The stores' official badges, untouched: Apple's black SVG (119.66 x 40, no margin) and Google's PNG
   (646 x 250, a 41 px transparent margin round a 564 x 168 badge), cropped to the badge and scaled by
   40/168 to stand level with Apple's. Black in both themes: the only colour Google makes, and Apple's
   rule whenever another platform's badge is beside it. */
.badge { display: inline-block; line-height: 0; text-decoration: none; flex: none; }
.badge.apple img { height: var(--h); width: auto; display: block; }
.badge.google { height: var(--h); width: calc(var(--h) * 3.357); overflow: hidden; position: relative; border-radius: calc(var(--h) * .13); }
.badge.google img { position: absolute; left: calc(var(--h) * -.244); top: calc(var(--h) * -.244); height: calc(var(--h) * 1.488); width: auto; }
.badge:hover { filter: brightness(1.12); }
.b-big { --h: 64px; } .b-mid { --h: 52px; } .b-small { --h: 40px; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qr { display: flex; align-items: center; gap: 10px; margin-left: 4px; padding-left: 16px; border-left: 1px solid var(--line); height: 58px; }
.qr img { width: 58px; height: 58px; display: block; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--ghost-line); }
.qr p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.3; width: 8.5em; }
.qr p b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .qr { display: none; } }

/* The phone pictures */
.shot { display: block; width: 100%; max-width: 420px; aspect-ratio: 880 / 1912; margin: 0 auto; border-radius: 28px; box-shadow: 0 34px 70px var(--shadow); background: var(--panel) center / cover no-repeat; }
.s01 { background-image: var(--shot-01); } .s02 { background-image: var(--shot-02); } .s04 { background-image: var(--shot-04); }
.s05 { background-image: var(--shot-05); } .s06 { background-image: var(--shot-06); } .s07 { background-image: var(--shot-07); }

/* Hero: the words start at the top and the picture is capped, so the badges sit above the fold on a laptop. */
.hero { padding-block: 48px 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero > div:first-child { padding-top: 32px; }
.hero h1 { font-size: clamp(56px, 8.4vw, 112px); }
.hero h1.long { font-size: clamp(50px, 7vw, 92px); }
.hero h1 em, .final h2 em, .dl h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { font-size: 21px; color: var(--soft); max-width: 34ch; margin: 24px 0 32px; }
.hero .shot { max-width: 360px; }
.works { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; font-size: 14px; color: var(--mute); }
.works b { color: var(--ink); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block-start: 40px; } .hero > div:first-child { padding-top: 0; } .shot { max-width: 320px; } }

/* Works with */
.with { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.with .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; }
.with span { font: 600 13px/1 var(--mono); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.with span.lead { color: var(--ink); }

/* Hear your coach: the conversation lights up as it scrolls into view (a real recording comes later). */
.hear { padding-block: 96px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hear p.lede { font-size: 19px; color: var(--soft); margin: 20px 0 0; max-width: 40ch; }
.call { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.call .top { margin-bottom: 18px; }
.call .meta { font: 500 13px/1.5 var(--mono); color: var(--mute); }
.call .nums { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 700 26px/1 var(--display); }
.nums .d { color: var(--m-distance); } .nums .p { color: var(--m-pace); } .nums .h { color: var(--m-heart); } .nums .t { color: var(--m-time); }
.nums small { font: 500 12px var(--mono); color: var(--mute); margin-left: 3px; }
.lines { display: grid; gap: 10px; }
.line { padding: 12px 14px; border-radius: 14px; font-size: 16px; opacity: .25; transition: opacity .4s, transform .4s; transform: translateY(4px); }
.line.on { opacity: 1; transform: none; }
.line.coach { background: var(--coach-bg); border: 1px solid var(--coach-line); }
.line.you { background: var(--you-bg); margin-left: 48px; }
.line i { display: block; font: 600 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.line.coach i { color: var(--accent-ink); }
.again { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--mute); font: 600 14px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.again:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .line { opacity: 1; transform: none; transition: none; } .again { display: none; } }
@media (max-width: 860px) { .hear { grid-template-columns: minmax(0, 1fr); padding-block: 64px; } }

/* How it works */
.how { padding-block: 40px 96px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.step b { font: 800 44px/1 var(--display); color: var(--accent-ink); display: block; margin-bottom: 14px; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--mute); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 56px; }
.feat.flip .shot { order: 2; }
.feat ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.feat li { padding-left: 30px; position: relative; color: var(--soft); }
.feat li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--dot-glow); }
.feat .say { margin-top: 22px; font: 500 15px/1.5 var(--mono); color: var(--accent-ink); border-left: 2px solid var(--accent); padding-left: 14px; }
@media (max-width: 860px) { .feat { grid-template-columns: minmax(0, 1fr); gap: 28px; } .feat.flip .shot { order: 0; } }

/* The lime band, the same in both themes */
.band { background: var(--accent); color: #14140c; margin: 64px 0; }
.band .wrap { padding: 56px 20px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(36px, 5vw, 56px); }
.band p { margin: 10px 0 0; font-weight: 600; }

/* What runners said */
.proof { padding-block: 40px 80px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.quote .c { font: 500 15px/1.5 var(--mono); color: var(--accent-ink); margin: 0 0 16px; }
.quote .r { font-size: 18px; margin: 0; }
.quote .who { margin: 16px 0 0; font-size: 14px; color: var(--mute); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Pricing: the amounts come from the server's offer (front-words.js), never typed here. */
.price { padding-block: 80px; text-align: center; }
.switch { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 28px 0 32px; }
.switch button { border: 0; background: transparent; color: var(--mute); font: 700 15px/1 var(--body); padding: 12px 22px; border-radius: 999px; cursor: pointer; }
.switch button.on { background: var(--ink); color: var(--bg); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; text-align: left; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #14140c; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.plan .tag:empty { display: none; }
.plan h3 { font-size: 30px; }
.plan .amt { font: 800 60px/1 var(--display); margin: 18px 0 4px; min-height: 60px; }
.plan .amt small { font: 600 16px var(--body); color: var(--mute); }
.plan .amt a { font: 700 22px/60px var(--body); }
.plan .per { color: var(--mute); font-size: 15px; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li svg { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; color: var(--accent-ink); }
.plan .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan .two .btn { width: 100%; }
.price .under { max-width: 60ch; margin-inline: auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Questions */
.faq { padding-block: 40px 96px; max-width: 820px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--mute); margin: 12px 0 0; }

/* The closing section and the footer */
.final { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(48px, 7vw, 92px); }
.final p.lede { color: var(--mute); font-size: 19px; margin: 18px 0 32px; }
.final .get { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; }
footer a { color: var(--mute); }

/* The download page (jaksa.run/app): the server marks <html data-store="apple|google|none">, and only the
   visitor's own block shows. An iPhone or iPad: the App Store big. Android: Google Play big. A computer: both and the code. */
html[data-store="apple"] .only-google, html[data-store="apple"] .only-none,
html[data-store="google"] .only-apple, html[data-store="google"] .only-none,
html[data-store="none"] .only-apple, html[data-store="none"] .only-google,
html:not([data-store]) .only-apple, html:not([data-store]) .only-google { display: none !important; }
.dl { padding-block: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.dl > div:first-child { padding-top: 40px; }
.dl h1 { font-size: clamp(56px, 8vw, 104px); }
.dl .lede { font-size: 20px; color: var(--soft); max-width: 36ch; margin: 22px 0 30px; }
.dl .shot { max-width: 340px; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.pick .hint { margin: 0; font-size: 15px; color: var(--mute); max-width: 22ch; line-height: 1.35; }
.other { margin: 26px 0 0; font-size: 15px; color: var(--mute); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl .under { font-size: 15px; margin: 18px 0 0; max-width: 44ch; }
.more { padding-block: 56px 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--mute); font-size: 15px; }
@media (max-width: 960px) { .more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .dl { grid-template-columns: minmax(0, 1fr); padding-block-start: 40px; } .dl > div:first-child { padding-top: 0; } .dl .shot { max-width: 280px; } }

/* Phone width: one column, the badges centred. Last, so it wins. */
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .bar .wrap { gap: 10px; } .bar .right { gap: 10px; } .bar .mark img { height: 30px; }
  .bar .btn.small { padding: 10px 14px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); } .hero h1.long { font-size: clamp(44px, 13vw, 64px); }
  .hero .lede { font-size: 19px; }
  .get { justify-content: flex-start; }
  .band .wrap { padding: 40px 16px; }
  .band .get { display: grid; grid-template-columns: 1fr; width: 100%; }
  .call { padding: 18px; } .line.you { margin-left: 24px; }
  .plan { padding: 24px 20px; }
  .plan .two { grid-template-columns: 1fr; }
  .dl h1 { font-size: clamp(48px, 15vw, 72px); }
  .pick .hint { max-width: none; }
  .b-big { --h: 56px; }
  .more { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .b-big { --h: 48px; } .b-mid { --h: 44px; } }
