/* FocusTax — Website Styles
   Design system: mirrors the iOS app exactly.
   Colors from AppTheme.swift, JetBrains Mono typography. */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Fonts ─────────────────────────────────────────── */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono@2.304/fonts/webfonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono@2.304/fonts/webfonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono@2.304/fonts/webfonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens (from AppTheme.swift) ──────────────────── */
:root {
  --bg:             #050505;    /* background */
  --surface:        #111113;    /* surface */
  --surface-border: #1e1e22;    /* surfaceBorder / surfaceElevated */
  --text:           #f5f5f5;    /* primaryText */
  --text-secondary: #5a5a66;    /* secondaryText */
  --text-tertiary:  #8a8a99;    /* tertiaryText */
  --stakes:         #ff3b3b;    /* stakes red */
  --stakes-glow:    rgba(255, 59, 59, 0.15);
  --stakes-glow-strong: rgba(255, 59, 59, 0.30);
  --success:        #00d26a;    /* success green */
  --success-glow:   rgba(0, 210, 106, 0.15);
  --radius:         16px;
  --padding-h:      24px;
  --font:           'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ── Base ──────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--stakes); }
img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--padding-h);
}
.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--padding-h);
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--stakes); }
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switcher {
  position: relative;
}
.lang-switcher__toggle {
  background: none;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switcher__toggle:hover {
  color: var(--text);
  border-color: var(--text);
}
.lang-switcher__toggle svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.lang-switcher.open .lang-switcher__toggle svg {
  transform: rotate(180deg);
}
.lang-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  min-width: 80px;
  z-index: 100;
}
.lang-switcher.open .lang-switcher__menu {
  display: block;
}
.lang-switcher__btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
  transition: color 0.15s, background 0.15s;
}
.lang-switcher__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.lang-switcher__btn.active {
  color: var(--text);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 0 80px;
}
.hero__tagline {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__tagline .red { color: var(--stakes); }
.hero__sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 40px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 59, 59, 0.2);
  color: var(--bg);
}
.hero__cta svg { width: 20px; height: 20px; }
.hero__badge {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── Store Buttons ─────────────────────────────────── */
.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 59, 59, 0.2);
}
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn--apple {
  background: var(--text);
  color: var(--bg);
}
.store-btn--apple:hover { color: var(--bg); }
.store-btn--google {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-border);
}
.store-btn--google:hover { color: var(--text); border-color: var(--text-secondary); }
.store-btn__coming {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--stakes-glow);
  color: var(--stakes);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

/* ── Waitlist ──────────────────────────────────────── */
.waitlist {
  margin-top: 40px;
  text-align: center;
}
.waitlist__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.waitlist__form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}
.waitlist__input {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist__input::placeholder { color: var(--text-secondary); }
.waitlist__input:focus { border-color: var(--stakes); }
.waitlist__btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 24px;
  background: var(--stakes);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.waitlist__btn:hover { transform: translateY(-1px); opacity: 0.9; }

/* ── Screenshots ───────────────────────────────────── */
.screenshots-wrap {
  overflow: hidden;
  padding: 40px 0 80px;
}
.screenshots {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--padding-h);
}
.screenshots__track {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.screenshot {
  flex: 0 0 180px;
  text-align: center;
  transition: transform 0.3s, opacity 0.3s;
}
.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.screenshot--hero {
  flex: 0 0 200px;
}
.screenshot--hero img {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 210, 106, 0.08);
}
.screenshot__label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── Features ──────────────────────────────────────── */
.features {
  padding: 80px 0;
}
.features__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stakes);
  margin-bottom: 12px;
  text-align: center;
}
.features__title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 64px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-border);
  border-radius: 10px;
}
.feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works ──────────────────────────────────── */
.how {
  padding: 80px 0;
}
.how__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stakes);
  margin-bottom: 12px;
  text-align: center;
}
.how__title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 64px;
}
.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.how__step {
  text-align: center;
  counter-increment: step;
}
.how__step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: var(--stakes-glow);
  color: var(--stakes);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 59, 59, 0.3);
}
.how__step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.how__step-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Stakes Banner ─────────────────────────────────── */
.stakes-banner {
  padding: 80px 0;
  text-align: center;
}
.stakes-banner__amount {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  color: var(--stakes);
  text-shadow:
    0 0 40px rgba(255, 59, 59, 0.3),
    0 0 80px rgba(255, 59, 59, 0.15);
  margin-bottom: 8px;
  line-height: 1;
  transition: opacity 0.4s ease;
}
.stakes-banner__sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Privacy Strip ─────────────────────────────────── */
.privacy-strip {
  padding: 64px 0;
  border-top: 1px solid var(--surface-border);
}
.privacy-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.privacy-strip__item-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
}
.privacy-strip__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.privacy-strip__item-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.privacy-strip__item-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ── Privacy Policy Page ───────────────────────────── */
.policy {
  padding: 80px 0 120px;
}
.policy__title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.policy__updated {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.policy h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}
.policy p, .policy li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.policy ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.policy a {
  color: var(--stakes);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FAQ Page ──────────────────────────────────────── */
.faq-section {
  margin-bottom: 48px;
}
.faq-section__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stakes);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(255, 59, 59, 0.2);
}
.faq-item__q {
  font-size: 14px;
  font-weight: 700;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: color 0.2s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; content: ""; }
.faq-item__q::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-item__q::after {
  content: "\2212";
  color: var(--stakes);
}
.faq-item__q:hover { color: var(--text); }
.faq-item__a {
  padding: 0 24px 20px;
}
.faq-item__a p {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 10px;
}
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__a ol, .faq-item__a ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.faq-item__a li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 4px;
}
.faq-item__a a {
  color: var(--stakes);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .screenshot { flex: 0 0 150px; }
  .screenshot--hero { flex: 0 0 165px; }
  .screenshot img { border-radius: 20px; }
}
@media (max-width: 768px) {
  .screenshots__track { gap: 12px; }
  .screenshot { flex: 0 0 130px; }
  .screenshot--hero { flex: 0 0 140px; }
  .screenshot img { border-radius: 18px; }
  .screenshot__label { font-size: 10px; }
  .features__grid { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .privacy-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer { flex-direction: column; gap: 24px; text-align: center; }
  .hero { padding: 60px 0 40px; }
  .nav__links { gap: 20px; }
}
@media (max-width: 520px) {
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 300px; justify-content: center; }
  .waitlist__form { flex-direction: column; }
  .waitlist__btn { width: 100%; }
  .screenshots-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .screenshots__track { justify-content: flex-start; padding: 0 var(--padding-h); width: max-content; }
  .screenshot { flex: 0 0 140px; }
  .screenshot--hero { flex: 0 0 155px; }
}
@media (max-width: 480px) {
  .how__steps { grid-template-columns: 1fr; }
  .privacy-strip__grid { grid-template-columns: 1fr; }
  .nav__right { gap: 12px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 11px; }
  .screenshot { flex: 0 0 120px; }
  .screenshot--hero { flex: 0 0 135px; }
  .screenshot img { border-radius: 14px; }
}
