/* Shared stylesheet for every MVP landing. One design, one file: a landing changes its
   copy, never this stylesheet. Values come from the Qualic Design System (QDS) as it
   ships on qualic.dev: qualic-landing/styles/qds/tokens.css, with its production
   amendments (CTA fill violet-600, text-tertiary #736E67, navy ink family).
   Light only, like qualic.dev V1. No gradients. Violet is the only accent. */

/* fonts:start */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* fonts:end */

/* Layout: one narrow reading column, full-width bands for the hero grid and the price. */
:root {
  color-scheme: light;
  --violet-50: #f5f0ff;
  --violet-200: #d3beff;
  --violet-600: #7538ec;
  --violet-700: #6321ce;
  --violet-800: #4e199f;
  --surface-page: #faf9f7;
  --surface-raised: #ffffff;
  --surface-sunken: #f4f2ee;
  --text-primary: #111011;
  --text-secondary: #5c5852;
  --text-tertiary: #736e67;
  --text-accent: #7538ec;
  --border-subtle: #eae7e1;
  --border-default: #d9d5cd;
  --green-500: #1f7a55;
  --green-50: #e8f4ee;
  --ink-page: #111827;
  --ink-text: #f8fafc;
  --ink-text-secondary: #cbd5e1;
  --ink-line: #374151;
  --ink-accent-text: #b48ffe;
  --accent-fill: var(--violet-600);
  --accent-fill-hover: var(--violet-700);
  --accent-fill-press: var(--violet-800);
  --grid-line: rgba(10, 10, 11, 0.035);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --type-display: clamp(40px, 7vw, 64px);
  --type-h2: clamp(26px, 4.4vw, 36px);
  --type-h3: clamp(18px, 2.2vw, 20px);
  --type-lead: clamp(17px, 2vw, 20px);
  --type-body: 16px;
  --type-small: 14px;
  --type-eyebrow: 12px;

  --content-max: 1040px;
  --reading-max: 62ch;
  --section-y: clamp(56px, 9vw, 104px);
  --radius-md: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --tap-min: 44px;
  --shadow-sm: 0 1px 3px rgba(17, 16, 17, 0.07), 0 1px 2px rgba(17, 16, 17, 0.04);
  --dur: 160ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.25, 1);
}

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--text-accent); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--violet-600);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }

/* Side gutter: every band's inner wrapper. */
.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * 48px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 960px) {
  .wrap {
    padding-left: max(48px, env(safe-area-inset-left, 0px));
    padding-right: max(48px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--border-subtle); background: var(--surface-page); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text-primary); text-decoration: none; }
