/* Radial Link website — single stylesheet.
   Brand tokens live in :root; everything else reads from them. */

:root {
  /* Brand: the original Radial Link app blue and navy (recovered MUI theme),
     with teal from the Radial Link illustration set as the accent. */
  --brand: #376fd0;
  --brand-strong: #2052c2;
  --brand-soft: #e9f0fb;
  --brand-light: #7ea8e5;
  --accent: #129b7d;
  --accent-soft: #dcf7f0;
  --navy: #233044;

  --ink: #172233;
  --ink-2: #3d4b5e;
  --muted: #67768a;
  --line: #e4e1d8;
  --line-strong: #d2cdc0;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --paper: #fffdf8;
  --kraft: #efe6d2;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 34, 51, 0.06);
  --shadow: 0 14px 34px -18px rgba(23, 34, 51, 0.32), 0 2px 6px rgba(23, 34, 51, 0.05);
  --shadow-paper: 0 22px 44px -22px rgba(32, 52, 110, 0.5), 0 3px 10px rgba(23, 34, 51, 0.08);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: #f1f5fd; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.02em;
}
.brand img { width: 38px; height: 38px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 13px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: rgba(23, 34, 51, 0.05); }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(23, 34, 51, 0.07); }
.site-nav .btn { margin-left: 10px; padding: 0.75em 1.15em; font-size: 0.95rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }

@media (max-width: 900px) {
  .site-nav a:not(.btn) { padding: 12px; font-size: 1.04rem; border-radius: 10px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 24px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .site-nav[data-open="true"] { display: flex; }
  .js .site-nav .btn { margin: 10px 0 0; padding: 1em; }
  html:not(.js) .site-header .bar { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 6px; }
  html:not(.js) .site-nav { margin-left: 0; flex-wrap: wrap; }
  body.nav-open { overflow: hidden; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #d3dbe6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 1.14rem; }
.section-dark .section-head p { color: #b3c0d0; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-strong);
}
.section-dark .eyebrow { color: var(--brand-light); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.26rem); color: var(--ink-2); max-width: 36em; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; top: -260px; right: -220px; width: 820px; height: 820px; z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 64%, color-mix(in srgb, var(--brand) 10%, transparent) 65%, transparent 66%),
    radial-gradient(closest-side, transparent 44%, color-mix(in srgb, var(--brand) 12%, transparent) 45%, transparent 46%),
    radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.35rem); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .hand { color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-size: 0.95rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 980px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- paper: letters, envelopes, pins ---------- */
.letter-stack { position: relative; padding: 24px 8px 76px 0; max-width: 560px; margin-inline: auto; }
.letter {
  position: relative; background: var(--paper); border-radius: 4px;
  padding: 8% 8% 9%; box-shadow: var(--shadow-paper);
  transform: rotate(-2deg);
}
.letter::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(120, 104, 70, 0.1);
}
.letter img { width: 100%; }
.letter-stack .letter { width: 90%; z-index: 2; }
.envelope {
  position: relative; background: var(--kraft); border-radius: 4px; aspect-ratio: 1.55 / 1;
  box-shadow: var(--shadow-paper); overflow: hidden;
}
.envelope::before {
  content: ""; position: absolute; inset: 0 0 45% 0;
  background:
    linear-gradient(to bottom right, transparent 49.6%, rgba(120, 96, 50, 0.16) 50%, transparent 50.4%),
    linear-gradient(to bottom left, transparent 49.6%, rgba(120, 96, 50, 0.16) 50%, transparent 50.4%);
}
.envelope .stamp {
  position: absolute; top: 9%; right: 6%; width: 11%; aspect-ratio: 0.85;
  border-radius: 3px; background: color-mix(in srgb, var(--brand) 22%, #fff);
  outline: 2px dashed rgba(255, 255, 255, 0.9); outline-offset: -5px;
}
.envelope .address { position: absolute; left: 30%; top: 46%; width: 44%; }
.letter-stack .envelope { position: absolute; right: 0; bottom: 0; width: 74%; z-index: 1; transform: rotate(5deg); }
.pin-chip {
  position: absolute; z-index: 3; left: -6px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px 8px 8px; box-shadow: var(--shadow); font-size: 0.93rem; font-weight: 600; line-height: 1.25;
}
.pin-chip .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent);
}
.pin-chip .dot svg { width: 18px; height: 18px; }
.pin-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 0.8rem; }

