/* Sidekick Browser — "The Margin Note" */
:root {
  --bg: #F7F4EC;
  --text: #1B2A2F;
  --accent: #F2B33D;
  --primary: #0F5E5A;
  --surface: #FFFFFF;
  --surface-high: #EFEADF;
  --muted: #4A5A5E;
  --outline: #6B7B7F;
  --hairline: #D9D3C5;
  --on-primary: #FFFFFF;
  --on-accent: #1B2A2F;
  --error: #B3261E;
  --success: #1E6B3A;
  --primary-soft: #E3EFEC;
  --font-heading: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius-card: 12px;
  --radius-ctl: 10px;
  --max: 1240px;
  --gutter: clamp(16px, 5vw, 32px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A1D;
    --text: #F7F4EC;
    --primary: #7FD1C7;
    --surface: #16262A;
    --surface-high: #1B2F34;
    --muted: #A9B7B9;
    --outline: #7E8D90;
    --hairline: #2C4146;
    --on-primary: #0E1A1D;
    --error: #FFB4A9;
    --success: #8FD9A8;
    --primary-soft: #1D3A3B;
  }
}

@media (prefers-contrast: more) {
  :root { --hairline: var(--outline); --muted: var(--text); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root { --text: #000000; --primary: #0A3F3C; --outline: #4A5A5E; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --text: #FFFFFF; --outline: #A9B7B9; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font: inherit; color: inherit; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); }
p { margin: 0 0 1em; }
strong, b { font-family: var(--font-heading); font-weight: 700; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.25em; }
code { font-family: var(--font-mono); font-size: .92em; }

.container { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 68ch; }
.muted { color: var(--muted); }
.m0 { margin: 0; }
.mt-m { margin-top: 18px; }
.mt-l { margin-top: 24px; }
.small { font-size: .875rem; line-height: 1.45; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: var(--radius-ctl);
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  min-height: 64px; padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 1 auto; min-width: 0; }
.logo-plate {
  display: inline-block; background: #FFFFFF; border-radius: 8px; padding: 4px 8px;
  line-height: 0;
}
.logo-plate img { height: 30px; width: auto; max-width: 100%; }
.header-cta { margin-left: auto; }
.main-nav { order: 3; flex: 1 0 100%; min-width: 0; }
.nav {
  list-style: none; margin: 0; padding: 0 0 4px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin;
}
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; border-radius: var(--radius-ctl); white-space: nowrap;
  color: var(--text); text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: .9375rem;
}
.nav a:hover { background: var(--surface-high); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; bottom: 4px; width: 28px; height: 6px;
  background: var(--accent); border-radius: 3px;
}
@media (min-width: 1024px) {
  .header-row { flex-wrap: nowrap; min-height: 72px; }
  .main-nav { order: 0; flex: 1 1 auto; }
  .nav { justify-content: center; padding: 0; overflow: visible; }
  .header-cta { margin-left: 0; }
}
@media (max-width: 420px) {
  .logo-plate img { height: 24px; }
  .header-cta { padding-inline: 12px; font-size: .875rem; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-ctl);
  font-family: var(--font-heading); font-weight: 700; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent; text-align: center;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-quiet:hover { background: var(--surface-high); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-soon {
  background: var(--surface-high); color: var(--muted); border-color: var(--hairline); cursor: default;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
.label .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.input, .textarea, .select {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-ctl);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 1px; }
.field { margin-bottom: 18px; min-width: 0; }
.hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.field-error { color: var(--error); font-size: .9375rem; margin: 6px 0 0; font-family: var(--font-heading); font-weight: 700; }
.field-error:empty { display: none; }
.field-error::before, .form-msg.is-error::before { content: "! "; }
.is-invalid { border-width: 2px; border-color: var(--error) !important; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.lead-form { position: relative; max-width: 560px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lead-row .input { min-height: 52px; }
@media (min-width: 600px) {
  .lead-row { grid-template-columns: minmax(0, 2fr) auto; }
  .lead-row .input, .lead-row .btn { min-height: 56px; }
}
.form-msg { margin: 10px 0 0; font-size: .9375rem; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--error); font-family: var(--font-heading); font-weight: 700; }
.form-msg.is-success {
  color: var(--success); font-family: var(--font-heading); font-weight: 700;
  border-left: 4px solid var(--accent); padding: 8px 0 8px 14px; background: var(--surface); border-radius: 0 8px 8px 0;
}
.form-msg.is-success::before { content: "✓ "; }
.lead-form.is-done .lead-row, .lead-form.is-done .label { display: none; }

/* ---------- Motif ---------- */
.tab-card {
  position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 24px; min-width: 0;
}
.tab-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; width: 28px; height: 6px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.rail { border-left: 4px solid var(--accent); padding-left: 16px; }
.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 700; font-size: .8125rem; line-height: 1.2;
}
.badge-accent { background: var(--accent); color: var(--on-accent); }
.badge-soon { background: var(--surface-high); color: var(--muted); border: 1px solid var(--hairline); }
.badge-line { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.kicker {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: .875rem;
  color: var(--primary); margin-bottom: 10px;
}
.grid-3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Home ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem); line-height: 1.05; max-width: 14ch; }
.hero .sub { font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem); max-width: 40ch; }
.hero .support { color: var(--muted); max-width: 46ch; }
.hero-media { position: relative; padding-right: 14px; min-width: 0; }
.hero-media::after {
  content: ""; position: absolute; top: 12%; bottom: 12%; right: 0; width: 6px;
  background: var(--accent); border-radius: 3px;
}
.hero-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
}
.hero-actions { margin-top: 14px; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; }
}

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.home-main { min-width: 0; }
.sidekick-rail { min-width: 0; padding-top: 8px; }
.rail-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 20px; position: relative; }
.rail-card::before { content: ""; position: absolute; left: -1px; top: 20px; bottom: 20px; width: 4px; background: var(--accent); border-radius: 0 3px 3px 0; }
.rail-card h2 { font-size: 1.125rem; margin-bottom: 4px; }
.rail-links { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.rail-links a {
  display: flex; flex-direction: column; min-height: 44px; padding: 10px 12px;
  border-radius: var(--radius-ctl); border: 1px solid var(--hairline); text-decoration: none; color: var(--text);
}
.rail-links a:hover { border-color: var(--primary); background: var(--primary-soft); }
.rail-links strong { color: var(--primary); }
.rail-links span { font-size: .875rem; color: var(--muted); }
@media (max-width: 1023px) {
  .rail-links { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); }
  .sidekick-rail { grid-column: 2; grid-row: 1; padding-top: 72px; }
  .rail-sticky { position: sticky; top: 104px; }
  .home-main { grid-column: 1; grid-row: 1; }
}

