/* LastPouch: Clean Slate. Warm paper, ink, sage as the calm primary, clay for
   emphasis and cravings. Motifs: the countdown (days, dollars, milligrams in
   Fira Code) and tally marks. Newsreader for display, Nunito Sans for body.
   Light only, on purpose. */
:root {
  --paper: #FAF8F3;
  --paper-2: #F2EEE5;
  --paper-3: #E9E3D7;
  --panel: #FFFEFB;
  --ink: #1E1F1C;
  --ink-2: #45473F;
  --muted: #6F726A;
  --line: #E4DED2;
  --line-2: #D3CBBB;
  --sage: #4F7F5E;
  --sage-deep: #3B6448;
  --sage-soft: #E4EEE6;
  --clay: #C7693E;
  --clay-deep: #A2512C;
  --clay-soft: #F7E6DC;
  --shadow-sm: 0 1px 2px rgba(30, 31, 28, .05), 0 2px 8px -2px rgba(30, 31, 28, .07);
  --shadow: 0 1px 2px rgba(30, 31, 28, .05), 0 14px 34px -14px rgba(50, 40, 25, .22);
  --shadow-lg: 0 2px 4px rgba(30, 31, 28, .05), 0 30px 60px -26px rgba(50, 40, 25, .32);
  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1160px;
  --tally: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 20'%3E%3Cg stroke='%231E1F1C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 3v14M12 3v14M19 3v14M26 3v14'/%3E%3Cpath d='M2 15 L29 5'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--sage-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--ink); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- tally mark (the house motif) ---------- */
.tally { display: inline-block; width: 34px; height: 20px; background: var(--tally) center / contain no-repeat; vertical-align: middle; }
.tally.sage { filter: invert(42%) sepia(14%) saturate(900%) hue-rotate(90deg) brightness(.9); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(250, 248, 243, .9); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.36rem; font-weight: 500; letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--sage-deep); }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; padding: 8px 16px; }
.site-nav a.nav-cta:hover { background: #363833; color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: grid; gap: 4px; width: 44px; height: 40px; place-content: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 800; font-size: 1rem; color: var(--ink); text-decoration: none; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; background: var(--panel); line-height: 1.2; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:disabled { cursor: default; transform: none; opacity: .6; }
.btn-lg { font-size: 1.05rem; padding: 14px 24px; border-radius: 14px; }
.btn-sm { font-size: .88rem; padding: 7px 12px; border-radius: 10px; }
.btn-ink, .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover, .btn-primary:hover { background: #363833; color: #fff; }
.btn-sage { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn-sage:hover { background: var(--sage-deep); color: #fff; }
.btn-paper { background: var(--panel); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); box-shadow: none; }

/* ---------- layout ---------- */
main { overflow-x: clip; }
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.kicker, .kicker-pill, .eyebrow { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 10px; }
.kicker::before { content: ''; display: inline-block; width: 22px; height: 13px; margin-right: 8px; vertical-align: -1px; background: var(--tally) center / contain no-repeat; opacity: .8; }
.kicker a { color: var(--sage-deep); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px 5px 8px; box-shadow: var(--shadow-sm); }
.kicker-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; }
.lede { font-size: 1.13rem; color: var(--ink-2); }
.title { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 500; letter-spacing: -.022em; }
.band { max-width: none; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.band-in { max-width: var(--wrap); margin: 0 auto; }

/* ---------- hero ---------- */
.hero-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 480px at 88% 10%, rgba(79, 127, 94, .12), transparent 70%), radial-gradient(640px 400px at 8% 95%, rgba(199, 105, 62, .10), transparent 70%); }
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(34px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(38px, 5vw, 64px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-h { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; margin: 18px 0 18px; }
.hero-h em { font-style: italic; color: var(--sage-deep); }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.hero-note span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { order: 2; } }

/* ---------- the plan card (hero art) ---------- */
.plan-card { position: relative; width: min(440px, 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px 22px 18px; overflow: hidden; }
.plan-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--clay) 0, var(--clay) 45%, var(--sage) 100%); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 0 14px; }
.plan-label { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.plan-from { font-size: .92rem; color: var(--ink-2); margin: 0; text-align: right; }
.plan-nums { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; margin: 0 0 16px; }
.plan-nums .pn { display: grid; gap: 2px; }
.plan-nums .pn b { font: 500 2.4rem/1 var(--mono); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-nums .pn.right { text-align: right; }
.plan-nums .pn.right b { color: var(--sage-deep); }
.plan-nums .pn small { font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-arrow { font: 500 1.2rem var(--mono); color: var(--line-2); padding-bottom: 6px; }
.plan-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 120px; border-bottom: 1px solid var(--line-2); }
.plan-bars li { display: grid; align-content: end; gap: 5px; height: 100%; }
.plan-bars i { display: block; height: calc(var(--h) * 1%); min-height: 6px; background: var(--clay); border-radius: 6px 6px 2px 2px; transform-origin: bottom; transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms); }
.plan-bars li.low i { background: var(--sage); }
.plan-card.live .plan-bars i, .plan-card:not(.live) .plan-bars li:first-child i { transform: scaleY(1); }
.plan-bars span { font: 500 .62rem var(--mono); color: var(--muted); text-align: center; }
.plan-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 6px 0 0; font: 500 .6rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.plan-foot p { margin: 0; font-size: .84rem; color: var(--ink-2); }
.plan-quit { display: grid; justify-items: end; gap: 2px; text-align: right; }
.plan-quit b { font: 500 1.2rem/1 var(--mono); color: var(--sage-deep); white-space: nowrap; }
.plan-quit small { font: 500 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-hint { font-size: .82rem; color: var(--muted); margin: 10px auto 0; text-align: center; max-width: 440px; }
@media (max-width: 420px) { .plan-nums .pn b { font-size: 1.9rem; } .plan-card { padding: 16px 16px 14px; } }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.tool-card { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; font-weight: 400; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tool-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.tool-art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.tool-art svg { width: 44%; height: auto; max-height: 72%; }
.tool-clay .tool-art { background: var(--clay-soft); }
.tool-sage .tool-art { background: var(--sage-soft); }
.tool-card h3 { font-size: 1.5rem; margin: 18px 22px 6px; }
.tool-card p { margin: 0 22px 14px; color: var(--ink-2); }
.tool-go { margin: auto 22px 22px; font-weight: 800; color: var(--sage-deep); }
.tool-go::after { content: ' \2192'; }
.tool-badge { position: absolute; top: 14px; left: 14px; background: var(--panel); border: 1px solid var(--ink); border-radius: 4px; padding: 3px 9px; font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.tool-clay .tool-go { color: var(--clay-deep); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; position: relative; }
.step .num { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; font: 500 1.05rem var(--mono); color: #fff; background: var(--ink); border-radius: 50%; }
.step-2 .num { background: var(--sage); } .step-3 .num { background: var(--clay); }
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.steps-art { margin: 0 auto 30px; max-width: 920px; }
.steps-art img { border-radius: 22px; box-shadow: var(--shadow); }

/* ---------- honest block ---------- */
.honest-wrap { padding-top: 10px; }
.honest { max-width: 980px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px clamp(20px, 4vw, 38px) 22px; position: relative; overflow: hidden; }
.honest::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--clay)); }
.honest-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); margin: 18px 0 8px; }
@media (max-width: 680px) { .honest-cols { grid-template-columns: 1fr; } }
.honest h3 { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.honest .is h3 { color: var(--sage-deep); } .honest .isnot h3 { color: var(--clay-deep); }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.honest li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: .98rem; }
.honest li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; }
.honest .is li::before { background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%233B6448' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.honest .isnot li::before { background: var(--clay-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23A2512C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.honest-quit { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: .95rem; color: var(--ink); }
.honest-quit b { color: var(--sage-deep); }

/* ---------- guide cards ---------- */
.guide-grid { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.guide-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card > div { padding: 14px 18px 18px; }
.guide-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.guide-card h3 a, .guide-card h3 .link-pending { color: var(--ink); text-decoration: none; }
.guide-card h3 a::after { content: ''; position: absolute; inset: 0; }
.guide-card h3 a:hover { color: var(--sage-deep); }
.tag { align-self: flex-start; display: inline-block; font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); background: var(--sage-soft); border-radius: 4px; padding: 3px 8px; margin: 0 0 8px; }
.link-pending { color: inherit; font-weight: 700; }
.empty-guides { text-align: center; color: var(--muted); padding: 10px 0 20px; }

/* ---------- faq ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 18px; font-family: var(--display); font-weight: 500; font-size: 1.12rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 500 1.1rem/1 var(--body); color: var(--ink); }
.faq-item[open] summary::after { content: '\2212'; background: var(--sage-soft); color: var(--sage-deep); }
.faq-a { padding: 0 18px 8px; color: var(--ink-2); }

/* ---------- CTA / waitlist ---------- */
.cta { width: calc(100% - 32px); max-width: 1000px; margin: clamp(30px, 5vw, 64px) auto; padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; border-radius: 26px; position: relative; overflow: hidden; background: var(--ink); color: #ECE8DF; box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(79, 127, 94, .35), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta-art { width: 140px; height: 140px; display: grid; place-items: center; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.cta-art svg { width: 92px; height: 92px; }
.cta-kicker { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9FD0AE; margin: 0; }
.cta-h { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -.02em; margin: 6px 0 10px; color: #fff; }
.cta-sub { color: #C9C4B9; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.waitlist input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-weight: 500; padding: 13px 16px; border: 1px solid #4A4C45; border-radius: 12px; background: #2A2C27; color: #fff; }
.waitlist input[type=email]::placeholder { color: #9A9C93; }
.waitlist input[type=email]:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(79, 127, 94, .3); }
.cta .btn-ink { background: var(--sage); color: #fff; border-color: var(--sage); }
.cta .btn-ink:hover { background: #5E9470; color: #fff; }
.waitlist-msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 800; min-height: 1.4em; }
.waitlist-msg.ok { color: #9FD0AE; }
.waitlist-msg.err { color: #F2B59C; }
.cta-fine { font-size: .88rem; color: #A3A69C; margin: 6px 0 0; }
.cta-fine a { color: #fff; }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; } .cta-art { width: 92px; height: 92px; border-radius: 18px; } .cta-art svg { width: 60px; height: 60px; } .waitlist .btn { width: 100%; } }

/* ---------- prose (posts and pages) ---------- */
.prose { max-width: 820px; }
.prose > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.prose .title { margin-top: 6px; }
.byline { font: 500 .78rem var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; letter-spacing: .02em; }
.byline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }
.post-hero, .page-hero { margin: 24px auto 32px; max-width: 820px !important; }
.post-hero img, .page-hero img { border-radius: 22px; box-shadow: var(--shadow-lg); background: var(--panel); }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 500; letter-spacing: -.018em; margin: 1.9em auto .55em; }
.prose h2::before { content: ''; display: block; width: 28px; height: 16px; margin-bottom: 10px; background: var(--tally) left center / contain no-repeat; opacity: .7; }
.prose h3 { font-size: 1.3rem; margin: 1.5em auto .45em; }
.prose p, .prose li { font-size: 1.08rem; color: #2B2D28; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--sage-deep); font-weight: 700; }
.prose strong { font-weight: 800; color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line-2); margin: 2em auto; }
.prose img { border-radius: 16px; }
.prose code { font-family: var(--mono); background: var(--paper-2); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.story-fig { margin: 32px auto; max-width: 820px !important; }
.story-fig img { border-radius: 20px; box-shadow: var(--shadow); background: var(--panel); }
.story-fig figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.45; font-family: var(--mono); letter-spacing: .01em; }
.takeaways { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 22px 26px 12px; margin: 28px auto 34px; overflow: hidden; }
.takeaways::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--clay)); }
.takeaways h2 { margin: 2px 0 10px !important; font-size: .76rem !important; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; }
.takeaways h2::before { display: none !important; }
.takeaways ul { list-style: none; padding-left: 0; }
.takeaways li { position: relative; padding-left: 32px; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%233B6448' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.callout { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 4px 22px; margin: 26px auto; background: var(--panel); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sage); }
.callout-label { display: inline-block; font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 6px; }
.callout-quick { background: var(--sage-soft); border-color: #CBDDD0; }
.callout-tip::before { background: var(--sage); } .callout-tip .callout-label { color: var(--sage-deep); }
.callout-warn::before { background: var(--clay); } .callout-warn { background: #FBF3EE; border-color: #EBD3C5; } .callout-warn .callout-label { color: var(--clay-deep); }
.callout-fact::before { background: var(--ink); } .callout-fact { background: var(--paper-2); } .callout-fact .callout-label { color: var(--ink); }
.callout-try::before { background: var(--ink); } .callout-try .callout-label { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 24px auto; background: var(--panel); box-shadow: var(--shadow-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap th { background: var(--paper-2); text-align: left; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:first-child td { border-top: 0; }
.disclaimer { margin-top: 36px; }
.section-sub { margin-top: 48px; }
.section-sub .h2 { font-size: 1.6rem; }
.sources a { word-break: break-word; font-weight: 500; }
.plainlist { padding-left: 1.2em; }
.four04 { text-align: left; }
.four04-art { max-width: 160px; margin: 0 0 16px; }
.four04-art svg { width: 100%; height: auto; }

/* ---------- blog index ---------- */
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; height: 100%; font-weight: 400; }
.post-card-link:hover { color: var(--ink); }
.post-card-link img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 8px; line-height: 1.25; }
.post-card p { color: var(--ink-2); font-size: .96rem; margin: 0 0 12px; }
.post-card time { margin-top: auto; font: 500 .74rem var(--mono); color: var(--muted); letter-spacing: .03em; }
.blog-empty { text-align: center; }
.blog-empty .tally { width: 68px; height: 40px; margin: 0 auto 10px; }

/* ---------- tool pages ---------- */
.tool-page { padding-bottom: 20px; }
.tool-head { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.tool-mount { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(14px, 3vw, 28px); }
.tool-copy { padding-top: 10px; }
.t-field { display: grid; gap: 4px; margin: 0 0 12px; }
.t-label { font-weight: 800; font-size: .92rem; }
.t-help { font-size: .8rem; color: var(--muted); }
.t-field select, .t-field input { font: inherit; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--ink); width: 100%; min-width: 0; }
.t-field input[type=number] { font-family: var(--mono); }
.t-field select:focus, .t-field input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(79, 127, 94, .18); }
.t-note { font-size: .86rem; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--paper-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-weight: 800; font-size: .88rem; border: 0; background: transparent; padding: 7px 12px; cursor: pointer; color: var(--ink-2); border-radius: 9px; }
.seg button[aria-pressed=true] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 0; }

/* taper and cost calculators */
.tp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.tp > * { min-width: 0; }
@media (max-width: 880px) { .tp { grid-template-columns: minmax(0, 1fr); } }
.tp-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 12px; }
.tp-form h2, .tp-out h2 { font-size: 1.3rem; margin: 0 0 10px; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .tp-grid { grid-template-columns: 1fr; } }
.tp-strengths { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.tp-strengths button { font: 500 .9rem var(--mono); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.tp-strengths button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tp-range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.tp-range input[type=range] { width: 100%; accent-color: var(--sage); }
.tp-range output { font: 500 1rem var(--mono); min-width: 5.5ch; text-align: right; }
.tp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
@media (max-width: 480px) { .tp-stats { grid-template-columns: 1fr 1fr; } }
.tp-stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.tp-stat b { font: 500 1.6rem/1.1 var(--mono); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tp-stat.sage b { color: var(--sage-deep); } .tp-stat.clay b { color: var(--clay-deep); }
.tp-stat small { font: 500 .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tp-table { margin: 0 0 12px; }
.tp-table table { min-width: 560px; }
.tp-table td:nth-child(2) { white-space: nowrap; font-size: .9rem; }
.tp-table td.num, .tp-table th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tp-table tr.quit td { background: var(--sage-soft); font-weight: 800; }
.tp-table tr.switch td:nth-child(3) { color: var(--sage-deep); font-weight: 800; }
.tp-bar { display: inline-block; vertical-align: middle; height: 8px; border-radius: 4px; background: var(--clay); width: calc(var(--p) * 1%); min-width: 4px; margin-right: 6px; }
.tp-bar.low { background: var(--sage); }
.tp-method { font-size: .92rem; color: var(--ink-2); }
.tp-method ol { padding-left: 1.3em; margin: 6px 0 0; }
.tp-method li { margin: 3px 0; }
.tp-empty { text-align: center; padding: 26px 16px; border: 1px dashed var(--line-2); border-radius: 18px; background: var(--paper); color: var(--muted); }
.tp-sources { font-size: .84rem; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 12px; }
.tp-sources a { font-weight: 500; }
.tp-print-head { display: none; }
.pc-saving { background: var(--sage-soft); border: 1px solid #CBDDD0; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-size: .95rem; }
.pc-saving b { font-family: var(--mono); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #D5D1C8; margin-top: 40px; position: relative; overflow: hidden; }
.site-foot::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 100% 0%, rgba(79, 127, 94, .25), transparent 70%); pointer-events: none; }
.site-foot > * { position: relative; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 42px; height: 42px; border-radius: 50%; }
.foot-brand p { margin: 0; color: #B5B2A9; font-size: .95rem; }
.foot-brand strong { color: #fff; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.site-foot a { color: #fff; font-weight: 500; }
.foot-links { display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.foot-links a { text-decoration: none; color: #D5D1C8; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-h { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9FD0AE; margin: 0 0 4px; }
.foot-safety { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 16px; }
.foot-safety p { margin: 0; font-size: .9rem; color: #CFCBC1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; }
.foot-safety b { color: #fff; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 36px; font-size: .8rem; color: #93958D; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

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

/* ---------- print: the taper plan on one sheet ---------- */
@media print {
  .site-head, .site-foot, .cta, .tool-copy, .tp-form, .t-actions, .skip, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .tool-mount { border: 0; box-shadow: none; padding: 0; }
  .tp { grid-template-columns: 1fr; }
  .tp-print-head { display: block; font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #333; margin: 0 0 8px; }
  .tp-table table { min-width: 0; }
  .tp-bar { display: none; }
  a { color: #000; text-decoration: none; }
}
