/* District Fiscal Tools, site stylesheet (9/14 register). Colors: page white, one band gray, ink, examiner green on the button and links only. */
:root {
  --page: #FFFFFF; --band: #F4F6F4; --ink: #16211B; --muted: #66706A; --hair: #E3E7E3;
  --green: #1A5741; --green-hover: #154835;
  --app-paper: #F8F9F6; --app-ink: #22323A; --app-muted: #5D6B66; --app-rule: #C7D3C9; --app-band: #E5EEE2; --app-pass: #2F6B4F; --app-fail: #A03420;
  --wrap: 1120px;
  --wide: 1360px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-family: "Schibsted Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
img, video { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Product bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.84); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; height: 52px; gap: 28px; }
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; white-space: nowrap; }
.top .links { list-style: none; display: flex; gap: 26px; margin: 0 auto; font-size: .9rem; font-weight: 500; color: var(--muted); }
.top .links a:hover, .top .links a[aria-current="page"] { color: var(--ink); }
.top .run { margin-left: auto; white-space: nowrap; background: var(--green); color: #fff; font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 980px; }
.top .run:hover { background: var(--green-hover); }
.top .run .short { display: none; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--muted); padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { display: none; list-style: none; position: fixed; left: 0; right: 0; top: 52px; background: #fff; border-bottom: 1px solid var(--hair); flex-direction: column; padding: 4px 24px 16px; }
.menu[open] ul { display: flex; }
.menu ul a { display: block; padding: 12px 0; font-size: 1.05rem; font-weight: 500; border-top: 1px solid var(--hair); }
.menu ul li:first-child a { border-top: 0; }

/* Hero */
.hero { padding: 84px 0 0; text-align: center; }
.label { font-size: .85rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.0; margin: 14px auto 22px; max-width: 22ch; }
.hero.long h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 26ch; }
.sub { font-size: clamp(1.05rem, 1.55vw, 1.28rem); line-height: 1.45; max-width: 46ch; margin: 0 auto; }
.sub b { font-weight: 600; }
.cta { display: flex; gap: 24px; justify-content: center; align-items: center; margin: 30px 0 0; flex-wrap: wrap; }
.btn { background: var(--green); color: #fff; font-weight: 600; padding: 13px 24px; border-radius: 980px; font-size: 1rem; display: inline-block; }
.btn:hover { background: var(--green-hover); }
.arrow { color: var(--green); font-weight: 500; }
.arrow::after { content: " \203A"; }
.arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.timing { margin: 18px auto 0; font-size: .9rem; color: var(--muted); max-width: 54ch; }
.hero .price { margin: 22px auto 0; font-weight: 600; font-size: 1.05rem; }
.hero .price small { font-weight: 400; color: var(--muted); font-size: .95rem; }
.hero .price .also { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* The film */
.film { margin: 52px auto 0; }
.film .surface { border-radius: 16px; border: 1px solid var(--hair); overflow: hidden; background: var(--app-paper); box-shadow: 0 30px 80px -24px rgba(22,33,27,.22), 0 2px 6px rgba(22,33,27,.05); aspect-ratio: 2 / 1; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film figcaption, .stage figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* A screen shown whole */
.stage { margin: 52px auto 0; }
.stage .screen { position: static; width: min(960px, 100%); margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px -24px rgba(22,33,27,.22), 0 2px 6px rgba(22,33,27,.05); }
.stage .screen img { width: 100%; }
.stage .spec { width: min(960px, 100%); }

/* Three facts */
.facts { padding: 76px 0 28px; }
.facts .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--hair); padding-top: 36px; }
.facts h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.facts p { font-size: .95rem; color: var(--muted); line-height: 1.55; }
.facts a, .band a.inline, .fx-text a.inline, .deliv a, .terms a, .checks a, .ask a.plain { color: var(--green); }
.facts a:hover, .band a.inline:hover, .deliv a:hover, .terms a:hover, .checks a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Tiles (homepage) */
.tiles { padding: 36px 0 0; }
.tiles > .wrap, .brand > .wrap, .film.wrap, .top .wrap { max-width: var(--wide); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { background: #F1F4F1; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; min-height: 600px; }
.tile.wide { grid-column: 1 / -1; min-height: 0; }
.tile .text { padding: 46px 40px 0; text-align: center; }
.tile .name, .band .name, .fx-text .name { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tile h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 10px auto 12px; max-width: 24ch; }
.tile p { color: var(--muted); font-size: .98rem; max-width: 50ch; margin: 0 auto; }
.tile .price { margin: 4px auto 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.tile .price small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.tile .price .also { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.tile .go { margin: 12px 0 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.tile .media { margin-top: auto; height: 340px; position: relative; overflow: hidden; }
.tile .media .screen { left: 40px; right: 40px; top: 36px; width: auto; border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(22,33,27,.25), 0 2px 6px rgba(22,33,27,.05); }
.tile .media .screen.spec { width: auto; }
.tile .media .screen img { width: 100%; max-width: 100%; }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); padding: 8.5px 18.5px; }
.btn.ghost:hover { background: rgba(26,87,65,.07); }
.screen { position: absolute; left: 36px; top: 40px; width: 960px; background: #fff; border: 1px solid var(--hair); border-radius: 10px 0 0 0; box-shadow: 0 18px 50px -14px rgba(22,33,27,.2); overflow: hidden; }
.screen img { display: block; width: 960px; max-width: none; height: auto; }

/* Rendered specimens, styled as the tool draws them */
.spec { font-family: inherit; color: var(--app-ink); font-size: 12px; line-height: 1.4; padding: 18px 22px 22px; width: calc(100% - 36px); text-align: left; }
.spec td:first-child, .spec th:first-child { width: 50%; }
.kpis { display: flex; gap: 36px; border-bottom: 1px solid var(--app-rule); padding-bottom: 12px; margin-bottom: 12px; }
.kpis b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.kpis b.fail { color: var(--app-fail); }
.kpis b.pass { color: var(--app-pass); }
.kpis span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--app-muted); }
.spec table { border-collapse: collapse; width: 100%; }
.spec th { text-align: left; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--app-muted); font-weight: 500; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--app-rule); white-space: nowrap; }
.spec td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--app-band); vertical-align: top; }
.spec .num { text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.spec .code { font-family: "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.spec .ok { color: var(--app-pass); font-weight: 600; }
.spec .dim { color: var(--app-muted); }
.spec .flag { display: inline-block; background: #F6E7E3; color: var(--app-fail); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: .04em; }
.spec .tot td { font-weight: 700; border-bottom: 2px solid var(--app-rule); }
.spec .note { margin-top: 10px; color: var(--app-muted); font-size: 11.5px; }
.stage .spec { font-size: 13px; }
.stage .spec .kpis b { font-size: 24px; }

/* Product page bands and features */
.band { background: var(--band); border-radius: 22px; padding: 56px 40px; margin-top: 14px; }
.band.white { background: var(--page); border: 1px solid var(--hair); }
.band h2, .final h2, .fx-text h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.band h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 26ch; margin-top: 8px; }
.band .lead { color: var(--muted); max-width: 60ch; margin-top: 12px; }
.center { text-align: center; }
.center h2, .center .lead, .center .fx-text { margin-left: auto; margin-right: auto; }
.feature { padding: 56px 0 8px; border-top: 1px solid var(--hair); margin-top: 48px; }
.feature.first { border-top: 0; margin-top: 0; padding-top: 24px; }
.fx-text { max-width: 60ch; margin-bottom: 28px; }
.fx-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 8px; }
.fx-text p { color: var(--muted); margin-top: 10px; }
.fx-text .price { margin-top: 12px; font-weight: 600; }
.fx-text .price small { font-weight: 400; color: var(--muted); }
.feature .stage { margin-top: 0; }

.deliv { width: 100%; border-collapse: collapse; margin-top: 28px; }
.deliv td { padding: 18px 16px 18px 0; border-top: 1px solid var(--hair); vertical-align: top; }
.deliv td.ref { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .8rem; color: var(--muted); width: 92px; white-space: nowrap; padding-top: 22px; }
.deliv b { display: block; font-size: 1.1rem; letter-spacing: -.01em; }
.deliv p { color: var(--muted); margin-top: 4px; max-width: 60ch; font-size: .97rem; }
.deliv td.when { white-space: nowrap; text-align: right; font-weight: 600; font-size: .9rem; padding-right: 0; padding-top: 22px; }
.deliv td.when.free { color: var(--green); }
.close { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.close .mono { font-size: .82rem; }

ol.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; margin-top: 30px; }
.flow li { border-top: 2px solid var(--ink); padding-top: 14px; counter-increment: step; }
.flow li::before { content: counter(step); display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.flow b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.flow p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

ul.terms { list-style: none; margin-top: 26px; }
.terms li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--hair); }
.terms .k { font-weight: 600; }
.terms li > span:last-child { color: var(--muted); }
.terms li > span:last-child b { color: var(--ink); font-weight: 600; }
.ask { margin-top: 30px; max-width: 60ch; }
.ask .btn { margin-top: 14px; }
.ask .fine { font-size: .85rem; color: var(--muted); margin-top: 12px; }