.brand img { width: 84px; height: auto; display: block; }
.brand .product {
  font-family: var(--font-mono);
  font-size: var(--type-small);
  color: var(--text-secondary);
  padding-left: 12px;
  border-left: 1px solid var(--border-default);
  white-space: nowrap;
}
/* Two classes so it outranks .btn, which comes later in the file. */
.btn.header-cta { display: none; }
@media (min-width: 768px) { .btn.header-cta { display: inline-flex; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap-min);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font: 500 15px/1.2 var(--font-sans);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out);
}
.btn-primary { background: var(--accent-fill); color: #ffffff; }
.btn-primary:hover { background: var(--accent-fill-hover); }
.btn-primary:active { background: var(--accent-fill-press); }
.btn-quiet { background: transparent; color: var(--text-primary); border: 1px solid var(--border-default); }
.btn-quiet:hover { border-color: var(--text-tertiary); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- Hero: the QDS technical grid as ground ---- */
.hero {
  background-color: var(--surface-page);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.hero .wrap { padding-block: clamp(48px, 9vw, 112px); display: grid; gap: 28px; }
.hero h1 {
  font-size: var(--type-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero .lead { font-size: var(--type-lead); line-height: 1.5; color: var(--text-secondary); max-width: var(--reading-max); }
.hero .lead strong { color: var(--text-primary); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-note { font-size: var(--type-small); color: var(--text-tertiary); max-width: 48ch; }

/* ---- Sections ---- */
.section .wrap { padding-block: var(--section-y); display: grid; gap: 36px; }
.section + .section .wrap { padding-top: 0; }
.section-head { display: grid; gap: 12px; max-width: var(--reading-max); }
.section-head h2 { font-size: var(--type-h2); line-height: 1.15; letter-spacing: -0.02em; }
.section-head p { color: var(--text-secondary); }

/* Outcomes: three peers, separated by a hairline, no cards. */
.outcomes { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.outcomes li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--border-default); min-width: 0; }
.outcomes h3 { font-size: var(--type-h3); line-height: 1.25; letter-spacing: -0.012em; }
.outcomes p { color: var(--text-secondary); }

/* Document sample: the one raised object on the page. */
.doc {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.doc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.doc-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; min-width: 520px; }
.doc th, .doc td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font: 500 var(--type-eyebrow)/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.doc td { font-size: 15px; }
.doc td .why { display: block; margin-top: 4px; font-size: var(--type-small); color: var(--text-tertiary); }
/* Phones: each row stacks, the verdict goes under its reason instead of off-screen. */
@media (max-width: 599px) {
  .doc table { min-width: 0; }
  .doc thead { display: none; }
  .doc tr { display: grid; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { padding: 0; border-bottom: 0; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font: 500 13px/1.4 var(--font-sans);
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-yes { background: var(--green-50); color: var(--green-500); }
.pill-no { background: var(--surface-sunken); color: var(--text-secondary); }

/* Steps: a real sequence, so it is numbered. */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 22px;
  border-top: 1px solid var(--border-default);
}
.steps li:last-child { border-bottom: 1px solid var(--border-default); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font: 500 var(--type-small)/1.6 var(--font-mono);
  color: var(--text-accent);
}
.steps h3 { font-size: var(--type-h3); line-height: 1.3; letter-spacing: -0.012em; }
.steps p { color: var(--text-secondary); max-width: var(--reading-max); }

/* Price: the one dark band (QDS ink family). */
.price { background: var(--ink-page); color: var(--ink-text); }
.price .wrap { padding-block: var(--section-y); display: grid; gap: 28px; }
@media (min-width: 768px) { .price .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 48px; } }
.price .eyebrow { color: var(--ink-accent-text); }
.price-figure { display: grid; gap: 8px; }
.price-figure .big {
  font-size: clamp(64px, 14vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.price-figure .unit { font-family: var(--font-mono); font-size: var(--type-small); color: var(--ink-text-secondary); }
.price-copy { display: grid; gap: 16px; }
.price-copy h2 { font-size: var(--type-h2); line-height: 1.15; letter-spacing: -0.02em; }
.price-copy p { color: var(--ink-text-secondary); max-width: var(--reading-max); }
.price-terms { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.price-terms li { padding-left: 18px; position: relative; color: var(--ink-text-secondary); }
.price-terms li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--ink-accent-text); }

/* Fit: who it is for and what it does not do. */
.fit { display: grid; gap: 32px; }
@media (min-width: 768px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.fit > div { display: grid; gap: 14px; align-content: start; min-width: 0; }
.fit h3 { font-size: var(--type-h3); letter-spacing: -0.012em; }
.fit ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fit li { padding-left: 20px; position: relative; color: var(--text-secondary); }
.fit .yes li::before, .fit .no li::before { position: absolute; left: 0; font-family: var(--font-mono); }
.fit .yes li::before { content: "+"; color: var(--green-500); }
.fit .no li::before { content: "–"; color: var(--text-tertiary); }

/* Closing CTA. */
.closing .wrap { padding-block: var(--section-y); display: grid; gap: 20px; justify-items: start; }
.closing h2 { font-size: var(--type-h2); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.closing p { color: var(--text-secondary); max-width: var(--reading-max); }
.legal { font-size: var(--type-small); color: var(--text-tertiary); max-width: var(--reading-max); }

/* Footer. */
.site-footer { border-top: 1px solid var(--border-subtle); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px;
  font-size: var(--type-small);
  color: var(--text-tertiary);
}
.site-footer a { color: var(--text-secondary); }

/* Sticky WhatsApp bar on phones. */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--surface-raised);
  border-top: 1px solid var(--border-default);
}
.mobile-cta .btn { width: 100%; }
@media (min-width: 768px) { .mobile-cta { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 76px; } }

/* Shown only while the WhatsApp number is not set (preview builds). */
.preview-banner {
  background: var(--violet-50);
  border-bottom: 1px solid var(--violet-200);
  color: var(--violet-800);
  font-size: var(--type-small);
}
.preview-banner .wrap { padding-block: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
