/* Twelve's marketing site. Colours and type from the app's design system
   (diptoe/twelve web/src/app/globals.css): near-black, off-white, Twelve gold, Archivo. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: oklch(0.135 0.004 60);
  --foreground: oklch(0.973 0.005 95);
  --card: oklch(0.175 0.005 60);
  --card-2: oklch(0.205 0.005 60);
  --muted-foreground: oklch(0.76 0.006 80);
  --faint: oklch(0.6 0.006 80);
  --primary: #C9A24B;
  --primary-foreground: oklch(0.135 0.004 60);
  --border: oklch(0.27 0.006 60);
  --destructive: oklch(0.68 0.19 27);
  --gutter: 20px;
  --max: 1200px;
  --r-card: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr-only, .hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: sentence case, light and tight, one phrase lifted in gold */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(48px, 11vw, 112px); }
h2 { font-size: clamp(34px, 6.2vw, 68px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--primary); }
p { margin: 0; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.sub { color: var(--muted-foreground); font-size: 17px; max-width: 36em; margin: 22px auto 0; }
section { padding: 48px 0; }
@media (min-width: 960px) { section { padding: 64px 0; } .sub { font-size: 19px; } }

/* Pills */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  padding: 14px 22px; cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.pill-btn:hover { filter: brightness(1.08); }
.pill-btn:active { transform: scale(0.98); }
.pill-btn:disabled { opacity: 0.6; cursor: wait; }
.pill-btn-sm { padding: 10px 16px; font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; color: var(--foreground);
  margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 25%, transparent); }

