/* Shared styles for the inner pages: /plans, /club, /v, /account, /shop, /privacy, /terms and /admin.
   Same system as the homepage (docs/brand/guidelines.md): Brunswick green ground, champagne text,
   moss green headings, Fraunces and Schibsted Grotesk, square corners, film grain, poster headers. */
:root {
  --brunswick: #1B4436;
  --brunswick-deep: #10291F;
  --brunswick-up: #214D3B;      /* a raised surface on the ground: cards, inputs (buff stays 4.6:1 on it) */
  --moss-green: #88A33B;        /* large text only */
  --champagne: #F9E4C5;
  --buff: #DDAD8A;
  --payne: #5B758C;             /* lines only, never text */
  --alert: #F2A58C;             /* errors and warnings on green (5.9:1) */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --loud: 'Anton', 'Impact', sans-serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease: 550ms var(--spring);

  /* earlier names, kept so page-level styles carry across: "cream" is the ground, "ink" the text */
  --cream: var(--brunswick);
  --ink: var(--champagne);
  --cream-2: var(--brunswick-up);
  --ink-soft: var(--buff);
  --moss: var(--moss-green);
  --marigold: var(--buff);
  --clay: var(--alert);
  --line: rgba(249, 228, 197, .2);
  --display: var(--serif);
  --radius: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { background: var(--brunswick); }
body {
  background: var(--brunswick); color: var(--champagne);
  font: 400 16px/1.5 var(--body);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  margin: 0; padding: 0 16px;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
/* film grain over everything: one screen-sized layer that never repaints */
body::before { content: ''; position: fixed; inset: 0; z-index: 30; pointer-events: none; background: url(/photos/grain.png); background-size: 200px; opacity: .3; }
.display { font-family: var(--serif); font-weight: 500; line-height: 1; text-wrap: balance; }
.display em { font-style: italic; color: var(--moss-green); }
.loud { font-family: var(--loud); font-weight: 400; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.label, .mini { font: 600 11px/1.35 var(--body); letter-spacing: .2em; text-transform: uppercase; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; }

/* ---------- header: the homepage's top row, on green ---------- */
header.site { margin-inline: -16px; position: relative; z-index: 20; }
nav.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 2.6vw, 36px);
}
nav.top .where { color: var(--buff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { display: block; width: clamp(104px, 9vw, 140px); }
.logo img { display: block; width: 100%; height: auto; transition: transform var(--ease); }
@media (hover: hover) { .logo:hover img { transform: scale(1.04) rotate(-2deg); } }
.links { display: flex; justify-content: flex-end; gap: clamp(12px, 2vw, 28px); list-style: none; margin: 0; padding: 0; font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.links a { text-decoration: none; }
.links a:hover, .links a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.burger { display: none; justify-self: end; position: relative; z-index: 2; width: 44px; height: 44px; margin: -12px -10px -12px 0; background: none; border: 0; cursor: pointer; color: var(--champagne); }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--ease), top var(--ease); }
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 25px; }
nav.top.open .burger i { top: 21px; }
nav.top.open .burger i:nth-child(1) { transform: rotate(45deg); }
nav.top.open .burger i:nth-child(2) { transform: rotate(-45deg); }

/* ---------- buttons: capsules with a plain sentence-case label ----------
   Primary is a solid champagne capsule. Secondary (.ghost, .more-link) is a darker tint of whatever it sits on,
   so it reads as pressed into the surface, photos included. Danger is a coral tint. */
.cta, .more-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 13px 26px; background: var(--champagne); color: var(--brunswick); text-decoration: none;
  font: 600 16px/1.2 var(--body); letter-spacing: 0; text-transform: none;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
@media (hover: hover) { .cta:hover { background: #FFF1DC; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(6, 18, 13, .28); } }
.cta:active, .more-link:active { transform: scale(.97); box-shadow: none; transition-duration: 120ms; }
.cta.ghost, .more-link { background: rgba(10, 30, 22, .55); color: var(--champagne); box-shadow: inset 0 0 0 1px rgba(249, 228, 197, .22); }
@media (hover: hover) { .cta.ghost:hover, .more-link:hover { background: rgba(10, 30, 22, .78); color: var(--champagne); transform: translateY(-2px); } }
.cta.danger { background: rgba(242, 165, 140, .16); color: var(--alert); }
@media (hover: hover) { .cta.danger:hover { background: var(--alert); color: var(--brunswick); } }
.cta[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
/* on champagne surfaces the tint flips to green */
.waitlist .cta, dialog.bag .cta { background: var(--brunswick); color: var(--champagne); }
.price { font: 400 24px/1 var(--loud); letter-spacing: .02em; }

/* ---------- tab bar: a floating capsule, the chosen tab sits in its own lighter pill ----------
   Used for the shop's categories and the admin sections. Each tab is an icon and a label. */
.tabs {
  display: inline-flex; gap: 2px; padding: 4px; max-width: 100%; width: fit-content; justify-self: start;
  background: rgba(16, 41, 31, .82); border: 1px solid rgba(249, 228, 197, .16); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(249, 228, 197, .08), 0 10px 30px rgba(6, 18, 13, .35);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 13px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--buff); font: 600 14px/1 var(--body); letter-spacing: .01em; text-transform: none; white-space: nowrap;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.tabs .ti { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tabs button:hover { color: var(--champagne); } }
.tabs button:active { transform: scale(.96); transition-duration: 120ms; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] {
  background: rgba(249, 228, 197, .14); color: var(--champagne);
  box-shadow: inset 0 1px 0 rgba(249, 228, 197, .12);
}
.tabs button[aria-selected="true"] .ti, .tabs button[aria-pressed="true"] .ti { stroke: var(--moss-green); }
.tabs button:focus-visible { outline-offset: -3px; }
/* phones: icon over label, like a phone tab bar */
@media (max-width: 600px) {
  .tabs { border-radius: 30px; }
  .tabs button { flex: 1 1 auto; flex-direction: column; gap: 5px; padding: 9px 7px 8px; border-radius: 24px; font-size: 10.5px; }
  .tabs .ti { width: 22px; height: 22px; }
}

/* ---------- page body ---------- */
main.page { width: 100%; max-width: 1440px; margin-inline: auto; padding-block: clamp(32px, 5vw, 64px) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); align-content: start; flex: 1; }
.page-head { max-width: 980px; }
.page-head h1 { font-size: clamp(44px, 7vw, 104px); margin: 14px 0 0; color: var(--moss-green); }
.page-head .lede { max-width: 60ch; font-size: 18px; color: var(--buff); margin: 22px 0 0; }
.page-head .buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 0; }
.page-head .label { color: var(--buff); }
.back { text-decoration: none; color: var(--buff); margin-bottom: -24px; }
.back::before { content: '← '; }
.empty { color: var(--buff); font-size: 18px; }

/* poster header: a photo, full bleed, with the title laid over it */
.poster-head {
  position: relative; overflow: hidden; isolation: isolate;
  margin: calc(-1 * clamp(32px, 5vw, 64px)) -16px 0;
  min-height: clamp(440px, 74vh, 780px); min-height: clamp(440px, 74svh, 780px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
  padding: clamp(20px, 3vw, 40px);
}
.poster-head img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.poster-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(16, 41, 31, .35), rgba(16, 41, 31, 0) 30%, rgba(16, 41, 31, .2) 55%, rgba(16, 41, 31, .85)); }
.poster-head .label { color: var(--champagne); }
.poster-head h1 { margin: 12px 0 10px; font-size: clamp(56px, 10vw, 168px); color: var(--champagne); max-width: 16ch; text-shadow: 0 2px 0 var(--brunswick-deep); }
.poster-head h1 .moss { color: var(--moss-green); display: block; }
.poster-head h1.display { font-size: clamp(48px, 7.4vw, 120px); line-height: .98; text-shadow: 1px 1px 0 var(--brunswick), 2px 2px 0 rgba(27, 68, 54, .55); }
.poster-head .lede { max-width: 54ch; font-size: 18px; margin: 0; text-shadow: 0 1px 6px rgba(10, 30, 20, .6); }
.poster-head .buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 0; }
.poster-head .corner { position: absolute; top: clamp(18px, 2.4vw, 32px); z-index: 2; display: grid; gap: 2px; text-shadow: 0 1px 4px rgba(10, 30, 20, .6); }
.poster-head .corner b { font: 700 13px/1.1 var(--body); letter-spacing: .02em; text-transform: none; }
.poster-head .corner.l { left: clamp(20px, 3vw, 40px); }
.poster-head .corner.r { right: clamp(20px, 3vw, 40px); text-align: right; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.route path { fill: none; stroke: var(--champagne); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(16, 41, 31, .6)); }
.route circle { fill: var(--champagne); }

