/* TaxNavic home. One motif: the arrowhead of the TaxNavic mark, at every scale. Square corners, flat colour. */
:root {
  --ground: #f6f8f7; --paper: #ffffff; --well: #e9efec;
  --ink: #10231c; --muted: #4c5c55;
  --deep: #0c3427; --green: #0b7a55; --mint: #7fe0b5; --pale: #d7f3e6;
  --on-deep: #ffffff; --on-deep-2: #c9e9da;
  --m: clamp(16px, 2.2vw, 32px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-state: clamp(1.5rem, 1rem + 1.9vw, 2.25rem);
  --step-display: clamp(3.5rem, 1rem + 8vw, 9rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Manrope", "Mukta", system-ui, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 80px }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font); -webkit-font-smoothing: antialiased }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 }
p { margin: 0 }
a { color: inherit }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px }
::selection { background: var(--mint); color: var(--deep) }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--deep); color: #fff; padding: 10px 16px; z-index: 9 }
.skip:focus { top: 8px }

/* Buttons: one shape, a flat rectangle. The arrowhead appears on press. */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--green); color: #fff; font-weight: 700; font-size: var(--step-body); text-decoration: none; transition: transform .2s var(--ease), background .2s }
.btn::after { content: ""; width: 12px; height: 10px; background: var(--mint); clip-path: polygon(50% 0, 100% 100%, 0 100%); transition: transform .25s var(--ease) }
.btn:hover { background: var(--deep) } .btn:hover::after { transform: translateY(-3px) }
.btn:active { transform: translateY(1px) }
.btn.big { min-height: 60px; padding: 0 30px; font-size: var(--step-lead) }
.btn.mint { background: var(--mint); color: var(--deep) } .btn.mint::after { background: var(--deep) } .btn.mint:hover { background: #fff }
.btn.line { background: var(--deep); color: #fff }

/* Bar */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 12px var(--m); background: var(--ground) }
.word { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none }
.word svg { width: 36px; height: 36px }
.bar nav { display: flex; gap: 22px; margin-left: auto }
.bar nav a { text-decoration: none; font-weight: 600; font-size: var(--step-small) }
.bar nav a:hover { color: var(--green) }
.bar .btn { min-height: 42px; font-size: var(--step-small) }

/* Hero: the card beside the stage */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px var(--m) 0; align-items: start }
.card { background: var(--paper); min-height: calc(100svh - 84px); display: flex; flex-direction: column }
.teeth { height: 56px; background: var(--deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 56 28 0 56 56Z'/%3E%3C/svg%3E") 0 0/56px 56px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 56 28 0 56 56Z'/%3E%3C/svg%3E") 0 0/56px 56px repeat-x }
.cardin { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(28px, 5vw, 72px) }
.hero h1 { font-size: var(--step-head); color: var(--deep); max-width: 13ch }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; margin-top: -4px }
.hi { font-size: var(--step-body); max-width: 40ch }
.cardin .btn { align-self: flex-start }
.quick { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 600 }
.quick a { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--mint) }

.stage { position: sticky; top: 76px; min-height: calc(100svh - 84px); background: var(--deep); overflow: hidden; display: grid; place-items: center; padding: clamp(20px, 4vw, 56px) }
.tri { position: absolute; width: 150%; height: 120%; left: -6%; bottom: -46%; fill: var(--mint) }
.calc { position: relative; width: min(100%, 440px); background: var(--paper); padding: 28px; display: grid; gap: 8px }
.calc h2 { font-size: var(--step-lead); letter-spacing: -0.02em }
.calc .sub { color: var(--muted); font-size: var(--step-small); margin-bottom: 8px }
.calc label, .seg legend { font-weight: 600; font-size: var(--step-small) }
.money { display: flex; align-items: center; background: var(--well); padding: 0 14px; margin-bottom: 6px }
.money span { font-weight: 700; color: var(--muted) }
.money input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 8px; font: 700 var(--step-lead) var(--font); color: var(--ink); font-variant-numeric: tabular-nums }
.money input:focus { outline: none } .money:focus-within { outline: 3px solid var(--green) }
.seg { border: 0; padding: 0; margin: 4px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px }
.seg legend { margin-bottom: 6px; padding: 0 }
.seg input { position: absolute; opacity: 0; pointer-events: none }
.seg label { display: grid; place-items: center; min-height: 44px; background: var(--well); cursor: pointer; text-align: center; padding: 6px; transition: background .15s }
.seg input:checked + label { background: var(--deep); color: #fff }
.seg input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px }
.out { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 }
.out div { background: var(--well); padding: 10px 14px }
.out .keep { grid-column: 1 / -1; background: var(--pale) }
.out dt { font-size: var(--step-small); color: var(--muted) }
.out dd { margin: 0; font-weight: 800; font-size: var(--step-lead); font-variant-numeric: tabular-nums; letter-spacing: -0.02em }
.out .keep dd { font-size: var(--step-state); color: var(--deep); line-height: 1.1 }
.why { font-size: var(--step-small); color: var(--muted); min-height: 2.6em }
.more { font-weight: 700; font-size: var(--step-small); color: var(--green) }

