/* Klombic site — shared tokens */
:root{
  --forest:#1f4e3d;
  --forest-2:#2a6650;
  --file:#1a7f3c;
  --warn:#a23030;
  --ink:#1a1a1a;
  --ink-2:#3a3a3a;
  --paper:#fafafa;
  --paper-2:#f3f0e9;
  --rule:#e6e3dc;
  --rule-2:#d8d4cb;
  --mute:#8a8780;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:"Inter Tight",system-ui,sans-serif;-webkit-font-smoothing:antialiased;font-feature-settings:"ss01","cv11"}
.mono{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:11px;letter-spacing:0.04em;text-transform:uppercase;color:var(--mute)}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0}

/* Top nav */
.nav{position:sticky;top:0;z-index:30;background:rgba(250,250,250,0.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--rule)}
.nav-inner{max-width:1280px;margin:0 auto;padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.logo{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:500;letter-spacing:-0.02em}
.nav-links{display:flex;gap:28px;font-size:13px;color:var(--ink-2)}
.nav-links a:hover{color:var(--ink)}
.nav-cta{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:var(--paper);padding:9px 14px;border-radius:4px;font-family:"JetBrains Mono",monospace;font-size:11px;letter-spacing:0.06em;text-transform:uppercase}
.nav-cta:hover{background:var(--forest)}

/* Page container */
.page{max-width:1280px;margin:0 auto;padding:0 32px}
.section{padding:96px 0;border-top:1px solid var(--rule)}
.section:first-child{border-top:0}
.section-label{font-family:"JetBrains Mono",monospace;font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:var(--mute);margin-bottom:14px;display:flex;gap:14px;align-items:center}
.section-label::before{content:"";width:24px;height:1px;background:var(--ink)}

h1,h2,h3,h4{margin:0;font-weight:500;letter-spacing:-0.025em}
h1{font-size:72px;line-height:1.02;letter-spacing:-0.035em}
h2{font-size:44px;line-height:1.05}
h3{font-size:24px;line-height:1.2}
.lead{font-size:18px;line-height:1.55;color:var(--ink-2);max-width:560px}
.body{font-size:15px;line-height:1.65;color:var(--ink-2)}

/* Hero */
.hero{padding:80px 0 96px}
.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center}
.hero-eyebrow{display:inline-flex;align-items:center;gap:10px;padding:6px 12px;border:1px solid var(--rule);border-radius:999px;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--ink-2);letter-spacing:0.04em;text-transform:uppercase;margin-bottom:32px}
.hero-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--file);box-shadow:0 0 0 4px rgba(26,127,60,0.18)}
.hero h1{margin-bottom:24px}
.hero .lead{margin-bottom:36px;font-size:19px}
.hero-cta-row{display:flex;align-items:center;gap:20px;margin-bottom:40px}
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;font-family:"JetBrains Mono",monospace;font-size:12px;letter-spacing:0.06em;text-transform:uppercase;border-radius:4px;border:1px solid transparent;transition:transform 0.12s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--ink);color:var(--paper)}
.btn-primary:hover{background:var(--forest)}
.btn-ghost{border-color:var(--rule);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink)}
.hero-meta{display:flex;gap:32px;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.04em;text-transform:uppercase}
.hero-meta span b{display:block;color:var(--ink);font-size:13px;margin-top:4px}

/* Demo terminal */
.demo{background:#fff;border:1px solid var(--rule);border-radius:8px;overflow:hidden;box-shadow:0 1px 0 rgba(0,0,0,0.02),0 24px 60px -32px rgba(31,78,61,0.18)}
.demo-bar{display:flex;align-items:center;gap:10px;padding:14px 18px;background:var(--paper-2);border-bottom:1px solid var(--rule)}
.demo-bar .dots{display:flex;gap:6px}
.demo-bar .dots i{width:10px;height:10px;border-radius:50%;background:var(--rule-2);display:inline-block}
.demo-bar .name{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.04em;text-transform:uppercase}
.demo-body{padding:24px 24px 18px;font-family:"JetBrains Mono",monospace;font-size:13px}
.demo-input{display:flex;align-items:center;gap:10px;padding-bottom:18px;border-bottom:1px dashed var(--rule);margin-bottom:18px}
.demo-input .prompt{color:var(--mute)}
.demo-input input{flex:1;border:0;outline:0;background:transparent;font:inherit;color:var(--ink);letter-spacing:0.02em}
.demo-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px dashed var(--rule);font-size:12px}
.demo-row:last-child{border-bottom:none}
.demo-row .lbl{color:var(--ink-2);display:flex;align-items:center;gap:10px}
.demo-row .lbl .spinner{display:inline-block;width:10px;height:10px;border:1.5px solid var(--rule-2);border-top-color:var(--ink);border-radius:50%;animation:spin 0.7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.demo-row .val{font-weight:500;color:var(--mute)}
.demo-row .val.ok{color:var(--file)}
.demo-row .val.no{color:var(--warn)}
.demo-row .val.score{color:var(--ink)}
.demo-foot{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;background:var(--paper-2);border-top:1px solid var(--rule);font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.04em}
.demo-foot .verdict{color:var(--file);font-weight:500}

/* Hero variant: sample */
.hero-sample{display:flex;flex-direction:column;gap:14px}
.hero-sample-frame{aspect-ratio:8.5/11;background:#fff;border:1px solid var(--rule);border-radius:6px;padding:32px 28px;display:flex;flex-direction:column;font-size:11px;line-height:1.5;color:var(--ink-2);box-shadow:0 24px 60px -32px rgba(31,78,61,0.18)}
.hero-sample-frame .top{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--rule);padding-bottom:10px;margin-bottom:16px;font-weight:500;color:var(--ink);font-size:13px}
.hero-sample-frame h4{font-family:"JetBrains Mono",monospace;font-size:9px;color:var(--mute);text-transform:uppercase;letter-spacing:0.08em;margin:14px 0 6px;font-weight:500}
.hero-sample-frame .row{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px dashed var(--rule)}
.hero-sample-frame .row .ok{color:var(--file);font-family:"JetBrains Mono",monospace;font-size:10px}
.hero-sample-frame .row .no{color:var(--warn);font-family:"JetBrains Mono",monospace;font-size:10px}

/* Hero variant: six checks list */
.hero-six{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:6px;overflow:hidden}
.hero-six .six-cell{background:#fff;padding:24px;display:flex;flex-direction:column;gap:8px;min-height:140px}
.hero-six .six-cell .num{font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--mute);letter-spacing:0.08em}
.hero-six .six-cell .ttl{font-size:17px;font-weight:500;letter-spacing:-0.015em}
.hero-six .six-cell .desc{font-size:12px;color:var(--ink-2);line-height:1.5;margin-top:auto}

/* Six checks section */
.checks{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule)}
.check{background:#fff;padding:32px 28px;min-height:220px;display:flex;flex-direction:column;gap:10px}
.check .num{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.08em}
.check .ttl{font-size:22px;font-weight:500;letter-spacing:-0.02em}
.check .desc{font-size:14px;line-height:1.55;color:var(--ink-2);margin-top:4px}
.check .meta{margin-top:auto;font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--mute);letter-spacing:0.04em;text-transform:uppercase;padding-top:14px;border-top:1px dashed var(--rule)}

