/* ==========================================================================
   Qwikengo LP — v0 layout. All design values come from tokens.css (designer, v1 "Nova").
   This block only maps tokens onto the page's semantic variables; swap tokens.css to re-skin.
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: var(--c-paper);
  --color-surface: var(--c-surface);
  --color-text: var(--c-ink);
  --color-text-muted: var(--c-ink-2);
  --color-text-subtle: var(--c-ink-3);
  --color-border: var(--c-line);
  --color-heading: var(--c-navy);
  --color-brand: var(--c-cyan);          /* small highlights only, never a large fill */
  --color-shot-panel: var(--c-cyan-soft);
  --color-placeholder: #eceae4;          /* v0 only: gray fill inside screenshot cards until real images land */
  /* CTA — the ONLY place --c-cta is allowed on the page */
  --color-cta: var(--c-cta);
  --color-cta-hover: var(--c-cta-hover);
  --color-cta-text: var(--c-cta-text);

  /* Type */
  --font-body: var(--f-he);
  --font-num: var(--f-num);

  /* Layout */
  --container-max: var(--max-w);
  --sticky-h: calc(var(--btn-h) + 2 * var(--s-3));
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--t-body) var(--font-body);
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { color: var(--color-heading); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* No flash of wrong hero: hidden only while the inline script picks the variant */
html[data-v]:not(.hero-ready) .hero-copy,
html[data-v]:not(.hero-ready) .ph-hero { visibility: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter)); /* phone-width column even on desktop */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.center { text-align: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; align-items: center; height: 56px; }
.wordmark { display: inline-flex; line-height: 0; }
.wordmark img { height: 26px; width: auto; display: block; }

/* Buttons — CTA yellow lives ONLY here */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-btn);
  font: 700 var(--t-body) var(--font-body);
  font-size: 18px;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-cta {
  background: var(--color-cta);
  color: var(--color-cta-text);
  transition: background-color .15s ease, transform .1s ease;
}
.btn-cta:hover { background: var(--color-cta-hover); }
.btn-cta:active { transform: scale(.98); }
.btn-cta:focus-visible { outline: 3px solid var(--color-heading); outline-offset: 3px; }
.btn-lg, .btn-block { display: flex; width: 100%; }

/* Hero */
.hero { padding-block: var(--s-6) var(--s-7); }
.hero-grid { display: grid; gap: var(--s-6); }
.tag {  /* badge: navy pill, white text, small cyan dot */
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: #fff;
  font: 500 var(--t-small) var(--font-body);
  margin-bottom: var(--s-4);
}
.tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  flex: none;
}
.hero h1 { font: 800 var(--t-hero) var(--font-body); letter-spacing: -0.5px; margin-bottom: var(--s-4); }
.h1-pre { display: block; font: 500 16px/1.5 var(--font-body); letter-spacing: 0; color: var(--c-navy); opacity: .7; margin-bottom: var(--s-2); }
.lead { color: var(--color-text-muted); margin-bottom: var(--s-5); }

/* Screenshot slots: always a card (r18 + shadow) on a cyan-soft panel. Never raw, never tilted. */
.ph {
  width: 100%;
  background: var(--color-shot-panel);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.ph-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: var(--s-4);
}
.ph-label {
  display: block;
  width: 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-placeholder);
  border-radius: calc(var(--r-card) - 8px);
  color: var(--color-text-subtle);
  font: 500 var(--t-small) var(--font-body);
  text-align: center;
  padding: var(--s-3);
}
.ph-hero .ph-card { aspect-ratio: 4 / 5; }

/* Real screenshots: Nova exports them with their own cyan panel baked in, so no extra padding. */
.shot { width: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--color-shot-panel); }
.shot img { display: block; width: 100%; height: auto; }   /* tall: phone-screenshot friendly */
.ph-small { padding: var(--s-4); }
.ph-small .ph-card { aspect-ratio: 16 / 10; padding: var(--s-2); }

/* Sections */
.section { padding-block: var(--s-7); }
.section-alt { background: var(--color-surface); }
.section h2 { font: 800 var(--t-h2) var(--font-body); margin-bottom: var(--s-5); }
.section p + p { margin-top: var(--s-3); }
.section-sub { color: var(--color-text-muted); margin-top: calc(-1 * var(--s-3)); margin-bottom: var(--s-5); }
.note { color: var(--color-text-muted); font: var(--t-small) var(--font-body); }

/* Stats: Rubik number, small unit beside */
.stat-num { font: 700 var(--t-stat) var(--font-num); color: var(--color-heading); letter-spacing: -1px; }
.stat-unit { font: 500 var(--t-h3) var(--font-body); color: var(--color-text-muted); }

/* Two cards */
.section-cards { padding-top: 0; }
.section h2.section-intro { font: 700 var(--t-h3) var(--font-body); }
.cards-2 { display: grid; gap: var(--s-4); }
.card {
  background: var(--color-surface);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
}
.card-kicker { font: 700 var(--t-small) var(--font-body); color: var(--color-text-muted); margin-bottom: var(--s-2); }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }

/* Pain (dark section) */
.section-pain { background: var(--c-navy); color: #fff; }
.section-pain h2 { color: #fff; }
.section-pain p { color: rgba(255,255,255,.78); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-6); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: start; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 18px/1 var(--font-num);
}
.step p { padding-top: 6px; }
.step .ph, .step .shot { grid-column: 2; }

/* Features */
.feature-grid { display: grid; gap: var(--s-5); }
.feature + .feature { border-top: 1px solid var(--color-border); }

/* Who — CSS bullet (no icons/emoji) */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.checklist li { position: relative; padding-inline-start: var(--s-5); }
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-navy);
}

/* Pricing: bundle = 2px navy border + pill, no colored fill */
.prices { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.price-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--r-card);
  padding: var(--s-5);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
}
.price-card h3 { font: 700 var(--t-h3) var(--font-body); }
.price { display: flex; align-items: baseline; gap: var(--s-2); }
.price .stat-num { font-size: 36px; }
.price .stat-unit { font-size: 15px; }
.price-card.is-featured { border: 2px solid var(--c-navy); box-shadow: var(--shadow-card); }
.badge {
  position: absolute;
  top: -13px;
  inset-inline-start: var(--s-5);
  background: var(--c-navy);
  color: #fff;
  font: 700 13px/1.6 var(--font-body);
  padding: 1px var(--s-3);
  border-radius: var(--r-pill);
}

/* FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--r-btn); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4);
  padding-inline-end: 44px;
  font-weight: 700;
  color: var(--color-heading);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
/* plus/minus drawn in CSS */
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: var(--s-4);
  top: 50%;
  width: 14px; height: 2px;
  background: var(--color-heading);
  transition: transform .15s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 var(--s-4) var(--s-4); color: var(--color-text-muted); }

/* Closing */
.section-closing h2 { margin-bottom: var(--s-5); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--s-5);
  color: var(--color-text-muted);
  font: var(--t-small) var(--font-body);
  text-align: center;
}

/* Sticky mobile CTA: paper @92% + blur, full-width button */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: var(--s-3) var(--gutter);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 246, 242, .92); /* --c-paper @ 92% */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform .2s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { max-width: var(--container-max); margin-inline: auto; }
/* Reserve space so the bar never covers the footer */
body { padding-bottom: var(--sticky-h); }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .btn-cta, .faq summary::after { transition: none; }
}
