/* ===================================================
   OtoCoach Driver — Shared Stylesheet
   =================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg:           #050816;
  --surface:      #0B1020;
  --card:         #111827;
  --accent:       #3B82F6;
  --accent-hover: #2563EB;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --border:       #1F2937;
  --max-prose:    760px;
  --max-wide:     1100px;
  --radius:       8px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

/* ---------- Base ---------- */
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1em;
}

p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1em;
}

li { margin-bottom: 0.35em; }

strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand:hover { text-decoration: none; color: var(--text-primary); }

.nav-brand .brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}

.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

.nav-links a.active { color: var(--text-primary); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.page-header .meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 0.75rem;
}

/* ---------- Legal Content ---------- */
.legal-body {
  padding-bottom: 5rem;
}

.legal-section {
  margin-bottom: 2.75rem;
}

.legal-section h2 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-section ul,
.legal-section ol {
  margin-bottom: 1em;
}

/* ---------- Home Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ---------- Trust Pills ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 3.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-pill .check {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Links Grid (Home) ---------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.link-card:hover {
  border-color: var(--accent);
  background: #131f35;
  text-decoration: none;
}

.link-card-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.link-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.link-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.link-card-arrow {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- Product Description Section ---------- */
.description-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin: 3rem 0;
  text-align: center;
}

.description-section p {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Support Page ---------- */
.support-body {
  padding-bottom: 5rem;
}

.support-email-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.support-email-block .label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0;
  display: block;
  margin-bottom: 0.25rem;
}

.support-email-block a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.support-topics {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.support-topics h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.support-topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.support-topics li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.support-topics li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.info-box p {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- Account Deletion Page ---------- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.steps-list li:last-child { border-bottom: none; }

.steps-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 0.1rem;
}

.deletion-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.deletion-note h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.deletion-note p {
  font-size: 0.9375rem;
  margin-bottom: 0.75em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin: 0;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .trust-row {
    gap: 0.5rem;
  }

  .trust-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .support-topics ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}