.problem-list { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 760px) { .problem-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.problem-list p { margin: 0; }

.feature-card h3 { margin-top: 6px; }
.feature-card dl { margin: 14px 0 16px; }
.feature-card dt { font-family: var(--font-heading); font-weight: 700; font-size: .8125rem; color: var(--primary); margin-top: 10px; }
.feature-card dd { margin: 2px 0 0; font-size: .9688rem; }
.card-link { font-family: var(--font-heading); font-weight: 700; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--primary); color: var(--on-primary);
  font-family: var(--font-heading); font-weight: 700; font-size: .9375rem;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 20px; }
.steps h3 { margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.privacy-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .privacy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.points li p { margin: 0; }

.audience { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--hairline); }
.audience > div { padding: 18px 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
@media (min-width: 760px) {
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
}
.audience h3 { font-size: 1.125rem; margin-bottom: 4px; }
.audience p { margin: 0; color: var(--muted); }

.tips-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tips-list li { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 16px 18px; }
.tips-list p { margin: 4px 0 0; color: var(--muted); }

/* Roadmap: rule and dots share the same gutter origin */
.roadmap { list-style: none; margin: 0 0 16px; padding: 0 0 0 32px; position: relative; display: grid; gap: 22px; }
.roadmap::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 4px; background: var(--accent); border-radius: 2px; }
.roadmap li { position: relative; min-width: 0; }
.roadmap li::before {
  content: ""; position: absolute; left: -29px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
}
.roadmap h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.roadmap p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .roadmap.is-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 30px 0 0; gap: 24px; }
  .roadmap.is-row::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 4px; }
  .roadmap.is-row li::before { left: 0; top: -27px; }
}