/* The sign-up: step 1 is one pill (email and button); step 2 opens a panel for name and consent */
.signup { position: relative; width: 100%; max-width: 480px; margin: 34px auto 0; text-align: left; }
.signup-step1 {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgb(20 19 18 / 0.72); border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.signup-step1:focus-within { border-color: var(--primary); }
.signup-step1 input {
  flex: 1 1 0; min-width: 0; width: 0;
  font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */
  color: var(--foreground); background: transparent; border: 0; outline: 0;
  padding: 10px 6px 10px 16px;
}
.signup input::placeholder { color: var(--faint); }
.signup-step2, .signup-done {
  padding: 22px; border-radius: 26px;
  background: rgb(24 23 21 / 0.86); border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.45);
  animation: open 0.35s cubic-bezier(.2,.7,.2,1);
}
.signup-step2:not([hidden]) { display: grid; gap: 14px; }
@keyframes open { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.signup-for { font-size: 14px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.signup-for strong { color: var(--foreground); font-weight: 600; }
.link-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.field {
  width: 100%; font: inherit; font-size: 16px; color: var(--foreground);
  background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 14px;
  padding: 14px 16px; outline: 0;
}
.field:focus { border-color: var(--primary); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted-foreground); cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgb(255 255 255 / 0.3); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.consent input::after { content: ""; width: 6px; height: 11px; border: solid var(--primary-foreground); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.consent input:checked { background: var(--primary); border-color: var(--primary); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.consent a { color: var(--foreground); }
.pill-btn-block { width: 100%; padding: 15px 22px; margin-top: 4px; }
.signup-done:not([hidden]) { display: flex; gap: 16px; align-items: center; }
.signup-done p { font-size: 15px; color: var(--muted-foreground); line-height: 1.45; }
.signup-done strong { color: var(--foreground); font-size: 17px; }
.tick { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); font-weight: 800; }
.form-msg { margin-top: 12px; min-height: 1.4em; font-size: 14px; text-align: center; }
.form-msg.err { color: var(--destructive); }

/* Floating top bar */
.nav {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  top: max(12px, env(safe-area-inset-top));
  width: calc(100% - 24px); max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgb(20 19 18 / 0.55); border: 1px solid rgb(255 255 255 / 0.1);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-logo img { height: 17px; width: auto; }
.nav-links { display: none; gap: 30px; font-size: 14px; color: var(--muted-foreground); }
.nav-links a { text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--foreground); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; padding: 120px var(--gutter) 40px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(1.18) contrast(1.05); transform: scale(1.04); animation: settle 2.4s ease-out forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 30%, transparent 0%, rgb(11 10 9 / 0.15) 60%, rgb(11 10 9 / 0.55) 100%),
    linear-gradient(180deg, rgb(11 10 9 / 0.15) 0%, transparent 30%, rgb(11 10 9 / 0.7) 75%, var(--background) 100%);
}
.hero-copy { position: relative; text-align: center; width: 100%; max-width: 900px; }
.hero h1 { margin-bottom: 20px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: rgb(250 249 246 / 0.82); max-width: 30em; margin: 0 auto; }
.trust { list-style: none; padding: 0; margin: 54px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 960px) { .hero { align-items: center; padding-top: 140px; } .hero-copy { margin-top: 18vh; } }

/* Sport cards, scrolled sideways */
.intro { padding-top: 32px; padding-bottom: 16px; }
.cards-scroll {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 48px var(--gutter) 0; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }
.photo-card {
  position: relative; flex: 0 0 78%; scroll-snap-align: start;
  aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background: var(--card);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-card:hover img { transform: scale(1.03); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(11 10 9 / 0.85)); }
.tag {
  position: absolute; z-index: 1; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgb(20 19 18 / 0.6); border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.photo-card-empty { background: radial-gradient(90% 60% at 30% 20%, color-mix(in oklch, var(--primary) 28%, transparent), transparent 70%), linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid rgb(255 255 255 / 0.06); }
.photo-card-copy { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; }
.photo-card-copy h3 { font-size: 24px; }
@media (min-width: 960px) {
  .cards-scroll { max-width: var(--max); margin: 0 auto; overflow: visible; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .photo-card { flex: none; }
  .photo-card-copy h3 { font-size: 19px; }
  .photo-card-copy { left: 18px; right: 18px; bottom: 18px; }
}

/* How it works: three cards, a phone rising out of each */
.steps { display: grid; gap: 16px; margin-top: 56px; }
.step-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid rgb(255 255 255 / 0.06); border-radius: var(--r-card);
  padding: 30px 28px 0;
}
.step-num { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 18px; }
.step-text h3 { margin-bottom: 10px; }
.step-text p { color: var(--muted-foreground); font-size: 15.5px; }
.step-text { margin-bottom: 34px; }
.step-phone { margin: auto auto 0; flex: none; width: 76%; max-width: 280px; height: 330px; overflow: hidden; border-radius: 30px 30px 0 0; border: 6px solid oklch(0.26 0.005 60); border-bottom: 0; box-shadow: 0 -10px 50px rgb(0 0 0 / 0.45); }
.step-phone img { width: 100%; }
.step-photo {
  position: relative; margin: auto auto 0; flex: none; width: 76%; max-width: 280px; height: 330px; overflow: hidden;
  border-radius: 30px 30px 0 0; border: 6px solid oklch(0.26 0.005 60); border-bottom: 0;
  box-shadow: 0 -10px 50px rgb(0 0 0 / 0.45);
}
.step-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 20%; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } .step-phone, .step-photo { height: 340px; } .step-card { padding: 28px 24px 0; } }

/* Built around your week: a stage that holds while you scroll (main.js drives data-step 0-3) */
.ws { position: relative; }
.ws.scrolly { height: 320svh; padding: 0; }
.ws-stage { position: relative; overflow: hidden; }
.ws.scrolly .ws-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.ws-photo { position: absolute; inset: 0; }
.ws-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.ws-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--background) 0%, rgb(11 10 9 / 0.78) 18%, rgb(11 10 9 / 0.86) 60%, var(--background) 100%); }
.ws-inner { position: relative; display: grid; gap: 22px; padding-top: 84px; padding-bottom: 28px; }
.ws:not(.scrolly) .ws-inner { padding-top: 72px; padding-bottom: 72px; }
.ws-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ws-lines li { font-size: clamp(27px, 7.4vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; transition: color 0.4s ease, opacity 0.4s ease; }
.ws-lines li:nth-child(3) { font-style: italic; font-weight: 400; }
.ws-sub { color: var(--muted-foreground); font-size: 15px; margin-top: 14px; max-width: 32em; transition: opacity 0.5s ease; }
/* Line states: the current line bright (the last in gold), lines to come faint */
.ws.scrolly .ws-lines li { opacity: 0.22; }
.ws[data-step="1"] li[data-at="1"], .ws[data-step="2"] li[data-at="2"], .ws[data-step="3"] li[data-at="3"] { opacity: 1; }
.ws[data-step="2"] li[data-at="1"], .ws[data-step="3"] li[data-at="1"], .ws[data-step="3"] li[data-at="2"] { opacity: 0.5; }
.ws li[data-at="3"] { color: var(--primary); }
.ws.scrolly .ws-sub { opacity: 0; }
.ws.scrolly[data-step="3"] .ws-sub { opacity: 1; }

/* The example week */
.week { padding: 16px; border-radius: 22px; background: rgb(24 23 21 / 0.82); border: 1px solid rgb(255 255 255 / 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.week-meta { font-size: 12px; font-weight: 500; color: var(--faint); }
.week-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.day { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; padding: 6px 8px; min-height: 38px; border-radius: 12px; background: rgb(255 255 255 / 0.035); }
.dname { width: 34px; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); }
.chip { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px; white-space: nowrap; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.3,1.6,.5,1); }
.chip-skill { background: rgb(255 255 255 / 0.08); color: var(--foreground); }
.chip-hard { box-shadow: inset 0 0 0 1px oklch(0.62 0.21 25 / 0.6); }
.chip-rest { color: var(--faint); padding-left: 2px; }
.chip-cond { background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.week-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--faint); }
.week-key span { display: inline-flex; align-items: center; gap: 7px; }
.k { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.k-skill { background: rgb(255 255 255 / 0.3); }
.k-cond { background: var(--primary); }
/* Chips appear with their line: sparring at step 1, the rest of your training at 2, Twelve's sessions at 3 */
.ws.scrolly .chip[data-at] { opacity: 0; transform: scale(0.85); }
.ws[data-step="1"] .chip[data-at="1"],
.ws[data-step="2"] .chip[data-at="1"], .ws[data-step="2"] .chip[data-at="2"],
.ws[data-step="3"] .chip[data-at] { opacity: 1; transform: none; }
.ws.scrolly .chip-cond { transition-delay: calc(var(--i, 0) * 160ms); }

@media (min-width: 960px) {
  .ws-photo { right: auto; width: 46%; }
  .ws-photo::after { background: linear-gradient(90deg, rgb(11 10 9 / 0.1) 0%, rgb(11 10 9 / 0.25) 55%, var(--background) 100%), linear-gradient(180deg, var(--background) 0%, transparent 15%, transparent 85%, var(--background) 100%); }
  .ws-inner { grid-template-columns: 1fr; margin-left: 44%; max-width: 640px; padding-left: 48px; gap: 20px; padding-top: 88px; padding-bottom: 24px; }
  .ws-lines li { font-size: clamp(30px, 3vw, 44px); }
  .ws-sub { font-size: 16px; margin-top: 10px; }
  .week { padding: 16px 18px; }
  .day { min-height: 36px; padding: 5px 10px; }
  .dname { width: 42px; font-size: 13px; }
  .chip { font-size: 13px; padding: 4px 11px; }
}
@media (min-width: 960px) and (max-height: 820px) { .ws.scrolly .ws-sub { display: none; } }
/* Phones: one line at a time in the same spot (like a slideshow), the explanation under the last,
   and a compact week, so it all fits even with Safari's toolbars showing (100svh). */
@media (max-width: 959px) {
  .ws.scrolly .ws-stage { align-items: flex-start; }
  .ws.scrolly .ws-inner { padding-top: 84px; gap: 14px; }
  .ws.scrolly .ws-lines { display: grid; }
  .ws.scrolly .ws-lines li { grid-area: 1 / 1; font-size: clamp(26px, 7.4vw, 34px); opacity: 0 !important; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
  .ws.scrolly[data-step="0"] li[data-at="1"], .ws.scrolly[data-step="1"] li[data-at="1"],
  .ws.scrolly[data-step="2"] li[data-at="2"], .ws.scrolly[data-step="3"] li[data-at="3"] { opacity: 1 !important; transform: none; }
  .ws.scrolly .ws-sub { font-size: 14px; line-height: 1.45; margin-top: 8px; min-height: 4.4em; }
  .ws.scrolly .week { padding: 12px 12px 10px; }
  .ws.scrolly .week-head { margin-bottom: 8px; font-size: 14px; }
  .ws.scrolly .day { min-height: 34px; padding: 4px 8px; }
  .ws.scrolly .week-key { margin-top: 8px; }
  .lg { display: none; }
}
/* The floating sign-up bar steps aside while the week section is on screen */
body.in-ws .dock.show { transform: translate(-50%, 140%); opacity: 0; }

/* Inside the app: a bento of tiles */
.works-with {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); color: var(--foreground);
}
.works-with svg { color: var(--primary); }
.bento { display: grid; gap: 16px; margin-top: 56px; }
.tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid rgb(255 255 255 / 0.06); border-radius: var(--r-card);
  padding: 30px 28px 0;
}
.tile-text h3 { margin-bottom: 10px; }
.tile-text p { color: var(--muted-foreground); font-size: 15.5px; max-width: 26em; }
.tile-text { margin-bottom: 30px; }
.tile-phone { margin: auto auto 0; flex: none; width: 76%; max-width: 300px; height: 320px; overflow: hidden; border-radius: 30px 30px 0 0; border: 6px solid oklch(0.26 0.005 60); border-bottom: 0; }
.tile-phone img { width: 100%; }
/* The comparison tile shows its whole (cropped) screen, so "How you compare" is always in view */
.tile-phone-full, .tile-tall .tile-phone-full { height: auto; }

