/* MyFlowEasy: site styles.
   Layout: left-aligned editorial column. The hero object is a live before/after stage
   (spreadsheet -> app). "Before" surfaces use cool sheet greys, "after" surfaces use the warm brand.
   Single light theme by choice. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #faf7f3;
  --ink: #1b1611;
  --ink-2: #574d44;
  --ink-3: #74695f;
  --line: #ebe4dc;
  --line-2: #d8cdc1;
  --tint: #fff3ea;
  --accent: #f2611d;
  --accent-hover: #ff7c3f;
  --accent-soft: #fbd3bb;
  --accent-ink: #a8420c;
  --sheet: #f4f5f3;
  --sheet-head: #e6e9e4;
  --sheet-line: #d5d9d2;
  --sheet-ink: #3b4039;
  --ok: #1d6f47; --ok-bg: #e4f3ea;
  --warn: #8a5300; --warn-bg: #ffefcc;
  --info: #1d5ca3; --info-bg: #e6effa;
  --bad: #b42318; --bad-bg: #fdebe9;
  --muted: #62584f; --muted-bg: #f1ece6;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 22, 17, .06), 0 10px 30px rgba(27, 22, 17, .08);
  --max: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Type */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 650; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); line-height: 1.07; letter-spacing: -.015em; font-weight: 650; }
