/* Air Fryer Genius — landing site, Swiss Grid Bold.
   Mirrors the app's tokens (src/theme/tokens.ts):
   - two flat surfaces only, paper and ink; no gradients, glows, shadows or radii
   - a visible 12-column hairline grid inside the page margins
   - a mono index row above a 3px rule on every band
   - Inter Tight 800 headlines: flush-left, leading 0.9, tracking -0.045em
   - exactly one international-orange element per band */

:root {
  --paper: #F2F1EC;
  --ink: #0E0E0C;
  --orange: #FF4F00;
  --ink-soft: #3D3C38;
  --ink-mute: #85847E;
  --paper-soft: #C9C8C2;
  --paper-mute: #86857F;
  --hairline: #CFCEC7;
  --hairline-ink: #2C2C29;
  --grid-paper: rgba(14, 14, 12, 0.07);
  --grid-ink: rgba(242, 241, 236, 0.08);

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --margin: clamp(20px, 5vw, 72px);
  --max: 1440px;
  /* Inline padding that keeps content inside --max on very wide screens. */
  --pad: max(var(--margin), calc((100vw - var(--max)) / 2));
  --gap: clamp(16px, 2vw, 28px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ───────────── Bands: full-bleed paper/ink surfaces with the 12-column grid ───────────── */

nav, .hero, .stats-strip, section, footer, .page {
  --bg: var(--paper);
  --fg: var(--ink);
  --soft: var(--ink-soft);
  --mute: var(--ink-mute);
  --rule: var(--ink);
  --hair: var(--hairline);
  --grid: var(--grid-paper);
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-inline: var(--pad);
}

/* Ink bands */
.stats-strip, section:nth-of-type(2), section:nth-of-type(4), footer {
  --bg: var(--ink);
  --fg: var(--paper);
  --soft: var(--paper-soft);
  --mute: var(--paper-mute);
  --rule: var(--paper);
  --hair: var(--hairline-ink);
  --grid: var(--grid-ink);
}

/* 13 hairlines marking the 12 columns between the margins. */
nav::before, .hero::before, .stats-strip::before, section::before, footer::before, .page::before {
  content: "";
  position: absolute;
  inset: 0 var(--pad);
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid), var(--grid));
  background-size: calc(100% / 12) 100%, 1px 100%;
  background-position: 0 0, 100% 0;
  background-repeat: repeat-x, no-repeat;
}
nav > *, .hero > *, .stats-strip > *, section > *, footer > *, .page > * { position: relative; }

/* ───────────── Type ───────────── */

h1, h2, .hero-title, .section-title, .cta-title, .stat-number, .feature-title, .step-title {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

/* The orange element of a paper band: an ink-text block behind the emphasised words. */
.section-title em, h1 span {
  font-style: normal;
  background: var(--orange);
  color: var(--ink);
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* On ink bands the orange element is the word itself. */
section:nth-of-type(2) .section-title em,
section:nth-of-type(4) .section-title em {
  background: none;
  color: var(--orange);
  padding: 0;
}

/* Mono label used for index rows, tags and captions. */
.mono, .section-tag, .hero-badge, .pill, .stat-label, .step-number, .screen-label,
.breadcrumb, .footer-links a, .footer-copy, .last-updated, .nav-logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ───────────── Nav: the page's index row ───────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
/* The 3px rule sits inside the margins, like every index row. */
nav::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 3px;
  background: var(--ink);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo-dot, .nav-logo-dot img { width: 28px; height: 28px; }
.nav-logo-dot img { object-fit: cover; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav-cta svg path { stroke: var(--paper); }

/* ───────────── Hero (paper) ───────────── */

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
  padding-top: clamp(48px, 8vw, 120px);
  overflow: hidden;
}
.hero-left {
  grid-column: 1 / span 8;
  padding-bottom: clamp(48px, 7vw, 112px);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mute);
  margin-bottom: 20px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--ink); }
