/* The public pages (app/site/): the app's own colours and type (app.css), on a page of their own. The navy is the
   app's rail; the zone colours are the session editor's. Light first; a dark page when the system asks for one. */
:root {
  --navy: #0e1630; --navy-2: #17213f; --navy-ink: #eef1fb; --navy-muted: #a3acc8; --navy-line: rgba(255, 255, 255, 0.12);
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f1f4fa;
  --ink: #0f172a; --ink-2: #334155; --muted: #5b6478; --border: #e3e8f1; --axis: #d5dce8;
  --accent: #3b5bfd; --accent-on: #ffffff; --accent-hover: #2f4ae0; --accent-text: #2f4ae0; --accent-tint: #eef2ff;
  --z1: #94a3b8; --z2: #3b82f6; --z3: #10b981; --z4: #f59e0b; --z5: #ef4444;
  --hz-low: #4f8ff7; --hz-mid: #1fbf87; --hz-high: #f2a422;  /* the dark theme's zone colours, on the navy */
  --good: #0b7a3b; --bad: #b42330; --warn-text: #8a5a00; --str: #8b7ae0;
  --f: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0a0f1f; --navy-2: #131a2e;
    --bg: #0b1020; --surface: #131a2e; --surface-2: #1a2238;
    --ink: #e8ecf7; --ink-2: #b7c0d8; --muted: #8c96b2; --border: #242e48; --axis: #2d3754;
    --accent: #6e8bff; --accent-on: #0b1020; --accent-hover: #93a8ff; --accent-text: #93a8ff; --accent-tint: rgba(110, 139, 255, 0.16);
    --z1: #8a96ad; --z2: #4f8ff7; --z3: #1fbf87; --z4: #f2a422; --z5: #f05a5a;
    --good: #4cd38a; --bad: #ff7b86; --warn-text: #f2c14e; --str: #7a6bd8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f); font-variant-numeric: tabular-nums; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: 52px; line-height: 1.05; max-width: 15ch; }
h2 { font-size: 30px; line-height: 1.15; }
p { margin: 0 0 14px; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font: 700 16px/1 var(--f);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-on); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:disabled { opacity: 0.7; cursor: default; }
.btn.quiet { color: var(--navy-ink); border-color: var(--navy-line); background: transparent; }
.btn.quiet:hover { background: var(--navy-2); }

/* ---- every page's top bar: the app's navy, the menu */
.site-head { background: var(--navy); color: var(--navy-ink); }
.top { display: flex; align-items: center; gap: 28px; height: 72px; position: relative; }
.site-nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; font-weight: 600; white-space: nowrap; }
.site-nav a { color: var(--navy-muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--navy-ink); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--hz-low); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 12px; border: 1px solid var(--navy-line); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 16px; top: calc(100% - 6px); z-index: 5; display: flex; flex-direction: column; min-width: 200px;
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.menu nav a { color: var(--navy-ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.menu nav a:hover, .menu nav a[aria-current] { background: rgba(255, 255, 255, 0.08); }

/* ---- the homepage's top: the season drawn across the navy */
.hero { background: var(--navy); color: var(--navy-ink); padding-bottom: 40px; }
/* the logo with its name (site-logo-dark on the navy, site-logo-light on the page) */
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; }
@media (max-width: 360px) { .site-head .brand img { height: 30px; } .site-head .top { gap: 8px; } }
/* on a computer the top bar's logo and name read a size larger */
@media (min-width: 761px) {
  .top { height: 80px; }
  .site-head .brand img { height: 58px; }
}
.signin { color: var(--navy-ink); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.signin:hover { text-decoration: underline; }
.hero-text { padding-top: 40px; }
.lede { font-size: 19px; color: var(--navy-muted); max-width: 60ch; margin-top: 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.season-fig { margin-top: 44px; }
.season-cap { margin-top: 6px; color: var(--navy-muted); font-size: 14px; }
.season { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--f); }
.season .gl { stroke: var(--navy-line); stroke-width: 1; }
.season .base { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.season .ax { fill: var(--navy-muted); font-size: 12px; }
.season .z0 { fill: var(--hz-low); } .season .z1 { fill: var(--hz-mid); } .season .z2 { fill: var(--hz-high); }
.season .plan { opacity: 0.42; }
.season .ph { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.season .phl { fill: var(--navy-muted); font-size: 13px; font-weight: 600; }
.season .nowl { stroke: var(--navy-ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.season .nowt { fill: var(--navy-ink); font-size: 13px; font-weight: 700; }
.season .racel { stroke: var(--navy-ink); stroke-width: 1.5; }
.season .flag { fill: var(--navy-ink); }
.season .racet { fill: var(--navy-ink); font-size: 15px; font-weight: 800; }
.season .racem { fill: var(--navy-muted); font-size: 13px; }
/* the one moment: the season's weeks rise in, done ones first */
@media (prefers-reduced-motion: no-preference) {
  .season .b { transform-box: fill-box; transform-origin: bottom; animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
  .season .plan, .season .now { animation-delay: 0.35s; }
  @keyframes rise { from { transform: scaleY(0); } }
}

/* ---- what it does: words on the left, the app's own drawing on the right */
.row { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; padding-top: 96px; }
.copy p { color: var(--ink-2); max-width: 54ch; }
.copy h2 { margin-bottom: 18px; }
.pic { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.pic svg { width: 100%; height: auto; display: block; font-family: var(--f); }

.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days li { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px 12px; border-radius: 8px; background: var(--surface-2);
  border-top: 3px solid var(--axis); min-height: 132px; font-size: 13px; line-height: 1.3; }
.days li.done { border-top-color: var(--z3); }
.days li.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.days b { font-size: 12px; color: var(--muted); font-weight: 600; }
.days span { font-weight: 700; color: var(--ink); }
.days em { font-style: normal; color: var(--muted); }
.wk-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 18px; background: var(--surface-2); }
.wk-bar i { display: block; background: var(--z2); }
.wk-bar i.pl { background: color-mix(in srgb, var(--z2) 30%, transparent); }

.chat { display: flex; flex-direction: column; gap: 14px; }
.chat .q { align-self: flex-end; max-width: 80%; background: var(--accent); color: var(--accent-on); padding: 10px 14px; border-radius: 14px 14px 4px 14px; margin: 0; font-weight: 600; font-size: 15px; }
.chat .a { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; font-size: 15px; color: var(--ink-2); }
.chat .a p:last-child { margin-bottom: 0; }

.hrv .band { fill: color-mix(in srgb, var(--z2) 12%, transparent); }
.hrv .bandt { fill: var(--muted); font-size: 12px; }
.hrv .ln { fill: none; stroke: var(--z2); stroke-width: 2; stroke-linejoin: round; }
.hrv .pt { fill: var(--z2); }
.hrv .pt.low { fill: var(--z4); stroke: var(--surface); stroke-width: 2; }
.hrv .lowt { fill: var(--ink); font-size: 13px; font-weight: 700; }

.profile .zf.z1 { fill: var(--z1); } .profile .zf.z2 { fill: var(--z2); } .profile .zf.z3 { fill: var(--z3); }
.profile .zf.z4 { fill: var(--z4); } .profile .zf.z5 { fill: var(--z5); }
.profile .base { stroke: var(--axis); }

/* ---- the drawings on the feature pages and guides: the app's own forms, made-up numbers */
.season-mini { font-family: var(--f); }
.season-mini .bars rect { fill: var(--z2); }
.season-mini .bars .easy { fill: color-mix(in srgb, var(--z2) 45%, var(--surface)); }
.season-mini .bars .taper { fill: color-mix(in srgb, var(--z3) 70%, var(--surface)); }
.season-mini .base { stroke: var(--axis); }
.season-mini .race { stroke: var(--ink); stroke-width: 1.5; }
.season-mini .flag { fill: var(--ink); }
.season-mini .lab { fill: var(--muted); font-size: 16px; font-weight: 600; }
.season-mini .lab.strong { fill: var(--ink); font-weight: 800; }
.hrv .trend { fill: none; stroke: var(--z4); stroke-width: 2.5; stroke-dasharray: 5 4; }
.hrv .pts circle { fill: var(--z2); }
.hrv .pts.low circle { fill: var(--z4); }
.pmc .zero { stroke: var(--axis); }
.pmc polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.pmc .fit { stroke: var(--z2); } .pmc .fat { stroke: var(--z5); opacity: 0.8; } .pmc .form { stroke: var(--z4); }
.pmc .lab { font-size: 12px; font-weight: 700; font-family: var(--f); }
.pmc .fit-t { fill: var(--z2); } .pmc .fat-t { fill: var(--z5); } .pmc .form-t { fill: var(--z4); }

.changes .ch-title, .review .rv-head, .target .tg-head, .laps .lp-head { margin: 0 0 14px; font-weight: 700; color: var(--ink); }
.changes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.changes li { display: flex; gap: 10px; color: var(--ink-2); }
.changes .ok { color: var(--good); font-weight: 800; }
.changes .ch-sum { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 15px; color: var(--ink-2); }

.review .rv-verdict { margin: 0 0 6px; font-weight: 800; color: var(--good); display: flex; align-items: center; gap: 8px; }
.review .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); display: inline-block; }
.review dl { margin: 0; display: grid; gap: 12px; }
.review dt { font-weight: 700; font-size: 14px; color: var(--ink); }
.review dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }

.voices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.voices li { display: flex; gap: 14px; align-items: center; }
.voices img { width: 72px; height: 72px; object-fit: cover; object-position: center 20%; border-radius: 50%; flex: none; }
.voices strong { display: block; color: var(--ink); }
.voices span { font-size: 15px; color: var(--ink-2); }

.target dl { margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.target dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.target dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.target .tg-label { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mix { display: flex; height: 14px; border-radius: 7px; overflow: hidden; }
.mix i, .tg-keys i { display: block; }
.m1 { background: var(--z2); } .m2 { background: var(--z4); } .m3 { background: var(--z5); }
.tg-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.tg-keys span { display: inline-flex; align-items: center; gap: 6px; }
.tg-keys i { width: 10px; height: 10px; border-radius: 3px; }

.daycells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc { background: var(--surface-2); border-radius: 8px; padding: 10px; font-size: 13px; line-height: 1.35; }
.dc p { margin: 0; }
.dc-date { font-weight: 700; color: var(--ink); }
.dc-h { color: var(--muted); margin: 4px 0 10px !important; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dc-h span { margin-left: 4px; }
.dc-h.low { color: var(--warn-text); font-weight: 700; }
.dc-s { background: var(--surface); border-left: 3px solid var(--axis); border-radius: 6px; padding: 6px 8px; color: var(--ink); font-weight: 600; }
.dc-s.done { border-left-color: var(--z3); }

.laps table { width: 100%; border-collapse: collapse; font-size: 15px; }
.laps th, .laps td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--border); }
.laps th { font-size: 13px; color: var(--muted); font-weight: 600; }
.laps .num { text-align: right; }
.laps .lp-head { display: flex; justify-content: space-between; }
.laps .lp-foot, .strength .st-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.strength ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.strength li { border-left: 3px solid var(--str); background: var(--surface-2); border-radius: 6px; padding: 8px 12px; font-size: 15px; }
.strength strong { display: block; color: var(--ink); }
.strength span { color: var(--ink-2); }

.related { padding-top: 88px; }
.related h2 { font-size: 22px; margin-bottom: 10px; }
.related p { margin: 0 0 6px; font-weight: 600; }

/* ---- motion (site.js): each drawing plays once as it comes into view, parts one after another (--i); only when the
   script runs and the device allows motion, so without it everything simply shows */
.motion .pic .season-mini .bars rect, .motion .pic .profile .zf { transform-box: fill-box; transform-origin: bottom;
  transform: scaleY(0); transition: transform 0.55s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 35ms); }
.motion .pic.in .season-mini .bars rect, .motion .pic.in .profile .zf { transform: none; }
.motion .pic polyline:not(.trend) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-out; }
.motion .pic.in polyline:not(.trend) { stroke-dashoffset: 0; }
.motion .pic .hrv .trend { opacity: 0; transition: opacity 0.6s ease 0.9s; }
.motion .pic.in .hrv .trend { opacity: 1; }
.motion .pic.in .pmc .fat { transition-delay: 0.15s; } .motion .pic.in .pmc .form { transition-delay: 0.3s; }
.motion .pic .hrv .pts circle, .motion .pic .hrv .pt.low, .motion .pic .hrv .lowt, .motion .pic .pmc .lab {
  opacity: 0; transition: opacity 0.3s ease calc(0.2s + var(--i, 0) * 60ms); }
.motion .pic.in .hrv .pts circle, .motion .pic.in .pmc .lab { opacity: 1; }
.motion .pic.in .hrv .pt.low, .motion .pic.in .hrv .lowt { opacity: 1; transition-delay: 1.1s; }
.motion .pic.in .hrv .pt.low { transform-box: fill-box; transform-origin: center; animation: pulse 0.9s ease-out 1.2s 1; }
@keyframes pulse { 40% { transform: scale(1.8); } }
.motion .pic.changes li, .motion .pic.review dl > div, .motion .pic.voices li, .motion .pic .days li, .motion .pic .dc,
.motion .pic.laps tbody tr, .motion .pic.strength li, .motion .pic .a p, .motion .pic .ch-sum, .motion .pic .q {
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.motion .pic .a p { transition-delay: calc(0.45s + var(--i, 0) * 350ms); }
.motion .pic .ch-sum { transition-delay: 0.7s; }
.motion .pic.in.changes li, .motion .pic.in.review dl > div, .motion .pic.in.voices li, .motion .pic.in .days li, .motion .pic.in .dc,
.motion .pic.in.laps tbody tr, .motion .pic.in.strength li, .motion .pic.in .a p, .motion .pic.in .ch-sum, .motion .pic.in .q { opacity: 1; transform: none; }
.motion .pic .wk-bar i, .motion .pic .mix i { transform-origin: left; transform: scaleX(0); transition: transform 0.6s cubic-bezier(.2, .7, .2, 1) 0.5s; }
.motion .pic.in .wk-bar i, .motion .pic.in .mix i { transform: none; }
.motion .pic .wk-bar i.pl, .motion .pic .mix .m2 { transition-delay: 0.8s; } .motion .pic .mix .m3 { transition-delay: 1s; }

/* the homepage's season: hover or tap a week */
.season-fig { position: relative; }
.season .b { transition: opacity 0.15s ease; }
.season.picking .b:not(.picked) { opacity: 0.35; }
.season.picking .plan.picked { opacity: 0.8; }
.week-tip { position: absolute; transform: translateY(-100%); margin: 0; pointer-events: none; white-space: nowrap;
  background: var(--navy-ink); color: var(--navy); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }

/* small answers to a press */
.btn { transition: background-color 0.15s ease, transform 0.1s ease; }
.btn:active { transform: translateY(1px); }
.site-nav a { transition: color 0.15s ease; }

/* ---- a feature page's picture of the app (scripts/site_shots.py, the demo account): rising out of the page's top */
.page-top:has(+ main > .shot) { padding-bottom: 120px; }
.shot { margin-top: -88px; position: relative; }
.shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 24px 60px rgba(14, 22, 48, 0.22), 0 2px 6px rgba(14, 22, 48, 0.08); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; }
@media (max-width: 560px) { .page-top:has(+ main > .shot) { padding-bottom: 72px; } .shot { margin-top: -48px; } .shot-frame { border-radius: 10px; } }

/* ---- the demo's buttons (See a sample plan, Open the demo): the demo is the one thing a visitor can do right now, so it leads */
.try-app { margin-left: auto; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px;
  font: 700 14px/1 var(--f); cursor: pointer; white-space: nowrap; }
.try-app:hover { background: var(--accent-hover); }
.try-note { margin: 12px 0 0; font-size: 14px; color: var(--navy-muted); }
.try { padding-top: 72px; }
.try-head { max-width: 62ch; margin-bottom: 24px; }
.try-head h2 { margin-bottom: 10px; }
.try-head p { color: var(--ink-2); margin: 0; }
.tour { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 10px 18px; }
.tour-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; overflow-x: auto; }
.tour-tabs button { flex: none; border: 0; background: none; color: var(--muted); font: 700 15px/1 var(--f); padding: 11px 16px;
  border-radius: 8px; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.tour-tabs button:hover { color: var(--ink); }
.tour-tabs button[aria-selected="true"] { background: var(--accent-tint); color: var(--accent-text); }
.tour-panel .frame { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: #f4f6fb; }
.tour-panel img { display: block; width: 100%; height: auto; }
.tour-go { margin: 16px 0 0; text-align: center; }
.motion .tour-panel:not([hidden]) img { animation: tour-in 0.35s ease; }
@keyframes tour-in { from { opacity: 0.4; } }
.try-first { margin-top: 18px; color: var(--navy-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.invite .try-first .btn.quiet { color: var(--navy-ink); }
.try-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--navy-ink);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25); }
.try-bar[hidden] { display: none; }
.try-bar p { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy-muted); }
.try-bar .btn { min-height: 40px; padding: 0 16px; font-size: 15px; white-space: nowrap; flex: none; }
/* the season under the hero opens the demo on its plan: the caption's link, or a click on the drawing itself */
.season-go button { border: 0; padding: 0; background: none; font: 700 14px/1.4 var(--f); color: var(--navy-ink); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.season-go button:hover { text-decoration-thickness: 2px; }
.can-try .season { cursor: pointer; }

/* ---- Sign up: the top bar's button and the window with the invite form */
.signup-top { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font: 700 14px/1 var(--f);
  cursor: pointer; white-space: nowrap; }
.signup-top:hover { background: var(--accent-hover); }
.signup-top[hidden] { display: none; }
/* the top bar's ways in: Sign in (and Sign out) outlined like Open the demo; signed in, Open my training is the blue one */
.site-head .signin, .signout-top { margin-left: 4px; white-space: nowrap; display: inline-flex; align-items: center; padding: 9px 14px;
  border: 1px solid var(--navy-line); border-radius: 8px; background: transparent; color: var(--navy-ink); font: 700 14px/1 var(--f);
  text-decoration: none; cursor: pointer; }
.site-head .signin:hover, .signout-top:hover { background: var(--navy-2); text-decoration: none; }
.signed-in .site-head .signin { background: var(--accent); border-color: var(--accent); color: #fff; }
.signed-in .site-head .signin:hover { background: var(--accent-hover); }
.signout-top[hidden], .menu-signout[hidden] { display: none; }
.in-demo .site-head .top > .signin { display: none; }
@media (max-width: 1400px) {  /* the demo's longer labels: the links fold into the menu a little earlier */
  .in-demo .site-nav, .in-demo .top > .signout-top { display: none; }
  .in-demo .menu { display: block; margin-left: 0; }
  .in-demo .site-head .try-app { margin-left: auto; }
}
.menu nav .menu-signout { border: 0; background: none; color: var(--navy-ink); font: 600 15px/1 var(--f); text-align: left; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; }
.menu nav .menu-signout:hover { background: rgba(255, 255, 255, 0.08); }
.site-head .try-app { margin-left: 0; background: transparent; border: 1px solid var(--navy-line); color: var(--navy-ink); }
.site-head .try-app:hover { background: var(--navy-2); }
.menu nav .menu-signup { margin-top: 6px; border: 0; border-radius: 8px; padding: 11px 12px; background: var(--accent); color: #fff;
  font: 700 15px/1 var(--f); text-align: left; cursor: pointer; }
.signup { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 26px 28px 24px; background: var(--surface);
  color: var(--ink); box-shadow: 0 24px 60px rgba(8, 12, 30, 0.35); }
.signup::backdrop { background: rgba(8, 12, 30, 0.55); }
.motion .signup[open] { animation: su-in 0.18s ease-out; }
@keyframes su-in { from { opacity: 0; transform: translateY(8px); } }
.su-close-row { position: absolute; top: 12px; right: 12px; margin: 0; }
.su-close { border: 0; background: none; color: var(--muted); font-size: 18px; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.su-close:hover { background: var(--surface-2); color: var(--ink); }
.signup h2 { font-size: 26px; margin: 0 0 8px; }
.su-sub { color: var(--ink-2); margin: 0 0 18px; font-size: 16px; }
.signup #ask { padding: 0; background: none; border-radius: 0; }
.signup #ask .btn { justify-self: stretch; justify-content: center; }
.su-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .su-row { grid-template-columns: 1fr; } }
.su-pw { position: relative; display: block; }
.su-pw input { padding-right: 70px !important; }
.su-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent-text);
  font: 700 14px/1 var(--f); padding: 8px; cursor: pointer; border-radius: 6px; }
.su-hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.su-alt { margin: 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.su-fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.invite-end { text-align: center; max-width: 720px; }
.invite-end h2 { color: var(--navy-ink); margin-bottom: 12px; }
.invite-end p { color: var(--navy-muted); }
.invite-end .ctas { justify-content: center; margin-top: 24px; }

/* ---- questions */
.faq { padding-top: 112px; }
.faq h2 { margin-bottom: 8px; }
.faq dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
.faq dt { font-weight: 700; margin-top: 28px; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); max-width: 56ch; }

/* ---- the invite: the navy again, closing the page */
.invite { background: var(--navy); color: var(--navy-ink); margin-top: 112px; padding: 80px 0; }
.invite-in { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.invite .copy p { color: var(--navy-muted); }
#ask { display: grid; gap: 16px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 28px; }
#ask label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
#ask .opt { font-weight: 400; color: var(--muted); }
#ask input, #ask textarea, #ask select { font: 400 16px/1.4 var(--f); color: var(--ink); background: var(--bg); border: 1px solid var(--axis);
  border-radius: 8px; padding: 11px 12px; width: 100%; }
#ask textarea { resize: vertical; }
#ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#ask .btn { justify-self: start; }
.msg { margin: 0; font-size: 15px; min-height: 1.4em; }
.demo-msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--navy-ink); }
.copy .demo-msg { color: var(--bad); }
.msg.good { color: var(--good); font-weight: 600; }
.msg.bad { color: var(--bad); font-weight: 600; }

