/* KegelPro — shared stylesheet.
   Palette is lifted verbatim from app/KegelPro/Design/Theme.swift so the site
   and the app read as one product. No imports, no fonts, no external requests.

   Contrast, checked against --bg (#0E1113):
     --text   #F2F6F8  15.0:1   AAA
     --text-2 #9AA8B0   7.8:1   AAA
     --accent #2FD97B  10.2:1   AAA
     --steel  #7C8B93   5.2:1   AA
   Theme.swift's textTertiary (#63727A) is 3.8:1 and therefore is NOT used for
   text anywhere on this site — only for hairlines. */

:root {
  --bg: #0e1113;
  --surface: #171c1f;
  --surface-raised: #1f262a;
  --stroke: #2a3338;
  --hairline: #63727a;
  --accent: #2fd97b;
  --accent-dim: rgba(47, 217, 123, 0.13);
  --steel: #7c8b93;
  --text: #f2f6f8;
  --text-2: #9aa8b0;
  --danger: #e5544b;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1060px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- layout - */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }

.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

h1, h2, h3 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 650; margin-top: 8px; }
h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

hr {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 40px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--stroke);
  border-radius: 5px;
  padding: 1px 6px;
}

/* -------------------------------------------------------------- a11y ----- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { left: 0; }

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

/* ------------------------------------------------------------- header ---- */

.site-header {
  border-bottom: 1px solid var(--stroke);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 68px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--stroke);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -10%;
  height: 520px;
  background: radial-gradient(ellipse at 30% 40%, var(--accent-dim), transparent 62%);
  pointer-events: none;
}

.hero .wrap { position: relative; }
.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 54ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
}
.store-badge .badge-top {
  display: block;
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.store-badge .badge-main { display: block; font-weight: 650; font-size: 1rem; }
.store-badge svg { flex: none; }

.badge-note { color: var(--text-2); font-size: 0.9rem; margin: 0; }

/* ------------------------------------------------------------ features --- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { margin-top: 14px; }
.card p { color: var(--text-2); margin-bottom: 0; font-size: 0.97rem; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
}

/* --------------------------------------------------------- discreet ------ */

.panel {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
  align-items: start;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.checklist li strong { display: block; color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------- form ------ */

.waitlist {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 34px 30px;
  max-width: 620px;
}

.field { margin-bottom: 18px; }

label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }

input[type="email"] {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
}
input[type="email"]::placeholder { color: var(--steel); }
input[type="email"]:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 22px;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.consent label {
  font-weight: 400;
  margin: 0;
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 22px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:disabled {
  background: var(--surface-raised);
  border-color: var(--stroke);
  color: var(--text-2);
  cursor: not-allowed;
}

.form-note {
  color: var(--text-2);
  font-size: 0.86rem;
  margin: 16px 0 0;
}

.status { margin: 16px 0 0; font-size: 0.95rem; }
.status:empty { margin: 0; }
.status[data-state="error"] { color: var(--danger); }
.status[data-state="ok"] { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------- faq ----- */

.faq { max-width: var(--measure); }
.faq h3 { margin-top: 30px; }
.faq p { color: var(--text-2); }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

dl.meta { margin: 0; }
dl.meta dt { font-weight: 600; margin-top: 16px; }
dl.meta dd { margin: 4px 0 0; color: var(--text-2); }

/* ------------------------------------------------------------ footer ----- */

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 0 56px;
  margin-top: 24px;
}

.disclaimer {
  color: var(--text-2);
  font-size: 0.86rem;
  max-width: 74ch;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
  font-size: 0.92rem;
}
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

.copyright { color: var(--text-2); font-size: 0.84rem; margin: 0; }

/* -------------------------------------------------------------- small ---- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .waitlist, .panel { padding: 26px 20px; }
  .site-nav { gap: 16px; font-size: 0.9rem; }
}