/* section heads: number, title, note, ruled like a poster's edge */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--payne); padding-bottom: 14px; position: relative; }
.section-head::before, .section-head::after { content: ''; position: absolute; bottom: -3.5px; width: 6px; height: 6px; background: var(--moss-green); }
.section-head::before { left: 0; }
.section-head::after { right: 0; }
.section-head h2 { margin: 0; font-size: clamp(36px, 5vw, 72px); color: var(--moss-green); }
.section-head .label { color: var(--buff); }

/* the example week */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.day { padding: 14px 12px 16px; min-height: 170px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day .dname { font: 600 11px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; }
.day .kind { font: 500 30px/1 var(--serif); margin-top: auto; }
.day .what { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.day.easy { background: var(--champagne); color: var(--brunswick); }
.day.hard { background: var(--moss-green); color: var(--brunswick-deep); }
.day.rest { border: 1px dashed var(--payne); color: var(--buff); }
.day.rest .kind { color: var(--champagne); }

/* training plan cards: tickets */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 26px 26px 22px; background: var(--champagne); color: var(--brunswick); text-decoration: none;
  transition: transform var(--ease);
}
.plan-card::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 58px; border-top: 2px dashed rgba(27, 68, 54, .35); }
@media (hover: hover) { .plan-card:hover { transform: translateY(-4px) rotate(-.6deg); } }
.plan-card .label { color: #4A6358; }
.plan-card h3 { margin: 0; font-size: clamp(28px, 2.6vw, 36px); }
.plan-card p { margin: 0 0 28px; color: #3D5A4C; }
.plan-card .plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.plan-card .more { font: 700 11px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-left: auto; }

.prose { max-width: 68ch; font-size: 17px; }
.prose p { margin: 0 0 1em; }

/* ---------- about ---------- */
/* the mission, set big on a champagne sheet */
.mission { background: var(--champagne); color: var(--brunswick); padding: clamp(24px, 5vw, 72px); }
.mission .label { color: #4A6358; }
.mission blockquote { margin: 18px 0 0; max-width: 34ch; font: 500 clamp(26px, 3.2vw, 44px)/1.2 var(--serif); text-wrap: pretty; }
/* what that means, one line each */
.values { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--payne); }
.values li { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--payne); display: grid; gap: 8px; align-content: start; }
.values .label { color: var(--buff); }
.values strong { font: 400 clamp(28px, 2.8vw, 40px)/.95 var(--loud); text-transform: uppercase; }
/* the founders: square portraits, or initials until a photo is uploaded */
.founders { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.founder { display: grid; gap: 8px; align-content: start; min-width: 0; }
.founder .pic { aspect-ratio: 1; overflow: hidden; background: var(--champagne); border: 6px solid var(--champagne); display: grid; place-items: center; margin-bottom: 8px; }
.founder .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder .initials { font-size: clamp(64px, 8vw, 120px); color: var(--moss-green); line-height: 1; }
.founder .label { color: var(--buff); }
.founder h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); color: var(--champagne); }
.founder-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; font-size: 15px; }
.founder-links a { text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 960px) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- slog club and account ---------- */
.fine { color: var(--buff); font-size: 14px; max-width: 70ch; margin: 14px 0 0; }
.powered { color: var(--buff); font-size: 13px; margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.powered img { display: block; width: 132px; height: auto; background: #fff; padding: 6px 8px; box-sizing: content-box; }
.powered p { margin: 0; }
.notice { background: var(--brunswick-up); border-left: 4px solid var(--moss-green); padding: 12px 16px; margin: 18px 0 0; max-width: 70ch; }
.notice a { font-weight: 700; }
.pill { font: 700 10px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; border: 1.5px solid var(--alert); color: var(--alert); white-space: nowrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.row form { margin: 0; }

/* Strava's own button, unchanged; it sits on a champagne mat so its edges read */
.strava-btn { display: inline-block; line-height: 0; border-radius: 6px; }
.strava-btn img { display: block; width: 237px; height: 48px; }
/* "View on Strava" links: Strava's guidelines want them bold, underlined or orange */
.strava-link { font-weight: 700; text-decoration: underline; }
.consent { font-size: 13px; }
/* the full consent text sits just under the hero, not on the photo */
.consent-block { max-width: 72ch; }
.consent-block .consent { margin: 0; }

/* what counts as a slog: race-poster data tiles */
.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 22px; border-top: 1px solid var(--payne); }
.rules-grid > div { padding: 22px 20px 26px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--payne); }
.rules-grid > div + div { padding-left: 20px; border-left: 1px solid var(--payne); }
.rules-grid .label { color: var(--buff); }
.rules-grid strong { font: 400 clamp(30px, 3vw, 44px)/.95 var(--loud); text-transform: uppercase; color: var(--champagne); }

.table-wrap { overflow-x: auto; margin-top: 18px; }
table.slogs { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
table.slogs th { text-align: left; font: 700 11px/1.3 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--buff); padding: 8px 10px 10px 0; }
table.slogs td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line); white-space: nowrap; }
table.slogs .empty-row { color: var(--buff); }

