/* ============================================================
   ScaleChef — sales page
   Same instrument as the app: colour as architecture, a green
   masthead and filled labels, warm paper ground, cards that
   float. No decoration, no kitsch.
   ============================================================ */

/* ---------- Tokens: complete light palette on :root ---------- */
:root {
  color-scheme: light dark;

  /* Warm paper ground — deep enough that near-white cards float */
  --bg: #ebe4d3;
  --bg-top: #f2ecdd;
  --bg-bottom: #e2d9c3;
  --surface: #fffdf8;
  --surface-hi: #fffefb;
  --surface-2: #f4efe3;
  --ink: #1e1c17;
  --ink-2: #565247;
  --ink-3: #615b4d;
  --line: #ddd3bd;
  --line-strong: #a99e82;

  /* ScaleChef green — the primary voice */
  --accent: #17663f;
  --accent-strong: #10502f;
  --accent-ink: #ffffff;
  --accent-soft: #e2eee5;
  --btn-hi: #1a6b42;
  --btn-lo: #10502f;

  /* Field — a solid block of green used as architecture:
     the masthead, the screens band, the price band */
  --field: #12492b;
  --field-hi: #185f39;
  --field-ink: #f4fbf6;
  --field-dim: #b9d9c5;
  --field-line: rgba(244, 251, 246, 0.18);

  --warn-ink: #6e4a00;
  --warn-bg: #faf1d7;
  --warn-line: #d9b054;

  --focus: #17663f;
  --focus-on-field: #f2c46d;

  --shadow:
    0 1px 2px rgba(70, 58, 32, 0.08),
    0 5px 12px rgba(70, 58, 32, 0.08),
    0 16px 36px rgba(70, 58, 32, 0.11);
  --shadow-lift:
    0 2px 4px rgba(70, 58, 32, 0.09),
    0 12px 26px rgba(70, 58, 32, 0.12),
    0 30px 64px rgba(70, 58, 32, 0.15);
  --shadow-btn:
    0 1px 2px rgba(40, 50, 34, 0.2),
    0 4px 12px rgba(16, 80, 47, 0.25);
  --card-edge: rgba(255, 255, 255, 0.9);

  --radius: 14px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Dark: the same room with the lights down ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --bg-top: #17181b;
    --bg-bottom: #0f1012;
    --surface: #1c1e21;
    --surface-hi: #212428;
    --surface-2: #24272b;
    --ink: #ecedee;
    --ink-2: #adb2b8;
    --ink-3: #8d9298;
    --line: #33373c;
    --line-strong: #4a4f55;

    --accent: #4cc38a;
    --accent-strong: #66d19d;
    --accent-ink: #0b2818;
    --accent-soft: #1b2f24;
    --btn-hi: #58cb93;
    --btn-lo: #41b57d;

    --field: #0f3722;
    --field-hi: #14472c;
    --field-ink: #e6f5eb;
    --field-dim: #93c4a6;
    --field-line: rgba(230, 245, 235, 0.14);

    --warn-ink: #e8c468;
    --warn-bg: #2a2414;
    --warn-line: #57491f;

    --focus: #4cc38a;
    --focus-on-field: #f2c46d;

    --shadow:
      0 1px 2px rgba(0, 0, 0, 0.4),
      0 5px 14px rgba(0, 0, 0, 0.32),
      0 16px 36px rgba(0, 0, 0, 0.28);
    --shadow-lift:
      0 2px 4px rgba(0, 0, 0, 0.45),
      0 12px 28px rgba(0, 0, 0, 0.36);
    --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
    --card-edge: rgba(255, 255, 255, 0.06);
  }
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.field-band :focus-visible,
.masthead :focus-visible {
  outline-color: var(--focus-on-field);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Type ---------- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.42rem 0.85rem;
  border-radius: 7px;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 24ch;
}

.section-intro {
  margin-top: 0.9rem;
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 58ch;
}

.qty { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  min-height: 52px;
  padding: 0 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(180deg, var(--btn-hi), var(--btn-lo));
  background-color: var(--accent);
  border-color: var(--btn-lo);
  color: var(--accent-ink);
  box-shadow: var(--shadow-btn);
}
.btn-primary:active { background: var(--accent-strong); box-shadow: none; }

.btn-quiet {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(70, 58, 32, 0.08);
}
.btn-quiet:active { background: var(--surface-2); }

/* Buttons that sit on a green field */
.btn-on-field {
  color: var(--field-ink);
  background: rgba(244, 251, 246, 0.1);
  border-color: rgba(244, 251, 246, 0.45);
}
.btn-on-field:active { background: rgba(244, 251, 246, 0.2); }

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.cta-note {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 0.1rem;
}

