/* KORVO website. "The ledger, beautifully kept."
   Editorial serif (Lora) for headlines, Inter for interface and reading, deep-forest instrument panels for numbers.
   Signature: the pay-period line, payday (filled) to next payday (open). */
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ivory: #F6F5EF; --paper: #FBFAF6; --white: #FFFFFF;
  --ink: #1C211F; --ink-2: #3A413D; --muted: #5A615D;
  --forest: #24543F; --forest-2: #2F6A50; --deep: #12291F; --deep-2: #1A3528; --deep-line: rgba(246, 245, 239, .14);
  --sage: #7E9C8C; --mint: #C9D7CE; --pale: #E4EBE6;
  --brass: #A9823A; --brass-2: #D9B56E; --brass-soft: #F1E7D2; --warn: #7A5300;
  --line: rgba(28, 33, 31, .12); --line-2: rgba(28, 33, 31, .2);
  --serif: "Lora", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 40rem; --r: 14px; --r-sm: 9px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(18, 41, 31, .06), 0 12px 32px -18px rgba(18, 41, 31, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
html.ask-open { overflow: hidden; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.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: 1rem; top: -3rem; background: var(--forest); color: #fff; padding: .55rem .9rem; border-radius: var(--r-sm); font-size: .9rem; z-index: 60; }
.skip:focus { top: 1rem; }
a { color: var(--forest); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.num, .facts b, .big-num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(246, 245, 239, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-head { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; min-height: 4.25rem; padding-top: .6rem; padding-bottom: .6rem; }
.wordmark { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .34em; color: var(--forest); text-decoration: none; margin: 0; }
.wordmark.light { color: var(--ivory); }
.nav { display: flex; align-items: center; gap: .25rem 1.6rem; flex-wrap: wrap; font-size: .9375rem; font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .35rem 0; position: relative; }
.nav a:not(.ask-link)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.ask-link):hover::after, .nav a[aria-current="page"]:not(.ask-link)::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .ask-link { display: inline-flex; align-items: center; gap: .55rem; background: var(--deep); color: var(--ivory); padding: .5rem 1rem .5rem .85rem; border-radius: 999px; transition: background .2s; }
.nav .ask-link:hover { background: var(--forest); }
.nav .ask-link::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 3px rgba(217, 181, 110, .22); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 450; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 1.02; letter-spacing: -.028em; margin: 0 0 1.5rem; max-width: 15ch; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.lead-sm { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.small { font-size: .9rem; color: var(--muted); }
.spaced { margin-top: 1.25rem; }
main { display: block; }

/* ---------- buttons ---------- */
.btn, .btn-ghost { font: inherit; font-size: .975rem; font-weight: 500; line-height: 1.2; border-radius: 999px; padding: .85rem 1.4rem; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn { background: var(--forest); color: #fff; border: 1px solid var(--forest); }
.btn:hover { background: var(--deep); border-color: var(--deep); text-decoration: none; }
.btn:active, .btn-ghost:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); text-decoration: none; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.linkish { background: none; border: 0; padding: .35rem 0; color: var(--forest); text-decoration: underline; text-underline-offset: .22em; font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 0; }
.hero-short { padding-bottom: clamp(1rem, 3vw, 2rem); }
.hero-short h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1, .hero-copy .lead, .hero-copy .actions { animation: rise .8s var(--ease) both; }
.hero-copy .lead { animation-delay: .08s; }
.hero-copy .actions { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the instrument panel (hero) */
.panel { margin: 0; background: var(--deep); color: var(--ivory); border-radius: 20px; padding: 1.6rem 1.6rem 1.35rem; box-shadow: 0 30px 60px -30px rgba(18, 41, 31, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset; animation: rise .9s var(--ease) .12s both; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--deep-line); padding-bottom: .9rem; margin-bottom: 1.1rem; }
.panel-title { font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.panel-meta { font-size: .8125rem; color: #A9BDB1; margin: 0; }
.panel-big { display: flex; align-items: flex-end; gap: 1rem; }
.big-num { font-family: var(--serif); font-size: 3.4rem; line-height: .9; letter-spacing: -.03em; }
.big-label { font-size: .875rem; color: #C5D3CA; line-height: 1.35; padding-bottom: .2rem; }
.panel-period { position: relative; height: 4px; background: rgba(246, 245, 239, .14); border-radius: 2px; margin: 1.2rem 0 1.1rem; }
.pp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; background: var(--ivory); border-radius: 2px; transform-origin: left; animation: grow 1.2s var(--ease) .45s both; }
.pp-dot { position: absolute; left: 60%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--deep); border: 3px solid var(--ivory); animation: fade .3s ease 1.55s both; }
.panel-sub { font-size: .875rem; color: #C5D3CA; margin: 0 0 .6rem; }
.panel-stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.ps { display: block; height: 100%; transform-origin: left; animation: grow .9s var(--ease) both; }
.ps-fixed { width: 44.4%; background: #E8E4D6; animation-delay: .6s; } .ps-ess { width: 17.9%; background: var(--sage); animation-delay: .7s; }
.ps-sav { width: 18.3%; background: #4E8F6D; animation-delay: .8s; } .ps-wants { width: 19.4%; background: var(--mint); animation-delay: .9s; }
.panel-legend { list-style: none; padding: 0; margin: .65rem 0 1.15rem; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; font-size: .8125rem; color: #C5D3CA; font-variant-numeric: tabular-nums; }
.panel-legend i { display: inline-block; width: .55rem; height: .55rem; border-radius: 2px; margin-right: .45rem; }
.k-fixed { background: #E8E4D6; } .k-ess { background: var(--sage); } .k-sav { background: #4E8F6D; } .k-wants { background: var(--mint); }
.panel-pace { list-style: none; padding: .9rem 0 0; margin: 0; border-top: 1px solid var(--deep-line); }
.panel-pace li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) 2.8rem; gap: .75rem; align-items: center; font-size: .875rem; padding: .28rem 0; color: #DCE6E0; }
.panel-pace b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.panel-pace .is-ahead, .panel-pace .is-ahead b { color: var(--brass-2); }
.pm { position: relative; height: 6px; background: rgba(246, 245, 239, .12); border-radius: 3px; }
.pf { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #8FB3A0; transform-origin: left; animation: grow 1s var(--ease) both; }
.is-ahead .pf { background: var(--brass-2); }
.pf-88 { width: 88%; animation-delay: .75s; } .pf-70 { width: 70%; animation-delay: .85s; } .pf-66 { width: 66%; animation-delay: .95s; } .pf-27 { width: 27%; animation-delay: 1.05s; }
.pk { position: absolute; left: 60%; top: -4px; bottom: -4px; width: 2px; background: var(--ivory); opacity: .85; }
.panel-note { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 0; padding: .75rem .9rem; background: rgba(217, 181, 110, .1); border-radius: var(--r-sm); font-size: .8125rem; line-height: 1.45; color: #EADDBF; }
.panel-note .dot { flex: none; width: .5rem; height: .5rem; margin-top: .35rem; border-radius: 50%; background: var(--brass-2); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* the pay period (signature) */
.period { margin: clamp(3rem, 6vw, 5rem) 0 0; padding-bottom: 1rem; }
.period-line { position: relative; height: 2px; background: var(--forest); transform-origin: left center; animation: grow 1.6s cubic-bezier(.65, 0, .35, 1) .3s both; }
.period-line::before, .period-line::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translateY(-50%); }
.period-line::before { left: 0; background: var(--forest); }
.period-line::after { right: 0; background: var(--ivory); border: 2px solid var(--forest); animation: fade .3s ease 1.8s both; }
.period-labels { display: flex; justify-content: space-between; font-size: .875rem; color: var(--muted); margin-top: .8rem; }
.period-caption { color: var(--muted); font-family: var(--serif); font-style: italic; margin: 1rem 0 0; }

/* ---------- sections ---------- */
section.block { padding: clamp(4rem, 8vw, 7rem) 0 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: clamp(4rem, 8vw, 7rem) !important; margin-top: clamp(4rem, 8vw, 7rem); }
.band-paper + section.block { padding-top: clamp(4rem, 8vw, 7rem); }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); margin: 0 0 .35rem; max-width: 34rem; }
.for { list-style: none; margin: 0; padding: 0; }
.for li { padding: 1rem 0 1rem 2.2rem; border-top: 1px solid var(--line); position: relative; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.for li:last-child { border-bottom: 1px solid var(--line); }
.for li::before { content: ""; position: absolute; left: 0; top: 1.62rem; width: 1.1rem; height: 2px; background: var(--forest); }
.ethos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); counter-reset: e; }
.ethos li { counter-increment: e; padding: 1.75rem 2rem 0 0; position: relative; }
.ethos li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
.ethos li::before { content: "0" counter(e); display: block; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 1.4rem; }
.ethos strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 2.2rem; letter-spacing: -.02em; color: var(--forest); line-height: 1.1; margin-bottom: .5rem; }
.ethos .part { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .45rem; }
.ethos .text { color: var(--ink-2); }
.promises { margin: 0; padding: 0; list-style: none; }
.promises li { position: relative; padding: .9rem 0 .9rem 2.2rem; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 1.1rem; height: 2px; background: var(--brass); }
.big-link { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); word-break: break-word; }
.email { color: var(--forest); user-select: all; }

/* ---------- guide as product ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.book { display: block; perspective: 1400px; }
.book .cover { border-radius: 3px 6px 6px 3px; box-shadow: -1px 0 0 rgba(0, 0, 0, .25) inset, 0 2px 4px rgba(18, 41, 31, .15), 18px 30px 50px -20px rgba(18, 41, 31, .45); transform: rotateY(-8deg) rotateX(2deg); transition: transform .5s var(--ease); }
.book:hover .cover { transform: rotateY(-3deg); }
.status { font-size: .875rem; font-weight: 500; color: var(--forest); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .55rem; background: var(--pale); padding: .35rem .8rem; border-radius: 999px; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brass); }
.facts { list-style: none; padding: 1.25rem 0 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 8.5rem)); gap: 1rem 2rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 450; font-size: 2.6rem; letter-spacing: -.02em; color: var(--forest); line-height: 1; margin-bottom: .3rem; }
.hero-product { padding-bottom: 1rem; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book-lg { max-width: 22rem; justify-self: center; animation: rise .9s var(--ease) .1s both; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.checklist li { position: relative; padding: 1rem 0 1rem 2.1rem; border-top: 1px solid var(--line); line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--forest); }
.checklist li::after { content: ""; position: absolute; left: .4rem; top: 1.42rem; width: .45rem; height: .25rem; border-left: 2px solid var(--ivory); border-bottom: 2px solid var(--ivory); transform: rotate(-45deg); }
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.previews figure { margin: 0; }
.previews img { border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(18, 41, 31, .08), 0 16px 34px -20px rgba(18, 41, 31, .35); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.previews figure:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(18, 41, 31, .08), 0 24px 44px -20px rgba(18, 41, 31, .4); }
.previews figcaption { font-size: .9rem; color: var(--muted); margin-top: .9rem; }
.toc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.toc-part { border-top: 2px solid var(--forest); padding-top: 1.1rem; }
.part-label { font-size: .8125rem; color: var(--muted); margin: 0 0 .35rem; }
.toc-part h3 { margin-bottom: 1rem; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { display: grid; grid-template-columns: 2.2rem 1fr; padding: .7rem 0; border-top: 1px solid var(--line); line-height: 1.45; }
.toc-n { font-family: var(--serif); color: var(--forest); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.plate { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); }
.plate h2 { font-size: 1.75rem; }
.plate p { margin: 0; color: var(--ink-2); }
.cta-band { background: var(--deep); color: var(--ivory); border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: #C5D3CA; margin: 0; }
.cta-band .cta-mail { font-family: var(--serif); font-size: 1.3rem; color: var(--ivory); }
.cta-band .email, .cta-band a { color: var(--brass-2); }

/* ---------- home: tools and ask teaser ---------- */
.tool-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.tool-index li + li { border-left: 1px solid var(--line); }
.tool-index a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.4rem 1.25rem 1.6rem; text-decoration: none; color: var(--ink); transition: background .25s; }
.tool-index li:first-child a { padding-left: 0; }
.tool-index a:hover { background: var(--paper); }
.ti-n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ti-t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--forest); }
.ti-d { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.ask-teaser { background: var(--deep); color: var(--ivory); border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.ask-teaser h2 { color: var(--ivory); }
.ask-teaser p { color: #C5D3CA; }
.ask-teaser .small { color: #93A99C; margin: 0; }
.ask-teaser .chips { display: flex; flex-direction: column; gap: .6rem; }
.ask-teaser .chips button { text-align: left; font: inherit; font-size: .975rem; background: rgba(246, 245, 239, .05); color: var(--ivory); border: 1px solid var(--deep-line); border-radius: 12px; padding: .95rem 1.1rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; transition: background .2s, border-color .2s; }
.ask-teaser .chips button::after { content: "\2197"; color: var(--brass-2); }
.ask-teaser .chips button:last-child { border-style: dashed; }
.ask-teaser .chips button:hover { background: rgba(246, 245, 239, .1); border-color: rgba(246, 245, 239, .3); }
.ask-teaser :focus-visible { outline-color: var(--brass-2); }

/* ---------- tools page ---------- */
.tool-nav-wrap { position: sticky; top: 4.25rem; z-index: 20; background: rgba(246, 245, 239, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tool-nav { display: flex; gap: .4rem; margin: 0; padding: .7rem 0; list-style: none; overflow-x: auto; scrollbar-width: none; font-size: .9rem; font-weight: 500; }
.tool-nav::-webkit-scrollbar { display: none; }
.tool-nav a { display: inline-block; white-space: nowrap; border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: .4rem .9rem; text-decoration: none; color: var(--ink-2); transition: border-color .2s, color .2s; }
.tool-nav a:hover { border-color: var(--forest); color: var(--forest); }
.tool { padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; scroll-margin-top: -1rem; }
.tool-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem 4rem; align-items: end; margin-bottom: 1.75rem; }
.tool-head .chapter { grid-column: 1 / -1; font-size: .8125rem; font-weight: 500; color: var(--forest); margin: 0; }
.tool-head h2 { margin: 0; }
.tool-intro { color: var(--ink-2); margin: 0; max-width: 32rem; }
.tool-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.tool-form { padding: clamp(1.4rem, 3vw, 2.25rem); }
.tool-out { background: var(--deep); color: var(--ivory); padding: clamp(1.4rem, 3vw, 2.25rem); display: flex; flex-direction: column; min-height: 100%; }
form.calc { font-size: 1rem; }
.field { margin: 0 0 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label, fieldset legend, .label { display: block; font-weight: 500; font-size: .9375rem; margin: 0 0 .45rem; color: var(--ink); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: .15rem; }
fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; min-width: 0; }
.radios { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.radios label { display: inline-flex; align-items: center; gap: .45rem; border-radius: 9px; padding: .5rem .9rem; cursor: pointer; font-weight: 500; font-size: .9rem; margin: 0; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.radios input { accent-color: var(--forest); margin: 0; }
.radios label:has(input:checked) { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 41, 31, .12), 0 0 0 1px var(--line); }
.radios label:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 1px; }
input[type=text], input[type=number], select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: .7rem .85rem; width: 100%; min-height: 3rem; transition: border-color .2s, box-shadow .2s, background .2s; }
input[type=text]:hover, select:hover, textarea:hover { border-color: rgba(28, 33, 31, .35); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 4px rgba(36, 84, 63, .14); }
input.num { text-align: right; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
input[aria-invalid=true] { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(122, 83, 0, .1); }
.field-err { color: var(--warn); font-size: .85rem; margin: .4rem 0 0; }
table.rows { width: 100%; border-collapse: collapse; margin: 0 0 .9rem; table-layout: fixed; }
table.rows th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--muted); padding: 0 .45rem .45rem 0; }
table.rows th:nth-child(1) { width: 42%; } table.rows th:nth-child(4) { width: 3rem; }
#irregular-form table.rows th:nth-child(3) { width: 34%; }
table.rows td { padding: 0 .45rem .55rem 0; vertical-align: top; }
table.rows td:last-child { padding-right: 0; }
.row-del { width: 3rem; height: 3rem; border: 1px solid var(--line); background: var(--white); border-radius: 10px; font-size: 1.2rem; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.row-del:hover { color: var(--warn); border-color: var(--warn); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; margin-top: .75rem; }
.plan-group { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1rem; }
.plan-group .label { display: flex; align-items: center; gap: .55rem; margin-bottom: .2rem; }
.plan-group .label i, .plan-legend i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; flex: none; }
.group-eg { margin: 0 0 .7rem; }
.plan-line { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 3rem; gap: .45rem; margin-bottom: .5rem; }
.pace-days { grid-template-columns: 1fr 1fr; align-items: end; gap: 0 1rem; margin-bottom: .4rem; }
.seg-fixed { background: var(--ink); } .seg-essentials { background: var(--sage); } .seg-saving { background: var(--forest); } .seg-wants { background: var(--mint); }

/* results: the instrument panel */
.result { font-size: .95rem; animation: fade .35s ease both; }
.result[hidden] { display: none; }
.result-empty { margin: auto 0; color: #A9BDB1; font-size: .95rem; padding: 1.5rem; border: 1px dashed var(--deep-line); border-radius: 14px; text-align: center; }
.result-empty[hidden] { display: none; }
.res-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--deep-line); color: #C5D3CA; }
.res-line b { font-weight: 500; color: var(--ivory); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-line.strong { padding: .2rem 0 1rem; color: var(--ivory); flex-direction: column; align-items: flex-start; gap: .35rem; }
.res-line.strong b { font-family: var(--serif); font-weight: 450; font-size: clamp(2.4rem, 4.5vw, 3.2rem); line-height: 1; letter-spacing: -.025em; color: var(--ivory); white-space: normal; }
.res-line.strong span { font-size: .85rem; color: #A9BDB1; order: -1; }
.res-work { font-size: .85rem; color: #A9BDB1; margin: .9rem 0 .5rem; font-variant-numeric: tabular-nums; line-height: 1.55; }
.res-note { font-size: .92rem; color: #DCE6E0; margin: .7rem 0; line-height: 1.6; }
.res-good { color: #9FD0B4; font-weight: 500; margin: .8rem 0; }
.res-warn { color: var(--brass-2); font-weight: 600; margin: .9rem 0 .3rem; }
.res-steps { margin: .4rem 0 .8rem; padding-left: 1.2rem; color: #DCE6E0; font-size: .92rem; }
.res-steps li { margin-bottom: .3rem; }
.pace-warn { margin-top: 1rem; padding: .2rem 1rem .4rem; border-left: 2px solid var(--brass-2); background: rgba(217, 181, 110, .07); border-radius: 0 10px 10px 0; }
.plan-bar { position: relative; display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(246, 245, 239, .1); margin: 1.2rem 0 .7rem; gap: 2px; }
.plan-bar .seg { height: 100%; transform-origin: left; animation: grow .7s var(--ease) both; }
.tool-out .seg-fixed, .tool-out .plan-legend .seg-fixed { background: #E8E4D6; }
.tool-out .seg-saving, .tool-out .plan-legend .seg-saving { background: #4E8F6D; }
.plan-legend { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; font-size: .84rem; color: #C5D3CA; font-variant-numeric: tabular-nums; }
.plan-legend li { display: flex; align-items: center; gap: .45rem; }
.pace-list { list-style: none; padding: 0; margin: .7rem 0; }
.pace-list li { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) auto; gap: .25rem .9rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--deep-line); font-size: .9rem; }
.pace-name { font-weight: 500; }
.pace-meter { position: relative; height: 8px; background: rgba(246, 245, 239, .12); border-radius: 4px; }
.pace-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #8FB3A0; border-radius: 4px; transform-origin: left; animation: grow .7s var(--ease) both; }
.pace-fill.ahead { background: var(--brass-2); }
.pace-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ivory); }
.pace-val { white-space: nowrap; font-variant-numeric: tabular-nums; color: #DCE6E0; }
.pace-val.ahead { color: var(--brass-2); font-weight: 600; }
.pace-left { grid-column: 2 / 4; color: #A9BDB1; font-size: .8rem; }
.ask-about { margin: 1.4rem 0 0; }
.tool-out .btn-ghost { color: var(--ivory); border-color: var(--deep-line); font-size: .9rem; padding: .6rem 1.05rem; }
.tool-out .btn-ghost::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--brass-2); }
.tool-out .btn-ghost:hover { border-color: rgba(246, 245, 239, .4); color: #fff; }
.tool-out :focus-visible { outline-color: var(--brass-2); }
/* charts drawn by tools.js */
.chart { margin: 1.1rem 0 .4rem; }
.chart-title { font-size: .8rem; color: #A9BDB1; margin: 0 0 .6rem; }
.hb { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) auto; gap: .8rem; align-items: center; font-size: .85rem; padding: .3rem 0; color: #DCE6E0; }
.hb-track { height: 10px; background: rgba(246, 245, 239, .1); border-radius: 5px; overflow: hidden; }
.hb-bar { display: block; height: 100%; border-radius: 5px; background: #8FB3A0; transform-origin: left; animation: grow .7s var(--ease) both; }
.hb-bar.primary { background: var(--ivory); } .hb-bar.alt { background: var(--sage); } .hb-bar.brass { background: var(--brass-2); }
.hb b { font-weight: 500; font-variant-numeric: tabular-nums; }
.goal-svg { width: 100%; height: auto; display: block; overflow: visible; }
.goal-svg .axis { stroke: rgba(246, 245, 239, .18); stroke-width: 1; }
.goal-svg .target { stroke: var(--brass-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.goal-svg .area { fill: rgba(143, 179, 160, .18); }
.goal-svg .path { fill: none; stroke: var(--ivory); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw-path 1.1s var(--ease) forwards; }
.goal-svg .pt { fill: var(--deep); stroke: var(--ivory); stroke-width: 2; }
.goal-svg .end { fill: var(--brass-2); }
.goal-svg text { fill: #A9BDB1; font: 500 11px var(--sans); }
.goal-svg text.hi { fill: var(--ivory); }
@keyframes draw-path { to { stroke-dashoffset: 0; } }
.plan-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--brass-2); }

/* ---------- Ask KORVO ---------- */
.ask-panel { display: flex; flex-direction: column; min-height: 0; }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--deep); color: var(--ivory); }
.ask-head > div { display: flex; flex-direction: column; }
.ask-title { font-family: var(--serif); font-size: 1.3rem; margin: 0; color: var(--ivory); display: flex; align-items: center; gap: .6rem; }
.ask-title::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 3px rgba(217, 181, 110, .2); }
.ask-sub { font-size: .8125rem; color: #A9BDB1; margin: .15rem 0 0 1.15rem; }
.ask-close { font-size: 1.4rem; line-height: 1; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--deep-line); background: transparent; color: var(--ivory); cursor: pointer; flex: none; }
.ask-close:hover { background: rgba(246, 245, 239, .1); }
.ask-log { flex: 1; overflow-y: auto; padding: 1.4rem 1.25rem; min-height: 12rem; background: var(--paper); scroll-behavior: smooth; }
.ask-msg { margin: 0 0 1.4rem; animation: rise .35s var(--ease) both; }
.ask-who { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 0 .4rem; }
.ask-user { display: flex; flex-direction: column; align-items: flex-end; }
.ask-user .ask-who { text-align: right; }
.ask-user .ask-q { max-width: 88%; background: var(--deep); color: var(--ivory); font-size: .975rem; line-height: 1.5; margin: 0; padding: .75rem 1rem; border-radius: 16px 16px 4px 16px; }
.ask-bot:not(.ask-intro) { background: var(--white); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgba(18, 41, 31, .05); }
.ask-bot .ask-who { color: var(--forest); display: flex; align-items: center; gap: .45rem; }
.ask-bot .ask-who::before { content: "K"; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 6px; background: var(--forest); color: var(--ivory); font-family: var(--serif); font-size: .75rem; }
.ask-intro .ask-who { display: none; }
.ask-bot .ask-text { font-size: .975rem; line-height: 1.65; }
.ask-text p { margin: 0 0 .65rem; }
.ask-text ol, .ask-text ul { margin: 0 0 .65rem; padding-left: 1.25rem; }
.ask-text li { margin-bottom: .3rem; }
.ask-text li::marker { color: var(--forest); font-weight: 600; }
.ask-lead { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; margin: 0 0 1rem; color: var(--ink-2); }
.ask-source { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted); margin: .7rem 0 0; padding: .25rem .6rem; background: var(--ivory); border-radius: 999px; line-height: 1.4; }
.ask-note { font-size: .84rem; color: var(--warn); margin: .4rem 0 .6rem; padding: .45rem .7rem; background: var(--brass-soft); border-radius: 8px; }
.ask-related { font-size: .84rem; margin: .7rem 0 0; color: var(--muted); }
.ask-related a { display: inline-block; margin: .2rem .15rem 0 0; padding: .2rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--forest); font-weight: 500; }
.ask-related a:hover { border-color: var(--forest); }
.ask-starters { display: flex; flex-wrap: wrap; gap: .5rem; }
.ask-chip { font: inherit; font-size: .9rem; text-align: left; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: .6rem .9rem; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ask-chip:hover { border-color: var(--forest); color: var(--forest); background: var(--white); }
.ask-pending { background: var(--white); }
.ask-dots { color: var(--muted); margin: 0; }
.ask-dots::after { content: ""; display: inline-block; width: 1.5em; text-align: left; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ask-form { border-top: 1px solid var(--line); padding: .9rem 1.25rem 1rem; background: var(--white); }
.ask-form textarea { resize: none; min-height: 3.3rem; max-height: 10rem; background: var(--paper); border-radius: 12px; }
.ask-row { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.ask-row .btn { padding: .65rem 1.3rem; }
.ask-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ask-privacy { font-size: .78rem; color: var(--muted); margin: .65rem 0 0; line-height: 1.5; }
.ask-drawer[hidden] { display: none; }
.ask-drawer { position: fixed; inset: 0; z-index: 50; }
.ask-scrim { position: absolute; inset: 0; background: rgba(18, 41, 31, .42); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.ask-sheet { position: absolute; top: .75rem; right: .75rem; bottom: .75rem; width: min(30rem, calc(100vw - 1.5rem)); background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(18, 41, 31, .6); display: flex; flex-direction: column; transform: translateX(calc(100% + 1rem)); transition: transform .35s var(--ease); }
.ask-drawer.is-open .ask-scrim { opacity: 1; }
.ask-drawer.is-open .ask-sheet { transform: none; }
.ask-sheet .ask-panel { height: 100%; }
.ask-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; margin-top: 1.5rem; align-items: start; }
#ask-inline .ask-panel { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; height: min(46rem, 78vh); box-shadow: var(--shadow); background: var(--paper); }
.ask-aside { display: grid; gap: 1rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem 1.4rem; font-size: .94rem; color: var(--ink-2); }
.aside-card h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.aside-card p:last-child { margin-bottom: 0; }

/* ---------- editorial pages ---------- */
.editorial { margin-top: 1rem; }
.ed-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem clamp(2rem, 6vw, 6rem); padding: 2.25rem 0; border-top: 1px solid var(--line); }
.ed-row:first-child { border-top-color: var(--line-2); }
.ed-row h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0; }
.ed-row > div { max-width: var(--measure); font-size: 1.075rem; color: var(--ink-2); }
.ed-row > div p:last-child { margin-bottom: 0; }
.ed-row .promises li { font-size: 1.1rem; color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(5rem, 10vw, 8rem); padding: 3.5rem 0 3rem; background: var(--deep); color: #A9BDB1; font-size: .875rem; line-height: 1.65; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; }
.foot-brand p { max-width: 36rem; margin: 0 0 .8rem; }
.foot-tag { font-family: var(--serif); font-size: 1.25rem; color: var(--ivory); margin: .6rem 0 1.4rem !important; }
.site-foot nav { display: flex; flex-direction: column; gap: .55rem; }
.site-foot nav a { color: var(--ivory); text-decoration: none; }
.site-foot nav a:hover { color: var(--brass-2); }
.site-foot :focus-visible { outline-color: var(--brass-2); }

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .tool-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-index li:nth-child(4) { border-left: 0; }
  .tool-index li:nth-child(4) a { padding-left: 0; }
  .tool-index li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 56rem) {
  .hero-grid, .product-grid, .tool-card, .ask-teaser, .ask-layout, .cta-band, .split { grid-template-columns: 1fr; }
  .split-head, .section-head, .tool-head, .ed-row { grid-template-columns: 1fr; }
  .ethos { grid-template-columns: 1fr; }
  .ethos li, .ethos li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ethos li::before { margin-bottom: .6rem; }
  .toc-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .book-lg { max-width: 16rem; order: -1; }
  .feature { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
  .tool-out { min-height: 0; }
  .result-empty { margin: 0; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .head-row { min-height: 0; }
  .nav { width: 100%; justify-content: space-between; gap: .25rem .9rem; font-size: .9rem; }
  .tool-nav-wrap { top: 6.4rem; }
  .tool { scroll-margin-top: -1rem; }
  html { scroll-padding-top: 9rem; }
  .feature { grid-template-columns: 1fr; }
  .feature .book { max-width: 13rem; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; }
  .facts b { font-size: 2.1rem; }
  .tool-index { grid-template-columns: 1fr; }
  .tool-index li + li { border-left: 0; border-top: 1px solid var(--line); }
  .tool-index a, .tool-index li:first-child a, .tool-index li:nth-child(4) a { padding: 1.1rem 0; }
  .previews { grid-template-columns: 1fr 1fr; }
  .previews figure:nth-child(3) { display: none; }
  .panel { padding: 1.25rem; }
  .panel-head { flex-direction: column; gap: .15rem; }
  .big-num { font-size: 2.9rem; }
  .panel-pace li { grid-template-columns: 6.2rem minmax(0, 1fr) 2.6rem; }
  .field-row, .pace-days { grid-template-columns: 1fr; }
  .plan-line { grid-template-columns: minmax(0, 1fr) 6.5rem 3rem; }
  .radios { display: flex; }
  .radios label { flex: 1 1 auto; justify-content: center; }
  .plan-legend { grid-template-columns: 1fr; }
  #ask-inline .ask-panel { height: 78vh; }
  .ask-sheet { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .goal-svg .path { stroke-dashoffset: 0; }
}