/* Sections */
section + section { margin-top: clamp(120px, 14vw, 200px) }
.sechead, .steps h2, .faq h2, .cta h2, .show h2 { font-size: var(--step-head); color: var(--deep) }
.does { padding: 0 var(--m) }
.does .sechead { margin: 0 0 40px; max-width: 22ch }
.bands { list-style: none; margin: 0 calc(var(--m) * -1); padding: 0 }
.band { min-height: 20vh; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 28px var(--m); transition: background .35s var(--ease) }
.band .say { font-size: var(--step-state); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--muted); transition: color .3s }
.band .then { font-size: var(--step-body); max-width: 60ch; margin-top: 10px; display: none }
.band.on .say { color: var(--ink) } .band.on .then { display: block }
.band.on.c1 { background: var(--mint) }
.band.on.c2 { background: var(--pale) }
.band.on.c3 { background: var(--deep) } .band.on.c3 .say, .band.on.c3 .then { color: #fff }
.band.on.c4 { background: var(--well) }
.band.on.c5 { background: var(--green) } .band.on.c5 .say, .band.on.c5 .then { color: #fff }
.band.on.c3 .then a { color: var(--mint) }
.sw { width: 2.4em; height: 1.3em; font-size: var(--step-state); background: var(--well); border: 0; padding: 0; cursor: pointer; position: relative; min-width: 44px; min-height: 44px }
.band.on .sw { background: var(--deep) } .band.on.c3 .sw, .band.on.c5 .sw { background: var(--mint) }
.sw::before { content: ""; position: absolute; top: 15%; left: 8%; width: 40%; height: 70%; background: var(--muted); clip-path: polygon(50% 0, 100% 100%, 0 100%); transition: transform .3s var(--ease), background .3s }
.sw[aria-pressed="true"]::before { transform: translateX(118%); background: var(--mint) }
.band.on.c3 .sw[aria-pressed="true"]::before, .band.on.c5 .sw[aria-pressed="true"]::before { background: var(--deep) }

.show { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--paper); margin-left: var(--m); margin-right: var(--m) }
.plate { background: var(--deep); display: grid; place-items: center; padding: 40px; clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%) }
.sheet { display: grid; width: 100%; aspect-ratio: 1; max-width: 560px; background: var(--paper); padding: clamp(16px, 2.4vw, 32px) }
.pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.6s var(--ease), visibility 1.6s; display: flex; flex-direction: column; gap: 14px }
.pane.is-on { opacity: 1; visibility: visible }
.cap { font-weight: 700; font-size: var(--step-small) }
table { width: 100%; border-collapse: collapse; font-size: var(--step-small); font-variant-numeric: tabular-nums }
th, td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--well) }
th:first-child, td:first-child { text-align: left }
thead th { color: var(--muted); font-weight: 600 }
td small { display: block; color: var(--muted); font-size: var(--step-small) }
tr.sel td { background: var(--pale) }
tfoot th, tfoot td { font-weight: 800; border: 0 }
.sum { margin-top: auto; font-size: var(--step-small); background: var(--well); padding: 12px 14px }
.side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 56px) }
.side h2 { margin-bottom: 28px }
.side p { max-width: 38ch }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px }
.tabs button { border: 0; background: none; padding: 8px 0; font: 600 var(--step-body) var(--font); color: var(--muted); cursor: pointer; position: relative }
.tabs button[aria-selected="true"] { color: var(--ink) }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 14px; height: 10px; background: var(--green); clip-path: polygon(50% 0, 100% 100%, 0 100%) }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 4px }
.cell { display: flex; align-items: center; padding: 0 20px; min-height: 72px; font-weight: 700; text-decoration: none; transition: background .2s }
.cell.ink { background: var(--deep); color: #fff } .cell.ink:hover { background: var(--green) }
.cell.soft { background: var(--well) } .cell.soft:hover { background: var(--pale) }

.steps { padding: 0 var(--m) }
.steps h2 { margin-bottom: 64px; max-width: 14ch }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; min-height: 22vh }
.track li { flex-basis: 12%; min-width: 12%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 20px; background: var(--mint) }
.track li:nth-child(2) { background: var(--green); color: #fff }
.track li:nth-child(3) { background: var(--deep); color: #fff }
.track b { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1 }
.track span { font-size: var(--step-body); max-width: 30ch }

.plans { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh }
.field { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 56px) var(--m) }
.field h2 { font-size: var(--step-head) }
.field h2 + p { font-size: var(--step-lead); line-height: 1.35; max-width: 26ch; margin-top: 20px }
.field .inc { max-width: 44ch; margin-top: 20px }
.paid { background: var(--pale); color: var(--ink) }
.free { background: var(--deep); color: var(--on-deep) }
.free h2 { color: var(--mint) }
.foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px }
.price { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.85 }
.price small { font-size: var(--step-body); letter-spacing: 0; font-weight: 600; margin-left: 12px }
.paid .price { color: var(--deep) }