@media (min-width: 960px) {
  .bento { grid-template-columns: 1.1fr 1fr; gap: 20px; }
  .tile-tall { grid-row: span 2; }
  .tile-tall .tile-phone { height: 560px; max-width: 340px; }
  .tile:not(.tile-tall) { flex-direction: row; align-items: flex-end; gap: 20px; padding-right: 28px; }
  .tile:not(.tile-tall) .tile-text { align-self: center; flex: 1; padding-bottom: 30px; }
  .tile-phone-wide { width: 220px; height: 280px; margin: 0; flex: none; }
}

/* Quotes */
.quote-grid { display: grid; gap: 16px; margin-top: 56px; }
.quote-card { margin: 0; padding: 30px 28px; border-radius: var(--r-card); background: var(--card); border: 1px solid rgb(255 255 255 / 0.06); display: flex; flex-direction: column; }
.stars { color: var(--primary); letter-spacing: 0.15em; font-size: 14px; margin-bottom: 18px; }
.quote-card blockquote { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -0.015em; flex: 1; }
.quote-card figcaption { font-size: 13px; color: var(--faint); }
@media (min-width: 960px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Coach */
.coach-grid { display: grid; gap: 40px; align-items: center; }
.coach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; border-radius: var(--r-card); }
.coach-text h2 { margin-bottom: 26px; }
.coach-text p + p:not(.sig) { margin-top: 16px; }
.coach-text p:not(.label):not(.sig) { color: var(--muted-foreground); font-size: 17px; }
.sig { margin-top: 30px; font-weight: 600; }
.sig span { display: block; font-weight: 400; font-size: 14px; color: var(--faint); margin-top: 2px; }
@media (min-width: 960px) { .coach-grid { grid-template-columns: 1fr 1fr; gap: 80px; } .coach-text p:not(.label):not(.sig) { font-size: 19px; } }

