/* PlanLog: a warm, calm utility ledger. Sand paper, eucalyptus green, a gold
   meter hand; rounded cards, big numerals, a 30-day bar strip. System fonts. */
:root {
  --bg: #f4efe4; --card: #fffdf8; --ink: #1d2a24; --ink-2: #44544c; --ink-3: #6f7c75;
  --rule: #e0d8c6; --green: #0f6b4f; --green-2: #0b5540; --green-soft: #dcebe2; --gold: #c9971f; --gold-soft: #f6e7bd;
  --on-green: #f4efe4;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --wrap: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a16; --card: #15241e; --ink: #e9efe9; --ink-2: #bccac2; --ink-3: #8fa198;
    --rule: #26372f; --green: #3fb488; --green-2: #58c79b; --green-soft: #173327; --gold: #e9b949; --gold-soft: #3a3016;
    --on-green: #0f1a16;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--green); text-underline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: var(--card); padding: 6px 10px; z-index: 9; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 .6rem; }
h3 { font-size: 1.1rem; margin: 0 0 .6rem; }

header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 750; font-size: 1.12rem; }
.brand-tag { color: var(--ink-3); font-size: .85rem; }
header nav { display: flex; gap: 20px; font-size: .95rem; }
header nav a { color: var(--ink-2); text-decoration: none; }
header nav a:hover { color: var(--green); text-decoration: underline; }

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.pill, .eyebrow { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--green-2); background: var(--green-soft); border-radius: 999px; padding: 6px 12px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px; font-weight: 800; }
.hl { color: var(--green); }
.lede { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 26px; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: var(--on-green); font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.quiet { background: transparent; color: var(--green); }
.meter { background: var(--green); color: var(--on-green); border-radius: 22px; padding: 26px 26px 20px; box-shadow: 0 18px 40px -24px rgba(15,107,79,.55); }
.meter-head { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.meter-big { margin: 8px 0 0; font: 800 clamp(2.8rem, 6vw, 3.8rem)/1 var(--num); font-variant-numeric: tabular-nums; }
.meter-sub { margin: 4px 0 18px; opacity: .85; }
.meter dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; border-top: 1px solid rgba(244,239,228,.25); padding-top: 14px; }
.meter dt { font-size: .78rem; opacity: .75; }
.meter dd { margin: 0; font: 700 1.25rem/1.2 var(--num); font-variant-numeric: tabular-nums; }

section { padding: 56px 0; }
.band { background: var(--card); border-block: 1px solid var(--rule); }
.sec-head { max-width: 72ch; margin-bottom: 26px; }
.sec-head p { color: var(--ink-2); }

.bars { margin: 0 0 36px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 18px 12px; }
.bars figcaption { font-size: .88rem; color: var(--ink-3); margin-bottom: 12px; }
.bars ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 170px; }
.bars li { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars li::before { content: ""; display: block; width: 100%; height: var(--h); background: var(--green); border-radius: 4px 4px 1px 1px; order: 1; }
.bars li.h0::before { background: var(--rule); }
.bars .n { font: 600 .62rem/1 var(--num); color: var(--ink-3); order: 0; margin-bottom: 3px; }
.bars .d { font: 500 .62rem/1 var(--num); color: var(--ink-3); order: 2; margin-top: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bars li.h0 { --h: 2px; } .bars li.h1 { --h: 5%; } .bars li.h2 { --h: 10%; } .bars li.h3 { --h: 15%; } .bars li.h4 { --h: 20%; }
.bars li.h5 { --h: 25%; } .bars li.h6 { --h: 30%; } .bars li.h7 { --h: 35%; } .bars li.h8 { --h: 40%; } .bars li.h9 { --h: 45%; }
.bars li.h10 { --h: 50%; } .bars li.h11 { --h: 55%; } .bars li.h12 { --h: 60%; } .bars li.h13 { --h: 65%; } .bars li.h14 { --h: 70%; }
.bars li.h15 { --h: 75%; } .bars li.h16 { --h: 80%; } .bars li.h17 { --h: 85%; } .bars li.h18 { --h: 88%; } .bars li.h19 { --h: 90%; } .bars li.h20 { --h: 92%; }

.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); }
.t th, .t td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.t thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 650; }
.t td { font-family: var(--num); }
.t tbody tr:last-child > * { border-bottom: 0; }
.dl-card { background: var(--gold-soft); border-radius: var(--r); padding: 22px; }
.dl-card p { color: var(--ink-2); }
.small { font-size: .85rem; color: var(--ink-3) !important; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three p { color: var(--ink-2); margin: 0; }
.band-h { font-size: 1.3rem; margin: 0 0 22px; }
.band .wrap + .wrap { margin-top: 0; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; color: var(--ink-2); position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rule); color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.steps li.done::before { content: "✓"; background: var(--green); color: var(--on-green); }
.steps li.now::before { background: var(--gold); color: #1d2a24; }
.steps b { color: var(--ink); }

form.waitlist { display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fields .full { grid-column: 1 / -1; }
form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--ink-3); }
input, textarea { font: 1rem/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--rule); border-radius: 10px; padding: 11px 13px; width: 100%; }
input:focus, textarea:focus, .btn:focus-visible, .linkbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick { margin: 4px 0 0; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tier { background: var(--bg); border: 1.5px solid var(--rule); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tier:first-child { border-color: var(--green); }
.tier-name { margin: 0; font-weight: 700; color: var(--green-2); }
.tier-price { margin: 0; }
.tier-price .amt { font: 800 2.4rem/1 var(--num); }
.tier-price .per { color: var(--ink-3); }
.tier-desc { margin: 0; color: var(--ink-2); }
.tier-list { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .94rem; flex: 1; }
.tier-btn { width: 100%; margin-top: 6px; }
.undecided { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.formnote { margin: 0; font-size: .88rem; color: var(--ink-3); }
.thanks { margin: 0; padding: 20px; border-radius: var(--r); background: var(--green-soft); }
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button:disabled { opacity: .6; cursor: wait; }

.faq details { border-top: 1px solid var(--rule); padding: 14px 0; max-width: 80ch; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }
.doc main { padding: 24px 0 56px; }
.prose { max-width: 760px; }
.prose h1 { font-size: 2.3rem; margin: 4px 0 6px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-2); }
.kicker { color: var(--green); font-weight: 650; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; margin: 0; }
.meta { color: var(--ink-3); font-size: .9rem; }
code { font-size: .9em; background: var(--green-soft); padding: 1px 5px; border-radius: 5px; }

footer.site { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: .88rem; color: var(--ink-3); }
footer.site p { margin: 0 0 8px; max-width: 90ch; }
footer.site b { color: var(--ink); }

@media (max-width: 820px) {
  .hero-grid, .two, .tiers, .fields { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .three { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 40px 0; }
  .hero { padding: 16px 0 36px; }
  .brand-tag { display: none; }
  .bars ol { gap: 2px; height: 140px; }
  .bars .n { display: none; }
  .bars li:nth-child(odd) .d { visibility: hidden; }
  .cta-row .btn { width: 100%; }
}
@media (max-width: 420px) { .steps { grid-template-columns: minmax(0, 1fr); } header nav { gap: 14px; } }
