/* StudyTriage Marketing Site — shared styles
   Brand (matches app Colors.ts): primary #0F766E · secondary #0284C7 · accent #0D9488
   Calm clinic / One Medical style — slate neutrals, deep teal trust, soft borders */

:root {
  --primary: #0F766E;
  --primary-soft: #CCFBF1;
  --primary-muted: #99F6E4;
  --secondary: #0284C7;
  --secondary-soft: #E0F2FE;
  --accent: #0D9488;
  --accent-soft: #F0FDFA;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --card: #FFFFFF;

  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-on-primary: #FFFFFF;

  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --muted: #F1F5F9;
  --overlay: rgba(15, 23, 42, 0.45);

  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --warning: #D97706;
  --warning-soft: #FFFBEB;
  --success: #059669;
  --success-soft: #ECFDF5;

  /* Aliases for existing component class names */
  --bg-soft: var(--primary-soft);
  --border-subtle: var(--border);
  --text-soft: var(--text-muted);
  --primary-dark: #0D5F59;
  --primary-light: var(--accent);

  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);

  --radius: 12px;
  --radius-lg: 16px;
  --max: 1100px;
  --nav-h: 64px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* —— Layout —— */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--alt {
  background: var(--surface);
}

.section--soft {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 55%, var(--surface) 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--muted);
}

a.btn.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #E2E8F0;
  cursor: pointer;
  padding: 11px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 767px) {
  a.btn.nav-cta {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--border);
  list-style: none;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
}

.nav-mobile a:hover {
  background: var(--muted);
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  a.btn.nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 118, 110, 0.12);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-on-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.btn-secondary {
  background: var(--surface);
  color: var(--secondary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--secondary-soft);
  color: var(--secondary);
  border-color: #BAE6FD;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--muted);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* —— Hero —— */
.hero {
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 55%, var(--accent-soft) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -8%;
  width: 48%;
  height: 65%;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(2, 132, 199, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

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

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* App mock / visual card */
.hero-visual {
  position: relative;
}

.mock-phone {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  max-width: 340px;
  margin: 0 auto;
}

.mock-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.mock-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mock-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.mock-brief {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--secondary-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.mock-brief h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.mock-brief p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
}

.mock-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--muted);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.mock-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.mock-badge--school {
  background: var(--secondary-soft);
  color: #0369A1;
}

.mock-badge--clinical {
  background: var(--success-soft);
  color: var(--success);
}

.mock-badge--task {
  background: var(--warning-soft);
  color: var(--warning);
}

.mock-item time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* —— Problem —— */
.problem-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.problem-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.problem-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* —— Features —— */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.feature-card .note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* —— How it works —— */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-primary);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* —— Personas —— */
.persona-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.persona-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.persona-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.persona-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.persona-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.persona-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text);
}

.persona-card li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.persona-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* —— Testimonials (placeholders) —— */
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px dashed var(--border);
  box-shadow: none;
}

.testimonial blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.testimonial .sample-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.sample-notice {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* —— FAQ —— */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: var(--muted);
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item .faq-body p + p {
  margin-top: 0.75rem;
}

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #0D5F59 55%, #0369A1 100%);
  color: var(--text-on-primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.cta-band p {
  opacity: 0.92;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.cta-band .btn-primary:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.cta-band .btn-group {
  justify-content: center;
}

/* App Store badge placeholder */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0F172A;
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.2;
  border: 1px solid #1E293B;
}

.store-badge:hover {
  color: #fff;
  background: #1E293B;
}

.store-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.store-badge .apple-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* —— Footer —— */
.site-footer {
  background: #0F172A;
  color: rgba(248, 250, 252, 0.78);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: #F8FAFC;
  margin-bottom: 0.75rem;
}

.footer-brand .logo-mark {
  background: var(--primary);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 260px;
}

.footer-col h4 {
  color: #F8FAFC;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-disclaimer {
  margin-bottom: 1rem;
  max-width: 720px;
  line-height: 1.55;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* —— Legal / content pages —— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

.legal-content a.btn {
  text-decoration: none;
}

.legal-content a.btn-primary {
  color: var(--text-on-primary);
}

.legal-content a.btn-secondary,
.legal-content a.btn-ghost {
  color: inherit;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--muted);
  color: var(--text);
  font-weight: 600;
}

.legal-content td {
  background: var(--surface);
  color: var(--text-secondary);
}

.notice-box {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.notice-box--warn {
  background: var(--warning-soft);
  border-color: #FDE68A;
}

.notice-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Support page extras */
.contact-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 600px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.troubleshoot-list {
  list-style: none;
  padding: 0;
}

.troubleshoot-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.troubleshoot-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* Disclaimer banner */
.disclaimer-bar {
  background: var(--warning-soft);
  border-bottom: 1px solid #FDE68A;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #92400E;
  white-space: normal;
  overflow-wrap: anywhere;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}

.disclaimer-bar a {
  color: #B45309;
  text-decoration: underline;
}

/* Coming soon pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* —— Coming-soon public home —— */
.page-coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-coming-soon .site-footer {
  margin-top: auto;
}

.cs-hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  width: 100vw;
  max-width: 100vw;
  background:
    radial-gradient(1200px 420px at 50% -10%, var(--primary-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 55%, var(--surface) 100%);
  text-align: center;
}

.cs-hero-inner {
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.cs-lockup {
  display: block;
  width: min(340px, calc(100vw - 2.5rem));
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
}

.cs-hero h1 {
  font-size: clamp(1.7rem, 7vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}

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

.cs-hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  overflow-wrap: break-word;
}

.cs-hero .hero-meta {
  justify-content: center;
}

.cs-waitlist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.25rem 1.2rem;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}

.cs-waitlist-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.cs-waitlist-copy {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cs-waitlist-row {
  display: grid;
  gap: 0.65rem;
}

.cs-waitlist-row input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}

.cs-waitlist-row input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
  border-color: var(--secondary);
}

.cs-waitlist-row .btn {
  width: 100%;
}

.cs-waitlist-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 639px) {
  .cs-hero {
    padding: 1.5rem 0 2.25rem;
  }

  .cs-hero .hero-sub {
    font-size: 1.02rem;
    padding: 0 0.15rem;
  }

  .cs-waitlist {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 640px) {
  .cs-waitlist {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .cs-waitlist-row {
    grid-template-columns: 0.9fr 1.2fr auto;
    align-items: stretch;
  }

  .cs-waitlist-row .btn {
    width: auto;
    white-space: nowrap;
  }
}

.cs-pillars {
  padding-top: 3rem;
}

.cs-pillar-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .cs-pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cs-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.cs-pillar h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cs-pillar p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.cs-footer-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cs-footer-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}
