/* Shared styles for the marketing pages (home and machine-type pages). */
:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #1d1a16;
  --muted: #6b6359;
  --line: #e3dacb;
  --accent: #b4472d;
  --accent-soft: #f1ddd3;
  --good: #23824f;
  --good-soft: #dff1e6;
  --seg: #2f6fae;
  --seg-soft: #dde9f5;
  --thread: rgba(180, 71, 45, 0.07);
  --thread-2: rgba(29, 26, 22, 0.04);
  --l1: #b4472d; --l2: #d99a2b; --l3: #2f4a7a; --l4: #2f6fae; --l5: #23824f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --surface: #1c1915;
    --ink: #f2ece2;
    --muted: #a69c8f;
    --line: #2f2a24;
    --accent: #e07a5a;
    --accent-soft: #3a231b;
    --good: #5fd08a;
    --good-soft: #17301f;
    --seg: #7db6ee;
    --seg-soft: #162638;
    --thread: rgba(224, 122, 90, 0.08);
    --thread-2: rgba(242, 236, 226, 0.035);
    --l1: #e07a5a; --l2: #e8b04f; --l3: #8ea6d6; --l4: #7db6ee; --l5: #5fd08a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, var(--thread) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(90deg, var(--thread-2) 0 2px, transparent 2px 14px);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
header { padding: 24px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.head-cta { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--seg); background: var(--seg-soft); padding: 6px 12px; border-radius: 999px; }
.pill .drop { width: 8px; height: 8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--seg); }

h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 20px 0; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
h3 { font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 580px; margin: 0 0 28px; }
.fine { font-size: 13px; color: var(--muted); }

.hero { padding: 32px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.stat-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.stat-strip div { font-size: 13px; color: var(--muted); }
.stat-strip b { display: block; font-family: Fraunces, Georgia, serif; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }

section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* Levers */
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 0 0 8px; background: var(--line); }
.stack span { display: block; height: 100%; }
.stack-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.stack-legend b { color: var(--ink); }
.levers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lever { padding: 20px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--c); }
.lever .pct { font-family: Fraunces, Georgia, serif; font-size: 34px; font-weight: 600; color: var(--c); line-height: 1; letter-spacing: -0.02em; }
.lever p { margin: 0; font-size: 14px; color: var(--muted); }
.lever ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink); }
.lever li + li { margin-top: 4px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; overflow: hidden; }
.calc-in { padding: 24px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.calc-in label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.calc-in label small { font-weight: 400; }
.calc-in input {
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; font-variant-numeric: tabular-nums;
}
.calc-in input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-out { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.now { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.now div { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.now b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.gain { background: var(--good-soft); border-radius: 14px; padding: 18px; }
.gain .lbl { font-size: 13px; font-weight: 600; color: var(--good); }
.gain .big { font-family: Fraunces, Georgia, serif; font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gain .yr { font-size: 14px; color: var(--muted); }
.gain .yr b { color: var(--ink); }
table.split { width: 100%; border-collapse: collapse; font-size: 14px; }
table.split td { padding: 7px 0; border-bottom: 1px solid var(--line); }
table.split tr:last-child td { border-bottom: 0; }
table.split td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.split i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* Roadmap */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.group { padding: 20px; }
.group .gname { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.feat { padding: 12px 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: 0; padding-top: 0; }
.feat b { display: block; font-size: 15px; margin-bottom: 2px; }
.feat p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.chip.live { background: var(--good-soft); color: var(--good); }

.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.idea { padding: 20px; display: flex; gap: 14px; }
.idea .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--seg-soft); color: var(--seg); display: grid; place-items: center; flex-shrink: 0; }
.idea .ic svg { width: 20px; height: 20px; }
.idea p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.final { text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.final .waitlist { margin: 28px auto 0; text-align: left; }
.final p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 12px auto 0; }

footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 1000px) {
  .levers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .levers, .groups, .ideas { grid-template-columns: 1fr; }
  .calc-in { padding: 18px; gap: 14px; }
  .calc-out { padding: 18px; }
  section.block { padding: 56px 0; }
  .head-cta { padding: 7px 12px; font-size: 13px; }
}

/* Rapier jacquard pages use zari gold as the segment colour. */
body.seg-rapier { --seg: #9a6b12; --seg-soft: #f5e8cc; }
@media (prefers-color-scheme: dark) {
  body.seg-rapier { --seg: #e3b45a; --seg-soft: #33270f; }
}

/* Machine-type cards on the home page. */
.machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.machine { padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.machine:hover { transform: translateY(-2px); border-color: var(--accent); }
.machine .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.machine h3 { font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.machine p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.machine .go { font-weight: 600; color: var(--accent); font-size: 14.5px; }
.machine.soon { background: transparent; border-style: dashed; }
.seg-tabs { display: inline-flex; flex-wrap: wrap; }
@media (max-width: 1000px) { .machines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .machines { grid-template-columns: 1fr; } }
