/* From101 — site styles. Same palette and type as the sales deck. */
:root {
  --ink: #14213D;        /* primary dark: headings, dark bands */
  --ink-2: #1F2F52;      /* cards on dark bands */
  --paper: #F7F5F0;      /* page background */
  --sand: #ECE6DA;       /* secondary background, cards */
  --card: #FDFCF9;       /* raised card on paper */
  --line: #D9D2C3;       /* hairlines, borders */
  --accent: #E07A3F;     /* orange accent (fills, dark backgrounds) */
  --accent-ink: #B85A24; /* orange for text on light backgrounds */
  --muted: #4A5568;      /* body text on light */
  --soft: #5A6270;       /* captions on light */
  --on-ink: #F7F5F0;     /* text on dark */
  --on-ink-soft: #B9C3D6;/* secondary text on dark */

  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1120px;
  --radius: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 20px; }
.measure { max-width: 64ch; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.lede { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.source { font-size: 0.85rem; color: var(--soft); }

/* ── Header ───────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.98rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--paper); border-bottom: 1px solid var(--line);
         padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font-family: var(--body); line-height: 1.2; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #E88C57; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--sand); }
.nav .btn { color: var(--ink); padding: 10px 20px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: " →"; }

/* ── Sections ─────────────────────────── */
section { padding-block: clamp(64px, 9vw, 112px); }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--on-ink); }
.band-ink .eyebrow { color: var(--accent); }
.band-ink .muted, .band-ink .lede { color: var(--on-ink-soft); }
.band-accent { background: var(--accent); }
.band-accent .eyebrow { color: var(--ink); }

.hero { padding-block: clamp(72px, 10vw, 128px) clamp(64px, 8vw, 104px); }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 58ch; }
.hero-mark { width: 88px; height: 6px; background: var(--accent); border-radius: 3px; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Stat card */
.stat { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.stat .num { font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 9vw, 6rem); line-height: 1; color: var(--accent); }
.stat p { color: var(--on-ink); font-size: 1.15rem; }
.stat .source { color: var(--on-ink-soft); }
.band-ink .stat { background: var(--ink-2); }

/* Two-up text blocks */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 56px); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo h3 { margin-bottom: 10px; }

/* 5S steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--sand); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.band-sand .steps li { background: var(--card); }
.steps .n { font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.6rem; }
.steps p { font-size: 0.98rem; color: var(--muted); }
.steps li.solve { background: var(--ink); }
.steps li.solve h3 { color: var(--on-ink); }
.steps li.solve p { color: var(--on-ink-soft); }
.steps li.solve .n { color: var(--accent); }
.tag { align-self: flex-start; font-size: 0.8rem; font-weight: 600; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 3px 12px; margin-top: 4px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Long-form numbered steps (Method page) */
.steps-long { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps-long li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.steps-long li:last-child { border-bottom: 1px solid var(--line); }
.steps-long .n { font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.steps-long h3 { margin-bottom: 8px; }
.steps-long p { color: var(--muted); max-width: 62ch; }
.steps-long li.solve .n { color: var(--ink); }

/* Proof cards */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .proof { grid-template-columns: minmax(0, 1fr); } }
.proof-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.proof-card .role { font-weight: 700; font-size: 1.15rem; }
.proof-card .task { color: var(--muted); font-size: 0.98rem; margin-bottom: 14px; }
.proof-card .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.proof-card .label.after { color: var(--accent-ink); margin-top: 10px; }
.proof-card .before, .proof-card .after-num { font-family: var(--display); font-size: 2.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof-card .before { color: var(--soft); }
.proof-card .after-num { color: var(--accent-ink); font-weight: 600; }

/* Timeline */
.timeline { display: flex; gap: 6px; }
.timeline > div { padding: 18px 14px; background: var(--card); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.band-sand .timeline > div { background: var(--card); }
.timeline > div:first-child { border-radius: 14px 0 0 14px; }
.timeline > div:last-child { border-radius: 0 14px 14px 0; }
.timeline b { font-size: 0.95rem; }
.timeline span { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .w1 { flex: 1; } .timeline .w2 { flex: 2; } .timeline .w4 { flex: 4; }
.timeline .solve { background: var(--ink) !important; color: var(--on-ink); }
.timeline .solve span { color: var(--on-ink-soft); }
.timeline .show { background: var(--accent) !important; }
.timeline .show span { color: var(--ink); }
@media (max-width: 720px) {
  .timeline { flex-direction: column; }
  .timeline > div { flex-direction: row; justify-content: space-between; border-radius: 0 !important; }
  .timeline > div:first-child { border-radius: 14px 14px 0 0 !important; }
  .timeline > div:last-child { border-radius: 0 0 14px 14px !important; }
}

/* Feature list (Program) */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.feature .meta { font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); }
.feature p { color: var(--muted); }

/* People (About) */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.monogram { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.person p { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--body); font-size: 1.6rem; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.band-ink .form-card { color: var(--ink); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; }
.form-status.error { color: #A3361C; }
.success { display: flex; flex-direction: column; gap: 14px; }
.success h3 { font-size: 1.6rem; }

/* Lead magnet */
.magnet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 64px); align-items: start; }
@media (max-width: 860px) { .magnet { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(-45deg); }
.sentence { border-left: 4px solid var(--accent); padding: 6px 0 6px 20px; font-family: var(--display); font-size: 1.3rem; }

/* CTA band */
.cta h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.cta .lede { max-width: 52ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding-block: 48px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer .logo { color: var(--on-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { text-decoration: none; color: var(--on-ink-soft); }
.site-footer a:hover { color: var(--on-ink); }
.site-footer .tagline { max-width: 40ch; margin-top: 8px; }