/* Section heads */
.sh{display:flex;align-items:flex-end;justify-content:space-between;gap:48px;margin-bottom:48px}
.sh h2{max-width:680px}
.sh .right{max-width:380px;font-size:14px;line-height:1.6;color:var(--ink-2)}

/* Founder note */
.founder{display:grid;grid-template-columns:1fr 1.4fr;gap:48px;align-items:start}
.founder-card{border:1px solid var(--rule);background:#fff;padding:32px;display:flex;flex-direction:column;gap:16px}
.founder-avatar{width:72px;height:72px;background:var(--paper-2);border:1px solid var(--rule);display:flex;align-items:center;justify-content:center;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.05em}
.founder p{font-size:18px;line-height:1.6;color:var(--ink);margin:0}
.founder p + p{font-size:15px;color:var(--ink-2)}

/* Pricing */
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule)}
.tier{background:#fff;padding:36px 32px;display:flex;flex-direction:column;gap:14px}
.tier.featured{background:var(--forest);color:var(--paper)}
.tier .tier-name{font-family:"JetBrains Mono",monospace;font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:var(--mute)}
.tier.featured .tier-name{color:rgba(255,255,255,0.65)}
.tier .price{font-size:48px;font-weight:500;letter-spacing:-0.025em;line-height:1}
.tier .price .per{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);text-transform:uppercase;letter-spacing:0.05em;margin-left:8px}
.tier.featured .price .per{color:rgba(255,255,255,0.65)}
.tier .desc{font-size:14px;line-height:1.55;color:var(--ink-2)}
.tier.featured .desc{color:rgba(255,255,255,0.85)}
.tier ul{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink-2)}
.tier.featured ul{color:rgba(255,255,255,0.9)}
.tier ul li{padding-left:18px;position:relative}
.tier ul li::before{content:"+";position:absolute;left:0;color:var(--file);font-family:"JetBrains Mono",monospace}
.tier.featured ul li::before{color:#7ce0a8}
.tier .cta{margin-top:auto}
.tier .cta a{display:block;text-align:center;padding:14px;background:var(--ink);color:var(--paper);border-radius:4px;font-family:"JetBrains Mono",monospace;font-size:11px;letter-spacing:0.06em;text-transform:uppercase}
.tier.featured .cta a{background:var(--paper);color:var(--forest)}

/* FAQ */
.faq{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.faq-item{border:1px solid var(--rule);background:#fff;padding:24px}
.faq-item h4{font-size:15px;margin-bottom:8px}
.faq-item p{margin:0;font-size:13px;line-height:1.6;color:var(--ink-2)}

/* Footer */
footer{border-top:1px solid var(--rule);padding:64px 32px 48px;background:var(--paper-2)}
.footer-inner{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:48px}
.footer-col h5{font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--mute);letter-spacing:0.08em;text-transform:uppercase;margin:0 0 14px;font-weight:500}
.footer-col a{display:block;font-size:13px;color:var(--ink-2);padding:4px 0}
.footer-col a:hover{color:var(--ink)}
.footer-bottom{max-width:1280px;margin:48px auto 0;display:flex;justify-content:space-between;align-items:center;padding-top:24px;border-top:1px solid var(--rule);font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.04em}

/* Sample report page */
.sample-page{padding:64px 0}
.sample-grid{display:grid;grid-template-columns:300px 1fr;gap:48px;align-items:start}
.sample-toc{position:sticky;top:96px;border:1px solid var(--rule);background:#fff;padding:20px}
.sample-toc h5{font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--mute);letter-spacing:0.08em;text-transform:uppercase;margin:0 0 12px;font-weight:500}
.sample-toc a{display:flex;justify-content:space-between;padding:8px 0;font-size:13px;color:var(--ink-2);border-bottom:1px dashed var(--rule)}
.sample-toc a span{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute)}
.sample-pdf{display:flex;flex-direction:column;gap:24px}
.pdf-page{aspect-ratio:8.5/11;background:#fff;border:1px solid var(--rule);padding:56px 56px;display:flex;flex-direction:column;box-shadow:0 24px 60px -40px rgba(31,78,61,0.18)}
.pdf-page.cover{background:var(--forest);color:var(--paper);padding:72px 64px}
.pdf-page.cover .top{display:flex;align-items:center;gap:14px;margin-bottom:auto}
.pdf-page.cover h2{font-size:56px;line-height:1.02;letter-spacing:-0.03em;margin-bottom:18px}
.pdf-page.cover .name{font-family:"JetBrains Mono",monospace;font-size:14px;color:rgba(255,255,255,0.75);letter-spacing:0.04em;margin-bottom:32px}
.pdf-page.cover .footer{display:flex;justify-content:space-between;align-items:flex-end;font-family:"JetBrains Mono",monospace;font-size:11px;letter-spacing:0.05em;color:rgba(255,255,255,0.6);text-transform:uppercase}
.pdf-page .ph{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--rule);padding-bottom:16px;margin-bottom:24px}
.pdf-page .ph .wm{font-size:16px;font-weight:500;letter-spacing:-0.02em}
.pdf-page h3.kicker{margin:24px 0 12px;font-size:13px;font-weight:500;font-family:"JetBrains Mono",monospace;letter-spacing:0.06em;text-transform:uppercase;color:var(--mute)}
.pdf-page h3.kicker:first-of-type{margin-top:0}
.pdf-page .row{display:flex;justify-content:space-between;align-items:baseline;padding:9px 0;border-bottom:1px dashed var(--rule);font-size:13px}
.pdf-page .row b{font-family:"JetBrains Mono",monospace;font-weight:500}
.pdf-page .row .ok{color:var(--file)}
.pdf-page .row .no{color:var(--warn)}
.pdf-page .verdict{margin-top:24px;background:var(--paper);border:1px solid var(--rule);padding:16px 20px;display:flex;justify-content:space-between;align-items:center}
.pdf-page .verdict .v-ok{color:var(--file);font-family:"JetBrains Mono",monospace;font-weight:500}
.pdf-page .pageno{margin-top:auto;display:flex;justify-content:space-between;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);padding-top:24px;border-top:1px solid var(--rule)}

/* How it works */
.how-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule)}
@media (max-width:980px){.how-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:540px){.how-grid{grid-template-columns:1fr}}
.how-step{background:#fff;padding:32px;display:flex;flex-direction:column;gap:14px;min-height:280px}
.how-step .num{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.08em}
.how-step h3{font-size:22px}
.how-step .desc{font-size:13px;line-height:1.6;color:var(--ink-2)}
.how-step .time{margin-top:auto;font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--ink);letter-spacing:0.06em;text-transform:uppercase;padding-top:14px;border-top:1px dashed var(--rule)}

