/* Tandem Systems website. Tokens match the Tandem Systems design system. */
:root {
  --teal: #0F4C5C;
  --teal-strong: #0B3A47;
  --teal-tint: #E3EEF0;
  --soft-teal: #8CC3CF;
  --ink: #121A26;
  --muted: #4A5664;
  --surface: #FFFFFF;
  --mist: #F4F7F7;
  --line: #D5DCDE;
  --line-strong: #8A97A3;
  --amber: #9A5B00;
  --amber-tint: #FFF4E0;
  --positive: #1E6B45;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(18, 26, 38, 0.06), 0 4px 16px rgba(18, 26, 38, 0.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 3px solid var(--soft-teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---- type ---- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.025em; }
h1, .h1 { font-size: clamp(32px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.18; letter-spacing: -0.015em; }
h3, .h3 { font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.55; }
.label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--teal); letter-spacing: 0.02em; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
@media (max-width: 380px) { .brand img { height: 26px; } }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: var(--mist); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(18, 26, 38, 0.06); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 16px; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-md); border: 1px solid var(--teal); background: var(--teal); color: #fff; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--teal-tint); border-color: var(--teal-tint); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- sections ---- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-tint { background: var(--mist); }
.section-dark { background: var(--ink); color: #E8EEF0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted, .section-dark .lead { color: #B4C1CA; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head > * + * { margin-top: 14px; }

/* ---- hero ---- */
.hero { padding: 48px 0 64px; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; } }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* ---- cards and panels ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card-shadow { border-color: transparent; box-shadow: var(--shadow-card); }
.panel { background: var(--mist); border-radius: var(--radius-lg); padding: 24px; }
.panel-tint { background: var(--teal-tint); border-radius: var(--radius-lg); padding: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-dot { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--teal-tint); color: var(--teal); margin-bottom: 16px; }
.icon-dot svg { width: 20px; height: 20px; }

/* figure tiles (match the findings PDF) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--mist); border-radius: var(--radius-md); padding: 16px; }
.tile.lead-tile { background: var(--teal); color: #fff; }
.tile.lead-tile .label { color: #CFE3E8; }
.tile .fig { display: block; margin-top: 6px; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.tile.lead-tile .note { color: #CFE3E8; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--mist); color: var(--muted); white-space: nowrap; }
.tag-demo { background: var(--amber-tint); color: var(--amber); }
.tag-ok { background: #E6F2EB; color: var(--positive); }
.tag-flag { background: var(--teal-tint); color: var(--teal); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--amber-tint); color: #5C3A00; font-size: 14px; line-height: 1.5; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-no { font-size: 13px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.step .price { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.step .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.step ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.step li { display: flex; gap: 8px; padding: 3px 0; }
.step li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--soft-teal); }
.step.start { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.input { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.15); }
.input span { padding: 0 12px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.input input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 12px; font: 500 16px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.input span + input { padding-left: 0; }
.input input:focus { outline: none; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-md); background: var(--mist); }
.seg button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--radius-sm); background: transparent; font: 500 15px var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 26, 38, 0.12); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }

/* ---- faq ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* ---- page header (inner pages) ---- */
.page-head { padding: 48px 0 40px; background: var(--mist); }
@media (min-width: 900px) { .page-head { padding: 72px 0 56px; } }
.page-head .lead { margin-top: 16px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* ---- cta band ---- */
.cta-band { background: var(--ink); color: #E8EEF0; border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; padding: 48px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B4C1CA; margin-top: 10px; max-width: 56ch; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #B4C1CA; padding: 56px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.site-footer img { height: 28px; width: auto; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #B4C1CA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2A3644; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---- reveal (respects reduced motion) ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
