/* AskWingman landing page — Spec 18b 2026-05-31.
 *
 * Mid-rich tasteful motion (Anthropic / Notion / Linear product-pages
 * family). Dark theme matching the in-app brand. Typography carries
 * the visual weight; the only motion is hover transforms + scroll
 * fade-ins via IntersectionObserver. Honors prefers-reduced-motion.
 *
 * No CSS framework; no preprocessor. ~500 LOC target.
 */

/* ── Variables (mirror static/index.html's in-app brand) ─────────── */
:root {
  --bg:           #111418;
  --bg-elevated: #181c22;
  --bg-card:     #1d2229;
  --border:      #2a2f37;
  --text:        #e8ebf0;
  --text-dim:    #8b94a3;
  --text-faint:  #5a6373;
  --amber:       #e8a020;
  --amber-glow:  rgba(232, 160, 32, 0.18);
  --green:       #2ea36b;
  --max-width:   1080px;
  --font-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Section shell ────────────────────────────────────────────────── */
section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 32px 0;
  text-align: center;
}

/* ── Top bar (logo + login) ───────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
}
.topbar-logo {
  display: inline-flex;
  align-items: center;
}
.topbar-logo img {
  height: 40px;
  width: auto;
}
.topbar-login {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 22px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.topbar-login:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--bg-elevated);
  text-decoration: none;
}
.topbar-login:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 64px 24px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(232, 160, 32, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at bottom, rgba(46, 163, 107, 0.04) 0%, transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.tagline {
  font-family: var(--font-display);
  font-weight: 700;
  /* Sized so the longest line ("AskWingman answers questions") fits the
     760px hero-inner in Orbitron — which is far wider than the system
     fallback. At 36px that line measures ~679px (81px margin), so the
     forced <br> yields exactly two lines without a FOUT reflow to three. */
  font-size: clamp(28px, 4.4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  color: var(--text);
}
.subtag {
  font-size: 19px;
  color: var(--text-dim);
  margin: 0 auto 40px auto;
  max-width: 560px;
}

/* ── Primary CTA ──────────────────────────────────────────────────── */
.cta-primary {
  display: inline-block;
  background: var(--amber);
  color: #1a1d22;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--amber-glow);
  text-decoration: none;
}
.cta-primary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ── Trust badge row ──────────────────────────────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.trust-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
}

/* ── Features grid ────────────────────────────────────────────────── */
/* Horizontal scroller (Upload → Ask → Verify → Why). Fixed-width tiles
   keep their size; the row overflows the container so the 4th tile peeks
   at the right edge as a "scroll for more" cue. Swipeable on touch;
   arrow-scrollable when focused (tabindex on the element in the HTML). */
.feature-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 16px;   /* top: room for the hover-lift; bottom: scrollbar */
  margin: 0 -4px;          /* offset the side padding so tiles sit flush */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.feature-scroller:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 8px;
}
.feature-scroller::-webkit-scrollbar { height: 8px; }
.feature-scroller::-webkit-scrollbar-track { background: transparent; }
.feature-scroller::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.feature-scroller::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
.feature-card {
  flex: 0 0 300px;          /* fixed width keeps the tile size; the row scrolls */
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}
.feature-icon {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 12px;
  line-height: 1;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  color: var(--text);
}
.feature-card p {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
}

/* ── Case study ───────────────────────────────────────────────────── */
.case-intro {
  text-align: center;
  font-size: 17px;
  color: var(--text-dim);
  margin: -16px auto 40px auto;
  max-width: 680px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.case-q, .case-a {
  margin-bottom: 24px;
}
.case-a {
  margin-bottom: 16px;
}
.case-q-label, .case-a-label {
  font-family: var(--font-display);   /* brand font — sets the speaker labels apart from the Barlow answer */
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: block;
  margin-bottom: 8px;
}
.case-q-text {
  font-size: 18px;
  color: var(--text);
  font-style: italic;
}
.case-a-text p {
  margin: 0 0 14px 0;
  font-size: 16px;
  color: var(--text);
}
.case-a-text p:last-child { margin-bottom: 0; }
.case-citations {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.case-cite-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.case-cite-chip {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  margin-right: 8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}
/* Rich answer body for the worked example — headings, lists, table,
   disclaimer. Approximates the in-app markdown-rendered answer look. */
.case-a-text h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;       /* same as the h5 subsections ("The basic test") */
  color: var(--amber);
  margin: 2px 0 10px 0;
}
.case-a-text h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;        /* same size as the "Source:" line */
  color: var(--amber);    /* brand accent to set headings apart from the body */
  margin: 20px 0 8px 0;
}
.case-a-text ul {
  margin: 0 0 14px 0;
  padding-left: 20px;
}
.case-a-text li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}
.case-a-text em { color: var(--text-dim); }
.case-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px 0;
  font-size: 14px;
}
.case-table th,
.case-table td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.case-table thead th {
  background: var(--bg-elevated);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 700;
}
.case-table td { color: var(--text); }
.case-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.plan-card {
  position: relative;          /* anchor for the "Coming soon" ribbon */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);   /* match the How-it-works tile hover */
}

/* "Coming soon" corner ribbon — Pro is gated until billing goes live.
   Clipped to a rounded corner box so the band trims cleanly to the tile. */
.plan-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 124px;
  height: 124px;
  overflow: hidden;
  pointer-events: none;
  border-radius: 0 8px 0 0;
}
.plan-ribbon span {
  position: absolute;
  top: 26px;
  right: -36px;
  width: 170px;
  padding: 7px 0;
  background: var(--amber);
  color: #1a1d22;
  font: 700 11px/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-cycle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
}
.plan-price-alt {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}
.plan-features li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.invite-only-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

/* ── Invite form ──────────────────────────────────────────────────── */
.invite-intro {
  text-align: center;
  color: var(--text-dim);
  margin: -16px auto 32px auto;
  max-width: 480px;
}
.invite-form {
  max-width: 540px;
  margin: 0 auto;
}
.field {
  display: block;
  margin-bottom: 20px;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 16px;  /* ≥16px keeps iOS Safari from zooming on focus */
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--font-body); }
#invite-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  min-height: 24px;
}
.form-status.status-success { color: var(--green); }
.form-status.status-error { color: #d33; }
.form-status.status-busy { color: var(--text-dim); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 13px;
}
.footer-link { color: var(--text-dim); }
.copyright { margin-top: 8px; font-size: 12px; }

/* ── Scroll fade-in (set by JS IntersectionObserver) ──────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion (accessibility) ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  .cta-primary:hover,
  .feature-card:hover,
  .plan-card:hover { transform: none; }
}

/* ── Mobile (≤640px) ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 56px 20px; }
  .topbar { padding: 16px 20px; }
  .topbar-logo img { height: 32px; }
  .topbar-login { font-size: 12px; padding: 8px 16px; letter-spacing: 0.06em; }
  .hero { min-height: 60vh; padding: 40px 20px 48px 20px; }
  .tagline { font-size: clamp(24px, 6vw, 34px); }
  .subtag { font-size: 17px; }
  .section-title { font-size: 24px; margin-bottom: 24px; }
  .trust-row { gap: 10px; margin-top: 36px; }
  .trust-pill { font-size: 10px; padding: 5px 12px; }
  .case-card,
  .feature-card,
  .plan-card { padding: 24px 20px; }
  .feature-card { flex-basis: 82vw; }   /* phone: ~one card + a peek of the next */
}