/* ---------- photos & screenshots ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-paper); background: #ebe7dd; }
.photo figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.proof-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 32px; align-items: center; }
.proof-grid .photo:first-child img { transform: rotate(-1.5deg); }
.proof-grid .photo:last-child img { transform: rotate(1deg); }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.shot { position: relative; padding: 0 14% 44px 0; }
.shot .panel img { width: 100%; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 32%;
  padding: 6px; background: #0e1522; border-radius: 26px; box-shadow: var(--shadow-paper);
}
.phone img { width: 100%; border-radius: 20px; }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.statement h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; }
.statement p { font-size: 1.2rem; color: var(--ink-2); }
.statement .hello { width: 170px; margin: 14px 0 0 -4px; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1060px) { .cards, .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 1.22rem; margin: 8px 0 0; }
.card p { color: var(--ink-2); font-size: 0.99rem; margin: 0; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand-strong); }
.icon {
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong);
}
.icon svg { width: 26px; height: 26px; }
.icon.teal { background: var(--accent-soft); color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-2); font-size: 0.99rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- results / stats ---------- */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.results h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; }
.results p { font-size: 1.1rem; }
.stat-list { display: grid; gap: 14px; }
.stat {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 4px 20px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat .num { grid-row: span 2; font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat .title { color: #fff; font-weight: 600; }
.stat .desc { color: #aab7c8; font-size: 0.95rem; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- quote ---------- */
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.42; color: var(--ink); letter-spacing: -0.01em;
}
.quote blockquote::before {
  content: "\201C"; display: block; font-size: 4.5rem; line-height: 0.6; margin-bottom: 18px; color: var(--brand);
}
.quote figcaption { margin-top: 24px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-75%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); }
.faq-more { text-align: center; margin-top: 32px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  padding: 56px 60px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}
.cta-band::after {
  content: ""; position: absolute; right: -90px; top: -140px; width: 380px; height: 380px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 60%, transparent 61%),
              radial-gradient(closest-side, transparent 80%, rgba(255, 255, 255, 0.08) 81%, transparent 83%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; }
.cta-band .actions { margin-top: 0; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- inner page hero ---------- */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.7rem); font-weight: 800; letter-spacing: -0.025em; }
.page-hero .lede { margin: 0 auto; }
.jump-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.jump-links a {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.jump-links a:hover { border-color: var(--ink-2); }
@media (max-width: 700px) { .page-hero { padding: 56px 0 24px; } }

/* ---------- feature rows (tour / industries) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 72px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; }
.feature p { color: var(--ink-2); font-size: 1.07rem; }
.feature .kicker { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.14rem; }
.feature-media { position: relative; }
.feature-media .letter { max-width: 470px; margin-inline: auto; }
.feature-media .photo { max-width: 520px; margin-inline: auto; }
@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .feature.flip .feature-media { order: 0; }
}
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23129b7d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- panels (UI illustrations) ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #f8f6f1; font-size: 0.85rem; color: var(--muted);
}
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfd9cc; }
.panel-bar span { margin-left: 8px; }
.table-wrap { overflow-x: auto; }
.contacts-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.contacts-table th, .contacts-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.contacts-table th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #fcfbf8; }
.contacts-table tr:last-child td { border-bottom: 0; }
.contacts-table td:last-child { text-align: right; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--accent-soft); color: #0d7a61; }
.tag.queued { background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 26px 50px -30px var(--brand); }
.price-card .badge {
  position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.price-card h3 { font-size: 1.24rem; margin-bottom: 4px; }
.price-card .for { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; }
.price { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .volume { margin-top: 10px; font-size: 0.95rem; color: var(--accent); font-weight: 600; min-height: 1.5em; }
.price-card .checklist { margin: 24px 0 28px; }
.price-card .btn { margin-top: auto; }
.fine-print { text-align: center; color: var(--muted); font-size: 0.93rem; margin-top: 28px; }

.estimator {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px;
}
@media (max-width: 860px) { .estimator { grid-template-columns: 1fr; padding: 28px 22px; } }
.type-picker { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.type-picker legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.type-option {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: #fff; transition: border 0.15s ease;
}
.type-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.type-option:has(input:checked)::before { border: 5px solid var(--brand); }
.type-option:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.type-option .name { font-weight: 600; margin-right: auto; }
.type-option .rate { color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; text-align: right; }
.range-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 16px; }
.range-label output { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; outline-offset: 6px;
  background: linear-gradient(to right, var(--brand) var(--fill, 50%), #e7e3d9 var(--fill, 50%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-shadow: var(--shadow); cursor: grab;
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: grab; }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.estimate-total {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; text-align: center;
}
.estimate-total .label { color: var(--muted); font-size: 0.95rem; }
.estimate-total .big { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 6px 0; font-variant-numeric: tabular-nums; }
.estimate-total .sub { color: var(--ink-2); font-size: 0.98rem; }
.estimate-total .note { display: block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.93rem; }
.estimate-total .btn { margin-top: 22px; }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 940px) { .form-layout { grid-template-columns: 1fr; gap: 32px; } }
.form-intro h1 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.025em; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .form-card { padding: 24px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-note { color: var(--muted); font-size: 0.88rem; margin: 0; }
.form-status { margin-top: 18px; padding: 13px 16px; border-radius: 10px; font-size: 0.97rem; }
.form-status[data-kind="success"] { background: #e8f6ed; color: #17603a; }
.form-status[data-kind="error"] { background: #fdecec; color: #9b1c1c; }
.form-status[data-kind="info"] { background: var(--brand-soft); color: var(--brand-strong); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.aside-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.aside-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.aside-list .icon { width: 44px; height: 44px; border-radius: 12px; }
.aside-list .icon svg { width: 22px; height: 22px; }
.aside-list strong { display: block; color: var(--ink); }
.aside-list span { color: var(--ink-2); }

/* ---------- prose (privacy, 404) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b3bfce; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer p { max-width: 30em; margin-top: 14px; }
.site-footer h4 {
  color: #fff; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #e3e9f1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem;
}

/* ---------- layout guards ---------- */
/* Grid items default to min-width:auto, so wide content (the nowrap contacts
   table) would stretch a single mobile column past the screen edge. */
.hero-grid > *, .statement > *, .split > *, .results > *,
.feature > *, .form-layout > *, .estimator > * { min-width: 0; }

@media (max-width: 480px) {
  .type-option { flex-wrap: wrap; row-gap: 2px; }
  .type-option .rate { flex-basis: 100%; padding-left: 30px; text-align: left; }
}

/* ---------- icon stats & quote-based price cards ---------- */
.stat .num svg { display: block; width: 36px; height: 36px; color: var(--brand-light); }
.price-card .price-tag {
  margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink);
}

/* ---------- try it ---------- */
.try-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.try-layout > * { min-width: 0; }
@media (max-width: 940px) { .try-layout { grid-template-columns: 1fr; gap: 32px; } }
.try-layout .type-picker { margin-bottom: 22px; }
.try-count { font-weight: 500; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.try-preview { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 940px) { .try-preview { position: static; } }
.try-stage { padding: 0; overflow: hidden; transform: rotate(-1deg); }
.try-stage:not(.has-image) { min-height: 240px; } /* holds space until the first preview arrives */
.try-stage img {
  width: 100%; height: auto; pointer-events: none;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.try-stage[data-state="empty"] img { visibility: hidden; position: absolute; }
.try-stage[data-state="writing"] img { opacity: 0.35; transition: opacity 0.2s ease; }
.try-placeholder {
  position: absolute; inset: 0; display: none; place-items: center;
  color: var(--muted); font-size: 0.97rem;
}
.try-stage[data-state="empty"] .try-placeholder { display: grid; }
.try-writing {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: none; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 0.93rem; color: var(--ink);
}
.try-stage[data-state="writing"] .try-writing { display: inline-flex; }
.try-stage[data-state="writing"] .try-placeholder { display: none; }
.try-writing svg { width: 18px; height: 18px; color: var(--brand); animation: try-pen 0.9s ease-in-out infinite alternate; }
@keyframes try-pen { from { transform: translate(-2px, 1px) rotate(-8deg); } to { transform: translate(3px, -1px) rotate(6deg); } }
.try-stage.reveal img { animation: try-reveal 1.4s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
@keyframes try-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .try-stage.reveal img, .try-writing svg { animation: none; }
}
.try-note { color: var(--muted); font-size: 0.93rem; margin-top: 18px; }

/* ---------- utilities ---------- */
.flush-top { padding-top: 0; }
.page-hero .actions { justify-content: center; }
