/* Kriyasa — site styles. Tokens mirror the design canvas. */
:root {
  --ink: #0E1116;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --accent: #F2A93B;
  --accent-text: #8A5A00;   /* eyebrow on light backgrounds (passes 4.5:1) */
  --muted: #4A5260;
  --body: #2E343D;
  --line: #DDD8CC;
  --line-soft: #E8E3D8;
  --input-line: #C9C2B4;
  --table-head: #EFEBE2;
  --placeholder: #E6E1D6;

  --dark-muted: #C9CED6;
  --dark-faint: #A9B0BB;
  --dark-card: #1A1F27;
  --dark-card-2: #161B22;
  --dark-line: #2A313B;
  --dark-line-2: #3A414C;
  --error-bg: #3A2326;
  --error-text: #FFB4B4;

  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.light :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 112px 24px; }
.section--white { background: var(--white); border-top: 1px solid var(--line-soft); }
.section--white.bordered { border-bottom: 1px solid var(--line-soft); }
.section--dark { background: var(--ink); color: var(--paper); }

/* Type */
.eyebrow {
  margin-bottom: 14px; font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent); }
.h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 48px;
  line-height: 1.08; letter-spacing: -.03em;
}
.lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: var(--dark-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 17px;
  padding: 16px 28px; min-height: 52px; border-radius: 12px; border: 0; cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ghost-dark { border: 1.5px solid var(--dark-line-2); color: var(--paper); }
.btn--outline { border: 1.5px solid var(--ink); padding: 14px; min-height: 48px; font-size: 16px; }
.btn--ink { background: var(--ink); color: var(--paper); padding: 14px; min-height: 48px; font-size: 16px; }
.btn--sm { font-size: 15px; padding: 12px 20px; min-height: 44px; border-radius: 10px; }
.btn--block { width: 100%; }

.check { display: flex; align-items: center; gap: 8px; }
.check svg { flex: none; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo span { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; color: var(--dark-muted); }

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding: 0 24px 96px; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; }
.hero__copy { flex: 999 1 520px; min-width: 0; }
.hero__aside { flex: 1 1 440px; min-width: 0; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 68px;
  line-height: 1.02; letter-spacing: -.035em;
}
.hero__sub { margin-top: 28px; font-size: 20px; line-height: 1.55; color: var(--dark-muted); max-width: 600px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; font-size: 15px; color: var(--dark-muted); }

.compare-label { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-faint); }
.compare-quote { margin-bottom: 18px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.3; }
.compare-card { padding: 24px; }
.compare-card--them { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 18px 18px 0 0; }
.compare-card--us { background: var(--dark-card-2); border: 2px solid var(--accent); border-radius: 0 0 18px 18px; margin-top: -1px; }
.compare-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.pill--bad { background: var(--error-bg); color: var(--error-text); }
.pill--good { background: var(--accent); color: var(--ink); font-weight: 700; }
.compare-card__list { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 14px; color: var(--dark-faint); }
.compare-card__steps { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.compare-card__foot {
  margin-top: 14px; border-top: 1px dashed var(--dark-line-2); padding-top: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
}
.compare-card__foot .big { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.compare-card__note { margin-top: 10px; font-size: 14px; color: var(--dark-faint); }
.compare-card__note--accent { font-size: 15px; font-weight: 600; color: var(--accent); }

.step { display: flex; gap: 10px; align-items: flex-start; }
.num {
  flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.num--lg { width: 30px; height: 30px; font-size: 14px; }

/* Hours vs results table */
.table { margin-top: 48px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.table__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); font-size: 16px; }
.table__row > * { padding: 20px 24px; }
.table__row--head { border-top: 0; background: var(--table-head); font-weight: 600; font-size: 15px; }
.table__row--head > * { padding: 18px 24px; }
.table__row--head .us { background: var(--ink); color: var(--paper); }
.table__row .label { font-weight: 600; }
.table__row .them { color: var(--muted); }
.table__row .ours { font-weight: 500; }

/* Card grids */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.card h3 { font-weight: 600; font-size: 20px; }
.card p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card--dark p { color: var(--dark-muted); }

/* Fix my org */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split--top { align-items: flex-start; }
.split__main { flex: 999 1 520px; min-width: 0; }
.errors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.errors code {
  font-family: var(--font-mono); font-size: 13px; background: var(--dark-card);
  border: 1px solid var(--error-bg); color: var(--error-text); padding: 9px 12px; border-radius: 8px;
}
.fix-card { flex: 1 1 360px; min-width: 0; background: var(--dark-card-2); border: 2px solid var(--accent); border-radius: 20px; padding: 32px; }
.fix-card__steps { display: flex; flex-direction: column; gap: 20px; list-style: none; margin: 0; padding: 0; }
.fix-card__steps li { display: flex; gap: 14px; }
.fix-card__steps strong { display: block; font-weight: 600; }
.fix-card__steps span.sub { display: block; margin-top: 4px; color: var(--dark-muted); font-size: 15px; }
.fix-card__note { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--dark-line-2); font-size: 14px; color: var(--dark-faint); line-height: 1.5; }
.fix-card .btn { margin-top: 20px; font-size: 16px; padding: 16px; }

/* Why */
.why__intro { flex: 1 1 340px; min-width: 0; }
.why__grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.why-card h3 { margin-bottom: 8px; font-weight: 600; font-size: 19px; }
.why-card p { color: var(--muted); line-height: 1.6; }

/* Ways to work */
.center { text-align: center; max-width: 720px; margin: 0 auto; }
.offer { border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--paper); }
.offer--featured { border: 2px solid var(--ink); background: var(--white); }
.offer__kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.offer h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.offer__desc { color: var(--body); line-height: 1.6; }
.offer__terms { font-size: 15px; font-weight: 600; }
.offer .btn { margin-top: auto; }

