/* ============================================================================
   Onwards design system — shared CSS
   Extracted from the Onwards Labs static site (apps/onwards-labs).
   A paper-textured, print-inspired system: Bricolage Grotesque display,
   Public Sans body, IBM Plex Mono labels, warm paper + ink + flame-orange,
   sharp corners, generous spacing.

   Consume via:  <link rel="stylesheet" href="/design-system.css">
   Token + component values are byte-faithful to the Onwards Labs original so
   the look matches exactly. See README.md for the class inventory.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Public+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --paper: #F6F4EF;
  --ink: #17150F;
  --orange: #D4540E;
  --orange-hi: #F4671B;
  --muted: #6F6A5C;
  --body: #444033;
  --card: #FBFAF6;
  --ink-line: rgba(23,21,15,0.14);
  --ink-line-strong: rgba(23,21,15,0.25);
  --paper-line: rgba(246,244,239,0.16);
  --paper-dim: rgba(246,244,239,0.78);
  --paper-dim2: rgba(246,244,239,0.62);
  --grey: #A8A294;
  --slot-bg: #EAE7DE;
  --green: #1C3F36;
  --teal: #2E5F55;
  --sand: #EFE8D9;
}

/* ── Base / reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
::selection { background: var(--orange); color: var(--paper); }
a { -webkit-tap-highlight-color: transparent; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ── Font-family helpers ── */
.display { font-family: 'Bricolage Grotesque', sans-serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* ── Layout container ── */
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* ── Typography ── */
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 20px; }
h2.sec { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 54px; line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
h3.sub { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 38px; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }

/* ── Buttons & links ── */
.btn-dark {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em;
  color: var(--paper); background: var(--ink); padding: 16px 28px; text-decoration: none; white-space: nowrap;
  border: none; cursor: pointer; transition: background 0.15s ease;
}
.btn-dark:hover { background: var(--orange); }
.link-ink {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color 0.15s ease, border-color 0.15s ease;
}
.link-ink:hover { color: var(--orange); border-color: var(--orange); }
.link-flame {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em; color: var(--orange-hi);
  text-decoration: none; border-bottom: 1px solid var(--orange-hi); padding-bottom: 3px; transition: color 0.15s ease, border-color 0.15s ease;
}
.link-flame:hover { color: var(--paper); border-color: var(--paper); }

/* ── Image treatment ── */
.shot-img { display: block; width: 100%; object-fit: cover; object-position: top; }
/* Image slots — swap each .img-slot for a real <img> (object-fit: cover) when assets land */
.img-slot {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--slot-bg);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(23,21,15,0.025) 14px, rgba(23,21,15,0.025) 15px);
}
.img-slot span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--grey); text-align: center; padding: 0 16px; text-transform: uppercase; }
.img-slot.circle { border-radius: 50%; flex: none; }

/* ── Header / nav / brand ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 11px; height: 11px; background: var(--orange); }
.brand-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 28px; }
nav a.navlink { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
nav a.navlink:hover { color: var(--ink); }
nav a.nav-apply { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--paper); background: var(--ink); padding: 11px 22px; text-decoration: none; transition: background 0.15s ease; }
nav a.nav-apply:hover { background: var(--orange); }

/* ── Hero ── */
.hero { padding-top: 88px; }
.hero-rise-1 { animation: rise 0.7s ease both; }
.hero-rise-2 { animation: rise 0.7s 0.15s ease both; }
.hero-rise-3 { animation: rise 0.7s 0.3s ease both; }
.hero h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 104px; line-height: 0.96; letter-spacing: -0.035em; margin: 0; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; margin-top: 44px; }
.hero-sub p { font-size: 20px; line-height: 1.6; color: var(--body); margin: 0; max-width: 580px; text-wrap: pretty; }
.hero-ctas { display: flex; align-items: center; gap: 20px; justify-content: end; padding-bottom: 4px; }
.hero-ctas .btn-dark { padding: 18px 30px; }

/* ── Band utilities ── */

/* Dark band (ink) */
.dark-band { background: var(--ink); color: var(--paper); padding: 120px 0; }

