/* Zegros design system. Source of truth: design/home.html, design/ct600-review.html, design/DESIGN-RULES.md.
   Hard rules: no button, badge, chip or tab ever wraps (white-space:nowrap); no CTA overflows its card
   (max-width:100%, smaller on narrow screens, never clipped). Fonts are self-hosted. */

@font-face { font-family: "Inter"; src: url("/static/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/static/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/static/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root { --ink: #0B2E25; --ink2: #143F33; --green: #1F7A5C; --green-dark: #196A4F; --lime: #9BE27A; --paper: #F6F8F6;
        --text: #182420; --mute: #5D6B65; --line: #E2E8E4; --save: #D6336C; --bad: #B42318; --warn: #9A5B0B;
        --ok-bg: #E6F6EC; --bad-bg: #FDECEC; --warn-bg: #FFF4DE; --tint: #F1F5F2; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-family: Inter, system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
body.app { background: var(--paper); }
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.d { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.error { color: var(--bad); }
.ok { color: var(--green); font-weight: 600; }
p { line-height: 1.55; }

/* ------------------------------------------------------------------ brand */
.brand { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-weight: 800; font-size: 22px; color: var(--ink);
         display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand img { width: 24px; height: 24px; display: block; }

/* ------------------------------------------------------------------ buttons (never wrap, never overflow) */
.btn, button, .button { max-width: 100%; min-width: 0; height: 50px; padding: 0 24px; white-space: nowrap; border-radius: 999px; border: 0;
  background: var(--green); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover, button:hover, .button:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn.light, button.secondary, .button.secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.light:hover, button.secondary:hover, .button.secondary:hover { background: #EEF4F1; }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.sm, button.small, .button.small { height: 42px; padding: 0 18px; font-size: 14px; }
.btn.lg { height: 56px; font-size: 17px; }
.btn.block { width: 100%; }
button.danger, .btn.danger { background: transparent; color: var(--bad); border: 0; height: 42px; padding: 0 8px; font-weight: 600; font-size: 14px; }
button.danger:hover { background: transparent; text-decoration: underline; transform: none; }
button.link { background: none; border: 0; height: auto; padding: 0; color: inherit; font-weight: inherit; font-size: inherit; }
button.link:hover { background: none; text-decoration: underline; transform: none; }
.btn[disabled], button[disabled] { background: #C9D3CE; color: #fff; border-color: #C9D3CE; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn, button, .button { transition: none; } .btn:hover, button:hover { transform: none; } }

/* ------------------------------------------------------------------ chips, badges, tags, help links (never wrap) */
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
        white-space: nowrap; max-width: 100%; background: var(--paper); color: var(--mute); }
.chip.ok { background: var(--ok-bg); color: var(--green); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.dark { background: rgba(255,255,255,.12); color: #fff; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--save);
         color: #fff; font-weight: 700; font-size: 14px; }
.badge.lime { background: var(--lime); color: var(--ink); }
.tag { align-self: flex-start; white-space: nowrap; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13px; padding: 5px 10px;
       border-radius: 6px; transform: rotate(-2deg); }
.help { color: var(--green); font-weight: 600; font-size: 13px; white-space: nowrap; background: none; border: 0; height: auto; padding: 0;
        cursor: pointer; display: inline; }
.help:hover { background: none; text-decoration: underline; transform: none; }
/* the old status word: now a chip */
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
          white-space: nowrap; background: var(--paper); color: var(--mute); vertical-align: middle; text-transform: capitalize; }
.status.valid, .status.done, .status.accepted, .status.paid { background: var(--ok-bg); color: var(--green); }
.status.invalid, .status.failed, .status.rejected, .status.error { background: var(--bad-bg); color: var(--bad); }
.status.running, .status.queued, .status.pending, .status.submitted { background: var(--warn-bg); color: var(--warn); }

/* ------------------------------------------------------------------ app bar, banners, footer */
.appbar { background: #fff; border-bottom: 1.5px solid var(--line); }
.appbar .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.appbar nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; color: var(--ink); align-items: center; min-width: 0; }
.appbar nav a { white-space: nowrap; }
.appbar nav .whoami { color: var(--mute); font-weight: 500; overflow: hidden; text-overflow: ellipsis; max-width: 260px; white-space: nowrap; display: inline-block; }
.appbar nav form { display: inline-flex; align-items: center; }
.appbar nav .acct-sm { display: none; }
.appbar nav button.link { color: var(--green); font-weight: 600; white-space: nowrap; }
.testbar { background: var(--ink); color: rgba(255,255,255,.85); font-size: 13px; text-align: center; padding: 6px 12px; }
.testbar b { color: var(--lime); font-weight: 700; }
.testbar.live { background: var(--bad); color: #fff; }
.guestbar { background: var(--warn-bg); color: var(--text); font-size: 14px; padding: 10px 0; }
.guestbar a { color: var(--green); font-weight: 600; }
.flash { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; }
main.app { width: 100%; padding: 32px 32px 72px; }
.appfoot { margin-top: auto; padding: 24px 0; font-size: 13px; color: var(--mute); }
.appfoot .links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: 14px; }
.appfoot .links a { color: var(--mute); }

/* ------------------------------------------------------------------ app page structure */
.steps { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); flex-wrap: wrap; margin-bottom: 22px; }
.steps span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.steps i { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: inline-flex; align-items: center; justify-content: center;
           font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); }
.steps .cur { color: var(--ink); font-weight: 600; }
.steps .cur i { background: var(--ink); color: #fff; }
.steps .todo i { background: #E2E8E4; color: var(--mute); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pagehead .meta { font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.pagehead .meta a { color: inherit; }
.pagehead .meta a:hover { text-decoration: underline; }
h1.d, .pagehead h1 { margin: 0; font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.05; font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; }
.grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 28px; min-width: 0; }
.card.dark { background: var(--ink); color: #fff; border: 0; }
.card h2, .card-title { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-size: 20px; font-weight: 700; color: var(--ink);
                        margin: 0 0 6px; }
.card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card .card-head h2 { margin: 0; }
.card p { margin: 0 0 12px; font-size: 14px; color: var(--mute); }
.card p:last-child { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions form { display: inline-flex; max-width: 100%; }
.tickcard { display: flex; gap: 14px; align-items: flex-start; }
.tick { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.tick.bad { background: var(--bad-bg); }
.tickcard .body { font-size: 14px; line-height: 1.6; color: var(--mute); min-width: 0; }
.tickcard .body b { color: var(--ink); }
.big { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); line-height: 1; }
.card.dark .big { color: #fff; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-line .big { font-size: 36px; }
.price-line span { white-space: nowrap; }
section.block + section.block { margin-top: 40px; }
h2.sec { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 14px;
         display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
h2.sec .btn { flex: none; }

/* ------------------------------------------------------------------ tables */
.comp, table.list { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.comp td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.comp td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.comp tr.sum td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.comp tr.sub td { font-weight: 600; }
.comp .help { margin-left: 6px; }
.tablewrap { overflow-x: auto; }
table.list th { text-align: left; font-weight: 600; font-size: 13px; color: var(--mute); padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.list td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td a { color: var(--green); font-weight: 600; }
table.list td.n, table.list th.n { text-align: right; }
dl.facts { display: grid; grid-template-columns: 190px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--mute); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre { font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; background: var(--paper); padding: 12px 14px; border-radius: 12px; margin: 8px 0; overflow-wrap: anywhere; }
pre.error { color: var(--bad); background: var(--bad-bg); }
pre.log { max-height: 480px; overflow: auto; }
img.preview { max-width: 100%; border: 1.5px solid var(--line); border-radius: 12px; }

/* ------------------------------------------------------------------ forms */
.field, label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 400; color: var(--text); min-width: 0; }
label small, .field small { font-weight: 400; color: var(--mute); }
.field .row-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
input, select, textarea { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; background: #fff;
                          color: var(--text); width: 100%; min-width: 0; font-weight: 400; }
textarea { height: auto; padding: 12px 14px; font: 12px/1.5 ui-monospace, Consolas, monospace; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,122,92,.15); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); }
label.check input { margin-top: 2px; }
input.money { text-align: right; font-variant-numeric: tabular-nums; }
.money-wrap { position: relative; }
.money-wrap::before { content: "£"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-weight: 400; }
.money-wrap input { padding-left: 28px; }
form.stack { display: flex; flex-direction: column; gap: 24px; }
form.narrow { max-width: 420px; }
form.inline { display: inline-flex; max-width: 100%; }
form.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
form.row input { flex: 1 1 200px; width: auto; }
fieldset { border: 1.5px solid var(--line); border-radius: 22px; padding: 24px 28px 28px; margin: 0; background: #fff; display: flex; flex-direction: column;
           gap: 16px; min-width: 0; }
legend { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-size: 20px; font-weight: 700; color: var(--ink); padding: 0 8px; }
fieldset > p { margin: 0; font-size: 14px; color: var(--mute); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: end; }
details > summary { cursor: pointer; color: var(--green); font-weight: 600; padding: 6px 0; }
details[open] > summary { margin-bottom: 12px; }
table.entry { width: 100%; border-collapse: collapse; font-size: 14px; }
table.entry th { text-align: right; font-size: 13px; font-weight: 600; color: var(--mute); padding: 0 0 8px 12px; white-space: nowrap; }
table.entry th:first-child { text-align: left; padding-left: 0; }
table.entry td { padding: 6px 0 6px 12px; vertical-align: middle; }
table.entry td:first-child { padding-left: 0; }
table.entry td.lbl { color: var(--text); }
table.entry td.lbl .help { margin-left: 6px; }
table.entry input { width: 150px; }
table.rows td { padding: 4px 8px 4px 0; }
table.rows th { text-align: left; font-size: 13px; font-weight: 600; color: var(--mute); padding: 0 8px 6px 0; }
.formfoot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.formfoot .muted { font-size: 13px; }
.searchrow { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 8px; max-width: 640px; border: 1.5px solid var(--line); }
.searchrow input { flex: 1; border: 0; height: 50px; border-radius: 999px; padding: 0 18px; font-size: 17px; }
.searchrow input:focus { box-shadow: none; }

/* ------------------------------------------------------------------ "Not sure?" modal with a small adder */
dialog.notsure { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(11,46,37,.5); color: var(--text); }
dialog.notsure::backdrop { background: rgba(11,46,37,.45); }
dialog.notsure .in { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
dialog.notsure h2 { margin: 0; font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-size: 22px; font-weight: 800; color: var(--ink); }
dialog.notsure .explain { margin: 0; color: var(--mute); line-height: 1.6; font-size: 15px; }
dialog.notsure .adder { background: var(--paper); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
dialog.notsure .adder b { font-size: 14px; color: var(--ink); }
dialog.notsure .adder input { height: 42px; }
dialog.notsure .total { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); padding-top: 6px; }
dialog.notsure .foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ------------------------------------------------------------------ marketing (home) */
.pillnav { position: sticky; top: 16px; z-index: 5; margin: 16px auto 0; max-width: 1140px; background: #fff; border-radius: 999px;
           box-shadow: 0 10px 30px -12px rgba(11,46,37,.35); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 24px; gap: 16px; }
.pillnav nav { display: flex; gap: 26px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.pillnav nav a { white-space: nowrap; }
.pillnav nav .login { color: var(--green); }
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1C5C47 0%, #0F3A2E 45%, #0B2E25 100%); color: #fff; text-align: center; padding: 72px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 70% 20%, rgba(155,226,122,.18), transparent 70%); }
.hero .intro { position: relative; padding-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1, .hero h1.d { margin: 0; font-size: 64px; line-height: 1.04; font-weight: 800; max-width: 820px; color: #fff; }
.hero .lead { margin: 0; font-size: 19px; color: rgba(255,255,255,.8); max-width: 560px; line-height: 1.5; }
.trustline { display: inline-flex; white-space: nowrap; gap: 14px; align-items: center; font-size: 14px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
             border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 16px; max-width: 100%; }
.trustline b { color: #fff; font-weight: 600; }
.trustline .sep { opacity: .5; }
.ul { position: relative; display: inline-block; white-space: nowrap; }
.ul svg { position: absolute; left: -2%; right: -2%; bottom: -8px; width: 104%; height: 14px; overflow: visible; }
.ul path { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw .9s cubic-bezier(.4,0,.2,1) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ul path { animation: none; stroke-dashoffset: 0; } }
.search { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 8px; width: 100%; max-width: 640px; margin: 0 auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; padding: 0 20px; font-size: 17px; color: var(--text); border-radius: 0; }
.search input:focus { box-shadow: none; }
.search input::placeholder { color: #8A958F; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .ctas .btn { height: 44px; font-size: 15px; }
.device { position: relative; max-width: 980px; margin: 56px auto -2px; border-radius: 22px 22px 0 0; background: #0A1F19; padding: 14px 14px 0;
          box-shadow: 0 -1px 0 rgba(255,255,255,.12) inset, 0 40px 80px -30px rgba(0,0,0,.6); animation: rise .9s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .device { animation: none; } }
.screen { background: #fff; border-radius: 12px 12px 0 0; color: var(--text); text-align: left; overflow: hidden; height: 380px; }
.screen .cols3 { display: grid; grid-template-columns: 200px 1fr 300px; height: 100%; }
.screen .side { background: var(--paper); padding: 20px; border-right: 1px solid var(--line); font-size: 13px; display: flex; flex-direction: column; gap: 12px; color: var(--mute); }
.screen .side .co { font-weight: 700; color: var(--ink); font-size: 14px; }
.screen .side .on { margin-top: 6px; color: var(--ink); font-weight: 600; background: #fff; padding: 7px 10px; border-radius: 8px; }
.screen .side .it { padding: 0 10px; }
.screen .side .foot { margin-top: auto; font-size: 12px; line-height: 1.5; }
.screen .side .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.screen .sheet { padding: 22px 26px; border-right: 1px solid var(--line); }
.screen .sheet table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.screen .sheet td { padding: 5px 0; }
.screen .sheet td + td { text-align: right; }
.screen .sheet td + td + td { padding-left: 18px; }
.screen .sheet tr.yr { color: var(--mute); }
.screen .sheet tr.t1 { font-weight: 600; border-top: 1px solid var(--line); }
.screen .sheet tr.t2 { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 2px solid var(--ink); }
.screen .sheet tr.t3 { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); }
.screen .rail { padding: 22px; font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
.screen .rail .chk { display: flex; gap: 8px; align-items: flex-start; }
.screen .rail .chk .y { color: var(--green); font-weight: 700; }
.screen .rail .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.screen .rail .foot .btn { height: 42px; font-size: 14px; }
.mk { width: 100%; padding: 80px 32px 0; }
.mk.tight { padding-top: 72px; }
.offer { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 28px; padding: 44px;
         box-shadow: 0 30px 60px -40px rgba(11,46,37,.3); }
.offer .pricebig { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 18px; flex-wrap: wrap; }
.offer .pricebig .big { font-size: 54px; }
.offer .getback { background: var(--paper); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.offer .slip { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px -20px rgba(11,46,37,.4); }
h2.d.h2 { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1.05; margin: 0; }
.lede { color: var(--mute); font-size: 17px; line-height: 1.55; margin: 12px 0 0; }
.tabs { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 6px; gap: 4px; max-width: 100%; }
.tabs .short, .show-sm { display: none; }
.tabs label { white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mute); cursor: pointer; flex-direction: row; }
.pricing input[name=plans] { position: absolute; opacity: 0; pointer-events: none; }
#t-ltd:checked ~ .tabsrow label[for=t-ltd], #t-dormant:checked ~ .tabsrow label[for=t-dormant], #t-acc:checked ~ .tabsrow label[for=t-acc] {
  background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(11,46,37,.25); }
.pricing input[name=plans]:focus-visible ~ .tabsrow { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 999px; }
.pricing .plans { display: none; }
#t-ltd:checked ~ .plans.ltd, #t-dormant:checked ~ .plans.dormant, #t-acc:checked ~ .plans.acc { display: grid; }
.plans { grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.plan { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.hi { border-color: var(--green); box-shadow: 0 30px 60px -40px rgba(31,122,92,.5); }
.plan .name { font-size: 20px; font-weight: 700; color: var(--ink); }
.plan .price { font-size: 52px; font-weight: 800; line-height: 1; color: var(--ink); }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--mute); letter-spacing: 0; font-family: Inter, sans-serif; }
.plan .for { font-size: 14px; color: var(--mute); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px;
  background: var(--lime) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E25' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center/11px no-repeat; }
.plan .btn { margin-top: auto; }
.plan .badge { position: absolute; top: -16px; right: 20px; }
.guar { margin: 24px auto 0; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.guar > div { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: 18px; padding: 20px 22px; }
.guar b { display: block; font-weight: 700; color: var(--ink); }
.guar .t { font-size: 14px; color: var(--mute); margin-top: 4px; line-height: 1.5; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why > div { background: var(--paper); border-radius: 22px; padding: 28px; }
.why .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
           box-shadow: 0 4px 12px -6px rgba(11,46,37,.3); }
.why .h { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.why .t { color: var(--mute); line-height: 1.5; }
.logos { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; color: var(--mute); font-weight: 600; font-size: 15px; }
.logos span { white-space: nowrap; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.who a { border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--line); transition: transform .15s, box-shadow .15s; }
.who a:hover { transform: translateY(-2px); box-shadow: 0 30px 50px -36px rgba(11,46,37,.4); }
@media (prefers-reduced-motion: reduce) { .who a { transition: none; } .who a:hover { transform: none; } }
.who .h { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.who .t { color: var(--mute); line-height: 1.5; }
.who .go { font-weight: 700; color: var(--green); margin-top: 8px; }
.who a.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.who a.dark .h { color: #fff; }
.who a.dark .t { color: rgba(255,255,255,.75); }
.who a.dark .go { color: var(--lime); }
.faqgrid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] > summary { margin-bottom: 0; }
.faq p { margin: 0 0 18px; color: var(--mute); line-height: 1.55; }
.band { margin-top: 88px; background: var(--ink); color: #fff; padding: 72px 0; text-align: center; }
.band .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.band p { margin: 0; color: rgba(255,255,255,.75); max-width: 480px; }
.legal { border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: auto; }
.legal .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; font-size: 14px; color: var(--mute); }
.legal .cols > div { display: flex; flex-direction: column; gap: 8px; }
.legal .cols b { color: var(--ink); }
.legal .fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); line-height: 1.7; }

/* ------------------------------------------------------------------ receipts */
.receipt-head { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.receipt address { font-style: normal; font-size: 14px; line-height: 1.6; }
@media print {
  .appbar, .testbar, .guestbar, .flash, .appfoot, .legal, .no-print { display: none !important; }
  body.app { background: #fff; } main.app { padding: 0; } .card { border: 0; padding: 0; }
}

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  .btn, button, .button { font-size: 15px; padding: 0 16px; }
  .wrap, main.app, .mk { padding-left: 18px; padding-right: 18px; }
  .grid, .grid2, dl.facts { grid-template-columns: 1fr; }
  dl.facts { gap: 2px 0; } dl.facts dd { margin-bottom: 10px; }
  .card { padding: 22px; }
  fieldset { padding: 18px 18px 22px; border-radius: 18px; }
  h1.d, .pagehead h1 { font-size: 30px; }
  .appbar .wrap { height: 60px; }
  .appbar nav { gap: 16px; font-size: 14px; }
  .appbar nav .whoami, .appbar nav .hide-sm { display: none; }
  .appbar nav .acct-sm { display: inline; }
  .brand.app-sm span { display: none; }
  table.entry input { width: 100%; }
  table.entry td.lbl { font-size: 13px; }
  .hide-sm { display: none !important; }
  .show-sm { display: block; }
  .taxdue { grid-template-columns: 1fr !important; }
  .tabs .full { display: none; }
  .tabs .short { display: inline; }
  /* home */
  .offer { padding: 24px; border-radius: 22px; grid-template-columns: 1fr; }
  .offer h2.d.h2 { font-size: 28px; }
  .plan { padding: 22px; }
  .who a { padding: 24px; }
  .device { margin: 40px 12px -2px; padding: 8px 8px 0; }
  .screen .cols3 { grid-template-columns: 1fr; }
  .screen .side, .screen .rail { display: none; }
  .screen { height: 220px; }
  .pillnav { margin: 12px; height: 56px; }
  .pillnav nav a:not(.btn) { display: none; }
  .pillnav nav .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .hero h1, .hero h1.d { font-size: 40px; }
  .hero .intro { padding-top: 40px; }
  .trustline { font-size: 12px; gap: 8px; padding: 7px 12px; }
  .search { flex-direction: column; border-radius: 24px; padding: 10px; gap: 10px; }
  .search input { width: 100%; height: 64px; min-height: 64px; font-size: 18px; padding: 0 18px; border: 0; background: var(--tint); border-radius: 16px; }
  .search .btn { width: 100%; height: 54px; }
  .plans, .why, .who, .guar, .legal .cols, .faqgrid { grid-template-columns: 1fr !important; }
  .tabs label { padding: 9px 12px; font-size: 14px; }
  .guar > div { flex-direction: column; gap: 10px; }
  h2.d.h2 { font-size: 30px; }
  .logos { gap: 14px 24px; }
}
@media (max-width: 400px) {
  .btn.lg { font-size: 16px; padding: 0 14px; }
  .trustline .opt { display: none; }
  .tabs label { padding: 8px 9px; font-size: 13px; }
  .pillnav nav .btn { padding: 0 14px; }
}

/* CS01: the market/PSC questions only when "traded on a market" is chosen (no JS) */
.if-trading { display: none; flex-direction: column; gap: 10px; }
fieldset:has(select[name=trading_on_market] option[value=yes]:checked) .if-trading { display: flex; }
table.rows input { min-width: 110px; }

/* Make my accounts and guides */
.offer.two { grid-template-columns: 1fr 1fr; }
.plans.two { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 28px auto 0; }
.pillnav nav a[aria-current=page] { color: var(--green); }
.guide { max-width: 760px; margin: 0 auto; }
.guide .dates { color: var(--mute); font-size: 14px; margin: 10px 0 0; }
.guide h1 { margin: 0; font-size: 44px; line-height: 1.08; font-weight: 800; color: var(--ink); }
.guide h2 { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-size: 26px; font-weight: 800; color: var(--ink); margin: 40px 0 12px; }
.guide p, .guide li { font-size: 17px; line-height: 1.65; color: var(--text); }
.guide .takeaways { background: var(--paper); border-radius: 22px; padding: 24px 28px; margin: 28px 0 0; }
.guide .takeaways h2 { margin: 0 0 8px; font-size: 18px; }
.guide .takeaways ul { margin: 0; padding-left: 20px; }
.guide .takeaways li { font-size: 16px; margin: 6px 0; }
.guide table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.guide table.data th { text-align: left; font-weight: 700; color: var(--ink); padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); }
.guide table.data td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide table.data td.n, .guide table.data th.n { text-align: right; white-space: nowrap; }
.guide table.data tr.sum td { font-weight: 700; color: var(--ink); }
.guide .caption { font-size: 14px; color: var(--mute); margin: 0 0 8px; }
.guide ol.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.guide ol.steps-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.guide ol.steps-list li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.guide .faq { margin-top: 8px; }
.guides-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guides-list a { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 26px;
                 transition: transform .15s, box-shadow .15s; }
.guides-list a:hover { transform: translateY(-2px); box-shadow: 0 30px 50px -36px rgba(11,46,37,.4); }
.guides-list .h { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.guides-list .t { color: var(--mute); line-height: 1.5; }
.guides-list .go { color: var(--green); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .guides-list a { transition: none; } .guides-list a:hover { transform: none; } }
@media (max-width: 900px) {
  .offer.two, .plans.two, .guides-list { grid-template-columns: 1fr; }
  .guide h1 { font-size: 32px; }
  .guide h2 { font-size: 22px; }
  .guide p, .guide li { font-size: 16px; }
}

.hero.slim { padding-bottom: 64px; }
.hero.slim .intro { gap: 16px; }
.hero.slim h1.d { font-size: 48px; max-width: 880px; }
.hero .crumb { font-size: 14px; color: rgba(255,255,255,.7); }
.hero .crumb a { color: #fff; }
.hero .dates { font-size: 14px; color: rgba(255,255,255,.72); margin: 0; }
.guide .tablewrap { overflow-x: auto; }
.guide .related { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.guide .related a { color: var(--green); font-weight: 700; }
@media (max-width: 900px) {
  .hero.slim h1.d { font-size: 32px; }
  .guide table.data { font-size: 14px; }
}
.guide .band h2 { margin: 0; }
.guide .band p { color: rgba(255,255,255,.75); font-size: 16px; }

/* In-between widths: nothing may wrap or overflow at any width from 320px up (tests/test_layout.py sweeps them). */
@media (max-width: 1180px) and (min-width: 901px) {
  .pillnav nav { gap: 18px; }
  .pillnav nav .wide { display: none; }
}
@media (max-width: 560px) {
  .trustline .opt { display: none; }
}
@media (max-width: 380px) {
  .trustline { font-size: 11px; gap: 6px; padding: 6px 10px; }
  .card, .offer { padding: 16px; }
  .btn.lg { font-size: 15px; padding: 0 10px; }
}
@media (max-width: 359px) {
  .pillnav .brand .word { display: none; }
}
/* Phones: no double-tap zoom, and no zoom-in when a field is tapped (iOS zooms into inputs under 16px). Pinch zoom stays on. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 900px) {
  input, select, textarea { font-size: max(16px, 1em) !important; }
}
