/* swingslicer.com: same look as the app (web/src/styles.css). Dark, sky blue + trophy gold,
   Anton headlines, Space Grotesk wordmark, JetBrains Mono for data, Inter for reading. */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(assets/fonts/anton-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(assets/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(assets/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #0b0c10;
  --surface: #14161c;
  --line: #262a33;
  --text: #f2f3f5;
  --soft: #b6bbc6;
  --muted: #9aa0ad;
  --blue: #5cd6ff;
  --gold: #ffc83d;
  --rec: #ff3b5c;
  --danger: #ff8a8a;
  --on-accent: #0b0c10;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --brandface: "Space Grotesk", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* or `display: grid` rules would beat the hidden attribute */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .92; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 18px; }
h3 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .01em; text-transform: uppercase; line-height: 1.05; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.eyebrow { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.fine { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: #8b8f9c; margin: 12px 0 0; }
.fine.error { color: var(--danger); }
.blue { color: var(--blue); }
.gold { color: var(--gold); }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); flex: none; }

/* width lives in margins so every border lines up with the text */
main > section, .nav, .foot { width: min(calc(100% - 2 * var(--pad)), calc(var(--wrap) - 2 * var(--pad))); margin-left: auto; margin-right: auto; }
main > section { padding-top: clamp(56px, 9vw, 104px); }
main > section.timeline-panel { padding-top: 0; }

/* ---------- logo + nav */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 22px/1 var(--brandface); letter-spacing: -0.02em; }
.logo { position: relative; width: 40px; height: 40px; border-radius: 11px; background: var(--blue); overflow: hidden; flex: none; display: block; }
.logo i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font: 700 28px/1 var(--brandface); color: var(--on-accent); }
.logo i:first-child { clip-path: polygon(0 0, 100% 0, 100% 34%, 0 62%); transform: translate(2px, -1.5px); }
.logo i:last-child { clip-path: polygon(0 67%, 100% 39%, 100% 100%, 0 100%); }
.brand.small { font-size: 18px; gap: 10px; }
.brand.small .logo { width: 28px; height: 28px; border-radius: 8px; }
.brand.small .logo i { font-size: 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.nav-cta { font: 600 15px var(--sans); color: var(--on-accent); background: var(--blue); text-decoration: none; padding: 12px 20px; border-radius: 10px; }
.nav-cta:hover { filter: brightness(1.08); }

/* ---------- hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding-top: clamp(24px, 5vw, 56px) !important; }
.rec-chip { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--mono); color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; margin: 0 0 22px; }
h1 { font-size: clamp(56px, 8.6vw, 116px); line-height: .9; margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
h1 .sliced { margin-top: .1em; }
/* "SLICED." literally sliced: blue upper half nudged along the cut, gold lower half */
.sliced { position: relative; display: inline-block; color: transparent; }
.sliced::before, .sliced::after { content: attr(data-text) / ""; position: absolute; inset: 0; }
.sliced::before { color: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 36%, 0 62%); transform: translate(.07em, -.06em); }
.sliced::after { color: var(--gold); clip-path: polygon(0 67%, 100% 41%, 100% 100%, 0 100%); }
@supports not (clip-path: polygon(0 0, 1px 0, 1px 1px)) { .sliced { color: var(--blue); } .sliced::before, .sliced::after { display: none; } }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--soft); max-width: 31em; margin-bottom: 28px; }

.field { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; max-width: 520px; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(92, 214, 255, .18); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px; font: 16px var(--sans); color: var(--text); outline: none; }
.field input::placeholder { color: #6b7180; }
.field button, .questions button, .share button {
  border: 0; cursor: pointer; border-radius: 10px; padding: 13px 22px; min-height: 48px;
  background: var(--blue); color: var(--on-accent); font: 600 15px var(--sans); white-space: nowrap;
}
.field button:hover { filter: brightness(1.08); }
.field button:disabled { opacity: .6; cursor: progress; }
button.secondary { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
button.secondary:hover { background: rgba(92, 214, 255, .08); }

.phone-wrap { margin: 0; justify-self: center; width: min(310px, 80vw); }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #000;
  border: 8px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(92, 214, 255, .25); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.hud-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.clip-tag { background: var(--blue); color: var(--on-accent); font: 400 16px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; }
.timecode { display: inline-flex; align-items: center; gap: 6px; background: rgba(11, 12, 16, .72); color: var(--text); font: 600 11px var(--mono); padding: 5px 8px; border-radius: 6px; }
.timecode .rec { width: 6px; height: 6px; }
.wave { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 40px; display: flex; align-items: center; gap: 2px; padding: 0 10px;
  background: rgba(11, 12, 16, .72); border-radius: 10px; pointer-events: none; }
.wave span { flex: 1; background: #5b606c; border-radius: 1px; }
.wave span.hit { background: var(--blue); }
.phone-wrap figcaption { font: 12px/1.5 var(--mono); color: #8b8f9c; text-align: center; margin-top: 14px; }

/* ---------- the real session timeline */
.timeline-panel { margin-top: clamp(40px, 6vw, 64px) !important; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px 22px 16px !important; }
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 12px var(--mono); color: var(--muted); }
.tl-head b { font-weight: 600; }
.key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); margin: 0 4px 0 10px; vertical-align: -1px; }
.key.short { background: var(--gold); }
.tl-track { position: relative; height: 48px; margin-top: 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.tl-tick { position: absolute; top: 7px; bottom: 7px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); }
.tl-tick.short { top: 19px; background: var(--gold); }
.tl-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 11px var(--mono); color: #8b8f9c; }
.tl-note { margin: 14px 0 0; color: var(--soft); font-size: 15px; }

/* ---------- how / features */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.num { display: block; font: 600 13px var(--mono); color: var(--blue); margin-bottom: 12px; }
.steps p, .grid p { color: var(--soft); font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 14px; }

/* ---------- join */
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 56px); max-width: 760px; margin: 0 auto; }
.join-card > div > p { color: var(--soft); max-width: 36em; }
.join-card .signup { margin-top: 24px; }
.join-card .field { background: var(--bg); }
.questions { margin-top: 24px; display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; cursor: pointer; }
.chips input:checked + span { background: var(--blue); color: var(--on-accent); border-color: var(--blue); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.handle span { display: block; font-weight: 600; margin-bottom: 8px; }
.handle input { width: 100%; max-width: 320px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: 16px var(--sans); background: var(--bg); color: var(--text); }
.handle input:focus { outline: none; border-color: var(--blue); }
.questions > button { justify-self: start; }
.share { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.share p { color: var(--soft); }
.share .field { margin: 16px 0 12px; background: var(--bg); }
.share .field input { font: 14px var(--mono); color: var(--blue); }
[data-position] { color: var(--text); }

/* ---------- faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 760px; }
.faq summary { cursor: pointer; font: 600 19px/1.3 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font: 400 22px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--soft); margin: 10px 0 0; max-width: 40em; }

/* ---------- footer */
.foot { margin-top: clamp(64px, 10vw, 120px); padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--blue); }
.foot .fine { margin: 0 0 0 auto; }
.foot .fine a { color: var(--muted); }

/* ---------- small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .steps, .grid { grid-template-columns: 1fr; }
  .foot .fine { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .field { flex-direction: column; }
  .field button { width: 100%; }
  .nav-cta { font-size: 14px; padding: 10px 14px; }
  .brand { font-size: 19px; }
  .tl-scale span:nth-child(2), .tl-scale span:nth-child(4) { display: none; }
}
.fine.consent { margin-top: 4px; opacity: .8; }