/* ---------- Masthead: a solid green band ---------- */
.masthead {
  background: linear-gradient(180deg, var(--field-hi), var(--field));
  background-color: var(--field);
  color: var(--field-ink);
  box-shadow: 0 6px 20px rgba(24, 46, 32, 0.25);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.wordmark svg { color: var(--field-dim); flex: none; }

.masthead .btn { min-height: 44px; font-size: 0.98rem; padding: 0 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 3.5rem; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow strong { color: var(--ink); font-weight: 700; }

h1 {
  font-size: clamp(2.15rem, 6.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  max-width: 17ch;
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

/* Proof strip: three worked figures, set like instruments */
.proof-strip {
  display: grid;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.proof {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--card-edge), var(--shadow);
  padding: 1rem 1.15rem 1.05rem;
}

.proof-figure {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.proof-figure .dim { color: var(--ink-3); font-weight: 600; }

.proof-line {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-2);
}

.badge {
  display: inline-block;
  vertical-align: 0.18em;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  padding: 0.14rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
section { padding: 3.2rem 0; }

/* ---------- Not-a-calculator cards ---------- */
.reason-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.reason {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--card-edge), var(--shadow);
  padding: 1.35rem 1.4rem 1.45rem;
}

.reason-figure {
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-bottom: 0.9rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.reason-figure .dim { color: var(--ink-3); font-weight: 600; }

.reason h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.reason p {
  margin-top: 0.55rem;
  font-size: 0.99rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Three shorter points */
.more-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.more {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.more h3 { font-size: 1.05rem; font-weight: 700; }
.more p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Screens: a full green field ---------- */
.field-band {
  background: linear-gradient(180deg, var(--field-hi), var(--field) 260px);
  background-color: var(--field);
  color: var(--field-ink);
  padding: 3.4rem 0 3.8rem;
}

.field-band .section-label {
  color: var(--field);
  background: var(--field-ink);
}

.field-band h2 { color: var(--field-ink); }
.field-band .section-intro { color: var(--field-dim); }

.shots {
  display: grid;
  gap: 2rem;
  margin-top: 2.2rem;
}

.shot { margin: 0; min-width: 0; }

.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 251, 246, 0.25);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 22px 55px rgba(0, 0, 0, 0.35);
}

.shot figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--field-dim);
  max-width: 52ch;
}
.shot figcaption strong { color: var(--field-ink); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.8rem;
  align-items: start;
}

.price-card {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--card-edge), var(--shadow-lift);
  overflow: hidden;
}

.price-head {
  background: linear-gradient(180deg, var(--field-hi), var(--field));
  background-color: var(--field);
  color: var(--field-ink);
  padding: 1.5rem 1.5rem 1.4rem;
}

.price-figure {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-figure .per {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--field-dim);
  margin-left: 0.35rem;
}

.price-tag {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--field-dim);
}

.price-body { padding: 1.3rem 1.5rem 1.5rem; }

.price-body ul { display: grid; gap: 0.65rem; }

.price-body li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.99rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.price-body li strong { color: var(--ink); font-weight: 700; }
.price-body li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42em;
  width: 0.62rem;
  height: 0.36rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.price-body .cta-row { margin-top: 1.4rem; }
.price-body .btn { flex: 1; min-width: 140px; }

.price-why { max-width: 54ch; }
.price-why p {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.price-why p strong { color: var(--ink); }

/* ---------- Who it's for ---------- */
.who-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.who {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--card-edge), var(--shadow);
  padding: 1.2rem 1.3rem 1.3rem;
}

.who h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.who p {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.who p strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 0;
  border-top: 1.5px solid var(--line-strong);
  max-width: 760px;
}

.faq {
  padding: 1.3rem 0.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.faq h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq p {
  margin-top: 0.55rem;
  font-size: 0.99rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.faq p + p { margin-top: 0.6rem; }
.faq p strong { color: var(--ink); }

/* ---------- Closing band + footer ---------- */
.closing {
  background: linear-gradient(180deg, var(--field-hi), var(--field));
  background-color: var(--field);
  color: var(--field-ink);
  padding: 3.2rem 0;
  text-align: left;
}
.closing h2 { color: var(--field-ink); }
.closing p {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  color: var(--field-dim);
  max-width: 50ch;
}
.closing .btn-primary {
  background: var(--field-ink);
  border-color: var(--field-ink);
  color: var(--field);
}
.closing .btn-primary:active { background: var(--field-dim); }

footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--field-line);
  background: var(--field);
  color: var(--field-dim);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
footer a { color: var(--field-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) and (max-width: 879.9px) {
  .proof-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 880px) {
  .hero { padding: 4.2rem 0 4.6rem; }

  /* Two-column hero: the pitch left, three worked figures right */
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }
  .hero-copy { min-width: 0; }
  .proof-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    align-self: center;
  }
  section { padding: 4.2rem 0; }
  .field-band { padding: 4.2rem 0 4.6rem; }

  .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; }

  /* Screens: wide shot on top, two phone shots side by side */
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; }
  .shot-wide { grid-column: 1 / -1; }
  .shot-wide img { max-width: 880px; }
  .shot-phone { max-width: 430px; }
}