/* Order flow */
.order{padding:64px 0 96px}
.order-grid{display:grid;grid-template-columns:280px 1fr;gap:48px;align-items:start}
.steps-rail{position:sticky;top:96px;display:flex;flex-direction:column;gap:0;border:1px solid var(--rule);background:#fff}
.step-rail{padding:18px 20px;border-bottom:1px solid var(--rule);display:flex;gap:14px;align-items:flex-start;cursor:pointer;transition:background 0.12s ease}
.step-rail:last-child{border-bottom:none}
.step-rail:hover{background:var(--paper-2)}
.step-rail.active{background:var(--paper-2)}
.step-rail .num{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.08em;width:28px;flex-shrink:0;padding-top:2px}
.step-rail.active .num{color:var(--forest)}
.step-rail.done .num{color:var(--file)}
.step-rail .lbl{font-size:14px;font-weight:500}
.step-rail .sub{font-size:11px;color:var(--mute);font-family:"JetBrains Mono",monospace;letter-spacing:0.04em;text-transform:uppercase;margin-top:4px}

.order-panel{border:1px solid var(--rule);background:#fff;padding:48px;min-height:600px}
.order-panel h2{font-size:32px;margin-bottom:8px}
.order-panel .panel-lead{font-size:15px;color:var(--ink-2);margin-bottom:36px;line-height:1.55}

.field-group{margin-bottom:28px}
.field-group label{display:block;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);letter-spacing:0.06em;text-transform:uppercase;margin-bottom:10px}

.toggle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.toggle{padding:14px 12px;border:1px solid var(--rule);background:#fff;border-radius:4px;font-family:"JetBrains Mono",monospace;font-size:12px;letter-spacing:0.04em;text-transform:uppercase;color:var(--ink-2);cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:6px;transition:all 0.12s ease}
.toggle:hover{border-color:var(--ink)}
.toggle.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.toggle.on.req{background:var(--forest);border-color:var(--forest)}
.toggle .req-tag{font-size:9px;color:var(--file);letter-spacing:0.08em}
.toggle.on .req-tag{color:#7ce0a8}
.toggle .toggle-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:6px}
.toggle .req-star{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:3px;font-size:14px;line-height:1;cursor:pointer;color:rgba(250,250,250,0.55);user-select:none;transition:color 0.12s ease,background 0.12s ease}
.toggle .req-star:hover{color:#7ce0a8;background:rgba(255,255,255,0.08)}
.toggle .req-star:focus{outline:2px solid #7ce0a8;outline-offset:1px}
.toggle.on.req .req-star{color:#fff}

.archetype-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.arch{padding:18px 14px;border:1px solid var(--rule);background:#fff;border-radius:4px;cursor:pointer;display:flex;flex-direction:column;gap:8px;text-align:left;transition:all 0.12s ease}
.arch:hover{border-color:var(--ink)}
.arch.on{background:var(--paper-2);border-color:var(--ink)}
.arch .arch-glyph{width:32px;height:32px;background:var(--paper-2);border-radius:4px;display:flex;align-items:center;justify-content:center}
.arch.on .arch-glyph{background:#fff}
.arch .arch-name{font-size:14px;font-weight:500}
.arch .arch-egs{font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--mute);letter-spacing:0.04em}

.candidates-input{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.cand-row{display:flex;align-items:center;gap:8px}
.cand-row .cand-num{width:32px;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute);text-align:right}
.cand-row input{flex:1;padding:12px 14px;border:1px solid var(--rule);border-radius:4px;font-family:"JetBrains Mono",monospace;font-size:14px;background:#fff;color:var(--ink);outline:none}
.cand-row input:focus{border-color:var(--ink)}
.cand-row button{background:transparent;border:0;color:var(--mute);font-size:18px;width:28px;cursor:pointer}
.cand-add{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px dashed var(--rule);background:transparent;border-radius:4px;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--ink-2);letter-spacing:0.06em;text-transform:uppercase;cursor:pointer}
.cand-add:hover{border-color:var(--ink);color:var(--ink)}

.text-input{width:100%;padding:14px 16px;border:1px solid var(--rule);border-radius:4px;font-family:inherit;font-size:15px;background:#fff;color:var(--ink);outline:none}
.text-input:focus{border-color:var(--ink)}

.summary-card{border:1px solid var(--rule);background:var(--paper-2);padding:24px;display:flex;flex-direction:column;gap:14px;margin-bottom:32px}
.summary-card .sm-row{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2);padding-bottom:10px;border-bottom:1px dashed var(--rule-2)}
.summary-card .sm-row:last-child{border-bottom:0;padding-bottom:0}
.summary-card .sm-row b{color:var(--ink);font-family:"JetBrains Mono",monospace;font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:0.04em}
.summary-card .sm-total{font-size:24px;font-weight:500;letter-spacing:-0.02em;color:var(--ink);font-family:"Inter Tight",sans-serif;text-transform:none;letter-spacing:-0.02em}

.order-actions{display:flex;justify-content:space-between;align-items:center;margin-top:36px;padding-top:24px;border-top:1px solid var(--rule)}
.order-back{font-family:"JetBrains Mono",monospace;font-size:12px;color:var(--ink-2);letter-spacing:0.06em;text-transform:uppercase;background:transparent;border:0;cursor:pointer}
.order-back:hover{color:var(--ink)}

.confirm{text-align:center;padding:64px 32px}
.confirm .check-icon{width:72px;height:72px;background:var(--forest);color:var(--paper);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:36px;margin-bottom:24px;font-family:"JetBrains Mono",monospace}
.confirm h2{margin-bottom:12px}
.confirm .receipt{margin:36px auto 0;max-width:480px;border:1px solid var(--rule);background:#fff;text-align:left;padding:24px}
.confirm .receipt .r-row{display:flex;justify-content:space-between;padding:10px 0;font-size:13px;border-bottom:1px dashed var(--rule)}
.confirm .receipt .r-row:last-child{border-bottom:0}
.confirm .receipt .r-row b{font-family:"JetBrains Mono",monospace;font-weight:500;font-size:12px}

/* legal */
.legal{padding:64px 0;max-width:720px}
.legal h2{margin-bottom:24px}
.legal h3{margin:32px 0 12px;font-size:18px}
.legal p{font-size:15px;line-height:1.7;color:var(--ink-2);margin:0 0 14px}

/* ===== Step 0 · Mode picker (added 2026-04-28) ===== */
.mode-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:28px;
}
.mode-card{
  background:var(--paper);
  border:1px solid var(--rule-2);
  border-radius:6px;
  padding:24px 22px;
  text-align:left;
  cursor:pointer;
  transition:border-color 0.15s, transform 0.15s, background 0.15s;
  display:flex;
  flex-direction:column;
  gap:10px;
  font:inherit;
  color:inherit;
}
.mode-card:hover{
  border-color:var(--ink);
  transform:translateY(-2px);
}
.mode-card.on{
  border-color:var(--forest);
  background:#f0f5f1;
  box-shadow:0 0 0 1px var(--forest);
}
.mode-card .mode-letter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--ink);
  color:var(--paper);
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-weight:600;
  font-size:13px;
  flex-shrink:0;
}
.mode-card.on .mode-letter{
  background:var(--forest);
}
.mode-card h3{
  font-size:18px;
  font-weight:600;
  margin:8px 0 0;
  letter-spacing:-0.015em;
}
.mode-card p{
  font-size:13px;
  line-height:1.55;
  color:var(--ink-2);
  margin:0;
}
.mode-card .mode-fit{
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:10px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--mute);
  border-top:1px dashed var(--rule);
  padding-top:10px;
  margin-top:auto;
}
@media (max-width:760px){
  .mode-grid{grid-template-columns:1fr; gap:10px;}
}

/* ===== HowItWorks · decision flowchart + animated progress (added 2026-04-28) ===== */
.how-flow{
  margin:32px 0 48px;
  padding:24px 18px;
  background:var(--paper-2);
  border:1px solid var(--rule);
  border-radius:8px;
  overflow-x:auto;
}
.how-flow svg{
  width:100%;
  min-width:760px;
  height:auto;
  display:block;
}
.how-progress{margin:24px 0 16px}
.how-progress-track{
  height:3px;background:var(--rule);border-radius:2px;
  overflow:hidden;position:relative;
}
.how-progress-fill{
  height:100%;background:var(--forest);
  transition:width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.how-progress-ticks{
  display:flex;justify-content:space-between;margin-top:6px;
  font:500 10px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.06em;color:var(--mute);
}
.how-progress-ticks .tick.on{color:var(--forest);font-weight:600}

.how-step{transition:opacity 0.4s, border-color 0.4s, transform 0.4s}
.how-step.active{
  border-color:var(--forest) !important;
  transform:translateY(-2px);
  box-shadow:0 4px 16px -8px rgba(31,78,61,0.3);
}
.how-step.done .num{color:var(--forest);font-weight:700}
.how-step:not(.active):not(.done){opacity:0.6}

@media (max-width:760px){
  .how-flow{padding:16px 12px}
  .how-flow svg{min-width:680px}
}

/* ===== Sample report · real PDF embed (added 2026-04-28) ===== */
.sample-embed{
  margin:32px 0 48px;
  border:1px solid var(--rule-2);
  border-radius:6px;
  overflow:hidden;
  background:var(--paper-2);
  box-shadow:0 24px 60px -32px rgba(31,78,61,0.18);
}
.sample-embed object,
.sample-embed iframe{
  display:block;
  border:none;
  background:#fff;
}

/* ===== Sample report · PDF.js viewer (added 2026-04-28) ===== */
.sample-pdfjs{
  margin:32px 0 48px;
  padding:32px 24px;
  background:var(--paper-2);
  border:1px solid var(--rule-2);
  border-radius:8px;
  min-height:400px;
}
.pdfjs-container{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:24px;
}
.pdfjs-page{
  display:block;
  background:#fff;
  box-shadow:0 8px 32px -16px rgba(31,78,61,0.25), 0 2px 6px rgba(0,0,0,0.04);
  border-radius:2px;
  max-width:100%;
  height:auto;
}
.pdfjs-status{
  display:flex;align-items:center;justify-content:center;gap:12px;
  padding:64px 24px;
  font:500 14px/1 "JetBrains Mono",ui-monospace,monospace;
  color:var(--mute);
  letter-spacing:0.04em;
}
.pdfjs-status.pdfjs-error{color:var(--warn)}
.pdfjs-status a{color:var(--forest);font-weight:500}
.pdfjs-spinner{
  display:inline-block;
  width:14px;height:14px;
  border:2px solid var(--rule-2);
  border-top-color:var(--forest);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===== PDF.js · single-page pagination (added 2026-04-28) ===== */
.pdfjs-stage{
  display:flex;
  justify-content:center;
  padding:8px 0 32px;
  min-height:600px;
}
.pdfjs-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px;
  background:var(--paper);
  border:1px solid var(--rule-2);
  border-radius:6px;
  flex-wrap:wrap;
  position:sticky;
  bottom:16px;
  box-shadow:0 8px 24px -12px rgba(31,78,61,0.15);
}
.pdfjs-nav-btn{
  font:500 12px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.06em;
  text-transform:uppercase;
  background:var(--ink);
  color:var(--paper);
  border:1px solid var(--ink);
  padding:10px 16px;
  border-radius:4px;
  cursor:pointer;
  transition:background 0.15s, opacity 0.15s;
}
.pdfjs-nav-btn:hover:not(:disabled){background:var(--forest);border-color:var(--forest)}
.pdfjs-nav-btn:disabled{opacity:0.3;cursor:not-allowed}
.pdfjs-pagenum{
  font:500 13px/1.4 "Inter Tight",-apple-system,system-ui,sans-serif;
  color:var(--ink-2);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.pdfjs-pagenum b{color:var(--ink);font-weight:600;font-size:15px}
.pdfjs-pagenum .pdfjs-hint{
  font:400 9px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--mute);
}
.pdfjs-dots{display:flex;gap:8px;align-items:center}
.pdfjs-dot{
  width:10px;height:10px;
  border-radius:50%;
  background:var(--rule-2);
  border:none;
  cursor:pointer;
  padding:0;
  transition:background 0.15s, transform 0.15s;
}
.pdfjs-dot:hover{background:var(--mute);transform:scale(1.15)}
.pdfjs-dot.on{background:var(--forest);transform:scale(1.25)}

@media (max-width:640px){
  .pdfjs-pagination{flex-direction:column;gap:10px}
  .pdfjs-pagenum{order:-1}
}

/* ===== PDF.js · stacked pages with clear page cuts (revised 2026-04-28) ===== */
.pdfjs-page-frame{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:48px;
  padding-bottom:18px;
  border-bottom:1px dashed var(--rule-2);
}
.pdfjs-page-frame:last-child{
  border-bottom:none;
  margin-bottom:0;
  padding-bottom:0;
}
.pdfjs-page-label{
  margin-top:14px;
  font:500 11px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.1em;
  color:var(--mute);
  text-transform:uppercase;
}

/* ===== HowItWorks · manual nav + detail bubbles (added 2026-04-28) ===== */
.how-step{cursor:pointer}
.how-step:focus-visible{outline:2px solid var(--forest);outline-offset:2px}

.how-detail{
  margin-top:32px;
  background:var(--paper-2);
  border:1px solid var(--rule-2);
  border-radius:8px;
  padding:32px 28px;
}
.how-detail-head{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:24px;
  padding-bottom:18px;
  border-bottom:1px solid var(--rule);
}
.how-detail-num{
  font:600 22px/1 "JetBrains Mono",ui-monospace,monospace;
  color:var(--forest);
  background:var(--paper);
  padding:12px 16px;
  border-radius:6px;
  letter-spacing:0.04em;
  border:1px solid var(--rule-2);
}
.how-detail-head h3{
  font-size:22px;
  font-weight:600;
  letter-spacing:-0.015em;
  margin:0 0 4px;
  color:var(--ink);
}
.how-detail-time{
  font:500 11px/1 "JetBrains Mono",ui-monospace,monospace;
  color:var(--mute);
  letter-spacing:0.06em;
  text-transform:uppercase;
}

.how-bubbles{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-bottom:28px;
}
.how-bubble{
  background:var(--paper);
  border:1px solid var(--rule);
  border-radius:6px;
  padding:14px 16px;
  transition:border-color 0.2s, transform 0.2s;
}
.how-bubble:hover{
  border-color:var(--forest);
  transform:translateY(-1px);
}
.how-bubble h4{
  font:600 11px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--forest);
  margin:0 0 6px;
}
.how-bubble p{
  font-size:13px;
  line-height:1.55;
  color:var(--ink-2);
  margin:0;
}

.how-detail-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:18px;
  border-top:1px solid var(--rule);
}
.how-nav-btn{
  font:500 12px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.06em;
  text-transform:uppercase;
  background:transparent;
  color:var(--ink);
  border:1px solid var(--rule-2);
  padding:11px 18px;
  border-radius:4px;
  cursor:pointer;
  transition:all 0.15s;
}
.how-nav-btn:hover:not(:disabled){border-color:var(--ink);background:var(--paper)}
.how-nav-btn.primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.how-nav-btn.primary:hover:not(:disabled){background:var(--forest);border-color:var(--forest)}
.how-nav-btn:disabled{opacity:0.3;cursor:not-allowed}

.how-detail-counter{display:flex;gap:8px;align-items:center}
.how-counter-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--rule-2);
  transition:background 0.2s, transform 0.2s;
}
.how-counter-dot.on{background:var(--forest);transform:scale(1.3)}
.how-counter-dot.done{background:var(--ink-2)}