form.settings { display: grid; gap: 18px; max-width: 560px; margin-top: 22px; }

/* the "add the line?" pop-up after joining */
dialog.ask { width: min(560px, calc(100% - 32px)); border: 0; padding: clamp(22px, 4vw, 34px); background: var(--brunswick-up); color: var(--champagne); box-shadow: 0 24px 60px rgba(6, 18, 13, .5); }
dialog.ask::backdrop { background: rgba(16, 41, 31, .7); }
dialog.ask h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 40px); }
dialog.ask p { margin: 0 0 12px; }
dialog.ask .example { background: var(--brunswick-deep); border-left: 4px solid var(--moss-green); padding: 12px 14px; overflow-wrap: anywhere; }
dialog.ask form { display: grid; gap: 18px; margin-top: 18px; }
dialog.ask .row { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes ask-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
dialog.ask[open] { animation: ask-in 420ms var(--spring); }
@media (prefers-reduced-motion: reduce) { dialog.ask[open] { animation: none; } }
.f { display: grid; gap: 6px; }
.f small { color: var(--buff); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: 20px; height: 20px; accent-color: var(--moss-green); }
input[type=text], input[type=email], input[type=url], input[type=number], textarea, select {
  font: 400 16px/1.4 var(--body); color: var(--champagne); background: var(--brunswick-deep);
  border: 1px solid var(--buff); border-radius: 0; padding: 12px 14px; width: 100%; min-width: 0;
}
input::placeholder, textarea::placeholder { color: rgba(221, 173, 138, .7); }
form.settings .cta { justify-self: start; }

.waitlist { display: grid; gap: 14px; max-width: 640px; margin-top: 24px; padding: clamp(20px, 3vw, 32px); background: var(--champagne); color: var(--brunswick); }
.waitlist h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.waitlist p, .waitlist form { margin: 0; }
.waitlist form { display: grid; gap: 8px; }
.waitlist .notice { margin: 0; background: #FFF3E1; color: var(--brunswick); }
.waitlist .fine { color: #3D5A4C; }

/* a checked code: the approved run as a ticket */

/* ---------- legal pages: a printed sheet on the green ---------- */
.legal { max-width: 80ch; font-size: 17px; background: var(--champagne); color: var(--brunswick); padding: clamp(24px, 4vw, 56px); }
.legal h2 { font: 500 clamp(24px, 2.6vw, 30px)/1.1 var(--serif); margin: 40px 0 12px; scroll-margin-top: 24px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--brunswick); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal :focus-visible { outline-color: var(--brunswick); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid rgba(27, 68, 54, .2); vertical-align: top; }
.legal th { font: 700 11px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #4A6358; border-top: 0; }
.legal .toc { background: #FFF3E1; padding: 18px 24px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }

/* ---------- form controls, after EasyUI (docs/easyui-audit.md) ---------- */
/* LockInput: on focus the edge tweens to champagne and a moss ring settles in around it */
input[type=text], input[type=email], input[type=url], input[type=number], textarea, select {
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, input[type=number]:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--champagne); background: #0C2219;
  box-shadow: 0 0 0 1px var(--champagne), 0 0 0 5px rgba(136, 163, 59, .32);
}
/* StretchSwitch: an on/off setting. The knob stretches while pressed and lands with a little settle.
   Markup: <input type="checkbox" class="switch" role="switch">. */
input.switch {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 52px; height: 32px; border-radius: 999px; background: var(--brunswick-deep);
  box-shadow: inset 0 0 0 1px rgba(249, 228, 197, .32); transition: background var(--ease), box-shadow var(--ease);
}
input.switch::before {
  content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--buff); box-shadow: 0 2px 6px rgba(6, 18, 13, .35);
  transition: transform var(--ease), width 240ms var(--spring), background var(--ease);
}
input.switch:checked { background: var(--moss-green); box-shadow: inset 0 0 0 1px var(--moss-green); }
input.switch:checked::before { transform: translateX(20px); background: var(--champagne); }
input.switch:active::before { width: 30px; }
input.switch:checked:active::before { transform: translateX(14px); }
input.switch:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; }
input.switch[disabled] { opacity: .45; cursor: not-allowed; }
.check:has(input.switch) { gap: 14px; }
/* DrawCheckbox: the tick draws itself in and the box snaps 0.9 -> 1.04 -> 1.
   Applies to the plain checkboxes on the account page and in the dashboard's lists. */
.check input[type=checkbox]:not(.switch), .checks input[type=checkbox]:not(.switch) {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 22px; height: 22px; border: 1.5px solid var(--buff); border-radius: 0; background: var(--brunswick-deep);
  transition: background var(--ease), border-color var(--ease);
}
.check input[type=checkbox]:not(.switch)::before, .checks input[type=checkbox]:not(.switch)::before {
  content: ''; position: absolute; inset: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%2310291F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 380ms var(--spring);
}
.check input[type=checkbox]:not(.switch):checked, .checks input[type=checkbox]:not(.switch):checked {
  background: var(--moss-green); border-color: var(--moss-green); animation: snap 420ms var(--spring);
}
.check input[type=checkbox]:not(.switch):checked::before, .checks input[type=checkbox]:not(.switch):checked::before { clip-path: inset(0 0 0 0); transition-delay: 60ms; }
@keyframes snap { 0% { transform: scale(.9); } 55% { transform: scale(1.04); } 100% { transform: none; } }

/* ---------- email: the launch page's capsule, everywhere ----------
   An email field is a soft capsule tinted from the surface under it. When it has its own button
   (.email-pill), the button tucks into the capsule's end and the capsule takes the focus glow. */
input[type=email] {
  border: 0; border-radius: 999px; padding: 14px 20px; background: rgba(10, 30, 22, .55);
  box-shadow: inset 0 0 0 1px rgba(249, 228, 197, .22);
}
input[type=email]:focus {
  border: 0; background: rgba(10, 30, 22, .55);
  box-shadow: inset 0 0 0 1px rgba(249, 228, 197, .55), 0 0 0 4px rgba(136, 163, 59, .25);
}
.email-pill {
  display: flex; align-items: center; gap: 6px; width: min(100%, 520px); padding: 5px;
  background: rgba(10, 30, 22, .55); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(249, 228, 197, .22);
  transition: box-shadow 400ms var(--spring);
}
.email-pill:focus-within { box-shadow: inset 0 0 0 1px rgba(249, 228, 197, .55), 0 0 0 4px rgba(136, 163, 59, .25); }
.email-pill input[type=email], .email-pill input[type=email]:focus {
  flex: 1; min-width: 0; padding: 12px 8px 12px 18px; background: transparent; box-shadow: none; outline: none;
}
.email-pill .cta { flex: none; min-height: 44px; padding: 11px 22px; white-space: nowrap; }
@media (max-width: 420px) { .email-pill .cta { padding: 11px 14px; } .email-pill input[type=email] { padding-left: 14px; } }
/* on champagne panels (the club waitlist) the tint flips to green */
.waitlist input[type=email], .waitlist input[type=email]:focus { color: var(--brunswick); }
.waitlist input[type=email]::placeholder { color: #5E7A6C; }
.waitlist .label { color: #4A6358; }  /* labels on champagne, as on the plan tickets */
.waitlist .email-pill { background: rgba(27, 68, 54, .08); box-shadow: inset 0 0 0 1px rgba(27, 68, 54, .35); }
.waitlist .email-pill:focus-within { box-shadow: inset 0 0 0 1px var(--brunswick), 0 0 0 4px rgba(136, 163, 59, .3); }

.vh { position: absolute !important; left: 0; width: 1px !important; height: 1px; padding: 0 !important; border: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Drag to Confirm: account deletion is a slide, not a tap (site.js builds it) ----------
   Coral like the danger button it replaces; the fill follows the thumb and it springs back if let go early. */
form[data-drag-confirm] { flex: 0 1 290px; min-width: 0; max-width: 100%; display: flex; align-items: center; margin: 0; }
.slide-ok {
  position: relative; flex: 1 1 auto; min-width: 0; height: var(--h, 48px); margin: 0; border-radius: 999px; overflow: hidden; touch-action: none; user-select: none;
  background: rgba(242, 165, 140, .14); box-shadow: inset 0 0 0 1px rgba(242, 165, 140, .4);
}
.slide-ok .fill { position: absolute; inset: 0; background: var(--alert); transform-origin: 0 50%; transform: scaleX(0); }
.slide-ok .txt { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 18px 0 var(--h, 48px); font: 600 16px/1.2 var(--body); color: var(--alert); white-space: nowrap; pointer-events: none; }
.slide-ok .thumb {
  position: absolute; top: 4px; left: 4px; width: calc(var(--h, 48px) - 8px); height: calc(var(--h, 48px) - 8px); border-radius: 999px; border: 0; padding: 0; margin: 0; cursor: grab;
  display: grid; place-items: center; background: var(--alert); color: var(--brunswick-deep); box-shadow: 0 3px 10px rgba(6, 18, 13, .35);
}
.slide-ok .thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slide-ok .thumb:focus-visible { outline: 3px solid var(--champagne); outline-offset: 2px; }
/* state lives in data-state (drag, settle, sent), never in class names that other styles might also use */
.slide-ok[data-state="drag"] .thumb { cursor: grabbing; }
.slide-ok[data-state="settle"] :is(.thumb, .fill, .txt), .slide-ok[data-state="sent"] :is(.thumb, .fill, .txt) { transition: transform 650ms var(--spring), opacity 650ms var(--spring); }
.slide-ok[data-state="sent"] .txt { color: var(--brunswick-deep); }

/* ---------- Loader: a calm "working on it" beside a loading line ---------- */
.loading::after {
  content: ''; display: inline-block; width: 26px; height: 6px; margin-left: 10px; vertical-align: middle;
  background: radial-gradient(circle, currentColor 2.4px, transparent 2.6px) 0 50% / 10px 6px repeat-x;
  -webkit-mask: linear-gradient(90deg, #000 30%, rgba(0, 0, 0, .25) 50%, #000 70%) 0 0 / 300% 100%;
  mask: linear-gradient(90deg, #000 30%, rgba(0, 0, 0, .25) 50%, #000 70%) 0 0 / 300% 100%;
  animation: breathe 1.6s linear infinite;
}
@keyframes breathe { to { -webkit-mask-position: -150% 0; mask-position: -150% 0; } }

/* ---------- Text Scramble Decoder: a code resolves out of scrambled letters (site.js) ---------- */
[data-scramble] { font-variant-numeric: tabular-nums; }

/* ---------- Scroll Progress Navigation: the legal pages' contents follow you down the sheet ----------
   site.js builds a floating capsule that shows how far you've read and the section you're in. */
.read-pill {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  display: flex; align-items: center; gap: 12px; max-width: min(92vw, 520px); padding: 8px 8px 8px 16px;
  background: rgba(16, 41, 31, .9); color: var(--champagne); border: 1px solid rgba(249, 228, 197, .16); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(249, 228, 197, .08), 0 10px 30px rgba(6, 18, 13, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate3d(-50%, 140%, 0); opacity: 0; transition: transform var(--ease), opacity var(--ease);
}
.read-pill.on { transform: translate3d(-50%, 0, 0); opacity: 1; }
.read-pill .ring { flex: none; width: 22px; height: 22px; transform: rotate(-90deg); }
.read-pill .ring circle { fill: none; stroke-width: 3; }
.read-pill .ring .track { stroke: rgba(249, 228, 197, .18); }
.read-pill .ring .done { stroke: var(--moss-green); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 200ms linear; }
.read-pill .now { min-width: 0; font: 600 14px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read-pill a { flex: none; padding: 8px 14px; border-radius: 999px; background: rgba(249, 228, 197, .12); color: var(--champagne); font: 600 13px/1 var(--body); text-decoration: none; }
@media (hover: hover) { .read-pill a:hover { background: rgba(249, 228, 197, .2); } }
.legal .toc a[aria-current] { font-weight: 700; text-decoration-thickness: 2px; }

/* ---------- motion: sections ease up as they arrive (site.js adds .in) ---------- */
.js-motion .reveal { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 900ms var(--spring), transform 1100ms var(--spring); }
.js-motion .reveal.in { opacity: 1; transform: none; }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { min-height: 130px; }
}
@media (max-width: 760px) {
  nav.top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  nav.top .where { visibility: hidden; }  /* too tight beside the logo on a phone; the menu marks where you are */
  .burger { display: block; }
  .links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 96px 28px 48px; background: var(--brunswick);
    opacity: 0; visibility: hidden; transition: opacity 450ms var(--spring), visibility 0s 450ms;
  }
  .links li { opacity: 0; transform: translate3d(0, 48px, 0); transition: opacity 500ms var(--spring), transform 700ms var(--spring); }
  .links a { display: block; padding: 6px 0; font: 500 clamp(44px, 13vw, 64px)/1.05 var(--serif); text-transform: none; letter-spacing: 0; }
  nav.top.open .links { opacity: 1; visibility: visible; transition: opacity 450ms var(--spring); }
  nav.top.open .links li { opacity: 1; transform: none; }
  nav.top.open .links li:nth-child(1) { transition-delay: 90ms; }
  nav.top.open .links li:nth-child(2) { transition-delay: 150ms; }
  nav.top.open .links li:nth-child(3) { transition-delay: 210ms; }
  nav.top.open .links li:nth-child(4) { transition-delay: 270ms; }
  nav.top.open .links li:nth-child(5) { transition-delay: 330ms; }
  html.menu-open { overflow: hidden; }
  .poster-head { min-height: 78vh; min-height: 78svh; }
  /* on a phone the copy fills the hero and grows up into the corner tags, so they go */
  .poster-head .corner { display: none; }
  /* and the copy sits mid-photo, so the scrim has to carry it the whole way down */
  .poster-head::after { background: linear-gradient(rgba(16, 41, 31, .45), rgba(16, 41, 31, .55) 35%, rgba(16, 41, 31, .9)); }
}
@media (max-width: 600px) {
  .cta, .more-link { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; }
  .loading::after, .check input:checked, .checks input:checked { animation: none !important; }
}