.foot { border-top: 1px solid var(--border); margin-top: 96px; }
.invite + .foot, .home .foot { margin-top: 0; border-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1.3fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.foot .brand { color: var(--ink); align-self: start; }
.foot .brand img { height: 44px; }  /* a size up from the default (Mathis, 13 Oct: "a bit bigger") */
@media (min-width: 761px) { .foot .brand img { height: 52px; } }
.foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot nav h2 { font-size: 14px; letter-spacing: 0; color: var(--ink); margin-bottom: 4px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
@media (prefers-color-scheme: dark) { .foot .brand img { content: url(/static/site-logo-dark.png); } }

/* ---- a page's top (every page but the homepage): its title on the navy */
.page-top { background: var(--navy); color: var(--navy-ink); padding: 40px 0 56px; }
.page-top h1 { font-size: 46px; max-width: 20ch; }
.page-top .lede { margin-top: 18px; }
.page-top .ctas { margin-top: 26px; }
.page-top .updated, .page-top .byline { color: var(--navy-muted); margin: 14px 0 0; font-size: 15px; }
.crumb { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.crumb a { color: var(--navy-muted); text-decoration: none; }
.crumb a:hover { color: var(--navy-ink); text-decoration: underline; }

/* ---- a document (privacy, about) and a guide: one readable column */
.doc { padding-top: 48px; }
.doc > * { max-width: 760px; }  /* one readable column, lined up with the page's title */
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc figure { margin: 28px 0; }
.doc .pic { margin: 28px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; }
.doc td { color: var(--ink-2); }
.doc .num { text-align: right; padding-right: 0; }
.note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }
.sources { font-size: 14px; }
.sources li { color: var(--muted); }
.next { margin-top: 56px; padding: 28px; background: var(--navy); color: var(--navy-ink); border-radius: 14px; }
.next h2 { margin: 0 0 8px; font-size: 22px; color: var(--navy-ink); }
.next p { color: var(--navy-muted); margin-bottom: 18px; }
.more { margin-top: 18px; font-weight: 700; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* ---- the guides' list */
.doc .guide-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 0; }
.guide-list li { padding: 24px 0; border-bottom: 1px solid var(--border); margin: 0; }
.guide-list :is(h2, h3) { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.guide-list :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.guide-list :is(h2, h3) a:hover { color: var(--accent-text); }
.guide-list p { margin: 0; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }

/* ---- phones */
@media (max-width: 1240px) {
  .site-nav, .top > .signin, .top > .signout-top { display: none; }
  .menu { display: block; }
  .site-head .try-app { margin-left: auto; }
  .site-head .try-app[hidden] + .signup-top { margin-left: auto; }
  .menu { margin-left: 0; }
}
@media (max-width: 760px) {  /* a phone's top bar has room for one button: the demo when it can open, else Sign up (in the menu too) */
  .site-head .try-app { display: none; }
  .can-try .site-head .try-app { display: inline-flex; margin-left: auto; padding: 8px 12px; font-size: 13px; background: var(--accent);
    border-color: var(--accent); color: #fff; }
  .can-try .site-head .signup-top { display: none; }
}
@media (max-width: 860px) {
  .row, .invite-in, .faq dl { grid-template-columns: 1fr; gap: 28px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .faq dl { gap: 0; }
  .row { padding-top: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 25px; }
  .page-top h1 { font-size: 32px; }
  .page-top { padding: 28px 0 40px; }
  .hero-text { padding-top: 32px; }
  .lede { font-size: 17px; }
  .season-fig { overflow-x: auto; }
  .season { min-width: 660px; }
  .pic { padding: 16px; }
  .days { grid-template-columns: 1fr; gap: 4px; }
  .daycells { grid-template-columns: 1fr; }
  .target dl { grid-template-columns: 1fr 1fr; }
  .days li { min-height: 0; flex-direction: row; align-items: baseline; gap: 10px; border-top: 0; border-left: 3px solid var(--axis); padding: 8px 10px; }
  .days li.done { border-left-color: var(--z3); }
  .days b { width: 32px; flex: none; }
  .invite { padding: 56px 0; margin-top: 80px; }
  #ask { padding: 20px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  /* on a phone the screen is zoomed on its telling part (--x, --y per screen) */
  .tour-panel .frame { aspect-ratio: 16 / 10; }
  .tour-panel img { width: 160%; max-width: none; transform: translate(var(--x, 0), var(--y, 0)); }
  .tour-tabs button { padding: 10px 12px; font-size: 14px; }
  .top { gap: 12px; }
  .signup-top { padding: 8px 12px; font-size: 13px; margin-left: auto; }
}