@media (max-width:760px){
  .how-bubbles{grid-template-columns:1fr}
  .how-detail-head{flex-direction:column;align-items:flex-start;gap:10px}
  .how-detail-nav{flex-wrap:wrap;justify-content:center}
}

/* Flowchart "You are here" pulse (added 2026-04-28) */
.flow-highlight{
  animation:flow-pulse 2.4s ease-in-out infinite;
  transition:x 0.5s, y 0.5s, width 0.5s, height 0.5s;
}
.flow-highlight-group{transition:opacity 0.3s}
@keyframes flow-pulse{
  0%,100%{stroke-opacity:1; stroke-width:3}
  50%   {stroke-opacity:0.5; stroke-width:4.5}
}

/* HowItWorks · detail lede + bullets (added 2026-04-28) */
.how-detail-lede{
  font-size:15px;
  line-height:1.6;
  color:var(--ink-2);
  margin:0 0 14px;
  max-width:680px;
}
.how-detail-bullets{
  list-style:none;
  padding:0;
  margin:0 0 28px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px 24px;
}
.how-detail-bullets li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  line-height:1.55;
  color:var(--ink-2);
}
.how-detail-bullets .bullet-dot{
  display:inline-block;
  width:6px;height:6px;
  border-radius:50%;
  background:var(--forest);
  flex-shrink:0;
  margin-top:7px;
}
@media (max-width:760px){
  .how-detail-bullets{grid-template-columns:1fr}
}