.proof { max-width: 64ch; margin: 64px auto 0; text-align: center; font-size: 1.18rem; line-height: 1.5; letter-spacing: -.01em; }
.proof .src { font-size: .85rem; color: var(--muted); margin-top: 12px; letter-spacing: 0; }

.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 30px; }
.note b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.note p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

ul.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 26px; }
.checks li { border-top: 1px solid var(--hair); padding: 12px 0; display: flex; gap: 14px; align-items: baseline; }
.checks a { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .85rem; white-space: nowrap; min-width: 208px; }
.checks span { color: var(--muted); font-size: .95rem; }

.src-table { width: 100%; border-collapse: collapse; margin-top: 26px; }
.src-table th { text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 16px 10px 0; border-bottom: 1px solid var(--hair); }
.src-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; font-size: .95rem; }
.src-table td:first-child { font-weight: 600; white-space: nowrap; }
.src-table td:last-child { color: var(--muted); }
.src-table td.tag { white-space: nowrap; font-weight: 600; text-align: right; padding-right: 0; }
.src-table td.tag.free { color: var(--green); }

.final { text-align: center; padding: 84px 0 40px; }
.final h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 26ch; margin: 0 auto; }
.final .lead { color: var(--muted); max-width: 52ch; margin: 12px auto 0; }
.final .cta { margin-top: 24px; }