/* Process */
.process-step { border-top: 2px solid var(--accent); padding-top: 24px; }
.process-step .n { font-family: var(--font-display); font-size: 40px; font-weight: 700; }
.process-step h3 { margin: 12px 0 8px; font-weight: 600; font-size: 20px; }
.process-step p { color: var(--dark-muted); line-height: 1.6; }

/* Founder */
.founder__photo { flex: 1 1 300px; min-width: 0; }
.founder__photo .ph {
  aspect-ratio: 4 / 5; border-radius: 20px; background: var(--placeholder); border: 1px dashed #B9B2A3;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px;
}
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.founder__copy { flex: 999 1 480px; min-width: 0; }
.founder__copy .h2 { font-size: 44px; line-height: 1.1; }
.founder__copy p.body { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--body); }
.founder__copy p.body + p.body { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips span { font-size: 14px; font-weight: 500; background: var(--white); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq .h2 { margin-bottom: 40px; font-size: 44px; }
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 19px;
  display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--muted); line-height: 1.65; font-size: 17px; }

/* Final CTA + footer */
.final { padding: 0 24px; background: var(--ink); color: var(--paper); }
.final__cta { padding: 112px 0 96px; text-align: center; }
.final__cta h2 { margin: 0 auto; font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -.035em; max-width: 820px; }
.final__cta p { margin: 24px auto 0; color: var(--dark-muted); font-size: 19px; max-width: 560px; line-height: 1.55; }
.final__cta .btn { margin-top: 40px; font-size: 18px; padding: 18px 32px; min-height: 56px; }
.footer {
  border-top: 1px solid var(--dark-line); padding: 32px 0 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--dark-faint);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand strong { color: var(--paper); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Quote page ---------- */
.q-header { background: var(--ink); color: var(--paper); padding: 0 24px; }
.q-header .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.q-header .back { font-size: 15px; color: var(--dark-muted); min-height: 44px; display: inline-flex; align-items: center; }
.q-main { padding: 72px 24px 112px; }
.q-main .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.q-aside { flex: 1 1 300px; min-width: 0; }
.q-aside h1 { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1.06; letter-spacing: -.03em; }
.q-aside .lead { color: var(--muted); }
.q-aside .checks { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.q-aside .checks .check { gap: 10px; }
.q-card { flex: 999 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.q-form { display: flex; flex-direction: column; gap: 28px; }
.q-form fieldset { border: 0; padding: 0; margin: 0; }
.q-form legend { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.needs { display: flex; flex-wrap: wrap; gap: 10px; }
.need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.need span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; padding: 12px 18px; min-height: 44px; border-radius: 999px;
  border: 1.5px solid var(--input-line); background: var(--white); color: var(--ink); cursor: pointer;
}
.need input:checked + span { border-color: var(--ink); background: var(--accent); font-weight: 600; }
.need input:checked + span::before { content: "✓"; }
.need input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px; font-weight: 400; padding: 13px 14px;
  border: 1px solid var(--input-line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.field input { min-height: 48px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.fields-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.q-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 24px; }
.q-submit .btn { padding: 16px 32px; min-height: 54px; }
.q-submit small { color: var(--muted); font-size: 14px; }
.q-submit small a { border-bottom: 1px solid var(--muted); }
.q-error { color: #A12A1C; font-size: 15px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-done { text-align: center; padding: 56px 16px; }
.q-done .tick { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.q-done h2 { margin-top: 28px; font-family: var(--font-display); font-size: 36px; letter-spacing: -.02em; }
.q-done p { margin: 14px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 460px; }
.q-done .btn { margin-top: 32px; }
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 72px 16px; }
  .hero { padding: 0 16px 64px; }
  .hero__grid { padding-top: 40px; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .hero__sub { font-size: 18px; }
  .h2, .founder__copy .h2, .faq .h2 { font-size: 34px; }
  .final { padding: 0 16px; }
  .final__cta { padding: 72px 0 64px; }
  .final__cta h2 { font-size: 38px; }
  .table__row > *, .table__row--head > * { padding: 14px 12px; font-size: 14px; }
  .card, .offer, .fix-card { padding: 24px; }
  .grid--300, .grid--280, .grid--240, .why__grid { grid-template-columns: 1fr; }
  .compare-card__list { grid-template-columns: 1fr; }
  .q-header { padding: 0 16px; }
  .q-main { padding: 48px 16px 72px; }
  .q-aside h1 { font-size: 36px; }
  .q-card { padding: 24px; border-radius: 18px; }
  .btn { width: 100%; }
  .nav .btn, .q-header .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary .plus { transition: none; }
}