/* ===== Methods & sources section (added 2026-04-28) ===== */
.methods-section{background:var(--paper-2)}
.methods-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:32px;
}
.method-card{
  background:var(--paper);
  border:1px solid var(--rule-2);
  border-radius:8px;
  padding:22px 24px;
  transition:border-color 0.2s, transform 0.2s;
}
.method-card:hover{
  border-color:var(--ink);
  transform:translateY(-1px);
}
.method-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--rule);
}
.method-head h3{
  font-size:17px;
  font-weight:600;
  letter-spacing:-0.015em;
  margin:0;
  color:var(--ink);
}
.method-ai{
  font:600 9px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:3px;
  white-space:nowrap;
  flex-shrink:0;
}
.method-ai.no{background:#eef0ee;color:var(--ink-2)}
.method-ai.yes{background:#fdf3d8;color:var(--yellow)}
.method-source{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}
.method-label{
  font:500 10px/1 "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--mute);
}
.method-mono{
  font:500 12px/1.4 "JetBrains Mono",ui-monospace,monospace;
  color:var(--ink-2);
  word-break:break-word;
}
.method-body{
  font-size:13px;
  line-height:1.55;
  color:var(--ink-2);
  margin:0 0 14px;
}
.method-license{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding-top:12px;
  border-top:1px dashed var(--rule);
  font-size:12px;
  line-height:1.45;
  color:var(--mute);
}
.method-license span:last-child{color:var(--ink-2)}
.methods-footer{
  margin-top:32px;
  padding:18px 22px;
  background:var(--paper);
  border:1px solid var(--rule-2);
  border-radius:6px;
  font-size:13px;
  color:var(--ink-2);
  line-height:1.6;
}
.methods-footer strong{color:var(--forest)}
.methods-footer a{color:var(--forest);text-decoration:underline}
@media (max-width:760px){
  .methods-grid{grid-template-columns:1fr}
}

/* ===== Delivery / live pipeline page ===== */
.delivery{padding:80px 0 120px;background:var(--paper)}
.dlv-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--forest);background:#e8f5ec;border:1px solid #1a7f3c;padding:6px 12px;border-radius:999px;margin-bottom:16px}
.dlv-eyebrow .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--forest);animation:dlv-pulse 1.4s ease-in-out infinite}
@keyframes dlv-pulse{0%,100%{opacity:.4}50%{opacity:1}}
.dlv-title{font-size:44px;line-height:1.1;letter-spacing:-.02em;margin:0 0 16px;color:var(--ink)}
.dlv-lead{font-size:16px;line-height:1.6;color:var(--ink-2);max-width:720px;margin:0 0 28px}
.dlv-meta{display:flex;gap:28px;flex-wrap:wrap;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);margin-bottom:14px}
.dlv-meta span{display:inline-flex;gap:8px;align-items:center}
.dlv-meta b{color:var(--ink-2);font-weight:600;font-size:10px}
.dlv-progress{height:4px;background:var(--rule);border-radius:999px;overflow:hidden;margin-bottom:28px}
.dlv-progress-fill{height:100%;background:var(--forest);transition:width .5s linear}
.dlv-pipeline{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.dlv-row{display:grid;grid-template-columns:46px 28px 1fr 86px;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--rule)}
.dlv-row:last-child{border-bottom:none}
.dlv-num{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;color:var(--mute);letter-spacing:.06em}
.dlv-marker{display:flex;align-items:center;justify-content:center}
.dlv-check{color:var(--forest);font-size:16px;font-weight:700}
.dlv-spin{display:inline-block;width:14px;height:14px;border:2px solid var(--rule);border-top-color:var(--forest);border-radius:50%;animation:dlv-spin 0.8s linear infinite}
@keyframes dlv-spin{to{transform:rotate(360deg)}}
.dlv-dot{display:inline-block;width:6px;height:6px;background:var(--rule);border-radius:50%}
.dlv-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.dlv-lbl{font-size:15px;color:var(--ink);font-weight:500}
.dlv-hint{font-size:12px;color:var(--mute);line-height:1.4}
.dlv-state{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);text-align:right}
.dlv-pending .dlv-lbl{color:var(--mute)}
.dlv-running .dlv-state{color:var(--forest);font-weight:600}
.dlv-done .dlv-state{color:var(--forest)}
.dlv-done .dlv-lbl{color:var(--ink-2)}
.dlv-final{margin-top:36px;padding:24px 28px;background:#e8f5ec;border:1px solid #1a7f3c;border-radius:6px}
.dlv-final h3{margin:0 0 8px;font-size:20px;color:var(--forest)}
.dlv-final p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.5}
.dlv-final a{color:var(--forest);text-decoration:underline}
.dlv-foot{margin-top:24px;font-size:11px;line-height:1.5;color:var(--mute);font-family:'JetBrains Mono',ui-monospace,monospace;letter-spacing:.02em;max-width:720px}
@media (max-width:760px){
  .dlv-title{font-size:32px}
  .dlv-row{grid-template-columns:32px 22px 1fr;gap:10px}
  .dlv-state{display:none}
  .dlv-num{font-size:10px}
  .dlv-hint{font-size:11px}
}