.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding: 0 var(--m) }
.faq h2 { position: sticky; top: 96px; align-self: start }
.tiles { display: grid; gap: 8px }
details { background: var(--paper); transition: background .25s }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 16px 24px; font-size: var(--step-body); font-weight: 600; cursor: pointer }
summary::-webkit-details-marker { display: none }
summary::after { content: ""; flex: none; width: 16px; height: 13px; background: var(--green); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .25s var(--ease) }
details[open] { background: var(--mint) }
details[open] summary::after { transform: rotate(180deg); background: var(--deep) }
details p { padding: 0 24px 24px; max-width: 52ch }

.cta { display: grid; grid-template-columns: 5fr 1fr 5fr 1fr; min-height: 90svh; background: var(--green); color: #fff; padding: 40px var(--m) }
.ctatext { grid-column: 1; align-self: end }
.cta h2 { font-size: var(--step-display); line-height: 0.92; color: #fff; max-width: 8ch }
.ctatext p { margin-top: 20px; max-width: 30ch }
.dlg { grid-column: 3; align-self: center; width: min(100%, 440px); background: var(--paper); color: var(--ink); padding: 24px; display: grid; gap: 4px; box-shadow: 0 24px 60px rgba(4, 30, 20, .35) } /* taste-skill-ignore: the app's dialog, open above the page */
.dlgt { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 12px }
.dlg a { display: grid; grid-template-columns: 9rem 1fr; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; background: var(--well); text-decoration: none; transition: background .15s, transform .15s }
.dlg a:hover, .dlg a:focus-visible { background: var(--mint); transform: translateX(4px) }
.dlg b { font-size: var(--step-body) } .dlg span { color: var(--muted); font-size: var(--step-small) }

.end { background: var(--deep); color: var(--on-deep); padding: 64px var(--m) 32px }
.mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; max-height: 300px }
.mark span { flex: 1; height: 100%; background: var(--green); clip-path: polygon(50% 0, 100% 100%, 0 100%) }
.mark .m1 { height: 62% } .mark .m2 { height: 100%; background: var(--mint) } .mark .m3 { height: 74% } .mark .m4 { height: 88%; background: var(--mint) } .mark .m5 { height: 66% } .mark .m6 { height: 94%; background: var(--mint) }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; font-size: var(--step-small); line-height: 1.9 }
.cols a { color: var(--on-deep); text-decoration-color: var(--mint); text-underline-offset: 4px }
.cols b { font-size: var(--step-body) }
.legal { margin-top: 48px; font-size: var(--step-small); color: var(--on-deep-2); max-width: 70ch }
.copy { margin-top: 24px; font-size: var(--step-small); color: var(--on-deep-2) }

/* Entrances: content is visible without script; script adds .pre then .in */
.js .rise.pre { opacity: 0; transform: translateY(24px) }
.js .rise { transition: opacity .7s var(--ease), transform .7s var(--ease) }

@media (max-width: 900px) {
  .bar nav { display: none } .bar .btn { margin-left: auto }
  .hero { grid-template-columns: 1fr; padding-top: 0 }
  .stage { position: relative; top: 0; min-height: auto; padding: 40px 16px; margin-top: -12px }
  .card { min-height: auto; position: relative; z-index: 1 }
  .cardin { gap: 22px; padding: 24px 20px 32px }
  .teeth { height: 40px; -webkit-mask-size: 40px 40px; mask-size: 40px 40px }
  .hero h1 { max-width: none }
  .band { min-height: 132px }
  .show { grid-template-columns: 1fr; margin: 0 }
  .plate { padding: 16px 16px 40px }
  .sheet { aspect-ratio: auto }
  .pane { gap: 10px } th, td { padding: 8px 5px }
  .side { gap: 28px }
  .cells { grid-template-columns: 1fr } .cell { min-height: 60px }
  .track { flex-direction: column; min-height: 0 }
  .track li { min-height: 72px; flex-basis: auto; display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; align-items: start }
  .track span { max-width: none }
  .plans { grid-template-columns: 1fr }
  .free { order: -1 } .field { min-height: 0 } .plans { min-height: 0 }
  .foot .btn { width: 100%; justify-content: center }
  .faq { grid-template-columns: 1fr } .faq h2 { position: static }
  summary { font-size: 1.125rem; min-height: 64px; padding: 14px 20px }
  .cta { grid-template-columns: 1fr; gap: 40px; min-height: 84svh; padding: 48px 16px }
  .ctatext, .dlg { grid-column: 1 } .ctatext { align-self: start } .dlg { width: 100% }
  .cta h2 { max-width: none } .ctatext p { max-width: none }
  .dlg a { grid-template-columns: 7.5rem 1fr }
  .cols { grid-template-columns: 1fr 1fr }
  .mark { height: 18svh }
  .cta { min-height: 0 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition-duration: .01ms !important }
  .js .rise.pre { opacity: 1; transform: none }
}
.track .g1 { flex-grow: 6 } .track .g2 { flex-grow: 2 } .track .g3 { flex-grow: 1.4 }

.yby { background: var(--paper); padding: 16px 18px; margin-top: 32px; max-width: 520px; display: grid; gap: 10px }
