/* =====================================================
   Rundown — V1 design system
   CMYK-press palette: ink cyan is the masthead voice;
   process cyan, magenta, and yellow are the editorial accents.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Background tones */
  --bg: #FBF9F4;
  --bg-surface: #FFFFFF;
  --bg-cream: #E9E4DA;
  --bg-cream-light: #F2EEE5;

  /* Text */
  --text: #1A1A1A;
  --text-2: #555550;
  --text-3: #8C8A82;
  --text-on-dark: #FBF9F4;

  /* Brand — ink cyan (the press's first stop) */
  --brand: #0F6E7C;
  --brand-dark: #0B5660;
  --brand-cyan: #1AA6B7;        /* process cyan highlight · "published" · R on dark */
  --brand-cyan-soft: #A6DAE0;   /* "scheduled" surface */
  --brand-cyan-pale: #D5ECEF;   /* "ready" / informational surface */

  /* CMYK accents — magenta & yellow earn editorial roles */
  --accent-magenta: #D14C7A;
  --accent-magenta-pale: #F4DAE3;
  --accent-magenta-deep: #8B2A4F;
  --accent-yellow: #E8B84A;
  --accent-yellow-pale: #FAEFCF;
  --accent-yellow-deep: #6A4A0F;

  /* Borders / dividers */
  --line: #D9D3C6;
  --line-soft: #E9E4DA;

  /* Functional */
  --warn: #C68642;
  --warn-bg: #F7E8D4;
  --success: #0F6E7C;
  --info-bg: #D5ECEF;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.06);
  --shadow-lg: 0 12px 40px rgba(26,26,26,0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--text); }
h1 { font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }

.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }
.label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--text-2); font-size: 18px; line-height: 1.4; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

/* ===== LAYOUT ===== */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-2) var(--s-3);
}

.brand-mark {
  width: 24px;
  height: 28px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='25 8 206 245'><polygon points='128,18 35,165 128,220' fill='%231A1A1A'/><polygon points='128,18 221,165 128,220' fill='%231A1A1A'/><rect x='121' y='18' width='14' height='183' fill='%23FBF9F4'/><circle cx='128' cy='101' r='17' fill='%23FBF9F4'/><circle cx='128' cy='229' r='14' fill='%231A1A1A'/></svg>");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0;
  color: transparent;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: var(--s-3) var(--s-3) var(--s-2); font-weight: 600; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { background: var(--bg-cream-light); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--bg-surface); color: var(--text); box-shadow: var(--shadow-sm); }
.nav a .count { margin-left: auto; font-size: 12px; color: var(--text-3); }

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }

.workspace-switcher {
  margin-top: auto;
  padding: var(--s-3);
  background: var(--bg-cream-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-cyan);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  font-family: var(--sans);
  flex-shrink: 0;
}

.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }

/* ===== MAIN ===== */
.main {
  padding: var(--s-6) var(--s-7);
  max-width: 1400px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}

.page-head .left { max-width: 720px; }
.page-head h1 { margin-bottom: var(--s-2); }

.page-actions { display: flex; gap: var(--s-2); align-items: center; }

/* ===== BUTTONS ===== */
.btn {
  border: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn:hover { background: var(--bg-cream-light); }

.btn-primary {
  background: var(--brand);
  color: var(--text-on-dark);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg-cream-light); color: var(--text); }

.btn-mint {
  background: var(--brand-cyan);
  color: var(--brand);
  border-color: var(--brand-cyan);
  font-weight: 600;
}

.btn-sm { padding: 6px 10px; font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.card-cream {
  background: var(--bg-cream-light);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
}

/* ===== PILLS & STATUSES ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-cream);
  color: var(--text-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }

.pill-draft { background: var(--accent-magenta-pale); color: var(--accent-magenta-deep); }
.pill-draft .dot { background: var(--accent-magenta); }

.pill-progress { background: var(--accent-yellow-pale); color: var(--accent-yellow-deep); }
.pill-progress .dot { background: var(--accent-yellow); }

.pill-review { background: var(--bg-cream); color: var(--text-2); }
.pill-review .dot { background: var(--text-2); }

.pill-ready { background: var(--brand-cyan-pale); color: var(--brand); }
.pill-ready .dot { background: var(--brand); }

.pill-scheduled { background: var(--brand-cyan-soft); color: var(--brand); }
.pill-scheduled .dot { background: var(--brand-cyan); }

.pill-published { background: var(--brand); color: var(--brand-cyan); }
.pill-published .dot { background: var(--brand-cyan); }

/* ===== TABLES / ROWS ===== */
.row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }

