:root {
  --ink: #0b1224;
  --ink-soft: #3a4258;
  --muted: #667085;
  --line: #e7eaf3;
  --surface: #f7f9fd;
  --white: #fff;
  --blue-900: #0c2a72;
  --blue-700: #164fd6;
  --blue-600: #1e63e8;
  --blue-400: #38b6ff;
  --orange: #f7941d;
  --green: #087f5b;
  --brand-gradient: linear-gradient(120deg, #164fd6 0%, #1e63e8 48%, #38b6ff 100%);
  --warm-gradient: linear-gradient(120deg, #f7941d, #ff5f6d);
  --shadow-sm: 0 2px 12px rgba(12, 26, 74, .07);
  --shadow-md: 0 18px 48px rgba(12, 26, 74, .12);
  --shadow-lg: 0 32px 80px rgba(12, 26, 74, .17);
  --radius: 20px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.14; letter-spacing: -.025em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }
.section { padding: 92px 0; }
.section-soft { background: var(--surface); }
.section-dark { color: #d9e2ff; background: var(--ink); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin: 15px 0 14px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.03rem; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #c5cce0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 1px solid rgba(30, 99, 232, .18); border-radius: 999px; color: var(--blue-700); background: rgba(30, 99, 232, .08); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); content: ""; }

.announcement { padding: 8px 20px; color: #d6def8; background: var(--ink); font-size: .82rem; text-align: center; }
.announcement strong { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); box-shadow: 0 3px 18px rgba(12, 26, 74, .04); backdrop-filter: blur(14px); }
.nav-wrap { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: auto; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { position: relative; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--blue-700); }
.nav-links > a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; border-radius: 2px; background: var(--brand-gradient); content: ""; opacity: 0; transform: scaleX(.4); transition: .2s ease; }
.nav-links > a:hover::after, .nav-links > a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: .2s ease; }
.nav-toggle span { margin: 4px 0; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 1px solid transparent; border-radius: 12px; font-size: .94rem; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--brand-gradient); box-shadow: 0 12px 28px rgba(22, 79, 214, .27); }
.button-primary:hover { box-shadow: 0 17px 34px rgba(22, 79, 214, .34); }
.button-secondary { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.button-small { min-height: 40px; padding: 9px 17px; border-radius: 10px; font-size: .82rem; }
.button-white { color: var(--blue-700); background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }
.text-link { color: var(--blue-700); font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.breadcrumbs { padding: 20px 0 0; color: var(--muted); font-size: .78rem; }
.breadcrumbs ol { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 8px; content: "/"; color: #a6aec0; }
.breadcrumbs a:hover { color: var(--blue-700); }
.hero { position: relative; padding: 68px 0 84px; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(56, 182, 255, .19), transparent 28%), radial-gradient(circle at 15% 80%, rgba(247, 148, 29, .12), transparent 23%), linear-gradient(180deg, #fbfdff, #fff); }
.hero::before { position: absolute; top: -170px; right: -170px; width: 420px; height: 420px; border: 1px solid rgba(30, 99, 232, .12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(30, 99, 232, .03), 0 0 0 110px rgba(30, 99, 232, .02); content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); align-items: center; gap: 70px; }
.hero-copy h1 { max-width: 760px; margin: 18px 0 18px; font-size: clamp(2.5rem, 5.5vw, 4.65rem); line-height: 1.02; }
.hero-copy h1 .highlight { color: transparent; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 700px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero-actions { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; margin-top: 24px; flex-wrap: wrap; gap: 9px; }
.trust-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #3d465d; background: rgba(255, 255, 255, .85); font-size: .75rem; font-weight: 750; }
.trust-chip::before { color: var(--green); content: "✓"; font-weight: 900; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .78rem; }

.preview-shell { position: relative; min-height: 560px; padding: 28px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 30px; background: linear-gradient(145deg, rgba(255, 255, 255, .85), rgba(232, 241, 255, .82)); box-shadow: var(--shadow-lg); }
.preview-toolbar { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; gap: 12px; }
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 8px; height: 8px; border-radius: 50%; background: #ccd4e5; }
.preview-dots span:first-child { background: var(--orange); }
.preview-label { color: var(--blue-700); font-size: .75rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.mock-paper { position: relative; width: min(100%, 390px); min-height: 486px; margin: 0 auto; padding: 26px; overflow: hidden; color: #182033; background: #fff; box-shadow: 0 18px 50px rgba(12, 26, 74, .18); font-size: .69rem; line-height: 1.35; }
.mock-paper::after { position: absolute; right: 0; bottom: 0; width: 72px; height: 72px; background: linear-gradient(135deg, transparent 49%, #eef3fb 50%); content: ""; }
.mock-paper.a5 { width: 300px; min-height: 425px; padding: 20px; }
.mock-paper.thermal { width: 235px; min-height: 475px; padding: 22px 16px; font-family: "Courier New", monospace; }
.mock-paper.mm58 { width: 185px; padding: 19px 12px; font-size: .59rem; }
.mock-paper.mm80 { width: 245px; }
.mock-paper.bw { filter: grayscale(1); }
.mock-paper.colour::before { position: absolute; top: 0; right: 0; left: 0; height: 7px; background: var(--brand-gradient); content: ""; }
.mock-brand { display: flex; padding-bottom: 15px; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid #dfe5ef; }
.mock-brand strong { display: block; color: var(--ink); font-size: 1rem; }
.mock-brand span, .mock-meta span { color: #788197; }
.mock-doc { color: var(--blue-700); font-size: .92rem; font-weight: 900; text-transform: uppercase; }
.mock-paper.thermal .mock-brand { display: block; text-align: center; border-bottom-style: dashed; }
.mock-paper.thermal .mock-doc { margin-top: 7px; color: #111; }
.mock-meta { display: grid; margin: 15px 0; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-meta div { padding: 8px; border: 1px solid #e4e8f0; border-radius: 6px; }
.mock-meta b { display: block; margin-top: 2px; color: #273047; }
.mock-paper.thermal .mock-meta { display: block; text-align: center; }
.mock-paper.thermal .mock-meta div { padding: 3px; border: 0; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { padding: 7px 5px; color: #144aaf; background: #eef5ff; font-size: .6rem; text-align: left; text-transform: uppercase; }
.mock-table td { padding: 8px 5px; border-bottom: 1px solid #e5e9f0; }
.mock-table th:last-child, .mock-table td:last-child { text-align: right; }
.mock-paper.thermal .mock-table th { color: #111; background: #fff; border-block: 1px dashed #555; }
.mock-paper.thermal .mock-table td { border-bottom-style: dashed; }
.mock-total { display: flex; margin-top: 14px; padding: 10px; align-items: center; justify-content: space-between; color: #fff; background: var(--blue-700); font-size: .8rem; font-weight: 900; }
.mock-paper.thermal .mock-total, .mock-paper.bw .mock-total { color: #111; background: #f3f3f3; border-block: 2px solid #222; }
.mock-foot { margin-top: 13px; color: #697286; font-size: .6rem; text-align: center; }
.float-badge { position: absolute; z-index: 3; display: flex; padding: 11px 14px; align-items: center; gap: 8px; border: 1px solid rgba(30, 99, 232, .13); border-radius: 13px; color: var(--ink); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-md); font-size: .75rem; font-weight: 800; }
.float-badge::before { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #fff; background: var(--brand-gradient); content: "✓"; }
.float-badge.top { top: 13px; left: 82px; }
.float-badge.bottom { right: -23px; bottom: 36px; }

.quick-links { position: relative; z-index: 3; margin-top: -28px; }
.quick-links-inner { display: grid; padding: 18px; grid-template-columns: repeat(5, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.quick-link { padding: 12px; border-radius: 10px; color: var(--muted); font-size: .77rem; font-weight: 800; text-align: center; }
.quick-link:hover { color: var(--blue-700); background: #f2f6ff; }

.content-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: start; gap: 70px; }
.content-copy h2 { margin: 14px 0 18px; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.content-copy p + p { margin-top: 15px; }
.feature-list { display: grid; gap: 14px; }
.feature-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.feature-card h3 { margin-bottom: 7px; font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: .9rem; }
.feature-card .number { display: inline-grid; width: 34px; height: 34px; margin-bottom: 12px; place-items: center; border-radius: 10px; color: var(--blue-700); background: #eef4ff; font-weight: 900; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.use-card h3 { margin: 14px 0 9px; font-size: 1.14rem; }
.use-card p { color: var(--muted); font-size: .9rem; }
.use-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: var(--blue-700); background: linear-gradient(145deg, #eef4ff, #e8f8ff); font-size: 1.15rem; font-weight: 900; }

.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.template-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.template-stage { display: grid; min-height: 270px; padding: 25px; place-items: center; background: #f0f4fa; }
.mini-paper { width: 165px; min-height: 220px; padding: 14px; color: #20283a; background: #fff; box-shadow: 0 9px 26px rgba(12, 26, 74, .14); font-size: .45rem; }
.mini-paper.narrow { width: 105px; min-height: 225px; font-family: "Courier New", monospace; }
.mini-paper.mono { filter: grayscale(1); }
.mini-paper .mini-head { padding-bottom: 8px; border-bottom: 3px solid var(--blue-600); font-size: .7rem; font-weight: 900; }
.mini-paper.narrow .mini-head, .mini-paper.mono .mini-head { border-color: #222; text-align: center; }
.mini-lines { display: grid; margin: 11px 0; gap: 7px; }
.mini-lines i { display: block; height: 5px; border-radius: 3px; background: #e5eaf2; }
.mini-lines i:nth-child(2) { width: 75%; }
.mini-lines i:nth-child(4) { width: 60%; }
.mini-total { margin-top: 12px; padding: 8px; color: #fff; background: var(--blue-700); font-weight: 900; text-align: right; }
.mini-paper.narrow .mini-total, .mini-paper.mono .mini-total { color: #111; background: #eee; border-block: 1px solid #222; }
.template-info { padding: 20px; }
.template-info h3 { margin-bottom: 6px; font-size: 1.08rem; }
.template-info p { color: var(--muted); font-size: .84rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: steps; }
.step { position: relative; padding: 26px 22px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 17px; background: rgba(255, 255, 255, .06); counter-increment: steps; }
.step::before { display: grid; width: 40px; height: 40px; margin-bottom: 18px; place-items: center; border-radius: 12px; color: #fff; background: var(--brand-gradient); content: counter(steps, decimal-leading-zero); font-weight: 900; }
.step h3 { margin-bottom: 8px; color: #fff; font-size: 1rem; }
.step p { color: #bdc7e3; font-size: .84rem; }
.csv-callout { display: grid; margin-top: 32px; padding: 24px; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 17px; background: rgba(255, 255, 255, .06); }
.csv-callout h3 { margin-bottom: 5px; color: #fff; font-size: 1.08rem; }
.csv-callout p { color: #bdc7e3; font-size: .86rem; }

.faq-list { display: grid; max-width: 820px; margin: 0 auto; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.faq-list summary { display: flex; padding: 20px 22px; align-items: center; justify-content: space-between; gap: 18px; color: var(--ink); cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--blue-700); background: #eef4ff; content: "+"; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 22px 21px; color: var(--muted); font-size: .92rem; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.related-card { display: flex; min-height: 128px; padding: 19px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: .2s ease; }
.related-card:hover { border-color: rgba(30, 99, 232, .35); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card strong { color: var(--ink); line-height: 1.3; }
.related-card span { color: var(--blue-700); font-size: .79rem; font-weight: 800; }
.cluster-links { display: flex; margin-top: 30px; flex-wrap: wrap; justify-content: center; gap: 9px; }
.cluster-links a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: .76rem; font-weight: 750; }
.cluster-links a:hover { color: var(--blue-700); border-color: rgba(30, 99, 232, .3); }

.final-cta { position: relative; padding: 78px 0; overflow: hidden; color: #dce5ff; background: var(--brand-gradient); text-align: center; }
.final-cta::before, .final-cta::after { position: absolute; width: 330px; height: 330px; border: 70px solid rgba(255, 255, 255, .07); border-radius: 50%; content: ""; }
.final-cta::before { top: -230px; left: -100px; }
.final-cta::after { right: -90px; bottom: -260px; }
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { margin-bottom: 12px; color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final-cta p { max-width: 660px; margin: 0 auto 25px; }

footer { padding: 64px 0 22px; color: #aab3d0; background: #080e1d; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .9fr 1fr; gap: 50px; }
.footer-brand { display: inline-flex; margin-bottom: 17px; align-items: center; gap: 10px; color: #fff; font: 800 1.15rem Manrope, sans-serif; }
.footer-brand img { width: 35px; height: 35px; object-fit: contain; }
footer h2 { margin-bottom: 15px; color: #fff; font-size: .9rem; letter-spacing: 0; }
footer p, footer li, footer a { font-size: .79rem; }
footer ul { display: grid; margin: 0; padding: 0; gap: 9px; list-style: none; }
footer a:hover { color: #fff; }
.footer-bottom { margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.footer-bottom p { font-size: .74rem; }

@media (max-width: 1060px) {
  .nav-links { gap: 17px; }
  .nav-actions .button-secondary { display: none; }
  .hero-grid { gap: 38px; }
  .float-badge.top { display: none; }
  .float-badge.bottom { right: -10px; }
  .quick-links-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 0; right: 0; z-index: 100; width: min(340px, 88vw); height: 100dvh; padding: 90px 28px 30px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: -25px 0 65px rgba(0, 0, 0, .2); transform: translateX(105%); transition: transform .28s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links > a::after { display: none; }
  .nav-scrim { position: fixed; inset: 0; z-index: 79; display: none; background: rgba(8, 14, 29, .48); }
  .nav-scrim.open { display: block; }
  .hero { padding: 48px 0 68px; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lead { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-note { text-align: center; }
  .preview-shell { max-width: 530px; margin: 0 auto; }
  .grid-3, .template-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--container)); }
  .announcement { font-size: .72rem; }
  .brand img { height: 28px; }
  .nav-actions .button-primary { display: none; }
  .hero-copy h1 { font-size: clamp(2.25rem, 13vw, 3.25rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .preview-shell { min-height: auto; padding: 20px 14px; }
  .mock-paper { transform: scale(.9); transform-origin: top center; margin-bottom: -42px; }
  .float-badge { position: static; display: inline-flex; margin-top: 12px; }
  .float-badge.bottom { float: right; }
  .quick-links { margin-top: -15px; }
  .quick-links-inner { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .template-grid, .steps, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .template-grid { max-width: 390px; margin-inline: auto; }
  .csv-callout { grid-template-columns: 1fr; text-align: center; }
  .csv-callout .button { width: 100%; }
  .footer-grid { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