.plans-mini { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 20px 0; }
@media (min-width: 700px) { .plans-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plans-mini > div { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 16px 18px; min-width: 0; }
.plans-mini h3 { font-size: 1.0625rem; margin: 10px 0 4px; }
.plans-mini p { margin: 0; font-size: .9375rem; color: var(--muted); }

.cta-band { background: var(--surface-high); border-top: 1px solid var(--hairline); padding-block: clamp(44px, 6vw, 80px); }
.cta-box { max-width: 640px; }
.cta-box .after { margin-top: 18px; }

/* ---------- Tool pages ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) 20px; }
.page-head .lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.crumbs { font-size: .875rem; margin-bottom: 10px; }
.crumbs a { display: inline-flex; min-height: 32px; align-items: center; }
.tool-note { font-size: .9375rem; margin: 0 0 16px; padding-block: 4px; }
.workbench { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) { .workbench { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.pane { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: clamp(16px, 3vw, 24px); min-width: 0; }
.pane-title { font-size: 1.125rem; margin-bottom: 14px; }
.result-pane { min-height: 280px; }
.result-pane .empty { color: var(--muted); font-family: var(--font-mono); font-size: .9375rem; padding: 32px 0; text-align: center; border: 1px dashed var(--hairline); border-radius: var(--radius-ctl); }
.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.result-head h2 { font-size: 1.25rem; margin: 0; }
.mono { font-family: var(--font-mono); }
.example-note { font-size: .875rem; color: var(--muted); margin: 10px 0 0; }
.fadein { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* task table → cards on phone */
.task-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .9375rem; }
.task-table th { text-align: left; font-family: var(--font-heading); font-size: .8125rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.task-table td { padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; overflow-wrap: anywhere; }
.task-table td:first-child { width: 50%; }
.box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--outline); border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.prio-high { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 10px; font-family: var(--font-heading); font-weight: 700; font-size: .8125rem; }
@media (max-width: 699px) {
  .task-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .task-table, .task-table tbody, .task-table tr, .task-table td { display: block; width: 100% !important; }
  .task-table tr { border: 1px solid var(--hairline); border-radius: var(--radius-ctl); padding: 10px 12px; margin-bottom: 10px; }
  .task-table td { border: 0; padding: 2px 0; }
  .task-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-family: var(--font-heading); font-weight: 700; font-size: .8125rem; }
  .task-table td:first-child { font-family: var(--font-body); font-size: 1rem; padding-bottom: 6px; }
}