/* ===== Delivery v2 — gumball-machine theater ===== */
.sieve-stage{position:relative;height:200px;margin:32px 0 24px;border:1px solid var(--rule);border-radius:8px;background:linear-gradient(180deg,#fafafa 0%,#f3f0e9 100%);overflow:hidden}
.sieve-light{position:absolute;inset:0;background:radial-gradient(ellipse 60% 50% at 50% 30%,rgba(31,78,61,0.18) 0%,transparent 70%);transition:opacity .8s ease}
.sieve-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:240px;display:flex;flex-direction:column;gap:14px;z-index:2}
.sieve-bar{height:14px;border-radius:2px;background:#1a1a1a}
.sieve-bar-top{width:100%;background:#1a1a1a}
.sieve-bar-bot{background:#1F4E3D;height:14px;border-radius:2px}
.sieve-bar-row{display:flex;width:100%;height:14px}
.sieve-bar-gap{height:14px}
.sieve-falls{position:absolute;inset:0;pointer-events:none;z-index:1}
.sieve-fall{position:absolute;top:-12px;width:8px;height:8px;border-radius:50%;background:var(--forest);opacity:.7;animation:sieve-drop 2.4s linear infinite}
.sieve-fall:nth-child(2n){background:#1a1a1a;width:6px;height:6px}
.sieve-fall:nth-child(3n){background:#c69036;width:7px;height:7px}
@keyframes sieve-drop{
  0%{transform:translateY(0);opacity:0}
  10%{opacity:.85}
  46%{transform:translateY(80px);opacity:.85}
  52%{transform:translateY(80px) scale(0.6);opacity:1}
  58%{transform:translateY(80px) scale(1);opacity:.7}
  100%{transform:translateY(220px);opacity:0}
}

.dlv-now{display:flex;align-items:center;gap:18px;padding:14px 18px;background:#fff;border:1px solid var(--rule);border-left:3px solid var(--forest);border-radius:6px;margin-bottom:24px}
.dlv-now-eyebrow{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:var(--forest);font-weight:700;flex-shrink:0}
.dlv-now-lbl{font-size:14px;color:var(--ink);font-weight:500;line-height:1.4}

.counters{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:28px}
.counter-cell{padding:18px 16px;background:#fff;border:1px solid var(--rule);border-radius:6px;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.counter-num{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:28px;font-weight:600;color:var(--forest);letter-spacing:-0.01em;line-height:1;font-variant-numeric:tabular-nums}
.counter-lbl{font-size:11px;letter-spacing:0.05em;text-transform:uppercase;color:var(--mute);font-family:'JetBrains Mono',ui-monospace,monospace}

.rolodex{margin-bottom:24px;padding:24px;background:#1a1a1a;border-radius:8px;overflow:hidden}
.rolodex-rail{display:flex;align-items:center;justify-content:center;gap:24px;height:64px;position:relative}
.rolodex-item{display:flex;flex-direction:column;align-items:center;gap:4px;color:#666;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:14px;transition:all .35s ease;opacity:0.4;transform:scale(0.85)}
.rolodex-active{color:#fafafa;opacity:1;transform:scale(1.15);font-size:18px;font-weight:600}
.rolodex-name{letter-spacing:0.02em}
.rolodex-verdict{font-size:9px;letter-spacing:0.1em;padding:3px 8px;border-radius:3px;font-weight:700;animation:roloverdict-in .25s ease}
.rolodex-verdict.ok{background:rgba(31,78,61,0.25);color:#7fcfa0;border:1px solid #1F4E3D}
.rolodex-verdict.no{background:rgba(180,60,60,0.25);color:#ff9f9f;border:1px solid #b43c3c}
@keyframes roloverdict-in{from{opacity:0;transform:scale(0.7)}to{opacity:1;transform:scale(1)}}
.rolodex-caption{margin-top:14px;text-align:center;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:#8a8780}
.rolodex-done .rolodex-rail{opacity:.55}

.dlv-reveal{margin:36px 0 0;padding:32px;background:linear-gradient(135deg,#e8f5ec 0%,#f3f0e9 100%);border:1px solid #1a7f3c;border-radius:10px;text-align:center;animation:dlv-reveal-in .8s cubic-bezier(.22,.94,.34,1.04)}
@keyframes dlv-reveal-in{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.dlv-reveal-mark{margin-bottom:14px;animation:dlv-mark-pop 1.2s ease .3s both}
@keyframes dlv-mark-pop{0%{transform:scale(0.6) rotate(-8deg);opacity:0}60%{transform:scale(1.1) rotate(2deg)}100%{transform:scale(1) rotate(0);opacity:1}}
.dlv-reveal h3{margin:0 0 10px;font-size:24px;color:var(--forest);letter-spacing:-0.01em;font-weight:600}
.dlv-reveal p{margin:0 auto;max-width:480px;font-size:14px;color:var(--ink-2);line-height:1.6}
.dlv-reveal a{color:var(--forest);text-decoration:underline}

@media (max-width:760px){
  .counters{grid-template-columns:repeat(2,1fr)}
  .counter-num{font-size:22px}
  .rolodex-rail{gap:14px}
  .rolodex-item{font-size:11px}
  .rolodex-active{font-size:14px}
  .sieve-stage{height:160px}
  .sieve-mark{width:180px}
}

/* ===== MOBILE RESCUE BLOCK =====
   Comprehensive mobile fixes added 2026-05-07 after reddit launch traffic
   exposed major typography overflow on small viewports. Targets phones at
   ≤640px (most iPhones / Android) and tightens an extra layer for ≤420px
   (older / smaller devices). Designed not to disturb desktop. */
@media (max-width:640px){
  /* Page container — tighter side padding on phones */
  .page{padding:0 18px}

  /* Typography scale — biggest visible win */
  h1{font-size:36px;line-height:1.08;letter-spacing:-0.025em}
  h2{font-size:26px;line-height:1.15}
  h3{font-size:19px;line-height:1.25}
  .lead{font-size:15px;line-height:1.6}
  .hero h1{margin-bottom:18px}
  .hero .lead{font-size:15px;margin-bottom:24px}
  .hero{padding:48px 0 64px}

  /* Hero grid — stack vertically */
  .hero-grid{grid-template-columns:1fr;gap:32px}

  /* Pricing cards — already partly handled, ensure single column */
  .pricing{grid-template-columns:1fr!important;gap:18px}
  .tier{padding:22px}

  /* Section headers — stack the two-column "h2 + right blurb" pattern */
  .sh{flex-direction:column;gap:14px}
  .sh h2{max-width:100%}
  .sh .right{max-width:100%;font-size:13px}

  /* CTA rows — wrap, full-width buttons */
  .hero-cta-row{flex-direction:column;align-items:stretch;gap:12px}
  .hero-cta-row .btn{justify-content:center;width:100%}
  .btn{font-size:11px;padding:12px 18px}

  /* Top nav — tighter, smaller. Earlier rule HID nav-links entirely
     which meant mobile visitors had no way to reach How it works /
     Sample report / Pricing / Order. The Klombic logo glyph (3 bars)
     looks like a hamburger to a phone-savvy user but isn't a menu —
     it's the brand mark. So we need actual visible links.
     Keep them visible, compact, horizontally scrollable if they
     overflow. */
  .nav-inner{padding:14px 18px;gap:14px;flex-wrap:wrap}
  .nav-links{display:flex;gap:14px;font-size:12px;flex-wrap:wrap}
  .nav-links a{font-size:12px;color:var(--ink-2)}
  .nav-cta{padding:8px 12px;font-size:10px}

  /* Hero meta strip — wrap */
  .hero-meta{flex-direction:column;gap:10px}

  /* Demo / sample box — fit width */
  .demo-bar,.demo-body,.demo-foot{padding-left:14px;padding-right:14px}

  /* Tables overflow — let them scroll horizontally instead of clipping */
  table{display:block;overflow-x:auto;white-space:nowrap}

  /* SVG hero flow diagram — shrink to fit */
  svg{max-width:100%;height:auto}

  /* Footer — stack columns */
  .footer{flex-direction:column;gap:24px}
  .footer-col{min-width:0}

  /* FAQ items — tighter */
  .faq-item h4{font-size:15px}
  .faq-item p{font-size:13px;line-height:1.55}

  /* Legal pages (Terms / Privacy / Refund / Methodology) — readable widths */
  .legal{padding:48px 18px 64px!important}
  .legal h2{font-size:30px}

  /* Sample-report PDF.js viewer — let it scale, not crop */
  .sample-pdfjs,.pdfjs-container{max-width:100%;overflow-x:auto}
  .sample-page .sh{flex-direction:column}

  /* Order wizard — full-width form fields, larger tap targets */
  .text-input,textarea,select{width:100%;font-size:16px!important;padding:12px 14px}
  .arch{padding:14px}
  .archetype-grid{grid-template-columns:repeat(2,1fr)}
  .pricing[style]{grid-template-columns:1fr!important}

  /* Anything else with min-width that breaks on phones */
  .lead,.body{max-width:100%}
}

/* Smallest devices — extra-aggressive */
@media (max-width:420px){
  h1{font-size:30px}
  h2{font-size:22px}
  .pricing{gap:14px}
  /* Keep .nav-cta visible — it's the most-clickable element on mobile */
  .nav-cta{padding:6px 10px;font-size:9.5px}
  .nav-links{font-size:11px;gap:10px}
  .archetype-grid{grid-template-columns:1fr}
}

/* ===== MOBILE PASS 2 (2026-05-07 19:33) =====
   First mobile rescue block (above) targeted typography + layout, but
   missed several desktop-specific visual elements that overflow or
   animate on phones. This pass: hide complex animations, force
   single-column on every grid we found broken in real-device testing.

   Strategy: phones are not desktop. Don't try to shrink desktop-density
   visualizations onto a 360px screen — hide them and let typography +
   pricing + CTA carry the page. Reddit/IH/PH visitors decide in 6 seconds;
   readable beats fancy. */
@media (max-width:760px){
  /* SixChecksSection — was 3-column grid, now single column */
  .checks{grid-template-columns:1fr!important}
  .check{padding:22px 20px;min-height:0}
  .check .ttl{font-size:18px}
  .check .desc{font-size:13px}

  /* HowItWorks animated decision diagram — hide on phones; the step
     details below it convey the same content without overflow */
  .flow-grid,.flow-svg,svg.flow-svg,.flow-diagram,.flowchart,
  .viz-section,.viz-cell{display:none!important}

  /* Hero sample frame — the animated PDF mockup. Stacks under hero on
     mobile; becomes a tall, distracting element. Hide. */
  .hero-sample,.hero-sample-frame{display:none!important}

  /* LiveDemo (.demo) — the live-check ticker in hero.jsx. Every 80ms
     it adds another row, growing the box and pushing everything below
     it down the page. On a phone this reads as "the page is constantly
     jumping" — exactly what user reported. Hide it on mobile. The
     desktop animation stays fine on its own breakpoint. */
  .demo,.demo-bar,.demo-body,.demo-foot{display:none!important}

  /* Counters / rolodex / sieve / animated marketing widgets — hide.
     Pure visual flair, no information loss. */
  .counters,.rolodex-rail,.rolodex,.sieve-stage,.sieve-mark{display:none!important}

  /* Methods grid (lower section) — already had a 760px rule somewhere
     but enforce it again for safety */
  .methods-grid{grid-template-columns:1fr!important;gap:14px}

  /* Wall of love (Senja widget) — tighten if it renders */
  .senja-embed-id{padding:0!important}

  /* Footer columns — definitely stack */
  .footer-grid,.footer-row{display:flex;flex-direction:column;gap:24px}

  /* Anything inside .page that's a fixed-min-width grid — let it shrink */
  .page > section,.page section{max-width:100%;overflow-x:hidden}
}

/* ===== TIER 1 MOBILE REDESIGN (2026-05-07 19:45) =====
   Real mobile-first layouts for the most-visible surfaces:
   home hero, HowItWorks vertical flow, pricing polish.
   Hidden on desktop, primary on mobile. */

/* Vertical flow diagram — replaces the horizontal SVG on mobile */
.how-flow-mobile{display:none}
@media (max-width:760px){
  .how-flow-mobile{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin:24px 0;
  }
  .hfm-step,.hfm-modes{
    border:1px solid var(--rule);
    border-radius:6px;
    padding:14px 16px;
    background:#fff;
  }
  .hfm-step-active{
    background:#1F4E3D;
    border-color:#1F4E3D;
    color:#FAFAFA;
  }
  .hfm-step-active .hfm-tag{
    color:rgba(250,250,250,0.7);
  }
  .hfm-tag{
    font-family:'JetBrains Mono',ui-monospace,monospace;
    font-size:9.5px;
    color:var(--mute);
    letter-spacing:0.08em;
    text-transform:uppercase;
    margin-bottom:4px;
  }
  .hfm-title{
    font-size:16px;
    font-weight:600;
    letter-spacing:-0.01em;
    line-height:1.3;
  }
  .hfm-sub{
    font-size:11px;
    margin-top:3px;
    opacity:0.85;
  }
  .hfm-arrow{
    text-align:center;
    color:#1F4E3D;
    font-size:20px;
    line-height:1;
    padding:6px 0;
    user-select:none;
  }
  .hfm-modes{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px;
    background:#F3F0E9;
  }
  .hfm-mode{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:10px 12px;
    background:#fff;
    border:1px solid var(--rule);
    border-radius:5px;
  }
  .hfm-letter{
    flex-shrink:0;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#1F4E3D;
    color:#FAFAFA;
    font-family:'JetBrains Mono',ui-monospace,monospace;
    font-weight:600;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .hfm-mode-title{
    font-size:14px;
    font-weight:600;
    letter-spacing:-0.01em;
  }
  .hfm-mode-sub{
    font-size:11px;
    color:var(--ink-2);
    margin-top:2px;
    line-height:1.4;
  }

  /* Hero polish — make the hero feel intentional on mobile, not "we hid the right column" */
  .hero{padding:36px 0 56px}
  .hero-eyebrow{font-size:10px;padding:5px 11px;margin-bottom:20px}
  .hero h1{font-size:34px;letter-spacing:-0.025em;margin-bottom:16px}
  .hero .lead{font-size:14.5px;line-height:1.6;margin-bottom:22px}
  .hero-cta-row{margin-bottom:28px;gap:10px}
  .hero-cta-row .btn{padding:13px 16px;font-size:11px}

  /* Cost-comparison strip in hero — wrap clean */
  .hero p.lead[style] b,
  .hero p.lead[style]{flex-wrap:wrap}

  /* Pricing polish — the featured (Premium) tier should stand out
     visually even when stacked single-column */
  .tier{border-radius:8px;padding:24px 22px}
  .tier-name{font-size:11px;letter-spacing:0.08em}
  .tier .price{font-size:36px;line-height:1;margin:14px 0 4px}
  .tier-desc{font-size:13.5px;line-height:1.55}
  .tier-perks li{font-size:13px;line-height:1.55;padding:5px 0}
  .tier.featured{
    border-color:#1F4E3D;
    border-width:2px;
    box-shadow:0 12px 36px -16px rgba(31,78,61,0.3);
    position:relative;
  }
  .tier.featured::before{
    content:"MOST POPULAR";
    position:absolute;
    top:-10px;
    left:18px;
    background:#1F4E3D;
    color:#FAFAFA;
    font-family:'JetBrains Mono',ui-monospace,monospace;
    font-size:9px;
    letter-spacing:0.1em;
    padding:3px 9px;
    border-radius:3px;
  }
  .tier .cta{margin-top:18px}
  .tier .cta a{
    display:block;
    text-align:center;
    padding:12px 16px;
    font-size:11px;
    background:#1A1A1A;
    color:#FAFAFA;
    border-radius:4px;
  }
  .tier.featured .cta a{background:#1F4E3D}
}

/* ===== TIER 2 MOBILE — ORDER WIZARD (2026-05-08) =====
   Most-conversion-critical surface. Customer arrives from Reddit/IH
   and needs to complete a 5-step flow on a phone. Every step must be
   tap-friendly, scroll-friendly, and never auto-zoom on input focus. */
@media (max-width:760px){
  /* Order shell — single column, no sidebar rail */
  .order .page > h2{font-size:24px;line-height:1.2;max-width:100%;margin-bottom:24px!important}
  .order-grid{grid-template-columns:1fr;gap:18px}

  /* Steps rail — horizontal scrollable strip instead of sidebar.
     Shows progress without taking 280px of width. */
  .steps-rail{
    position:sticky;
    top:0;
    z-index:10;
    flex-direction:row;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    background:#fff;
    border:1px solid var(--rule);
    border-radius:6px;
    margin:0 0 14px;
  }
  .steps-rail::-webkit-scrollbar{display:none}
  .step-rail{
    border-bottom:none;
    border-right:1px solid var(--rule);
    flex:0 0 auto;
    padding:12px 14px;
    min-width:120px;
    gap:10px;
  }
  .step-rail:last-child{border-right:none}
  .step-rail .num{width:auto;padding-top:0}
  .step-rail .lbl{font-size:13px}
  .step-rail .sub{font-size:9.5px;letter-spacing:0.04em}

  /* Panel — tighter padding (48px → 20px) */
  .order-panel{
    padding:24px 20px;
    min-height:0;
    border-radius:6px;
  }
  .order-panel h2{
    font-size:22px;
    line-height:1.2;
    margin-bottom:8px;
  }
  .order-panel .panel-lead{
    font-size:14px;
    line-height:1.5;
    margin-bottom:24px;
  }

  /* Field groups — tighter spacing */
  .field-group{margin-bottom:20px}
  .field-group label{font-size:10px;margin-bottom:8px}

  /* Toggle grid — 2-up on mobile, even when component sets inline 3 or 4
     columns. !important needed because StepConstraints sets inline style.*/
  .toggle-grid{grid-template-columns:repeat(2,1fr)!important;gap:8px}
  .toggle{
    padding:14px 12px;
    font-size:13px;
    min-height:54px;
    text-align:left;
  }
  .toggle .toggle-row{font-size:14px}

  /* Archetype grid — 2-up; 1-up at very small */
  .archetype-grid{grid-template-columns:repeat(2,1fr)!important;gap:8px}
  .arch{padding:14px 12px}
  .arch .arch-name{font-size:13px}
  .arch .arch-egs{font-size:9.5px;line-height:1.4}
  .arch .arch-glyph{width:28px;height:28px}
  .arch .arch-glyph svg{width:24px;height:24px}

  /* Candidate input rows — bigger tap targets, 16px font (no iOS zoom) */
  .cand-row{gap:10px}
  .cand-row .cand-num{width:24px;font-size:10px}
  .cand-row input{
    padding:14px 14px;
    font-size:16px!important;
    border-radius:6px;
  }

  /* Brief textarea — 16px font, taller */
  textarea.text-input{
    font-size:16px!important;
    min-height:140px;
    padding:14px 14px!important;
  }

  /* Order actions (Back / Next) — make them sticky at bottom of panel
     for one-thumb tap. Back goes flat-button style, Next stays primary. */
  .order-actions{
    margin-top:24px;
    padding-top:18px;
    flex-direction:row;
    gap:12px;
  }
  .order-actions .btn-primary{
    flex:1;
    justify-content:center;
    padding:14px 16px;
    font-size:11px;
  }
  .order-back{font-size:11px;padding:14px 0;flex:0 0 auto}

  /* The v1-defaults inline 3-column grid (USPTO / Languages / Marketplaces) */
  .field-group [style*="repeat(3"]{
    grid-template-columns:1fr!important;
    gap:6px!important;
    font-size:11px!important;
  }

  /* Plan picker (3 candidates / 5 / 10) — 1 column stacked, each big tap target */
  .field-group [style*="repeat(3,1fr)"].toggle-grid{
    grid-template-columns:1fr!important;
  }

  /* Required-TLD pill explanation — keep readable */
  .field-group p[style*="JetBrains"]{font-size:11px!important;line-height:1.5!important}
}

/* Smaller — tighter still */
@media (max-width:420px){
  .archetype-grid{grid-template-columns:1fr!important}
  .step-rail{min-width:100px;padding:10px 12px}
  .step-rail .lbl{font-size:12px}
}