/* FAQ */
.faq-wrap { display: grid; gap: 40px; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid rgb(255 255 255 / 0.06); border-radius: 20px; transition: background 0.2s; }
details[open] { background: var(--card-2); }
summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-size: 17px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.07); color: var(--primary); font-size: 18px; transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted-foreground); padding: 0 22px 22px; }
details a { color: var(--primary); }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; } .faq h2 { position: sticky; top: 120px; } }

/* Last ask */
.join { position: relative; margin: 0 var(--gutter) 24px; border-radius: var(--r-card); overflow: hidden; padding: 110px 0 110px; }
@media (min-width: 1240px) { .join { max-width: var(--max); margin: 0 auto 40px; } }
.join-media { position: absolute; inset: 0; }
.join-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.join-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 10 9 / 0.55), rgb(11 10 9 / 0.88)); }
.join-copy { position: relative; }
.fine { margin-top: 56px; font-size: 13px; color: var(--faint); }

/* Footer */
.footer { padding: 36px 0 calc(110px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--faint); }
.footer-inner { display: grid; gap: 18px; }
.footer-logo { height: 16px; width: auto; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: var(--muted-foreground); text-decoration: none; }
.footer a:hover { color: var(--foreground); }
@media (min-width: 960px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } .footer nav { justify-content: center; } }

/* Floating sign-up bar */
.dock {
  position: fixed; z-index: 15; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex; align-items: center; gap: 18px; width: calc(100% - 24px); max-width: 420px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgb(28 27 25 / 0.8); border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
}
.dock.show { transform: translate(-50%, 0); opacity: 1; }
.dock-text { flex: 1; display: grid; line-height: 1.25; font-size: 14px; }
.dock-text span { font-size: 12.5px; color: var(--faint); }

/* Sections rise in (only with JS, and not for reduced motion) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .chip { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-media video { animation: none; transform: none; }
}
@media (max-width: 360px) { .pill-btn { padding: 13px 16px; font-size: 14px; } .signup-step1 input { padding-left: 12px; } }
@media (max-width: 600px) { .join { padding: 76px 0 76px; } .join-copy { padding: 0 12px; } .join .fine { margin-top: 48px; } }
/* After the bento's own sizes: the comparison tile keeps its whole screen, narrower so it fits beside the other two */
@media (min-width: 960px) { .tile-tall .tile-phone.tile-phone-full { height: auto; max-width: 290px; } }
/* Short phone screens (iPhone SE with Safari's bars): a tighter week so the key still shows */
@media (max-width: 959px) and (max-height: 640px) {
  .ws.scrolly .ws-inner { padding-top: 76px; gap: 10px; }
  .ws.scrolly .ws-lines li { font-size: 24px; }
  .ws.scrolly .ws-sub { font-size: 13px; min-height: 0; margin-top: 4px; }
  .ws.scrolly .week-head { margin-bottom: 6px; }
  .ws.scrolly .week-days { gap: 3px; }
  .ws.scrolly .day { min-height: 28px; padding: 2px 8px; }
  .ws.scrolly .chip { font-size: 11px; padding: 3px 8px; }
  .ws.scrolly .week-key { margin-top: 6px; font-size: 11px; }
}
