/* PlanMath: the site's one stylesheet, on the look's kit (/assets/look.css). The product's own figures in Onest's
   tabular numerals, a dark top over a light page, small radii, teal for the action and the cheaper plan. */
:root {
  --mono: 'Onest', system-ui, sans-serif; /* figures stay in the text face, tabular */
  --accent-2: #14b8a6;
  --ink-teal: #0b5e58;
  --worse: #b45309;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
html { scroll-padding-top: 72px; caret-color: var(--accent); }
body { font-feature-settings: 'tnum' 1; }
.num, .fig { font-variant-numeric: tabular-nums; font-family: var(--text); }

/* ——— the dark top ——— */
.dark a:not(.btn) { color: #cfe9e5; }
.dark .btn.ghost { color: #e9edf3; border-color: #3a4456; }
.dark .btn.ghost:hover { background: #1b2230; }
.site-nav { position: relative; z-index: 3; }
.site-nav .top { padding-block: .8rem; }
.top .brand img { width: 30px; height: 30px; border-radius: 7px; }
.top .actions { display: flex; align-items: center; gap: .5rem; }
.top .actions .login { padding: 0 .9em; min-height: 40px; }
.top .actions .btn { min-height: 40px; padding: 0 1.05em; font-size: .95rem; }

/* ——— the hero: a compact headline over a hand of the product's results ——— */
.hero { position: relative; overflow: hidden; padding-block: 1.2rem 0; isolation: isolate; }
.hero .art, .band .art { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: #2c3d4a; }
.hero .art svg, .band .art svg { width: 100%; height: 100%; }
.hero-copy { display: grid; gap: 1rem 3rem; align-items: end; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.3rem); max-width: 22ch; margin: 0; color: #fff; }
.hero .sub { color: #b7c1cf; font-size: 1.05rem; margin: 0 0 1rem; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.cta-row .note { color: #9aa4b2; font-size: .92rem; display: inline-flex; align-items: center; gap: .4em; }
.btn .i { width: 1.1em; height: 1.1em; }
@media (min-width: 900px) {
  .hero { padding-top: 1.6rem; }
  .hero-copy { grid-template-columns: 1.35fr 1fr; }
  .hero .sub { margin-bottom: 1.1rem; }
}

/* the hand: three results stacked like a deck, each one's verdict showing, the newest in front */
.hand { position: relative; margin-top: 1.8rem; height: 540px; max-height: 600px; }
.hand.fade { -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.hand .result { position: absolute; left: 0; right: 0; margin-inline: auto; width: min(100%, 760px); }
.hand .result.back { top: 0; width: min(88%, 660px); background: #c9d2dc; }
.hand .result.mid { top: 44px; width: min(94%, 710px); background: #e3e8ee; }
.hand .result.back .result-head { background: #c9d2dc; }
.hand .result.mid .result-head { background: #e3e8ee; }
.hand .result.back .result-head, .hand .result.mid .result-head { flex-wrap: nowrap; white-space: nowrap; border: 0; min-height: 44px; }
.hand .result.back .result-head span:not(.badge), .hand .result.mid .result-head span:not(.badge) { display: none; }
.hand .result.back table, .hand .result.mid table { visibility: hidden; }
.hand .result.front { top: 88px; z-index: 2; }
@media (max-width: 899px) {
  .hand { height: 520px; margin-top: 1.4rem; }
  .hand .result.back .result-head, .hand .result.mid .result-head { font-size: .8rem; padding-inline: .8rem; }
  .hand .result.back .result-head strong, .hand .result.mid .result-head strong { font-size: .85rem; }
}

/* ——— the product's result card (the hero, the app) ——— */
.result { background: var(--surface); color: var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06); }
.dark .result { --ink: #11151c; --ink-2: #5b6472; --line-c: #e1e5eb; --surface: #ffffff; }
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .75rem 1rem; background: #f1f3f6;
  border-bottom: 1px solid var(--line-c); font-size: .85rem; color: var(--ink-2); }
.result-head strong { color: var(--ink); font-size: .95rem; }
.result-head .badge { margin-inline-start: auto; }
.result table { font-size: .93rem; }
.result th, .result td { padding: .55em .9em; }
.result td.n, .result th.n { text-align: end; white-space: nowrap; }
.result tr.total td { font-weight: 700; font-size: 1.05rem; border-bottom: 0; background: var(--tint); }
.result tr.sub td { color: var(--ink-2); font-size: .86rem; }
.result td.win { color: var(--ink-teal); }
.result .foot { padding: .6rem 1rem; font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--line-c); }
.badge.win { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--ink-teal); border-color: color-mix(in srgb, var(--accent) 30%, #fff); }
.badge.warn { background: #fff4e5; color: #8a4b08; border-color: #f7d8ad; }
.badge.sample { background: #eef0f4; color: #4a5260; }

/* ——— sections ——— */
.sec-head { margin-bottom: 1.6rem; max-width: 760px; }
.sec-head p { color: var(--ink-2); margin: 0; }
#how { background: var(--bg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: start; background: var(--surface);
  border-radius: var(--r); padding: 1.1rem; box-shadow: var(--card-shadow); }
.steps h3 { margin: .2rem 0 .3rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .96rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
p, li, dd { text-wrap: pretty; }
.doc > p { max-width: 62ch; }
#faq summary, .faq-list summary, #forgot-box > summary { min-height: 44px; align-items: center; }
#forgot-box > summary { display: flex; }
.top .brand, .site-foot .brand { min-height: 44px; }
.site-foot nav a, .syng-legal-links a, .auth .alt a, #faq .more { display: inline-flex; align-items: center; min-height: 44px; }
section.box { padding-block: 0; }
.btn.small, .tabs button, .app-top .top a.navlink { min-height: 44px; }
.app-top .top a.navlink { display: inline-flex; align-items: center; }
@media (max-width: 520px) {
  .app-top .brand { font-size: 0; gap: 0; }
  .app-top .top a.navlink { padding: .5em .6em; font-size: .92rem; }
}
.kv { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.kv dd { overflow-wrap: anywhere; min-width: 0; }
.btn.danger { background: var(--bad); color: #fff; }
.plan-card { border: 0; background: transparent; padding: 0; }
@media (min-width: 1000px) { .plan-card + .plan-card { border-left: 1px solid var(--line-c); padding-left: 1.2rem; } }
@media (max-width: 999px) { .plan-card + .plan-card { border-top: 1px solid var(--line-c); padding-top: 1.2rem; } }
.arrive > * { animation: arrive .45s cubic-bezier(.22, 1, .36, 1) both; }
.arrive > *:nth-child(2) { animation-delay: .06s; } .arrive > *:nth-child(3) { animation-delay: .12s; } .arrive > *:nth-child(4) { animation-delay: .18s; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .arrive > * { animation: none; } }

/* the rules: one household's year, line by line */
#what { background: #eef2f1; }
.what-grid { display: grid; gap: 1.6rem; }
@media (min-width: 1000px) { .what-grid { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.trace td:nth-child(5) { color: var(--ink-2); font-size: .86rem; }
.trace .meter { height: 6px; border-radius: 3px; background: #e5e9ee; overflow: hidden; margin-top: .3rem; }
.trace .meter i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 640px) { .trace .hide-s { display: none; } .trace th, .trace td { padding: .5em .55em; font-size: .85rem; } }
.irs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.irs li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--surface); border-radius: var(--r-field); font-size: .94rem; }
.irs li b { white-space: nowrap; }
.src { font-size: .85rem; color: var(--ink-2); margin-top: .8rem; }

/* price and its questions */
.price-grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.plan { background: var(--bg-2); color: #e9edf3; border-radius: var(--r); padding: 1.5rem; }
.plan h3 { color: #fff; margin: 0; }
.plan .amount { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: .6rem 0 .2rem; color: #fff; }
.plan .amount small { font-size: 1rem; font-weight: 500; color: #9aa4b2; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: grid; gap: .45rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; color: #d3dae4; }
.plan li .i { color: var(--accent-2); margin-top: .15em; }
.plan .fine { color: #9aa4b2; font-size: .88rem; margin: .8rem 0 0; }
#faq details, .faq-list details { background: var(--surface); border-radius: var(--r-field); padding: .9rem 1rem; margin-bottom: .5rem; box-shadow: var(--card-shadow); }
#faq summary, .faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
#faq summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
#faq summary .i, .faq-list summary .i { transition: transform .2s; color: var(--ink-2); }
details[open] > summary .i { transform: rotate(180deg); }
#faq details p, .faq-list details p { margin: .6rem 0 0; color: var(--ink-2); }
#faq .more { display: inline-flex; gap: .4em; align-items: center; margin-top: .5rem; font-weight: 600; }

/* the band */
.band { position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.band h2 { color: #fff; margin: 0; max-width: 24ch; }

/* footer */
.site-foot { background: var(--bg); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-foot .brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-foot .brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.site-foot a { color: var(--ink-2); }
.site-foot .disc { flex-basis: 100%; margin: 0; font-size: .85rem; }
.syng-legal-links a { padding: .3em 0; display: inline-block; }

/* ——— questions page ——— */
.doc { padding-block: 2.5rem 4rem; }
.doc h1 { font-size: var(--h2); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.doc .grid2 { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .doc .grid2 { grid-template-columns: 1fr 1fr; } }
.doc table { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--card-shadow); }

/* ——— accounts ——— */
.auth { min-height: 70vh; padding-block: 2.5rem 4rem; }
.auth .card { padding: 1.6rem; }
.auth h1 { font-size: 1.8rem; }
.auth .alt { margin-top: 1rem; font-size: .95rem; color: var(--ink-2); }
.msg { padding: .7rem .9rem; border-radius: var(--r-field); margin: 0 0 1rem; font-size: .95rem; }
.msg.err { background: #fdecea; color: #8a1c13; }
.msg.ok { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--ink-teal); }
.msg.info { background: #eef2f6; color: #2d3746; }
.hint { font-size: .86rem; color: var(--ink-2); margin: .3rem 0 0; }

/* ——— the app ——— */
.app-top .top a.navlink { color: #cfd6e0; text-decoration: none; font-weight: 600; padding: .5em .7em; border-radius: var(--r-btn); font-size: .95rem; }
.app-top .top a.navlink:hover, .app-top .top a.navlink[aria-current="page"] { background: #1b2230; color: #fff; }
.app-top nav.links { display: flex; gap: .2rem; align-items: center; }
.app-main { padding-block: 1.5rem 4rem; }
.app-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.app-title h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { border: 1px solid var(--line-c); background: var(--surface); border-radius: var(--r-btn); min-height: 40px; padding: 0 1em;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .45em; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.box { background: var(--surface); border-radius: var(--r); box-shadow: var(--card-shadow); margin-bottom: 1.2rem; }
.box > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line-c); }
.box > header h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: .5em; }
.box > header h2 .i { color: var(--accent); }
.box > .in { padding: 1.1rem; }
.fields { display: grid; gap: .8rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.fields .field { margin: 0; }
.fields label, .item-row label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: .7em; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.money input { padding-left: 1.5em; }
.pct { position: relative; }
.pct::after { content: '%'; position: absolute; right: .8em; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; margin: 0; font-size: .95rem; color: var(--ink); }
.plans-grid { display: grid; gap: 1.2rem; }
@media (min-width: 1000px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
.plan-card { border: 1px solid var(--line-c); border-radius: var(--r); padding: 1rem; background: #fbfcfd; }
.plan-card h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1.05rem; }
.plan-card fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
.plan-card legend { font-weight: 700; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.people { display: grid; gap: .5rem; }
.people .row { display: flex; gap: .5rem; }
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line-c); border-radius: var(--r-btn);
  background: var(--surface); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--bad); border-color: #f0c7c2; }
.items { display: grid; gap: .6rem; }
.item-row { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); align-items: end; padding: .8rem; border: 1px solid var(--line-c); border-radius: var(--r-field); background: #fbfcfd; }
.item-row .wide { grid-column: 1 / -1; }
.item-row .rm { justify-self: end; }
@media (min-width: 900px) { .item-row { grid-template-columns: 1.1fr 1.6fr 1fr .8fr 1fr 1fr auto; } .item-row .wide { grid-column: auto; } }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.quick .btn { min-height: 40px; font-size: .92rem; padding: 0 .9em; }
.results-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .results-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.summary { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.summary li { display: flex; gap: .55rem; align-items: flex-start; }
.summary li .i { color: var(--accent); margin-top: .2em; }
.notes { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; font-size: .9rem; }
.notes li { display: flex; gap: .5rem; align-items: flex-start; color: #6b4a0f; }
.notes li.info { color: var(--ink-2); }
.notes .i { flex: none; margin-top: .15em; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line-c); }
.cases div { font-size: .82rem; color: var(--ink-2); }
.cases b { display: block; font-size: 1.1rem; color: var(--ink); }
.locked { position: relative; }
.locked .cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(255 255 255 / .82); text-align: center; padding: 1rem; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem;
  background: var(--bg-2); color: #e9edf3; border-radius: var(--r); margin-bottom: 1.2rem; }
.upsell p { margin: 0; }
.progress { height: 10px; border-radius: 5px; background: #e5e9ee; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .6s cubic-bezier(.22,1,.36,1); }
.progress.oop i { background: #334155; }
.person { display: grid; gap: .45rem; padding: .9rem 0; border-bottom: 1px solid var(--line-c); }
.person:last-child { border-bottom: 0; }
.person .line { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-2); }
.empty .i { width: 2rem; height: 2rem; margin: 0 auto .6rem; color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: .45em; font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
.ai-box textarea { min-height: 8em; font-size: .9rem; }
.ai-box summary { cursor: pointer; font-weight: 600; color: var(--link); display: inline-flex; gap: .4em; align-items: center; }
.prefilled { box-shadow: 0 0 0 2px #f5b14c !important; }
.claims-table td, .claims-table th { font-size: .9rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; }
.danger { color: var(--bad); }
.btn.danger { background: var(--bad); }
.btn.small { min-height: 44px; padding: 0 .9em; font-size: .9rem; }
.ai-box summary { min-height: 44px; }
.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.scroll-x { overflow-x: auto; }