/* Green band — "definition of done" style tick grid */
.dod { background: var(--green); color: var(--paper); padding: 120px 0; }
.dod .eyebrow { color: var(--orange-hi); }
.dod-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 72px; }
.dod-intro h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 54px; line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
.dod-intro h2 .accent { color: var(--orange-hi); }
.dod-intro p { font-size: 18px; line-height: 1.7; color: var(--paper-dim); margin: 0; text-wrap: pretty; }
.dod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.dod-cell { background: var(--green); padding: 32px 28px; }
.dod-cell-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tick { width: 20px; height: 20px; background: var(--orange); display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; font-weight: 700; flex: none; }
.dod-cell-head .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; }
.dod-cell p { font-size: 14px; line-height: 1.6; color: var(--paper-dim2); margin: 0; }
/* mobile compact rows */
.dod-rows { display: none; border-top: 1px solid var(--paper-line); }
.dod-row { display: grid; grid-template-columns: 24px 110px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--paper-line); align-items: start; }
.dod-row .tick { width: 18px; height: 18px; font-size: 11px; }
.dod-row .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; }
.dod-row .d { font-size: 13px; line-height: 1.55; color: var(--paper-dim2); }

/* Sand panel — full-bleed within a .wrap container (ledger style) */
.ledger { margin-top: 110px; background: var(--sand); padding: 56px 48px 44px; margin-left: -48px; margin-right: -48px; }
.ledger-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.ledger-intro p { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0 0 4px; text-wrap: pretty; }

/* ── Section spacing helpers ── */
.process { padding-top: 120px; padding-bottom: 80px; }
.process .lede { font-size: 18px; line-height: 1.7; color: var(--body); margin: 24px 0 64px; max-width: 640px; text-wrap: pretty; }

/* ── Cards: .phase ── */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phase { border: 1px solid var(--ink-line-strong); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; background: var(--card); }
.phase.dark { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.phase .ph-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.phase.dark .ph-label { color: var(--grey); }
.phase .ph-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.phase p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0; }
.phase.dark p { color: var(--paper-dim); }
.phase .ph-list { font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 2.1; color: var(--ink); }
.phase.dark .ph-list { color: var(--paper); }
.phase .ph-foot { margin-top: auto; border-top: 1px solid var(--ink-line); padding-top: 16px; font-size: 14px; line-height: 1.6; color: var(--body); }
.phase.dark .ph-foot { border-top-color: rgba(246,244,239,0.2); color: var(--paper-dim); }
.phase .ph-foot .hot { color: var(--orange); font-weight: 600; }
.phase.dark .ph-foot .hot { color: var(--orange-hi); }

/* ── Honesty / pull-quote ── */
.honesty { padding-top: 40px; padding-bottom: 120px; }
.honesty-inner { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); padding: 80px 0; display: grid; grid-template-columns: 60px 1fr; gap: 32px; }
.honesty .sq { width: 22px; height: 22px; background: var(--orange); margin-top: 12px; }
.honesty blockquote { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 42px; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 28px; max-width: 940px; text-wrap: pretty; }
.honesty .attr { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }

/* ── Cards: .quote-card ── */
.quote-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote-card { border: 1px solid var(--ink-line-strong); padding: 32px; background: var(--card); display: flex; flex-direction: column; gap: 22px; }
.quote-card p { font-size: 16px; line-height: 1.65; color: var(--body); margin: 0; }
.quote-card .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote-card .who .img-slot { width: 48px; height: 48px; }
.quote-card .who .name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.ph-chip { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--orange); border: 1px solid rgba(212,84,14,0.45); padding: 5px 10px; }
.quote-card .ph-chip { align-self: flex-start; }

