/* Klaviyo Profile Trim. Plain B2B tool: one accent, real tables, nothing decorative. See design/SYSTEM.md. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #16211d; --ink-2: #47544e; --line: #dbe0da; --paper: #fbfaf6; --panel: #ffffff; --alt: #f2f1ea;
  --accent: #0d6b54; --accent-dark: #094f3e; --accent-soft: #e4f1ec;
  --warn-bg: #fdf3e1; --warn-line: #e6c88f; --danger: #a4291c; --danger-dark: #84200f;
  --radius: 10px; --shadow: 0 1px 2px rgba(22, 33, 29, .05), 0 8px 24px rgba(22, 33, 29, .06);
  --head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; --body: 'Inter', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; margin-top: 1.6em; }
code { font: .86em/1.4 ui-monospace, Consolas, monospace; background: var(--alt); padding: .08em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--ink-2); }
.note { font-size: .875rem; color: var(--ink-2); margin: .6em 0; }

.top { border-bottom: 1px solid var(--line); background: var(--panel); }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font: 800 1.05rem var(--head); color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 18px; font-size: .9rem; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 36em; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; font-size: .94rem; }
.facts li { padding-left: 24px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 4px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--panel); }
.shot figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; }

.btn { display: inline-block; font: 600 1rem/1.25 var(--head); padding: 13px 20px; min-height: 46px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: background-color .16s ease-out, border-color .16s ease-out, transform .16s ease-out; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); color: #fff; }
.btn-quiet { background: var(--panel); color: var(--ink); border-color: #b8c1ba; }
.btn-quiet:hover { border-color: var(--ink-2); background: var(--alt); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--danger-dark); }
.btn:disabled { background: #e2e4df; color: #667069; cursor: not-allowed; border-color: transparent; }
.btn-small { padding: 6px 12px; min-height: 34px; font-size: .86rem; }

.tool-band { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; scroll-margin-top: 8px; }
.tool-wrap { max-width: 840px; display: grid; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.step-label { font: 600 .8rem var(--head); color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.how-key { padding-left: 1.2em; margin: 0 0 16px; }
.how-key li { margin-bottom: 6px; }
.field { display: block; font-weight: 500; font-size: .94rem; margin: 12px 0; }
.field input, .field select { display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--body); padding: 11px 12px; min-height: 44px; border: 1px solid #aeb7b0; border-radius: 7px; background: #fff; color: var(--ink); }
.opts { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.check { display: block; font-size: .94rem; margin: 12px 0; }
.check input { margin-right: 6px; width: 16px; height: 16px; vertical-align: -2px; accent-color: var(--accent); }
.row { margin: 16px 0 8px; }
.error { color: var(--danger-dark); background: #fbeeec; border: 1px solid #eac5bf; border-radius: 7px; padding: 10px 12px; font-size: .94rem; }
.ok { color: var(--accent-dark); font-weight: 600; font-size: .9rem; margin-left: 6px; }

.bar { height: 8px; background: var(--alt); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.bar span { display: block; height: 100%; width: 35%; background: var(--accent); border-radius: 99px; animation: slide 1.4s ease-in-out infinite; }
.bar span.fill { animation: none; width: 0; transition: width .2s ease-out; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }
.big-number { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.big-number span { display: block; font: 800 clamp(1.7rem, 1.3rem + 2vw, 2.6rem)/1.1 var(--head); overflow-wrap: anywhere; }
.big-number small { color: var(--ink-2); font-size: .86rem; }
.big-number.accent { background: var(--accent-soft); border-color: #c0ddd2; }
.big-number.accent span { color: var(--accent-dark); }
.plan-line { font-weight: 500; }
.bill-box { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 14px 16px; margin: 16px 0; font-size: .95rem; }
.bill-box h3 { margin-top: 0; }
.bill-box ul { margin: .4em 0; padding-left: 1.2em; }
.bill-box .note { color: #5a4a2a; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 .82rem var(--head); color: var(--ink-2); }
tbody th { font-weight: 500; }
.counts td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.counts tr.goes th, .counts tr.goes td { color: var(--danger-dark); font-weight: 700; }
.preview td { overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.actions .btn { flex: 1 1 auto; }
.key-box { background: var(--accent-soft); border: 1px solid #c0ddd2; border-radius: 8px; padding: 12px 14px; margin: 14px 0; }
.key-box p { margin: 4px 0; }
.licence-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px; }
.licence-form .field { flex: 1 1 260px; margin: 0; }
.approve-list { padding-left: 1.2em; }
.approve-list li { margin: 14px 0; }
.undo summary { cursor: pointer; font: 600 1rem var(--head); }
.undo[open] summary { margin-bottom: 10px; }

.band { padding: 52px 0; scroll-margin-top: 8px; }
.band.alt { background: var(--alt); }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 10px; }
.rules { background: var(--panel); border: 1px solid var(--line); }
.rules tbody th { width: 46%; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 520px; }
.price { font: 800 2.6rem/1 var(--head); margin: 0 0 8px; }
.price small { font: 500 1rem var(--body); color: var(--ink-2); }
.price-card ul { padding-left: 1.2em; }
.faq { border-bottom: 1px solid #cfd4cd; padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
.foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.foot p { margin: 4px 0; }
.foot a { margin-right: 12px; }

@media (min-width: 600px) { .opts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; } .hero { padding: 64px 0 56px; } }
@media (max-width: 420px) { .panel { padding: 18px 16px; } .result-grid { grid-template-columns: 1fr; } .actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* The result picture is tall: show its top part (headline, saving, plan note) and keep the hero text level with it. */
.shot img { width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: top; }
@media (min-width: 940px) { .hero-grid { align-items: start; } }