/* ===== UTILITY ===== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grow { flex-grow: 1; }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.weight-500 { font-weight: 500; }
.weight-600 { font-weight: 600; }

/* ===== ICONS ===== */
.ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== CALENDAR ===== */
.cal {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-cream-light);
  border-bottom: 1px solid var(--line-soft);
}
.cal-head > div {
  padding: var(--s-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-right: 1px solid var(--line-soft);
}
.cal-head > div:last-child { border-right: 0; }
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day {
  min-height: 140px;
  padding: var(--s-3);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.muted-day { background: var(--bg-cream-light); }
.cal-day.muted-day .date-num { color: var(--text-3); }
.cal-day.today .date-num { color: var(--brand); font-weight: 600; }
.cal-day.today .date-num::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand-cyan);
  border-radius: 50%;
  margin-top: 2px;
}
.date-num { font-size: 13px; font-weight: 500; color: var(--text-2); }

.story-chip {
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: var(--bg-cream-light);
  border-left: 3px solid var(--text-3);
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-chip.s-draft { border-left-color: var(--accent-magenta); background: var(--accent-magenta-pale); }
.story-chip.s-review { border-left-color: var(--text-2); }
.story-chip.s-ready { border-left-color: var(--brand); background: var(--brand-cyan-pale); }
.story-chip.s-scheduled { border-left-color: var(--brand-cyan); background: var(--brand-cyan-soft); }
.story-chip.s-published { border-left-color: var(--brand); background: var(--brand); color: var(--brand-cyan); }

/* ===== CRITIQUE PANEL ===== */
.critique {
  background: var(--bg-cream-light);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}

.critique-head {
  padding: var(--s-4) var(--s-5);
  background: var(--brand);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.critique-head .mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-cyan);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  font-style: italic;
}
.critique-head h4 { color: var(--text-on-dark); font-weight: 500; font-family: var(--serif); font-size: 16px; }
.critique-head .small { color: rgba(251, 249, 244, 0.65); }

.crit-section { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line-soft); }
.crit-section:last-child { border-bottom: 0; }
.crit-section h5 {
  margin: 0 0 var(--s-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crit-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text);
}
.crit-score .num { font-weight: 600; font-size: 13px; color: var(--brand); }

.crit-finding {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-2);
}
.crit-finding.warn { border-left-color: var(--warn); }
.crit-finding.info { border-left-color: var(--brand-cyan); }

.crit-finding .crit-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: var(--s-2);
}
.crit-finding .crit-body { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.crit-finding .crit-actions { display: flex; gap: var(--s-2); margin-top: var(--s-3); }

.crit-suggested {
  background: var(--brand-cyan-pale);
  padding: 10px var(--s-3);
  border-radius: var(--r-sm);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brand);
  margin-top: var(--s-2);
  line-height: 1.4;
}

/* ===== INPUTS ===== */
.input, .select, .textarea {
  border: 1px solid var(--line);
  background: var(--bg-surface);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--brand-cyan-soft); outline-offset: 1px; }

.input-search {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C8A82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* ===== STAT CALLOUTS ===== */
.stat {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
}

.search-wrap { flex-grow: 1; max-width: 480px; }

/* ===== INDEX PAGE ===== */
.cover {
  background: var(--bg);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--s-7);
}
.cover-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}
.cover-hero { max-width: 820px; margin-bottom: var(--s-8); }
.cover-hero h1 { font-size: 72px; line-height: 1.0; letter-spacing: -0.025em; }
.cover-hero .tagline { font-size: 22px; margin-top: var(--s-3); }
.cover-section-label { color: var(--text-3); margin-bottom: var(--s-4); }

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.screen-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.screen-card:hover { box-shadow: var(--shadow-md); border-color: var(--line); text-decoration: none; }
.screen-card .num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.screen-card h3 { margin: var(--s-2) 0 var(--s-2); }
.screen-card p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.5; }