h3 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 650; }
p { margin: 0; }
.lede { font-size: clamp(1.07rem, 1.55vw, 1.2rem); color: var(--ink-2); max-width: 58ch; }
.eyebrow { font-family: var(--body); font-size: .92rem; letter-spacing: 0; color: var(--accent-ink); font-weight: 600; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .72rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #3a3129; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .93rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Status pills: always a text label, never colour alone */
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; padding: .18rem .65rem; border-radius: 999px; white-space: nowrap; line-height: 1.45; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.muted { background: var(--muted-bg); color: var(--muted); }
.st-row .pill { font-size: 11.5px; padding: 3px 9px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { --mk-bg: var(--paper); display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.025em; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; margin-left: -4px; }
.mk-ring { stroke: var(--mk-bg, #fff); }
.site-footer .brand { --mk-bg: var(--ink); }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-cta { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu nav { display: grid; gap: .25rem; padding-block: .75rem 1.25rem; }
.mobile-menu a:not(.btn) { display: block; padding: .8rem .25rem; font-family: var(--display); font-size: 1.35rem; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: .9rem; }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-head { display: grid; gap: 1rem; max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Hero stage: spreadsheet -> app */
.stage-card { min-width: 0; display: grid; gap: .85rem; }
.stage-frame { background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(10px, 1.6vw, 16px); box-shadow: var(--shadow); }
.stage-scale { position: relative; width: 100%; aspect-ratio: 520 / 420; overflow: hidden; border-radius: 12px; background: var(--sheet); }
.stage {
  position: absolute; top: 0; left: 0; width: 520px; height: 420px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
  font-family: var(--body); color: var(--ink); font-size: 13px; line-height: 1.3;
  background: var(--sheet); transition: background-color .8s ease;
}
.stage[data-state="app"] { background: var(--paper-2); }
.st { position: absolute; transition-property: top, left, width, height, border-radius, background-color, box-shadow, border-color, opacity, transform; transition-duration: .8s; transition-timing-function: cubic-bezier(.65, 0, .25, 1); }
.st-grid {
  inset: 62px 0 0 0;
  background:
    linear-gradient(var(--sheet-line), var(--sheet-line)) 30px 0 / 1px 100% no-repeat,
    linear-gradient(var(--sheet-line), var(--sheet-line)) 182px 0 / 1px 100% no-repeat,
    linear-gradient(var(--sheet-line), var(--sheet-line)) 334px 0 / 1px 100% no-repeat,
    linear-gradient(var(--sheet-line), var(--sheet-line)) 424px 0 / 1px 100% no-repeat,
    linear-gradient(var(--sheet-head), var(--sheet-head)) 0 0 / 30px 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 23px, var(--sheet-line) 23px 24px, transparent 24px 24px) 0 0 / 100% 24px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 29px, var(--sheet-line) 29px 30px) 0 24px / 100% 100% no-repeat;
}
.stage[data-state="app"] .st-grid { opacity: 0; transition-duration: .5s; }
.st-chrome { top: 0; left: 0; width: 520px; height: 34px; background: #e1e4de; display: flex; align-items: center; }
.st-chrome .l, .st-chrome .a { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; transition: opacity .35s ease; }
.st-chrome .dots { display: flex; gap: 5px; }
.st-chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: #c3c8bf; display: block; }
.st-chrome .file { font-family: var(--mono); font-size: 12px; color: var(--sheet-ink); }
.st-chrome .saved { margin-left: auto; font-size: 11px; color: #7a8076; }
.st-chrome .a { opacity: 0; justify-content: space-between; padding: 0 16px; transition-delay: 0s; }
.st-chrome .a b { font-family: var(--display); font-size: 15px; letter-spacing: -.01em; }
.st-chrome .a span.dim { color: var(--ink-3); font-weight: 500; }
.st-chrome .a .new { background: var(--accent); color: var(--ink); font-weight: 600; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.stage[data-state="app"] .st-chrome { height: 52px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.stage[data-state="app"] .st-chrome .l { opacity: 0; }
.stage[data-state="app"] .st-chrome .a { opacity: 1; transition-delay: .4s; }

.st-formula { top: 34px; left: 0; width: 520px; height: 28px; background: #fff; border-bottom: 1px solid var(--sheet-line); }
.st-formula .l { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-family: var(--mono); font-size: 12px; color: var(--sheet-ink); transition: opacity .3s ease; }
.st-formula .l .ref { width: 44px; color: #6b7168; border-right: 1px solid var(--sheet-line); }
.st-formula .l .fx { font-style: italic; color: #6b7168; }
.st-formula .caret { display: inline-block; width: 1px; height: 14px; background: var(--sheet-ink); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.st-formula .a { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; opacity: 0; transition: opacity .4s ease; }
.st-formula .kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; display: grid; gap: 1px; }
.st-formula .kpi small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.st-formula .kpi b { font-family: var(--display); font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stage[data-state="app"] .st-formula { top: 64px; left: 16px; width: 488px; height: 56px; background: transparent; border-bottom-color: transparent; }
.stage[data-state="app"] .st-formula .l { opacity: 0; }
.stage[data-state="app"] .st-formula .a { opacity: 1; transition-delay: .55s; }

.st-cols { top: 62px; left: 0; width: 520px; height: 24px; display: grid; grid-template-columns: 30px 152px 152px 90px 96px; font-family: var(--mono); font-size: 11px; color: #6b7168; background: var(--sheet-head); border-bottom: 1px solid var(--sheet-line); }
.st-cols span { display: grid; place-items: center; border-right: 1px solid var(--sheet-line); }
.stage[data-state="app"] .st-cols { opacity: 0; transition-duration: .35s; }

.st-row { left: 0; width: 520px; height: 30px; border: 1px solid transparent; border-radius: 0; transition-delay: calc(var(--i) * 85ms); }
.st-row .l, .st-row .a { position: absolute; inset: 0; }
.st-row .l { display: grid; grid-template-columns: 30px 152px 152px 90px 96px; font-family: var(--mono); font-size: 12px; color: var(--sheet-ink); transition: opacity .25s ease; transition-delay: calc(var(--i) * 85ms); }
.st-row .l span { position: relative; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.st-row .l span:first-child { justify-content: center; padding: 0; color: #6b7168; font-size: 11px; }
.st-row .l .hl { background: #fff4a8; }
.st-row .l .flag::after { content: ""; position: absolute; top: 0; right: 0; border-top: 7px solid #d93a2b; border-left: 7px solid transparent; }
.st-row.r0 .l { font-weight: 600; }
.st-row.r0 .l span:not(:first-child) { background: #eef0ec; }
.st-row .a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 0 14px; opacity: 0; transition: opacity .35s ease; }
.st-row .a .who { display: grid; gap: 1px; min-width: 0; }
.st-row .a .who b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row .a .who small { font-size: 11.5px; color: var(--ink-3); }
.st-row .a .val { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.st-row.r0 .a { padding: 0; gap: 6px; grid-template-columns: auto auto auto 1fr; }
.st-row.r0 .a .chip { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.st-row.r0 .a .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.st-row.r0 .a .sum { justify-self: end; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.stage[data-state="app"] .st-row .l { opacity: 0; }
.stage[data-state="app"] .st-row .a { opacity: 1; transition-delay: calc(.45s + var(--i) * 85ms); }
.stage[data-state="app"] .st-row { left: 16px; width: 488px; }
.stage[data-state="app"] .st-row:not(.r0) { height: 44px; background: var(--paper); border-color: var(--line); border-radius: 11px; box-shadow: 0 1px 2px rgba(27, 22, 17, .05); }
.stage[data-state="app"] .r0 { top: 132px !important; height: 28px; }
.stage[data-state="app"] .r1 { top: 168px !important; }
.stage[data-state="app"] .r2 { top: 218px !important; }
.stage[data-state="app"] .r3 { top: 268px !important; }
.stage[data-state="app"] .r4 { top: 318px !important; }

.st-active { top: 205px; left: 423px; width: 98px; height: 32px; border: 2px solid #2d6a3e; pointer-events: none; }
.st-active::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 6px; height: 6px; background: #2d6a3e; border: 1px solid #fff; }
.stage[data-state="app"] .st-active { opacity: 0; transition-duration: .2s; }

.st-tabs { left: 0; bottom: 0; width: 520px; height: 28px; display: flex; align-items: stretch; gap: 2px; padding-left: 30px; background: var(--sheet-head); border-top: 1px solid var(--sheet-line); font-size: 11.5px; color: #5f655c; }
.st-tabs span { display: flex; align-items: center; padding: 0 12px; }
.st-tabs span.on { background: #fff; color: var(--sheet-ink); font-weight: 600; }
.stage[data-state="app"] .st-tabs { opacity: 0; transition-duration: .3s; }

.st-sweep { top: 0; left: -8px; width: 4px; height: 420px; background: var(--accent); box-shadow: 0 0 18px 4px rgba(242, 97, 29, .45); opacity: 0; transition: none; }
.stage[data-phase="sweep"] .st-sweep { animation: sweep .9s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes sweep { 0% { left: -8px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 524px; opacity: 0; } }

.st-toast .go { flex: none; }
.st-toast { left: 16px; top: 370px; width: 488px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; opacity: 0; transform: translateY(14px); font-size: 12.5px; box-shadow: 0 10px 30px rgba(27, 22, 17, .25); }
.st-toast .bell { width: 16px; height: 16px; color: var(--accent); flex: none; }
.st-toast span { flex: 1; min-width: 0; }
.st-toast b { font-weight: 600; }
.st-toast .go { background: var(--accent); color: var(--ink); font-weight: 600; padding: 6px 12px; border-radius: 999px; font-size: 12px; }
.stage[data-phase="toast"][data-state="app"] .st-toast { opacity: 1; transform: none; }

.stage-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: .5rem .95rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.play-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: .45rem .85rem; cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.play-btn svg { width: 14px; height: 14px; }
.stage-caption { font-size: .9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }

/* Symptoms */
.symptoms { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.symptoms .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.symptom-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.symptom-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.symptom-list .x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sheet); border: 1px solid var(--sheet-line); color: var(--sheet-ink); }
.symptom-list .x svg { width: 16px; height: 16px; }
.symptom-list code { font-family: var(--mono); font-size: .92em; background: var(--sheet); border: 1px solid var(--sheet-line); padding: .05em .4em; border-radius: 5px; }
.symptom-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; color: var(--ink-2); }
@media (max-width: 860px) { .symptoms { grid-template-columns: minmax(0, 1fr); } .symptoms .section-head { position: static; } }

/* Example cards */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ex-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ex-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.ex-body { display: flex; flex-direction: column; gap: .8rem; padding: 1.35rem 1.35rem 1.5rem; }
.ex-body > .link-arrow { margin-top: auto; }
.ex-for { font-size: .86rem; color: var(--ink-3); }
.ex-for b { color: var(--ink-2); font-weight: 600; }
.ba { display: grid; gap: .5rem; margin: .2rem 0 .3rem; padding: 0; list-style: none; font-size: .95rem; }
.ba li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: .6rem; align-items: baseline; }
.ba .tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: .15rem 0; border-radius: 5px; }
.ba .tag.before { background: var(--sheet); color: var(--sheet-ink); border: 1px solid var(--sheet-line); }
.ba .tag.after { background: var(--tint); color: var(--accent-ink); border: 1px solid var(--accent-soft); }
@media (max-width: 980px) { .examples { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }

/* Mini before/after thumbnails */
.thumb { position: relative; display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 8px; padding: 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); height: 168px; }
.thumb .arrow { color: var(--accent); width: 26px; height: 26px; }
.mini-sheet { height: 120px; border-radius: 6px; border: 1px solid var(--sheet-line); background:
  linear-gradient(var(--sheet-head), var(--sheet-head)) 0 0 / 100% 16px no-repeat,
  linear-gradient(var(--sheet-head), var(--sheet-head)) 0 0 / 14px 100% no-repeat,
  repeating-linear-gradient(to bottom, var(--sheet) 0 15px, var(--sheet-line) 15px 16px),
  var(--sheet); position: relative; overflow: hidden; }
.mini-sheet::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), var(--sheet-line) calc(25% - 1px) 25%); opacity: .9; }
.mini-sheet i { position: absolute; height: 6px; border-radius: 2px; background: #a8ada4; }
.mini-sheet i.y { background: #f3df6a; }
.mini-sheet i.r { background: #e58a80; }
.mini-sheet i.g { background: #8fc0a2; }
.mini-sheet i.b { background: #92b3db; }
.mini-app { height: 120px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(27, 22, 17, .06); padding: 9px; display: grid; gap: 6px; align-content: start; overflow: hidden; }
.mini-app .bar { height: 8px; border-radius: 3px; background: var(--ink); width: 48%; }
.mini-app .row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--line); }
.mini-app .row i { height: 5px; border-radius: 3px; background: var(--line-2); flex: 1; }
.mini-app .row em { width: 22px; height: 8px; border-radius: 4px; background: var(--ok-bg); border: 1px solid #b9dcc7; }
.mini-app .row em.w { background: var(--warn-bg); border-color: #f0d28f; }
.mini-app .row em.i { background: var(--info-bg); border-color: #b9cfee; }
.mini-app .chk { display: flex; align-items: center; gap: 6px; }
.mini-app .chk b { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--ok); background: var(--ok); }
.mini-app .chk b.o { background: transparent; border-color: var(--line-2); }
.mini-app .chk i { height: 5px; border-radius: 3px; background: var(--line-2); flex: 1; }
.mini-phone { width: 70px; justify-self: center; height: 124px; padding: 8px 6px; border-radius: 14px; border: 2px solid var(--ink); }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; padding-top: 4px; }
.mini-bars span { flex: 1; background: var(--accent-soft); border-radius: 2px 2px 0 0; }
.mini-bars span.on { background: var(--accent); }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mini-kpis span { height: 18px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { display: grid; gap: .8rem; align-content: start; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.step:first-child { background: var(--tint); border-color: var(--accent-soft); }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 750; font-size: 1.1rem; }
.step:first-child .step-num { background: var(--accent); color: var(--ink); }
.step .label { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--ok); }
.step .label svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Same person */
.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.commit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.commit-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .9rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line-2); }
.commit-list svg { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.commit-list b { display: block; font-family: var(--display); font-size: 1.12rem; font-weight: 650; margin-bottom: .15rem; }
.commit-list span { color: var(--ink-2); }
@media (max-width: 860px) { .person { grid-template-columns: minmax(0, 1fr); } }

/* Tools */
.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tool-chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.tool-chips li { padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 500; font-size: .95rem; }
.web-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.5rem 1.6rem; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.web-note h3 { font-size: 1.15rem; margin-bottom: .3rem; }
@media (max-width: 860px) { .tools, .web-note { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.15rem; font-family: var(--display); font-weight: 650; font-size: 1.12rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); transition: transform .2s ease; }
.faq-list summary .pm svg { width: 15px; height: 15px; }
.faq-list details[open] summary .pm { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Diagnosis form */
.diag { background: var(--tint); border-top: 1px solid var(--accent-soft); }
.diag-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.diag-side { display: grid; gap: 1.5rem; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.next-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .8rem; align-items: start; }
.next-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--accent); font-weight: 700; font-size: .9rem; color: var(--accent-ink); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.contact-line a { font-weight: 600; text-underline-offset: 3px; }
.copy-btn { border: 1px solid var(--line-2); background: var(--paper); padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; cursor: pointer; }
.booking-link[hidden] { display: none; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem 1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: .72rem .85rem; min-height: 50px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: .87rem; font-weight: 500; }
.field .err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: .93rem; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.checks input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .93rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .4rem; }
.form-status { border-radius: 12px; padding: .9rem 1rem; font-size: .95rem; }
.form-status[data-kind="ok"] { background: var(--ok-bg); color: var(--ok); }
.form-status[data-kind="error"] { background: var(--bad-bg); color: var(--bad); }
.form-status[data-kind="info"] { background: var(--info-bg); color: var(--info); }
.form-status b { display: block; margin-bottom: .15rem; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .diag-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* CTA band (example pages) */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #d8cfc6; margin-top: .6rem; max-width: 52ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--ink); color: #d8cfc6; padding-block: 3.5rem 2rem; margin-top: 0; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid .brand { color: var(--paper); }
.foot-grid h2 { font-family: var(--body); font-size: .92rem; letter-spacing: 0; color: #a99c90; font-weight: 600; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-grid p { margin-top: .9rem; max-width: 34ch; }
.foot-bottom { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid #3a3129; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .88rem; color: #a99c90; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Example / document pages */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; }
.crumbs { font-size: .9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--ink-2); }
.demo-flag { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; padding: .35rem .8rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .85rem; font-weight: 600; }
.demo-flag svg { width: 16px; height: 16px; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.compare-col { border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; }
.compare-col.before { background: var(--sheet); border: 1px solid var(--sheet-line); }
.compare-col.after { background: var(--tint); border: 1px solid var(--accent-soft); }
.compare-col h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.compare-col h3 small { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.step-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; counter-reset: s; }
.step-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .6rem; align-items: baseline; counter-increment: s; }
.step-list li::before { content: counter(s); font-family: var(--mono); font-size: .78rem; text-align: center; border-radius: 6px; padding: .1rem 0; }
.compare-col.before .step-list li::before { background: var(--paper); border: 1px solid var(--sheet-line); color: var(--sheet-ink); }
.compare-col.after .step-list li::before { background: var(--accent); color: var(--ink); font-weight: 600; }
.big-count { display: flex; align-items: baseline; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big-count small { font-size: 1rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.prose { display: grid; gap: 1rem; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose p, .prose li { color: var(--ink-2); }

.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.build-grid h3 { margin-bottom: .6rem; }
.build-list { display: grid; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.build-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .7rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.build-list svg { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 3px; }
@media (max-width: 760px) { .build-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sample diagnosis document */
.doc { max-width: 860px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: clamp(1.5rem, 5vw, 3.5rem); display: grid; gap: 2rem; }
.doc-head { display: grid; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.doc-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: .35rem; }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.doc-meta dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.doc-meta dd { margin: .15rem 0 0; font-weight: 500; }
.doc-sec { display: grid; gap: .8rem; }
.doc-sec h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; }
.doc-sec h3 span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); font-size: .95rem; flex: none; }
.doc-sec ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; color: var(--ink-2); }
.doc-sec p { color: var(--ink-2); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.doc-table td { padding: .7rem; border-bottom: 1px solid var(--line); }
.doc .table-wrap { overflow-x: auto; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.phases li { display: grid; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.phases span { color: var(--ink-2); }
.price-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.price-box { display: grid; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--paper-2); }
.price-box small { font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.price-box b { font-family: var(--display); font-size: 1.3rem; }
.price-box span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 680px) { .doc-meta, .price-boxes { grid-template-columns: minmax(0, 1fr); } }

.other-ex { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.other-ex a { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease; }
.other-ex a:hover { border-color: var(--ink); }
.other-ex a span { color: var(--ink-3); font-size: .92rem; }
@media (max-width: 640px) { .other-ex { grid-template-columns: minmax(0, 1fr); } }
