/* Kegel Hero site. Tokens from design/DESIGN-BRIEF.md. No web fonts, no scripts. */
:root {
  color-scheme: dark;
  --bg: #0A0A1A;
  --card: #191927;
  --hold: #21D4ED;
  --calm: #8C7AF5;
  --gold: #FFC733;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.10);
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
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(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: 12px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--rounded); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.eyebrow { font-family: var(--rounded); font-weight: 700; color: var(--hold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 0.75em; }

/* Header */
.site-header { padding: 16px 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--rounded); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-weight: 600; padding: 10px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 48px; }
.hero .app-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 24px; box-shadow: 0 8px 32px rgba(33, 212, 237, 0.25); }
.lede { font-size: 1.2rem; color: var(--text-2); max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.facts li { background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; font-weight: 600; }
.soon { display: inline-block; font-family: var(--rounded); font-weight: 900; text-transform: uppercase; background: var(--hold); color: var(--bg); border-radius: 12px; padding: 14px 22px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 1fr; padding-top: 72px; } }

/* The circle: shrinks to squeeze, grows to let go. 10 s cycle = one 5 s hold + 5 s rest. */
.circle { position: relative; width: min(360px, 82vw); aspect-ratio: 1; margin: 0 auto 56px; }
.circle .ring, .circle .target { position: absolute; border-radius: 50%; }
.circle .ring { inset: 0; border: 2px solid var(--line); }
.circle .target { inset: 31%; border: 1.5px dashed rgba(33, 212, 237, 0.45); }
.circle .orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: url(img/orb.png) center / cover;
  box-shadow: 0 0 60px rgba(33, 212, 237, 0.55);
  animation: squeeze 10s infinite;
}
/* Cue words sit under the circle, on the page background, so they always have full contrast. */
.circle .cue { position: absolute; left: 0; right: 0; top: calc(100% + 16px); text-align: center; font-family: var(--rounded); font-weight: 900; font-size: 1.1rem; letter-spacing: 0.06em; }
.cue-squeeze { color: var(--hold); animation: show-first 10s infinite; }
.cue-relax { color: var(--text); opacity: 0; animation: show-second 10s infinite; }

@keyframes squeeze {
  0%   { transform: scale(1); filter: brightness(0.42); animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
  14%  { transform: scale(0.38); filter: brightness(1); }
  50%  { transform: scale(0.38); filter: brightness(1); animation-timing-function: ease-in-out; }
  64%  { transform: scale(1); filter: brightness(0.42); }
  82%  { transform: scale(1.04); filter: brightness(0.48); }
  100% { transform: scale(1); filter: brightness(0.42); }
}
@keyframes show-first  { 0%, 50% { opacity: 1; } 53%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes show-second { 0%, 50% { opacity: 0; } 53%, 97% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .circle .orb, .circle .cue { animation: none; }
  .circle .orb { transform: scale(0.38); }
  .cue-squeeze { opacity: 1; }
}

/* Session steps */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 32px 0 0; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; }
.steps img { border-radius: 24px; border: 1px solid var(--line); margin-bottom: 16px; }
.steps h3::before { content: counter(step) ". "; color: var(--hold); }
.steps p { color: var(--text-2); font-size: 0.95rem; }
.note { background: var(--card); border-radius: 28px; padding: 20px 24px; margin-top: 32px; }
.note p:last-child { margin: 0; }

/* Plan */
.table-scroll { overflow-x: auto; margin: 24px 0 12px; border-radius: 28px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
thead th { color: var(--text-2); font-weight: 600; font-size: 0.9rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-family: var(--rounded); font-weight: 700; }

.grid-2 { display: grid; gap: 24px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border-radius: 28px; padding: 24px; }
.card h3 { margin-bottom: 0.75em; }
.card ul { margin: 0; padding-left: 1.2em; }
.card li + li { margin-top: 0.5em; }
.card.calm h3 { color: var(--calm); }
.card.gold h3 { color: var(--gold); }

.sources-title { margin-top: 40px; }
.sources { padding-left: 1.2em; }
.sources li + li { margin-top: 0.6em; }
.sources span { display: block; color: var(--text-2); font-size: 0.95rem; }

/* Price */
.price { text-align: center; }
.price .big { font-family: var(--rounded); font-weight: 900; font-size: clamp(3.5rem, 14vw, 6rem); color: var(--gold); line-height: 1; margin: 8px 0 16px; }
.price .small { margin-top: 24px; font-size: 0.9rem; }
.price ul { list-style: none; padding: 0; display: grid; gap: 8px; max-width: 30em; margin: 24px auto 0; }

/* FAQ */
details { background: var(--card); border-radius: 20px; padding: 0 24px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; padding: 18px 0; font-family: var(--rounded); font-weight: 700; font-size: 1.1rem; list-style-position: outside; }
details[open] summary { padding-bottom: 8px; }
details > :last-child { padding-bottom: 18px; margin-bottom: 0; }
details p { color: var(--text-2); }

/* Safety */
.safety { border: 2px solid var(--gold); border-radius: 28px; padding: 24px; }
.safety h2 { color: var(--gold); }
.safety ul { padding-left: 1.2em; margin: 0; }
.safety li + li { margin-top: 0.6em; }

/* Plain text pages */
.doc { max-width: 42em; padding: 48px 0 64px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 0.6em; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--text-2); font-size: 0.9rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0 0 12px; }
.site-footer a { color: var(--text-2); }
.doc .card { margin: 24px 0 8px; }
.doc .flush { margin-top: 0; }
.brand { white-space: nowrap; }
@media (max-width: 479px) { .nav-extra { display: none; } }