/* ===== SIGN IN ===== */
.signin-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.signin-left {
  background: var(--brand);
  color: var(--text-on-dark);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.signin-left .brand { color: var(--text-on-dark); }
.signin-left .brand-name { color: var(--text-on-dark); }
.signin-left .brand-mark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='25 8 206 245'><polygon points='128,18 35,165 128,220' fill='%23FBF9F4'/><polygon points='128,18 221,165 128,220' fill='%23FBF9F4'/><rect x='121' y='18' width='14' height='183' fill='%230B5660'/><circle cx='128' cy='101' r='17' fill='%230B5660'/><circle cx='128' cy='229' r='14' fill='%23FBF9F4'/></svg>");
}
.signin-left h1 { color: var(--text-on-dark); font-size: 56px; line-height: 1.05; }
.signin-left .tagline { color: var(--brand-cyan-soft); font-size: 20px; }
.signin-right {
  padding: var(--s-8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.signin-form { width: 100%; max-width: 380px; }
.signin-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.signin-form .input { margin-bottom: var(--s-4); }
.signin-form .btn { width: 100%; justify-content: center; padding: 12px; }
.signin-form .oauth { padding: 10px 14px; border: 1px solid var(--line); background: var(--bg-surface); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; width: 100%; font-weight: 500; }
.signin-form .oauth:hover { background: var(--bg-cream-light); }

/* ===== SPECIFIC ===== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-5); }

.story-list-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px 100px 80px;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.story-list-row:last-child { border-bottom: 0; }
.story-list-row .title { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--text); }
.story-list-row .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.story-list-row .due { font-size: 13px; color: var(--text-2); }

.beats-bar { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.beat-chip {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-cream-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line-soft);
}
.beat-chip.active { background: var(--brand); color: var(--brand-cyan); border-color: var(--brand); }

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-4);
}
.asset {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.asset .preview {
  aspect-ratio: 4 / 3;
  background: var(--bg-cream);
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 28px;
  position: relative;
}
.asset .preview.with-image { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: var(--brand-cyan); }
.asset .meta { padding: var(--s-3); }
.asset .name { font-weight: 500; font-size: 13px; }
.asset .sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.asset .tags { display: flex; gap: 4px; margin-top: var(--s-2); flex-wrap: wrap; }
.asset .tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: var(--bg-cream); color: var(--text-2); font-weight: 500; }

.cap-grid { display: grid; grid-template-columns: 200px repeat(7, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.cap-cell { background: var(--bg-surface); padding: var(--s-3); }
.cap-header { background: var(--bg-cream-light); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.cap-person { background: var(--bg-cream-light); display: flex; align-items: center; gap: 10px; padding: var(--s-3); }
.cap-cell.over { background: var(--warn-bg); }
.cap-cell.full { background: var(--brand-cyan-pale); }
.cap-cell .load { font-family: var(--serif); font-size: 18px; color: var(--text); }
.cap-cell .load-sub { font-size: 11px; color: var(--text-3); }

.workflow-step {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  gap: var(--s-3);
  align-items: center;
}
.workflow-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-cyan-pale);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
}
.workflow-step + .workflow-step::before {
  content: '';
  position: absolute;
  left: 36px;
  top: -16px;
  height: 16px;
  width: 1px;
  background: var(--line);
}

.integration-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--bg-surface); }
.integration-logo { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--bg-cream); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--brand); flex-shrink: 0; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: var(--s-5); }
}

/* =====================================================
   Marketing site
   ===================================================== */

.site { display: flex; flex-direction: column; min-height: 100vh; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  width: 100%;
}

/* Top nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 64px;
}
.site-nav .brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-left: var(--s-7);
  flex-grow: 1;
}
.site-nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.site-nav-links a:hover { color: var(--text); text-decoration: none; }
.site-nav-cta { display: flex; gap: var(--s-2); align-items: center; }

/* CMYK bar — pinned under the nav as a persistent visual rule */
.site-nav-rule {
  display: flex;
  height: 6px;
  width: 100%;
}
.site-nav-rule div { flex: 1; }
.site-nav-rule div:nth-child(1) { background: #1AA6B7; }
.site-nav-rule div:nth-child(2) { background: #D14C7A; }
.site-nav-rule div:nth-child(3) { background: #E8B84A; }
.site-nav-rule div:nth-child(4) { background: #1A1A1A; }

/* Hero */
.hero {
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: 1px solid var(--line-soft);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 4px 12px;
  background: var(--brand-cyan-pale);
  color: var(--brand);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-5);
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--brand-cyan); border-radius: 50%; }
.hero h1 {
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 920px;
}
.hero .tagline {
  font-size: 22px;
  margin-top: var(--s-5);
  max-width: 720px;
}
.hero-cta {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-6);
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta .btn { padding: 12px 18px; font-size: 15px; }
.hero-meta {
  margin-top: var(--s-5);
  color: var(--text-3);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.hero-meta .dot { width: 4px; height: 4px; background: var(--text-3); border-radius: 50%; }

/* Hero figure - inline critique demo */
.hero-figure {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
}
.hero-figure-left {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.hero-figure-left .story-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.hero-figure-left .story-body p { margin: 0 0 var(--s-4); }
.hero-figure-left .story-body .buried {
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(232, 184, 74, 0.32) 60%, rgba(232, 184, 74, 0.32) 95%, transparent 95%);
  padding: 0 2px;
}
.hero-figure-left .story-tag {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

/* Sections */
.section { padding: var(--s-8) 0; border-bottom: 1px solid var(--line-soft); }
.section.no-border { border-bottom: 0; }
.section-eyebrow {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.section h2 { max-width: 820px; }
.section-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-2);
  max-width: 720px;
  line-height: 1.4;
  margin-top: var(--s-4);
}

/* The problem - 3-claim grid */
.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.claim {
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
}
.claim-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: var(--s-2);
}
.claim h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: var(--s-3);
}
.claim p { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0; }

/* Four product layers */
.layers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.layer {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.layer-num {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.layer-num .swatch {
  width: 12px;
  height: 12px;
  background: var(--brand-cyan);
  border-radius: 2px;
}
.layer h3 { font-size: 26px; line-height: 1.15; }
.layer p { color: var(--text-2); margin: 0; font-size: 14px; line-height: 1.6; }
.layer ul {
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  color: var(--text-2);
  font-size: 13px;
}
.layer ul li { padding-left: 18px; position: relative; }
.layer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--brand-cyan);
}
.layer.feature {
  background: var(--brand);
  color: var(--text-on-dark);
  border-color: var(--brand);
}
.layer.feature h3, .layer.feature .layer-num { color: var(--text-on-dark); }
.layer.feature p, .layer.feature ul { color: rgba(251, 249, 244, 0.85); }
.layer.feature .layer-num .swatch { background: var(--brand-cyan); }
.layer.feature ul li::before { background: var(--brand-cyan); }

/* Desk editor showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: start;
  margin-top: var(--s-6);
}
.showcase-copy h3 { font-size: 32px; line-height: 1.15; margin-bottom: var(--s-4); }
.showcase-copy p { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0 0 var(--s-3); }
.showcase-list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.showcase-list li {
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
  font-size: 13px;
  color: var(--text-2);
}
.showcase-list li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Comparison band */
.compare {
  background: var(--bg-cream-light);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.compare-stack { display: flex; flex-direction: column; gap: var(--s-2); }
.compare-stack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 14px;
}
.compare-stack-row .price { color: var(--text-3); font-variant-numeric: tabular-nums; }
.compare-total {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-weight: 600;
  font-size: 15px;
}
.compare-total .num { color: var(--warn); font-variant-numeric: tabular-nums; }
.compare-headline { font-size: 32px; line-height: 1.15; margin-bottom: var(--s-3); }
.compare-our-price {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.compare-our-price-sub { font-size: 14px; color: var(--text-3); margin-top: var(--s-2); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.price-card.recommended {
  border: 1px solid var(--brand);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.recommended::before {
  content: 'Most teams pick this';
  position: absolute;
  top: -10px;
  left: var(--s-5);
  background: var(--brand);
  color: var(--brand-cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.price-tier {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.price-amount {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.price-amount .per { font-size: 13px; color: var(--text-3); font-family: var(--sans); font-weight: 500; }
.price-card p { color: var(--text-2); font-size: 13px; line-height: 1.5; margin: 0; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--text-2);
}
.price-card ul li {
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
}
.price-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan-pale);
  border: 1px solid var(--brand-cyan);
}
.price-card .btn { margin-top: auto; justify-content: center; }

/* Segments grid */
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.segment {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  background: var(--bg-surface);
}
.segment .label { display: block; margin-bottom: var(--s-3); }
.segment h4 { font-size: 22px; font-family: var(--serif); margin-bottom: var(--s-3); }
.segment p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0; }

/* Not-building list */
.not-building {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-6);
}
.not-building div {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--text-2);
}
.not-building div strong {
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
  width: 200px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

/* FAQ */
.faq { margin-top: var(--s-6); display: flex; flex-direction: column; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s-4) 0;
}
.faq details[open] summary { color: var(--brand); }
.faq summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-3);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; color: var(--brand); }
.faq p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin: var(--s-3) 0 0;
  max-width: 760px;
}

/* CTA band */
.cta-band {
  background: var(--brand);
  color: var(--text-on-dark);
  padding: var(--s-8) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--text-on-dark);
  font-size: 48px;
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto;
}
.cta-band .tagline {
  color: var(--brand-cyan-soft);
  margin-top: var(--s-4);
  font-size: 20px;
}
.cta-band-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-6);
  flex-wrap: wrap;
}
.cta-band .btn-primary {
  background: var(--brand-cyan);
  color: var(--text-on-dark);
  border-color: var(--brand-cyan);
}
.cta-band .btn-primary:hover { background: #27B7C8; border-color: #27B7C8; }
.cta-band .btn {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(251, 249, 244, 0.3);
}
.cta-band .btn:hover { background: rgba(251, 249, 244, 0.08); }

/* Footer */
.site-footer {
  background: var(--bg);
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--line);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
.site-footer .brand { padding: 0; margin-bottom: var(--s-3); }
.site-footer .footer-blurb { color: var(--text-2); font-size: 14px; max-width: 320px; line-height: 1.5; }
.site-footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin: 0 0 var(--s-3);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.site-footer ul a { color: var(--text-2); font-size: 14px; }
.site-footer ul a:hover { color: var(--text); text-decoration: none; }
.site-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: 13px;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.cmyk-rule {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  margin: var(--s-4) 0;
}
.cmyk-rule div { flex: 1; }
.cmyk-rule div:nth-child(1) { background: #1AA6B7; }
.cmyk-rule div:nth-child(2) { background: #D14C7A; }
.cmyk-rule div:nth-child(3) { background: #E8B84A; }
.cmyk-rule div:nth-child(4) { background: #1A1A1A; }

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-8);
}
.legal-head { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); margin-bottom: var(--s-6); }
.legal h1 { font-size: 56px; line-height: 1.05; margin-bottom: var(--s-3); }
.legal .meta { color: var(--text-3); font-size: 13px; }
.legal .tagline { margin-top: var(--s-3); font-size: 18px; }
.legal h2 {
  font-size: 24px;
  margin: var(--s-7) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: var(--s-6); }
.legal h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.legal p, .legal li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
.legal p { margin: 0 0 var(--s-4); }
.legal ul, .legal ol { padding-left: var(--s-5); margin: 0 0 var(--s-4); }
.legal ul li, .legal ol li { margin-bottom: var(--s-2); }
.legal a { color: var(--brand); text-decoration: underline; }
.legal .toc {
  background: var(--bg-cream-light);
  border-left: 3px solid var(--brand);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: var(--s-6);
}
.legal .toc h5 { margin: 0 0 var(--s-2); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.legal .toc ol { padding-left: var(--s-5); margin: 0; font-size: 14px; }
.legal .toc a { color: var(--text-2); text-decoration: none; }
.legal .toc a:hover { color: var(--brand); text-decoration: underline; }
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: var(--s-5);
}
.legal .back-link:hover { color: var(--brand); text-decoration: none; }

/* Product gallery — placeholder slots for app screenshots */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.shot {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shot-image {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-cream-light) 0,
      var(--bg-cream-light) 12px,
      var(--bg-cream) 12px,
      var(--bg-cream) 13px
    );
  display: grid;
  place-items: center;
  color: var(--text-3);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.shot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-placeholder {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-3);
  padding: var(--s-5);
}
.shot-placeholder .shot-filename {
  display: block;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  margin-top: var(--s-3);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  display: inline-block;
}
.shot-meta {
  padding: var(--s-4) var(--s-5);
}
.shot-meta .label { display: block; margin-bottom: 4px; }
.shot-meta h4 { font-size: 18px; font-family: var(--serif); font-weight: 500; margin-bottom: 4px; }
.shot-meta p { color: var(--text-2); font-size: 13px; line-height: 1.5; margin: 0; }

/* Early-access form */
.form-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 67px);
}
.form-page-left {
  background: var(--brand);
  color: var(--text-on-dark);
  padding: var(--s-8) var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.form-page-left h1 { color: var(--text-on-dark); font-size: 48px; line-height: 1.05; }
.form-page-left .tagline { color: var(--brand-cyan-soft); font-size: 19px; margin-top: var(--s-4); max-width: 440px; }
.form-page-left .testimonial-block {
  border-left: 3px solid var(--brand-cyan);
  padding-left: var(--s-4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--text-on-dark);
  margin-top: var(--s-6);
  max-width: 440px;
}
.form-page-left .testimonial-block .who {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--brand-cyan-soft);
  margin-top: var(--s-2);
}
.form-page-left ul.what-you-get {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 440px;
}
.form-page-left ul.what-you-get li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-on-dark);
}
.form-page-left ul.what-you-get li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 6px;
  border-left: 2px solid var(--brand-cyan);
  border-bottom: 2px solid var(--brand-cyan);
  transform: rotate(-45deg);
}