/* ── Cards: .g-card (guarantee / feature grid) ── */
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.g-card { border: 1px solid var(--ink-line-strong); padding: 40px 36px; background: var(--card); }
.g-card .g-id { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 18px; }
.g-card .g-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 32px; letter-spacing: -0.02em; margin-bottom: 14px; }
.g-card p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0; }
.g-card.dark { grid-column: 1 / -1; border-color: var(--ink); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.g-card.dark .g-id { color: var(--orange-hi); }
.g-card.dark .g-title { margin-bottom: 0; }
.g-card.dark p { color: rgba(246,244,239,0.85); }

/* ── Who / portrait / facts ── */
.who { padding-bottom: 140px; }
.who-grid { display: grid; grid-template-columns: 460px 1fr; gap: 72px; align-items: start; }
.portrait { border: 1px solid var(--ink); padding: 10px; background: var(--card); }
.portrait .img-slot { height: 540px; }
.portrait-img { display: block; width: 100%; height: 540px; object-fit: cover; object-position: 50% 22%; }
.portrait-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); padding: 12px 6px 4px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.who-copy h2 { margin-bottom: 28px; }
.who-copy p { font-size: 18px; line-height: 1.7; color: var(--body); margin: 0 0 20px; text-wrap: pretty; }
.who-facts { border-top: 1px solid var(--ink-line); margin-top: 40px; }
.fact { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.fact .k { color: var(--muted); letter-spacing: 0.08em; }

/* ── FAQ / accordion ── */
.faq { padding-bottom: 140px; }
.faq-list { border-bottom: 1px solid var(--ink-line); }
.faq-item { border-top: 1px solid var(--ink-line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 32px;
  background: transparent; border: none; padding: 26px 0; cursor: pointer; text-align: left;
}
.faq-q .q { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); }
.faq-q .icon { font-family: 'IBM Plex Mono', monospace; font-size: 20px; color: var(--orange); flex: none; }
.faq-a { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0; padding: 0 0 28px; max-width: 760px; text-wrap: pretty; }
.faq-item:not(.open) .faq-a { display: none; }

/* Accordion status pill (for label + status summaries in a .faq-q row) */
.faq-status { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.faq-status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.faq-status.open-slot { color: #1F8A5B; } .faq-status.open-slot .dot { background: #1F8A5B; }
.faq-status.capacity { color: var(--orange); } .faq-status.capacity .dot { background: var(--orange); }
.faq-status.maybe { color: #B8860B; } .faq-status.maybe .dot { background: #C79A2E; }
.faq-status.waitlist { color: var(--teal); } .faq-status.waitlist .dot { background: var(--teal); }

/* ── Chips ── */
.chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.02em; padding: 11px 18px;
  border: 1px solid var(--ink-line-strong); background: transparent; color: var(--body);
  cursor: pointer; border-radius: 0; transition: border-color 0.12s ease, color 0.12s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--orange); border-color: var(--orange); color: var(--paper); font-weight: 600; }
/* dark-context chips (on ink/green bands) */
.dark-band .chip, .dod .chip {
  border-color: rgba(246,244,239,0.28); color: rgba(246,244,239,0.8);
}
.dark-band .chip:hover, .dod .chip:hover { border-color: rgba(246,244,239,0.55); color: var(--paper); }
.dark-band .chip.on, .dod .chip.on { background: var(--orange-hi); border-color: var(--orange-hi); color: var(--ink); }

/* ── Section CTA row ── */
.sec-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 48px; }
.sec-cta .note { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

/* ── Footer ── */
footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--paper-line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 9px; height: 9px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-loc { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--grey); }
footer a { color: inherit; }

/* Footer nav links */
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--paper-dim); text-decoration: none; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--paper); }

/* ── Dark note card (e.g. "Please, no sales.") ── */
.note-card { background: var(--ink); color: var(--paper); padding: 24px 28px; }
.note-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--paper-dim); }
.note-card .lead { color: var(--paper); font-weight: 600; }

/* ── Visibility helpers ── */
.only-mobile { display: none; }