.hero-title { font-size: clamp(46px, 6.6vw, 112px); margin-bottom: 28px; }
.hero-title span { background: none; padding: 0; }
.hero-desc {
  max-width: 38ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--soft);
  margin-bottom: 28px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.pill { border: 1px solid var(--ink); padding: 7px 10px; }

/* The hero's one orange element: the App Store block, bleeding off the left edge. */
.appstore-btn, .btn-primary, .app-banner {
  background: var(--orange);
  color: var(--ink);
  margin-left: calc(-1 * var(--pad));
  padding-left: var(--pad);
}
.appstore-btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding-right: 28px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.appstore-btn::after, .btn-primary::after { content: "→"; font-family: var(--sans); font-weight: 500; margin-left: 12px; }
.appstore-btn-text { display: flex; flex-direction: column; line-height: 1; }
.appstore-btn-text small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.appstore-btn path, .btn-primary path { fill: var(--ink); }

/* Phone: dead upright, snapped to the right columns, cropped by the band's bottom edge. */
.hero-right { grid-column: 9 / span 4; align-self: end; }
.hero-glow { display: none; }
.hero-phone { width: 100%; margin-bottom: -26%; }

/* ───────────── Stats (ink): the proof is the giant numeral ───────────── */

.stats-strip { padding-block: clamp(40px, 6vw, 88px); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); }
.stat-item { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--rule); padding-top: 14px; }
.stat-number { font-size: clamp(64px, 8vw, 136px); }
.stat-item:first-child .stat-number { color: var(--orange); }
.stat-label { color: var(--mute); max-width: 26ch; }

/* ───────────── Sections ───────────── */

section { padding-block: clamp(48px, 7vw, 112px); }
.screenshots-section { padding-bottom: 0; }

/* Index row: APP · SECTION · 01 / 04 above a 3px rule. */
body { counter-reset: band; }
.section-tag {
  counter-increment: band;
  display: flex;
  align-items: center;
  color: var(--fg);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rule);
  margin-bottom: clamp(32px, 5vw, 72px);
}
.section-tag::before { content: "Air Fryer Genius · "; white-space: pre; }
.section-tag::after { content: counter(band, decimal-leading-zero) " / 04"; margin-left: auto; color: var(--mute); }

.section-title {
  font-size: clamp(40px, 6.2vw, 112px);
  max-width: 14ch;
  margin-bottom: clamp(32px, 5vw, 72px);
}

/* Feature and step cards: rule-topped columns, numbered in mono. */
.features-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(32px, 4vw, 56px);
}
.features-grid { counter-reset: card; }
.feature-card, .step-card {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.feature-card { counter-increment: card; }
.feature-icon, .step-icon { display: none; }
.feature-card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 18px;
}
.step-number { color: var(--mute); margin-bottom: 18px; }
.feature-title, .step-title { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 14px; }
.feature-desc, .step-desc { color: var(--soft); font-size: 16px; line-height: 1.55; max-width: 44ch; }

/* FAQ band: two columns. */
section:nth-of-type(4) .steps-grid { grid-template-columns: repeat(2, 1fr); }
section:nth-of-type(4) .step-title { font-size: clamp(22px, 1.9vw, 28px); }

/* ───────────── Screenshots (paper): phones upright, cropped by the band edge ───────────── */

.screenshots-section .section-title { max-width: none; }
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap);
  align-items: start;
}
.screen-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.screen-label { order: -1; color: var(--fg); }
.screen-label::before { content: "→ "; }
/* ≥ 68% of each phone visible: the crop window is 74% of the mockup's height. */
.screen-item img {
  width: 100%;
  aspect-ratio: 1334 / 2035;
  object-fit: cover;
  object-position: top;
}

/* ───────────── Download (paper) ───────────── */

.cta-icon { width: 72px; height: 72px; object-fit: cover; margin-bottom: 28px; }
.cta-title { font-size: clamp(48px, 8vw, 148px); max-width: 12ch; margin-bottom: 20px; }
.cta-desc { color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 32px; }
.cta-note { margin-top: 24px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }

/* ───────────── Footer (ink) ───────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 28px;
}
footer::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 0;
  height: 3px;
  background: var(--paper);
}
.footer-logo, footer .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-logo img, footer .nav-logo-dot, footer .nav-logo-dot img { width: 24px; height: 24px; object-fit: cover; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; color: var(--paper-soft); }
.footer-links a:hover { color: var(--paper); }
.footer-copy { color: var(--paper-mute); }

/* ───────────── Cooking-times guide ───────────── */

.page { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 7vw, 112px); }
.breadcrumb {
  color: var(--fg);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rule);
  margin-bottom: clamp(32px, 5vw, 72px);
}
.breadcrumb a { text-decoration: none; }
.page h1 { font-size: clamp(48px, 8vw, 148px); margin-bottom: 28px; }
.page h1 span { background: none; padding: 0; }
.intro { max-width: 62ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); margin-bottom: 40px; }
.intro a, .faq-a a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The guide's one orange element: the app banner, bleeding off the left edge. */
.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 24px;
  padding-right: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.app-banner-text { display: flex; flex-direction: column; gap: 6px; max-width: 60ch; }
.app-banner-text strong { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; line-height: 1; }
.app-banner-btn {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 14px 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.app-banner-btn::after { content: " →"; font-family: var(--sans); font-weight: 500; }

.page h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin: clamp(40px, 5vw, 72px) 0 20px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px 10px 0;
  border-bottom: 3px solid var(--ink);
  white-space: nowrap;
}
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; font-variant-numeric: tabular-nums; }
td:first-child { font-weight: 600; }
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
td:last-child { color: var(--ink-soft); }

.faq-section { margin-top: clamp(48px, 6vw, 88px); }
.faq-item { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--ink); }
.faq-q { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 8px; }
.faq-a { color: var(--ink-soft); line-height: 1.6; max-width: 70ch; }

/* ───────────── Legal documents (privacy, terms) ───────────── */

body.doc { padding: 0 var(--pad) 72px; }
body.doc > * { max-width: 760px; }
body.doc .doc-bar {
  max-width: none;
  display: flex;
  justify-content: space-between;
  padding: 18px 0 10px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: clamp(32px, 5vw, 64px);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.doc .doc-bar a { text-decoration: none; }
body.doc h1 { font-size: clamp(44px, 7vw, 104px); margin-bottom: 16px; }
body.doc .last-updated { color: var(--ink-mute); margin-bottom: 40px; }
body.doc h2 { font-size: clamp(24px, 2.4vw, 34px); border-top: 1px solid var(--ink); padding-top: 14px; margin: 48px 0 16px; }
body.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 24px 0 8px; }
body.doc p, body.doc li { color: var(--ink-soft); }
body.doc p { margin-bottom: 14px; }
body.doc ul { padding-left: 20px; margin-bottom: 14px; }
body.doc li { margin-bottom: 6px; }
body.doc .highlight, body.doc .important { border: 1px solid var(--ink); padding: 20px; margin: 24px 0; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
}
.contact-form textarea { border: 1px solid var(--ink); padding: 10px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }
/* The document's one orange element. */
.contact-form button {
  align-self: flex-start;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: var(--orange);
  color: var(--ink);
  padding: 16px 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.contact-form button::after { content: " →"; font-family: var(--sans); font-weight: 500; }
body.doc hr { border: 0; border-top: 1px solid var(--hairline); margin: 48px 0 16px; }
body.doc .doc-footer { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }

/* ───────────── Responsive ───────────── */

@media (max-width: 960px) {
  .hero-left { grid-column: 1 / -1; padding-bottom: 40px; }
  .hero-right { grid-column: 4 / span 6; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 600px) {
  .hero-right { grid-column: 2 / span 10; }
  .features-grid, .steps-grid, section:nth-of-type(4) .steps-grid { grid-template-columns: 1fr; }
  .nav-cta { font-size: 13px; padding: 8px 12px; }
  .appstore-btn, .btn-primary { font-size: 19px; min-height: 64px; }
  footer { flex-direction: column; align-items: flex-start; }
}