.form-page-right {
  padding: var(--s-8) var(--s-7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
}
.form-page-right .form-wrap { width: 100%; max-width: 480px; }
.form-page-right h2 { font-size: 28px; margin-bottom: var(--s-2); }
.form-page-right .lead {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 var(--s-6);
  line-height: 1.5;
}

.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field label .req { color: var(--warn); margin-left: 2px; }
.field .help {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

.radio-group, .checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.radio-group label, .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: var(--bg-surface);
  margin-bottom: 0;
  transition: all 0.15s;
}
.radio-group label:hover, .checkbox-group label:hover { background: var(--bg-cream-light); }
.radio-group input, .checkbox-group input { margin: 0; }
.radio-group input:checked + span,
.radio-group label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-cyan-pale);
  color: var(--brand);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--sans);
}

.form-actions { margin-top: var(--s-6); }
.form-actions .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.form-disclaimer {
  margin-top: var(--s-4);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  text-align: center;
}

/* Thanks page */
.thanks-wrap {
  min-height: calc(100vh - 67px);
  display: grid;
  place-items: center;
  padding: var(--s-7) var(--s-6);
  text-align: center;
}
.thanks-card {
  max-width: 560px;
}
.thanks-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-cyan-pale);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
}
.thanks-card h1 { font-size: 48px; line-height: 1.05; margin-bottom: var(--s-4); }
.thanks-card .tagline { font-size: 19px; margin-bottom: var(--s-6); }
.thanks-card .what-next {
  background: var(--bg-cream-light);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-align: left;
  margin: var(--s-6) 0;
}
.thanks-card .what-next h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: var(--s-3); }
.thanks-card .what-next ol { padding-left: var(--s-5); margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.thanks-card .what-next ol li { margin-bottom: var(--s-2); }

/* Responsive */
@media (max-width: 980px) {
  .hero h1 { font-size: 48px; }
  .hero-figure, .showcase, .compare, .site-footer-grid { grid-template-columns: 1fr; }
  .claims, .pricing-grid, .layers, .segments, .not-building, .gallery { grid-template-columns: 1fr; }
  .showcase-list, .field-row, .radio-group, .checkbox-group { grid-template-columns: 1fr; }
  .cta-band h2 { font-size: 36px; }
  .legal h1 { font-size: 40px; }
  .site-nav-links { display: none; }
  .section { padding: var(--s-7) 0; }
  .container { padding: 0 var(--s-5); }
  .form-page { grid-template-columns: 1fr; }
  .form-page-left { padding: var(--s-6); }
  .form-page-right { padding: var(--s-6); }
  .thanks-card h1 { font-size: 36px; }
}
