/* AnkiTov Landing - Refined System-UI Stylesheet */
:root {
  --bg: #1e2823;
  --bg-subtle: #232d27;
  --card-bg: #263230;
  --ink: #d9e2db;
  --ink-secondary: #9db0a4;
  --ink-muted: #86a093;
  --accent: #2e8b57;
  --accent-dark: #4fc98a;
  --accent-light: #243128;
  --border: #34423a;
  --border-subtle: #2c3831;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.45), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding-inline: 1.25rem;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-block: 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-accent {
  color: var(--accent);
}

.lang {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover:not(.is-active) {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #062b1a;
  font-weight: 700;
}

/* Main Layout */
main {
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Typography & Base Elements */
h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}


  .eyebrow {
    color: var(--accent-dark);
  }


.section-head {
  text-align: center;
  max-width: min(92%, 58rem);
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.15rem, 2.0vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Buttons & Links */
.hero-cta, .cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trial {
  margin-top: 1rem;
  font-size: .95rem;
}
.hero-trial a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dark); /* AA 7.35:1 with #062b1a; --accent gave 3.6:1 */
  color: #062b1a;
  font-weight: 700;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.cta-primary:hover {
  filter: brightness(1.08); /* keeps #062b1a text ≥7:1; the old white-on-accent-dark hover was ~2.2:1 */
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.cta-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}

.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.lang-btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: 4.5rem 4rem;
}

.hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.0rem, 4vw, 2.75rem);
  font-weight: 800;
}

.accent-text {
  color: var(--accent-dark);
}


  .accent-text {
    color: var(--accent);
  }


.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 36rem;
  line-height: 1.6;
}

/* Hero Flashcard Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-bg-2 {
  position: absolute;
  inset: 0;
  width: 90%;
  height: 94%;
  margin: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transform: rotate(5deg) translateY(12px) translateX(12px);
  opacity: 0.35;
  box-shadow: var(--shadow-md);
  z-index: 1;
  pointer-events: none;
}

.card-bg-1 {
  position: absolute;
  inset: 0;
  width: 95%;
  height: 97%;
  margin: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transform: rotate(-2.5deg) translateY(6px) translateX(-6px);
  opacity: 0.65;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  pointer-events: none;
}

.card-main {
  position: relative;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.08);
}

.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fc-deck-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-secondary);
}

.fc-due-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 999px;
}


  .fc-due-badge {
    color: #34d399;
  }


.fc-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
}

.fc-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.fc-question {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.fc-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-block: 0.35rem;
  opacity: 0.6;
}

.fc-answer {
  font-size: 0.925rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.fc-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fc-rating-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
}

.fc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fc-btn-time {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 0.125rem;
}

.fc-btn-again:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.fc-btn-hard:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.fc-btn-good:hover {
  background: #dcfce7;
  border-color: var(--accent);
  color: #065f46;
}

.fc-btn-easy:hover {
  background: #e0e7ff;
  border-color: #6366f1;
  color: #3730a3;
}


  .fc-btn-again:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fca5a5;
  }
  .fc-btn-hard:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fcd34d;
  }
  .fc-btn-good:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--accent);
    color: #6ee7b7;
  }
  .fc-btn-easy:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #a5b4fc;
  }


/* Section Containers */
section {
  padding-block: 4rem;
  border-top: 1px solid var(--border);
}

/* Why Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.why-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.why-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Answer Section */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works Section */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-dark); /* AA with #062b1a text */
  color: #062b1a;
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.step code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 0.15em 0.35em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Install Section */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.install-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.install-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.install-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.install-card p {
  margin: 0 0 1.25rem;
  color: var(--ink-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
  flex-grow: 1;
}

.install-cmd {
  display: block;
  background: #131c17;
  color: #38bdf8;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.install-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.15s ease;
}

.install-link:hover {
  color: var(--accent);
  text-decoration: underline;
}


  .install-link {
    color: var(--accent-dark);
  }


/* Downloads block (T-201): OS-aware proposal + full platform list */
.dl-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.dl-primary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
}

.dl-alt-link {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.dl-alt-link:hover {
  color: var(--ink);
}

.dl-alt-link[hidden] {
  display: none;
}

.dl-all-label {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.dl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: center;
}

.dl-list a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dl-list a:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.dl-list li.dl-you a {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  font-weight: 600;
}

.dl-verify {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.dl-verify a {
  color: var(--ink-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-verify a:hover {
  color: var(--ink);
}

/* Privacy Section */
.privacy {
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
  margin-block: 2rem;
}

.privacy-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

.privacy-content h2 {
  text-align: center;
  font-size: clamp(1.15rem, 2.0vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.privacy-statement {
  text-align: center;
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.privacy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.privacy-feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.privacy-feature h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.privacy-feature p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* Final CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  text-align: center;
  margin-block: 3rem;
}

.cta-section h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-section .cta-actions {
  justify-content: center;
  gap: 1.25rem;
}

.cta-primary.large, .cta-secondary.large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-align: center;
}


.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-social-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  letter-spacing: 0.01em;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

.footer-social-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--ink-secondary);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

.footer-note {
  font-size: 0.8125rem;
  margin-top: 0.75rem !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .why-grid, .install-grid, .privacy-features {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lang {
    justify-content: flex-start;
  }

  .feature-grid, .steps {
    grid-template-columns: 1fr;
  }

  .hero-cta, .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-primary, .cta-secondary {
    width: 100%;
  }

  .privacy {
    padding: 2.5rem 1.25rem;
  }

  .cta-section {
    padding: 3rem 1.25rem;
  }
}

/* Keep all heading/title sentences on a single line on desktop/tablet, while allowing natural wrap on small mobile */
@media (min-width: 641px) {
  h1, h2, h3 { text-wrap: balance; white-space: nowrap; }
}
@media (max-width: 640px) {
  h1, h2, h3 { text-wrap: balance; }
}

/* ── Teaser video section (self-hosted, no third-party) ─────────────── */
.teaser {
  padding: 4.5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.teaser .section-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.teaser-video {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.teaser-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
