/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-dark: #0f172a;
  --color-text: #1a2233;
  --color-text-muted: #55627a;
  --color-text-inverse: #f4f6fb;
  --color-border: #e2e6ee;

  --color-primary: #2757ff;
  --color-primary-dark: #1b3fd1;
  --color-accent: #0fa968;

  --color-warning-bg: #fff7e6;
  --color-warning-border: #f4c766;
  --color-note-bg: #eef2ff;
  --color-note-border: #c9d5ff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 12px 40px rgba(15, 23, 42, 0.14);

  --max-width: 1120px;
  --max-width-narrow: 760px;

  --header-height: 64px;

  font-size: 16px;
}

@media (max-width: 480px) {
  :root { --header-height: 52px; }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* Anchor targets get pushed below the sticky header instead of hiding under it. */
section[id] { scroll-margin-top: var(--header-height); }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--color-text-muted); }
strong { color: var(--color-text); }

ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--color-text-muted); }
li { margin-bottom: 0.4em; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow { max-width: var(--max-width-narrow); }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo { display: flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 1.1rem; }
.logo-mark { color: var(--color-primary); }

.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a:not(.nav-cta) { color: var(--color-text-muted); font-weight: 600; font-size: 0.92rem; display: none; }

.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-primary-dark); }

@media (min-width: 640px) {
  .header-nav a:not(.nav-cta) { display: inline; }
}

/* Compact header on small phones so it never eats too much viewport height. */
@media (max-width: 480px) {
  .logo { font-size: 0.95rem; gap: 0.3rem; }
  .header-nav { gap: 0.6rem; }
  .nav-cta { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(39, 87, 255, 0.28);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: var(--color-accent);
  color: #fff;
}
.btn-secondary:hover { filter: brightness(0.94); }

.btn-block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 70%);
  padding: 3.5rem 0 3rem;
}

.hero-inner { text-align: center; max-width: 780px; }

.eyebrow {
  display: inline-block;
  background: var(--color-note-bg);
  border: 1px solid var(--color-note-border);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero-sub { font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Scan form (hero + final CTA)
   ========================================================================== */
.scan-form { margin: 1.75rem 0 0.75rem; text-align: left; }

.scan-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.scan-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.scan-input-row input {
  border: none;
  outline: none;
  padding: 0.85rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

.scan-input-row input:focus { box-shadow: 0 0 0 2px var(--color-primary); }

@media (min-width: 560px) {
  .scan-input-row { flex-direction: row; }
  .scan-input-row input { flex: 1; }
}

.trust-microcopy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}

.early-access-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0.4rem 0 0;
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.sub-heading { margin-top: 1.5rem; }
.sub-heading.light { color: #fff; }

/* Dark sections */
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark li { color: #c7d0e6; }
.section-dark .price-inline { color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 1.25rem; }

.quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #fff;
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
}

.lead { font-weight: 700; color: #fff; font-size: 1.1rem; }

/* ==========================================================================
   Lists
   ========================================================================== */
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

.cross-list { list-style: none; padding-left: 0; }
.cross-list li {
  position: relative;
  padding-left: 1.7rem;
}
.cross-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #ff7373;
  font-weight: 800;
}

.feature-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.feature-grid li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Note & warning boxes
   ========================================================================== */
.note-box {
  background: var(--color-note-bg);
  border: 1px solid var(--color-note-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.warning-box {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-top: 1.25rem;
}
.warning-box strong { display: block; margin-bottom: 0.35rem; color: #7a5200; }
.warning-box p { margin: 0; color: #6b5a2e; }

/* ==========================================================================
   Feature cards (product section)
   ========================================================================== */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.feature-card p { margin-bottom: 0.5em; font-size: 0.95rem; }
.fine-print { font-size: 0.82rem; color: #8a93a8; font-style: italic; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { text-align: center; }

.price-card {
  max-width: 420px;
  margin: 1.5rem auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-elevated);
  text-align: left;
}

.price-tag { text-align: center; margin-bottom: 1.25rem; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--color-primary); }
.price-period { font-size: 1rem; color: var(--color-text-muted); }

.price-included-label { font-weight: 700; color: var(--color-text); margin-bottom: 0.5rem; }

.price-list { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.price-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--color-text);
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

.price-card .trust-microcopy { margin-top: 0.9rem; }

/* ==========================================================================
   Early access / fake door
   ========================================================================== */
#early-access { text-align: center; }

.early-access-form-wrap {
  max-width: 460px;
  margin: 2.25rem auto 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
}

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.early-access-form input {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
.early-access-form input::placeholder { color: #9aa5c0; }
.early-access-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--color-primary); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { margin-top: 1.25rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  list-style: none;
  position: relative;
  color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 1rem;
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "–"; }

.faq-answer { padding: 0 1.25rem 1.1rem; }
.faq-answer p { margin: 0; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { text-align: center; background: var(--color-bg-alt); }
.final-cta h2 { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.site-footer p { margin: 0; }

/* ==========================================================================
   Toast feedback message
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--color-bg-dark);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
