/* Meet Day — Editorial Competition-Scoreboard Design System */
:root {
  --bg: #0b0b0e;
  --surface: #141419;
  --surface-elevated: #1c1c24;
  --accent: #f25926;
  --accent-soft: #ff8c33;
  --success: #33c773;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.74);
  --text-muted: rgba(255, 255, 255, 0.54);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 95% 0%, rgba(242, 89, 38, 0.13), transparent),
    radial-gradient(ellipse 55% 40% at 5% 100%, rgba(255, 140, 51, 0.06), transparent);
  min-height: 100vh;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 11, 14, 0.84);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; display: block; }
.logo span { color: var(--accent-soft); }

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 6px 24px rgba(242, 89, 38, 0.30);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(242, 89, 38, 0.42);
}

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 2.75rem);
  align-items: center;
}

@media (min-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(2rem, 4vw, 3.25rem);
  }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
}

.hero h1 em { font-style: normal; color: var(--accent-soft); }

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Hero device showcase — layered Apple frames (scripts/export_hero_device_screenshots.py) */
.hero-showcase {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  margin-inline: auto;
}

@media (min-width: 1040px) {
  .hero-showcase {
    justify-self: end;
    margin-inline: 0;
    width: min(100%, 500px);
  }
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -8% -10%;
  background: radial-gradient(circle at 55% 42%, rgba(242, 89, 38, 0.26), transparent 72%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.hero-stage {
  position: relative;
  z-index: 1;
  min-height: clamp(380px, 78vw, 520px);
  margin: 0;
  overflow: visible;
}

.hero-layer {
  display: block;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.58));
}

.hero-layer--ipad {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 72%;
  max-width: 330px;
  z-index: 1;
}

.hero-layer--iphone {
  position: absolute;
  top: 0;
  left: 4%;
  width: 44%;
  max-width: 200px;
  z-index: 2;
}

.hero-layer--duo {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  width: 102%;
  max-width: 500px;
  z-index: 3;
  border-radius: 16px;
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.device-frame {
  position: relative;
  z-index: 1;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.68),
    0 2px 12px rgba(0, 0, 0, 0.45);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
  background: #0b0b0e;
}

/* Sections */
section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 44rem;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 0 2.75rem;
}

/* Numbered Editorial Feature Matrix (no emoji cards) */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

.feature-cell {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-cell:nth-child(even) {
  padding-left: 2.25rem;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.feature-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 0.6rem;
}

.feature-cell h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.feature-cell p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-strong);
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.step h3 { font-size: 1.05rem; margin: 0 0 0.45rem; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--text-secondary); }

/* 4-Tier Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.tier.featured {
  background: linear-gradient(180deg, rgba(242, 89, 38, 0.12), var(--surface));
  border-color: rgba(255, 140, 51, 0.55);
}

.tier-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.tier.featured .tier-tag { color: var(--accent-soft); }

.tier h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.tier-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.25rem 0 1.25rem;
}

.tier-list {
  list-style: none;
  padding: 1rem 0 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
  flex: 1;
}

.tier-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  display: flex;
  gap: 0.5rem;
}

.tier-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.tier .btn { width: 100%; }

.pricing-footnote {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Editorial Hairline FAQ */
.faq-list {
  border-top: 1px solid var(--border);
  max-width: 48rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.025rem;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 1.2rem;
}

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

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 42rem;
}

/* Subpages (Privacy / Support) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 42rem;
}

.prose { max-width: 44rem; margin-bottom: 4rem; }

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.25rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.prose p, .prose li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.prose ul { padding-left: 1.25rem; }

.contact-block {
  border-top: 1px solid var(--border-strong);
  padding: 2rem 0 4rem;
  max-width: 44rem;
}

/* Footer */
.site-footer {
  padding: 2.75rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}

@media (max-width: 1039px) {
  .hero-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding-bottom: 0.25rem;
  }

  .hero-layer {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-width: none;
  }

  .hero-layer--iphone {
    width: min(62%, 220px);
    align-self: flex-start;
    margin-left: 4%;
  }

  .hero-layer--ipad {
    width: min(92%, 380px);
    order: 2;
  }

  .hero-layer--duo {
    width: 100%;
    max-width: 480px;
    order: 3;
  }
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hero-showcase { width: min(100%, 340px); }
  .hero-layer--iphone { width: min(58%, 200px); margin-left: 0; align-self: center; }
  .hero-layer--ipad { width: 100%; }
  .hero-layer--duo { width: 100%; }
}

@media (max-width: 680px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    order: 3;
    width: 100%;
    font-size: 0.875rem;
  }
  .nav .btn-primary {
    margin-left: auto;
  }
  .hero { padding: 3rem 0; }
  .feature-matrix { grid-template-columns: 1fr; }
  .feature-cell, .feature-cell:nth-child(even) { padding: 1.5rem 0; border-left: none; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}