/* segmented controls */
.seg { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.seg legend { font-family: var(--font-heading); font-weight: 700; font-size: .9375rem; margin-bottom: 8px; padding: 0; }
.seg-options { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-options label { position: relative; flex: 1 1 auto; }
.seg-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-options span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px;
  border: 1px solid var(--outline); border-radius: var(--radius-ctl); background: var(--surface);
  font-family: var(--font-heading); font-weight: 700; font-size: .9063rem; text-align: center;
}
.seg-options input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.seg-options input:checked + span::before { content: "✓ "; white-space: pre; }
.seg-options input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.reply-out { font-family: var(--font-mono); font-size: .9375rem; min-height: 300px; background: var(--bg); }

/* planner */
.fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.fieldset legend { font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; padding: 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.repeater { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.rep-row { display: grid; gap: 8px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border: 1px solid var(--hairline); border-radius: var(--radius-ctl); background: var(--bg); }
.rep-row .full { grid-column: 1 / -1; }
.rep-row.is-invalid-row { border-left: 4px solid var(--error); }
.rep-row .label { font-size: .8125rem; margin-bottom: 4px; }
.rep-row .input { min-height: 44px; padding: 8px 10px; }
.rep-row .remove { grid-column: 1 / -1; justify-self: end; }
.rep-row .field-error { grid-column: 1 / -1; margin: 0; }
.link-btn { background: none; border: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 6px; font-family: var(--font-heading); font-weight: 700; font-size: .875rem; }
.plan-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.plan-table th { text-align: left; font-family: var(--font-heading); font-size: .8125rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.plan-table td { padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; overflow-wrap: anywhere; }
.plan-table td:first-child { font-family: var(--font-mono); white-space: nowrap; width: 1%; }
.plan-table tr.is-break td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.plan-table tr.is-break td { color: var(--muted); }
.type { display: inline-block; border-radius: 999px; padding: 0 10px; font-family: var(--font-heading); font-weight: 700; font-size: .8125rem; border: 1px solid var(--outline); }
.type-focus { color: var(--primary); border-color: var(--primary); }
.type-break { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.plan-summary { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); margin: 0 0 12px; }
.overflow-box { margin-top: 18px; border: 2px solid var(--outline); border-radius: var(--radius-ctl); padding: 14px 16px; }
.overflow-box h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.overflow-box ul { margin: 8px 0 0; }
.all-fit { color: var(--success); font-family: var(--font-heading); font-weight: 700; margin-top: 16px; }
.all-fit::before { content: "✓ "; }
@media (max-width: 480px) {
  .plan-table td:first-child { white-space: normal; }
}

.how { background: var(--surface-high); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding-block: clamp(40px, 6vw, 72px); }
.how-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.how-grid img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--hairline); }
.how-grid .sq { max-width: 440px; aspect-ratio: 1; object-fit: cover; }
.how ol { padding-left: 1.4em; }
.how ol li { margin-bottom: 8px; }
.more-tools { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
@media (min-width: 640px) { .more-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-tools a { display: block; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); text-decoration: none; color: var(--text); }
.more-tools a:hover { border-color: var(--primary); }
.more-tools strong { color: var(--primary); display: block; }
.more-tools span { color: var(--muted); font-size: .9375rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 52px 14px 18px; position: relative;
  font-family: var(--font-heading); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; }
.faq details > div p:last-child { margin: 0; }

/* Pricing */
.status-banner { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-card); padding: 12px 18px; font-family: var(--font-heading); font-weight: 700; margin-top: 24px; }
.plan-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
@media (min-width: 900px) { .plan-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; }
.plan.is-current { border: 2px solid var(--primary); }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 8px; }
.plan-top h2 { font-size: 1.375rem; margin: 0; }
.price { font-family: var(--font-heading); font-weight: 700; font-size: 1.75rem; margin: 4px 0 8px; }
.price.is-soon { font-size: 1.125rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan .btn-row { margin-top: auto; }

/* About / contact / legal */
.story-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .story-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; } }
.story-grid img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--hairline); aspect-ratio: 3 / 2; object-fit: cover; }
.beliefs { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 68ch; }
.beliefs p { margin: 0; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; } }
.error-summary { border: 2px solid var(--error); border-radius: var(--radius-ctl); padding: 14px 16px; margin-bottom: 20px; background: var(--surface); }
.error-summary h2 { font-size: 1.0625rem; color: var(--error); margin-bottom: 6px; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--error); font-weight: 700; }
.contact-side dl { margin: 0; }
.contact-side dt { font-family: var(--font-heading); font-weight: 700; margin-top: 12px; }
.contact-side dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.success-panel { border-left: 4px solid var(--accent); padding: 16px 18px; background: var(--surface); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.success-panel h2 { color: var(--success); font-size: 1.25rem; }
.legal { padding-bottom: clamp(40px, 6vw, 80px); }
.legal h2 { font-size: 1.375rem; margin-top: 1.8em; }
.legal li { margin-bottom: 6px; }
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 14px 18px; margin-bottom: 20px; max-width: 68ch; }
.toc summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; min-height: 32px; }
.toc ol { margin: 10px 0 0; }

.nf { display: grid; gap: 24px; justify-items: center; text-align: center; padding-block: clamp(32px, 6vw, 72px); }
.nf img { width: min(100%, 340px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--hairline); }
.nf .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-high); border-top: 1px solid var(--hairline); padding-top: 40px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid h2 { font-size: .9375rem; margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-grid p { margin: 10px 0 0; }
.footer-base { border-top: 1px solid var(--hairline); margin-top: 28px; padding-block: 18px 28px; color: var(--muted); }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .no-print, .how, .cta-band, .section, .page-head .lead, .badge-row, .tool-note, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .workbench { display: block; }
  .pane { border: 0; padding: 0; }
  .input-pane { display: none; }
  .plan-table td, .plan-table th { color: #000 !important; border-color: #999; }
  .type { border-color: #000; color: #000; background: #fff; }
  .plan-table tr.is-break td:first-child { box-shadow: inset 4px 0 0 #000; }
}