/* ════════ RESPONSIVE (mobile ≤ 760px) ════════ */
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .only-desktop { display: none !important; }
  .only-mobile { display: block; }

  .eyebrow { font-size: 10px; margin-bottom: 14px; }
  h2.sec { font-size: 34px; line-height: 1.04; letter-spacing: -0.02em; }
  h3.sub { font-size: 27px; line-height: 1.06; }

  .header-inner { height: 58px; }
  .brand-name { font-size: 17px; }
  nav { gap: 0; }
  nav a.navlink { display: none; }
  nav a.nav-apply { font-size: 11px; padding: 11px 18px; }

  .hero { padding-top: 48px; }
  .hero h1 { font-size: 48px; line-height: 0.98; letter-spacing: -0.03em; }
  .hero-sub { display: block; margin-top: 0; }
  .hero-sub p { font-size: 16px; line-height: 1.65; margin: 24px 0 28px; }
  .hero-ctas { display: block; padding-bottom: 0; }
  .hero-ctas .btn-dark { display: block; text-align: center; padding: 18px 0; }
  .hero-ctas .link-ink { display: block; text-align: center; border-bottom: none; padding: 16px 0 0; font-size: 12px; }

  .dark-band { padding: 72px 0; }

  .dod { padding: 72px 0; }
  .dod-intro { display: block; margin-bottom: 36px; }
  .dod-intro h2 { font-size: 34px; line-height: 1.04; margin-bottom: 18px; }
  .dod-intro p { font-size: 15px; }
  .dod-grid { display: none; }
  .dod-rows { display: block; }

  .process { padding-top: 72px; padding-bottom: 72px; }
  .process .lede { font-size: 15px; margin: 16px 0 32px; }
  .phases { grid-template-columns: 1fr; gap: 16px; }
  .phase { padding: 26px 22px; gap: 14px; }
  .phase .ph-title { font-size: 24px; }
  .phase p { font-size: 14px; }
  .phase .ph-list { font-size: 12px; line-height: 2; }
  .phase .ph-foot { font-size: 13px; padding-top: 14px; }

  .ledger { margin-top: 64px; padding: 40px 20px 32px; margin-left: -20px; margin-right: -20px; }
  .ledger-intro { display: block; margin-bottom: 28px; }
  .ledger-intro p { font-size: 15px; margin-top: 14px; }

  .honesty { padding-top: 0; padding-bottom: 72px; }
  .honesty-inner { display: block; padding: 44px 0; }
  .honesty .sq { width: 16px; height: 16px; margin: 0 0 20px; }
  .honesty blockquote { font-size: 25px; line-height: 1.22; margin-bottom: 18px; }
  .honesty .attr { font-size: 11px; }

  .quote-cards { grid-template-columns: 1fr; margin-top: 28px; }
  .quote-card { padding: 24px 20px; gap: 16px; }
  .quote-card p { font-size: 14px; }
  .quote-card .who .img-slot { width: 44px; height: 44px; }

  .g-grid { grid-template-columns: 1fr; gap: 14px; }
  .g-card { padding: 26px 22px; }
  .g-card .g-id { font-size: 10px; margin-bottom: 12px; }
  .g-card .g-title { font-size: 23px; margin-bottom: 10px; }
  .g-card p { font-size: 14px; }
  .g-card.dark { display: block; }
  .g-card.dark .g-title { margin-bottom: 10px; }

  .who { padding-bottom: 72px; }
  .who-grid { display: block; }
  .who-copy h2 { margin-bottom: 24px; }
  .portrait { padding: 8px; margin-bottom: 24px; }
  .portrait .img-slot { height: 400px; }
  .portrait-img { height: 400px; }
  .who-copy p { font-size: 15px; margin-bottom: 14px; }
  .who-facts { margin-top: 28px; }
  .fact { grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; font-size: 11px; }

  .faq { padding-bottom: 80px; }
  .faq-q { gap: 20px; padding: 20px 0; }
  .faq-q .q { font-size: 17px; }
  .faq-q .icon { font-size: 18px; }
  .faq-a { font-size: 14px; padding-bottom: 22px; }

  .sec-cta { display: block; margin-top: 24px; }
  .sec-cta .note { display: none; }
  .sec-cta .btn-dark { display: block; text-align: center; padding: 16px 0; font-size: 12px; }

  footer { padding: 24px 0; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-brand .brand-name { font-size: 14px; }
  .footer-loc { font-size: 10px; letter-spacing: 0.04em; }
  .footer-nav { gap: 20px; }
}