/* Guides */
.guides { padding: 76px 0 44px; }
.guides h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.025em; }
.guides .lead { color: var(--muted); margin: 8px 0 26px; max-width: 62ch; }
.guides ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.guides li { border-top: 1px solid var(--hair); padding: 14px 0; }
.guides li a { font-weight: 600; }
.guides li a:hover { color: var(--green); }
.guides li p { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.guides .more { margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 28px 0 60px; font-size: .82rem; color: var(--muted); margin-top: 40px; }
footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--ink); }
footer .legal { margin-top: 14px; max-width: 84ch; }

@media (max-width: 960px) {
  .top .links { display: none; }
  .menu { display: block; margin-left: auto; }
  .top .run { margin-left: 0; }
  .top .run .full { display: none; }
  .top .run .short { display: inline; }
  .grid2 { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile .media { height: 320px; margin-top: 28px; }
  ol.flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .wrap { gap: 12px; padding: 0 18px; }
  .wordmark { font-size: .95rem; }
  .top .run { font-size: .8rem; padding: 6px 10px; }
  .menu summary { padding: 8px 2px; }
  .hero { padding-top: 56px; }
  h1 { letter-spacing: -.03em; }
  .facts .grid { grid-template-columns: 1fr; gap: 28px; }
  .tile .text { padding: 36px 22px 0; }
  .tile .media { height: 280px; }
  .tile .media .screen { left: 18px; right: 18px; top: 26px; }
  .screen { left: 20px; top: 28px; width: 760px; }
  .screen img { width: 760px; }
  .spec { width: 640px; padding: 14px 16px 16px; }
  .kpis { gap: 24px; }
  .stage .spec { width: 100%; font-size: 12px; }
  .stage .spec .kpis { flex-wrap: wrap; gap: 16px 24px; }
  .stage .spec .kpis b { font-size: 20px; }
  .stage .spec th, .stage .spec td { padding-right: 8px; }
  .guides ul, .notes-grid, ul.checks, ol.flow { grid-template-columns: 1fr; }
  .film .surface { border-radius: 12px; aspect-ratio: 43 / 64; }
  .band { padding: 36px 22px; border-radius: 16px; }
  .terms li { grid-template-columns: 1fr; gap: 4px; }
  .deliv, .deliv tbody, .deliv tr, .deliv td { display: block; }
  .deliv tr { border-top: 1px solid var(--hair); padding: 14px 0; }
  .deliv td { border-top: 0; padding: 2px 0; }
  .deliv td.ref { padding-top: 0; }
  .deliv td.when { text-align: left; padding-top: 6px; }
  .src-table, .src-table tbody, .src-table tr, .src-table td { display: block; }
  .src-table thead { display: none; }
  .src-table tr { border-bottom: 1px solid var(--hair); padding: 12px 0; }
  .src-table td { border-bottom: 0; padding: 2px 0; white-space: normal; }
  .src-table td:first-child { white-space: normal; }
  .src-table td.tag { text-align: left; padding-top: 6px; }
  .stage .spec { overflow-x: auto; }
  .stage .spec table.wide { min-width: 640px; }
  .checks a { min-width: 0; }
  .checks li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Brand hero: the lineup */
.brand { padding: 56px 0 8px; }
.brand .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.brand h1 { font-size: clamp(2rem, 3.9vw, 3.1rem); margin: 12px 0 20px; max-width: 17ch; text-align: left; }
.phrases { position: relative; min-height: 5.9em; font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -.012em; line-height: 1.3; color: var(--ink); }
.phrase { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; max-width: 26ch; }
.phrase.on { opacity: 1; transform: none; }
.phrase small { display: block; font-weight: 400; color: var(--muted); font-size: .78em; margin-top: 6px; letter-spacing: 0; }
.beats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.beats button { font: inherit; font-size: .86rem; font-weight: 500; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0 4px; border-bottom: 2px solid transparent; }
.beats button:hover { color: var(--ink); }
.beats button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--green); }
.brand .cta { justify-content: flex-start; margin-top: 26px; }
.stage-frame { position: relative; aspect-ratio: 4 / 3; background: var(--band); border-radius: 22px; overflow: hidden; }
.layer { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .6s ease, transform .6s ease; }
.layer.on { opacity: 1; transform: none; }
.stage-frame .screen.spec { left: 28px; top: 28px; width: calc(100% - 28px); min-height: calc(100% - 28px); font-size: 12.5px; padding: 20px 24px 24px; }
.stage-frame .screen.spec .kpis b { font-size: 22px; }
.roof { list-style: none; }
.roof li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--app-band); }
.roof li b { font-weight: 600; }
.roof li span { color: var(--app-muted); text-align: right; white-space: nowrap; }
.film-tile .media { height: 440px; margin: 36px 40px 0; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--hair); border-bottom: 0; box-shadow: 0 18px 50px -14px rgba(22,33,27,.2); background: var(--app-paper); }
.film-tile video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile .go .btn { padding: 10px 20px; font-size: .95rem; }
@media (max-width: 960px) {
  .brand .wrap { grid-template-columns: 1fr; gap: 28px; }
  .brand h1 { max-width: 22ch; }
  .film-tile .media { height: 340px; margin: 28px 24px 0; }
}
@media (max-width: 760px) {
  .brand { padding-top: 36px; }
  .phrases { min-height: 6.4em; }
  .stage-frame { aspect-ratio: 5 / 4; border-radius: 16px; }
  .stage-frame .screen.spec { left: 16px; top: 16px; width: calc(100% - 16px); font-size: 11px; padding: 14px 14px 16px; }
  .stage-frame .screen.spec .kpis { gap: 14px; }
  .stage-frame .screen.spec .kpis b { font-size: 18px; }
  .stage-frame .opt { display: none; }
  .film-tile .media { height: 260px; margin: 22px 14px 0; }
}
@media (prefers-reduced-motion: reduce) { .phrase, .layer { transition: none; } }

/* Wide monitors: three tiles across, one row shorter */
@media (min-width: 1500px) {
  :root { --wide: 1520px; }
  .grid2 { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: 1 / -1; }
  .tile { min-height: 580px; }
  .tile .media { height: 330px; }
  .tile .media .screen { left: 30px; right: 30px; top: 32px; }
  .tile .media .screen.spec { font-size: 11.5px; padding: 16px 18px 20px; }
  .film-tile .media { height: 520px; }
}
