/* Comeback site: the same look as the app (dark, brand green, Barlow, the slash from the icon). */
:root {
  --bg: #0B0D0F;
  --surface: #15181C;
  --surface-2: #1E2228;
  --border: #2A2F36;
  --text: #FFFFFF;
  --muted: #A3ACB7;
  --subtle: #858E99;
  --accent: #3DFF7A;
  --on-accent: #05230F;
  --pitch: #5CC596;
  --academic: #5AA5FF;
  --athletic: #FF9F43;
  --ember: #FFB020;
  --danger: #FF6B6F;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Type */
.disp {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--kicker, var(--accent));
  margin: 0 0 18px;
}
.kicker::before {
  content: ''; width: 5px; height: 16px; border-radius: 1px;
  background: currentColor; transform: skewX(-20deg);
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 6px; border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 700; font-style: italic; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #6BFF9A; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 13, 15, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 30px;
  color: var(--accent); text-decoration: none; text-transform: uppercase; line-height: 1; letter-spacing: 0;
}
nav.links { display: flex; gap: 30px; }
nav.links a {
  font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; color: var(--muted);
}
nav.links a:hover { color: var(--text); }
.nav-inner .btn { min-height: 44px; padding: 0 18px; font-size: 17px; }

/* Cards: tab on the top edge, like the app */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px;
}
.card.tabbed::before {
  content: ''; position: absolute; top: -1px; left: 24px; width: 40px; height: 4px;
  border-radius: 0 0 2px 2px; background: var(--tab, var(--accent)); transform: skewX(-24deg);
}

/* Phone frame */
.phone {
  width: 290px; border-radius: 38px; overflow: hidden; flex-shrink: 0;
  border: 9px solid #1E2228; background: #1E2228;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px #2A2F36;
}
.phone img { width: 100%; height: auto; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 64px 0 36px; color: var(--subtle); background: #090A0C; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.foot-brand p { max-width: 36ch; font-size: 15px; margin: 14px 0 0; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h2 { font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--subtle); margin: 0 0 14px; }
.foot-col a { display: block; font-size: 15px; color: var(--text); text-decoration: none; margin-bottom: 10px; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Document pages (support, privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; }
.doc h1 { font-size: clamp(44px, 7vw, 68px); margin-bottom: 18px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; margin: 52px 0 14px; line-height: 1.1; }
.doc h3 { font-family: var(--body); font-weight: 700; font-size: 19px; margin: 30px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc a { color: var(--accent); }
.doc .meta { color: var(--subtle); font-size: 15px; }
.notice { margin: 28px 0; }
.notice p { margin: 0 0 8px; color: var(--text); }
.notice p:last-child { margin-bottom: 0; }
.email-box { margin: 28px 0 8px; }
.email-box a { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 26px; text-decoration: none; }

/* Small app pages (password reset, shared progress) */
body.app-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.app-page .wrap { width: 100%; max-width: 420px; padding: 0; }
.app-page .kicker { display: flex; justify-content: center; margin-bottom: 10px; }
.app-page h1 { font-size: 40px; text-align: center; margin: 0 0 26px; }
.app-page .card { padding: 26px; }
.app-page label { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.app-page input {
  width: 100%; font-family: var(--body); font-size: 17px; padding: 14px; border-radius: 6px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text); margin-bottom: 16px;
}
.app-page input:focus { border-color: var(--accent); outline: none; }
.app-page button {
  width: 100%; min-height: 52px; border-radius: 6px; border: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 700; font-style: italic; font-size: 19px; text-transform: uppercase; letter-spacing: 0.05em;
}
.app-page button:disabled { opacity: 0.5; }
.app-page .err { color: var(--danger); font-size: 15px; margin-top: 12px; text-align: center; }
.app-page .note { text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.app-page .success { text-align: center; }
.app-page .success .title { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; margin: 0 0 10px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  nav.links { display: none; }
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .doc { padding: 44px 20px 72px; }
  .phone { width: 250px; border-radius: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
