/* Connetix public site — minimal, modern */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --subtle: #f4f4f5;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e9e9ec;
  --line-2: #d9d9de;
  --blue: #1a6fb5;
  --blue-ink: #155a93;
  --blue-soft: #edf4fb;
  --ok: #16794a;
  --bad: #b42318;
  --white: #fff;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1160px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); text-wrap: balance; }
h3 { font-size: 1.06rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font); color: var(--muted); margin-bottom: 18px; letter-spacing: 0; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; background: var(--ink); color: #fff; font: 500 15px var(--font); text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #27272a; border-color: #27272a; }
  .btn--ghost:hover { background: var(--subtle); border-color: var(--line-2); color: var(--ink); }
  .btn--light:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--ink); }
}
.link { color: var(--blue); font-weight: 500; text-decoration: none; }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, 0.8); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color 150ms ease; }
.nav__links a.btn { color: #fff; }
@media (hover: hover) { .nav__links a:not(.btn):hover { color: var(--ink); } }
.nav__links a.nav__login { color: var(--ink); font-weight: 500; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform 200ms var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero */
.hero { padding: 88px 0 104px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.hl { color: var(--blue); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 32em; margin-top: 24px; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 36px 0 0; }
.hero__facts li { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.hero__facts b { color: var(--ink); font-weight: 600; }
.hero__stds { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 32px 0 0; font: 13px var(--mono); color: var(--muted); }

/* Translator demo */
.xl { position: relative; padding: 18px; border-radius: 24px; background: linear-gradient(180deg, var(--surface), var(--subtle)); border: 1px solid var(--line); }
.xl__raw { background: #0b0b0d; color: #a1a1aa; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(10, 10, 10, 0.45); }
.xl__bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font: 12px var(--mono); color: #71717a; border-bottom: 1px solid #1f1f23; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.xl__status { margin-left: auto; color: #34d399; }
.xl__code { margin: 0; padding: 16px; font: 12.5px/1.9 var(--mono); overflow-x: auto; }
.xl__code span { padding: 2px 4px; margin: 0 -4px; border-radius: 4px; transition: background-color 300ms ease, color 300ms ease; }
.xl__code span.is-on { background: rgba(26, 111, 181, 0.35); color: #fff; }
.xl__arrow { width: 34px; height: 34px; margin: -6px auto; position: relative; z-index: 2; display: grid; place-items: center; background: var(--surface); color: var(--ink); border-radius: 50%; border: 1px solid var(--line); box-shadow: var(--shadow); }
.xl__card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 10px; }
.xl__cardhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.pill { font: 500 12px var(--font); color: var(--ok); background: #e9f6ef; padding: 3px 10px; border-radius: 99px; }
.xl__card dl { margin: 0; }
.xl__card dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; transition: background-color 300ms ease; }
.xl__card dl > div.is-on { background: var(--blue-soft); }
.xl__card dt { color: var(--muted); }
.xl__card dd { margin: 0; font-weight: 500; }
.xl__card small { display: block; font: 12px var(--mono); color: var(--muted); font-weight: 400; }

/* Problem */
.problem { padding: 96px 0; border-top: 1px solid var(--line); }
.problem__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.problem__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.problem__list > div { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.problem__list p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* Sections */
.section { padding: 112px 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: #0b0b0d; color: #fff; }
.section--ink .eyebrow { color: #a1a1aa; }
.section__head { max-width: 720px; margin-bottom: 56px; }

/* Solutions */
.sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sol__card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sol__card:hover { border-color: var(--line-2); transform: translateY(-2px); } }
.sol__card p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.sol__n { display: block; font: 12px var(--mono); color: var(--muted); margin-bottom: 36px; }
.sol__card--lead { grid-row: span 2; grid-column: span 2; display: flex; flex-direction: column; background: var(--ink); color: #fff; border-color: var(--ink); }
.sol__card--lead h3 { font-size: 1.9rem; letter-spacing: -0.03em; }
.sol__card--lead p { color: #a1a1aa; font-size: 16px; max-width: 30em; }
.sol__card--lead .sol__n { color: #71717a; }
.sol__card--lead ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.sol__card--lead li { padding-left: 26px; position: relative; color: #e4e4e7; }
.sol__card--lead li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px; border-left: 1.5px solid #7cb6ea; border-bottom: 1.5px solid #7cb6ea; transform: rotate(-45deg); }
.sol__card--lead .link { margin-top: auto; color: #a5cdf2; }

/* Pricing */
.pricing__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.pricing__head h2 { max-width: 14em; }
.pricing__sub { color: var(--muted); margin-top: 14px; max-width: 36em; }
.toggle { display: inline-flex; padding: 4px; background: var(--subtle); border-radius: 999px; }
.toggle button { font: 500 14px var(--font); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.toggle button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 10, 10, 0.1); }
.toggle em { font-style: normal; font-size: 12px; color: var(--ok); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.2rem; }
.plan__blurb { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 3em; }
.plan__price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 3rem; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__note { font-size: 13px; color: var(--muted); margin: 2px 0 22px; min-height: 1.3em; }
.plan__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.plan__list li { padding-left: 26px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg); }
.plan--pick { background: var(--surface); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.25); }
.plan__tag { position: absolute; top: 24px; right: 22px; background: var(--blue-soft); color: var(--blue-ink); font: 500 12px var(--font); padding: 4px 10px; border-radius: 99px; }
.addon { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.addon h3 span { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.addon p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 46em; }
.addon .link { white-space: nowrap; }

/* Calculator */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.calc__intro > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 30em; }
.calc__box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: grid; gap: 22px; box-shadow: var(--shadow); }
.calc__box label { display: grid; gap: 10px; font-weight: 500; font-size: 14.5px; }
.calc__box label > span { display: flex; justify-content: space-between; }
.calc__box output { font: 500 14px var(--mono); color: var(--ink); }
.calc__box input[type="range"] { width: 100%; accent-color: var(--ink); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__out div { padding: 16px; border-radius: 14px; background: var(--subtle); }
.calc__out small { display: block; color: var(--muted); font-size: 13px; }
.calc__out b { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc__out div:first-child b { color: var(--bad); }
.calc__note { font-size: 13.5px; color: var(--muted); }

/* Docs */
.docs { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.docs__intro { position: sticky; top: 104px; }
.docs__intro > p:not(.eyebrow) { color: #a1a1aa; margin-top: 18px; max-width: 30em; }
.docs__proto { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.docs__proto span { font: 12.5px var(--mono); border: 1px solid #27272a; padding: 4px 10px; border-radius: 99px; color: #d4d4d8; }
.docs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.docs__list li { display: flex; align-items: baseline; gap: 14px; padding: 14px 16px; border: 1px solid #1f1f23; border-radius: 12px; background: #111114; }
.docs__list b { font: 500 14px var(--mono); color: #7cb6ea; min-width: 4.6em; }
.docs__list span { color: #e4e4e7; font-size: 14.5px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--subtle); font: 500 14px var(--mono); margin-bottom: 28px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

/* Who */
.who { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.who__head > p:not(.eyebrow) { color: var(--muted); margin: 18px 0 30px; }
.who__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.who__list > div { padding: 18px 0; border-top: 1px solid var(--line); }
.who__list p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 72px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 1.05rem; position: relative; letter-spacing: -0.015em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq__list details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 44em; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.contact__copy > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 28em; }
.contact__mail { display: inline-block; margin-top: 26px; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.contact__points li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 15px; }
.contact__points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.form input, .form select, .form textarea { font: 400 15px var(--font); color: var(--ink); padding: 10px 12px; width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); transition: border-color 150ms ease, box-shadow 150ms ease; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.14); }
.form .is-bad { border-color: var(--bad); }
.form__err { color: var(--bad); font-size: 14px; }
.form__note { font-size: 13px; color: var(--muted); }
.form[hidden] { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form--done { align-content: start; gap: 10px; outline: none; }
.form--done p { color: var(--muted); }
.form__check { width: 40px; height: 40px; border-radius: 50%; background: #e9f6ef; position: relative; margin-bottom: 6px; }
.form__check::after { content: ""; position: absolute; left: 13px; top: 13px; width: 14px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.form__again { background: none; border: 0; padding: 0; font: 500 14px var(--font); cursor: pointer; color: var(--blue); justify-self: start; margin-top: 6px; }

/* Final CTA */
.final { padding: 0 0 112px; }
.final__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; }
.final h2 { max-width: 16em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; }
.foot__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.foot__logo { height: 30px; width: auto; margin-bottom: 12px; }
.foot p { color: var(--muted); max-width: 22em; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot__contact { display: grid; gap: 10px; align-content: start; }
.foot__contact a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.foot small { color: var(--muted); }

/* Legal pages */
.legal-nav { display: flex; align-items: center; gap: 22px; }
.legal-nav a:not(.btn) { text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.legal-nav a.btn { color: #fff; }
.legal { padding: 64px 0 96px; }
.legal__in { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal__meta { color: var(--muted); font-size: 14px; margin: 12px 0 32px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; scroll-margin-top: 90px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.legal a { color: var(--blue); }
.legal code { font: 13px var(--mono); background: var(--subtle); padding: 1px 6px; border-radius: 6px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; }
.legal__toc b { width: 100%; font-weight: 600; margin-bottom: 4px; }
.legal__toc a { text-decoration: none; }
.legal__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal__table th { color: var(--ink); font-weight: 600; background: var(--subtle); }
.choices { display: grid; gap: 12px; margin: 28px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.choice { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.choice small { display: block; color: var(--muted); font-size: 13.5px; }
.choices__gpc { font-size: 13.5px; background: var(--blue-soft); color: var(--blue-ink); padding: 10px 12px; border-radius: 10px; }
.choices__ok { color: var(--ok); font-size: 14px; }
.choices .btn { justify-self: start; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background-color 160ms ease; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 180ms var(--ease-out); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .45; }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 620px) { .legal-nav a:not(.btn) { display: none; } .legal__table { display: block; overflow-x: auto; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms; }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__links .btn { margin-top: 18px; }
}
@media (max-width: 980px) {
  .hero__grid, .problem__grid, .docs, .who, .faq, .contact__grid, .calc { grid-template-columns: 1fr; gap: 44px; }
  .docs__intro { position: static; }
  .sol { grid-template-columns: 1fr 1fr; }
  .sol__card--lead { grid-row: auto; grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .problem__list { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .final__in { padding: 40px 32px; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .sol, .docs__list, .who__list, .steps, .form__row, .foot__in { grid-template-columns: 1fr; }
  .sol__card--lead { grid-column: auto; }
  .xl { padding: 10px; }
  .xl__code { font-size: 11px; }
  .form, .calc__box { padding: 22px; }
  .addon { flex-direction: column; align-items: start; }
  .toggle { width: 100%; }
  .toggle button { flex: 1; }
  .final__in { padding: 32px 22px; border-radius: 20px; }
  .nav__logo img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .btn:active, .sol__card:hover { transform: none; }
}

/* ===================== 3D layer ===================== */
.hero { position: relative; isolation: isolate; }
.hero__fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 900px; }
.hero__floor { position: absolute; left: -50%; right: -50%; bottom: -38%; height: 90%; transform: rotateX(68deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(26,111,181,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(26,111,181,.22) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 30%, transparent 75%);
  animation: floorMove 18s linear infinite; }
@keyframes floorMove { to { background-position: 0 56px, 0 0; } }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .8; }
.orb--a { width: 420px; height: 420px; right: 4%; top: 6%; background: radial-gradient(circle, rgba(26,111,181,.45), transparent 70%); animation: orbFloat 14s ease-in-out infinite alternate; }
.orb--b { width: 320px; height: 320px; left: 30%; bottom: 0; background: radial-gradient(circle, rgba(52,211,153,.28), transparent 70%); animation: orbFloat 17s ease-in-out infinite alternate-reverse; }
@keyframes orbFloat { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 30px, 0); } }

/* Hero demo as a tilted stack of floating layers */
.stage { --rx: 7deg; --ry: -16deg; position: relative; perspective: 1400px; transform-style: preserve-3d; }
.stage > .xl { transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 600ms var(--ease-out);
  box-shadow: 0 50px 80px -40px rgba(10,30,60,.35), 0 18px 36px -24px rgba(10,30,60,.25); }
.stage .xl__raw { transform: translateZ(30px); }
.stage .xl__arrow { transform: translateZ(70px); }
.stage .xl__card { transform: translateZ(55px); box-shadow: 0 24px 44px -26px rgba(10,30,60,.4); }
.stage.is-live > .xl { transition: transform 120ms linear; }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 500 13px var(--font); color: var(--ink);
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); white-space: nowrap;
  box-shadow: 0 16px 30px -18px rgba(10,30,60,.45); animation: chipFloat 6s ease-in-out infinite; }
.chip .ico { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--ok); }
.chip--c .ico { background: var(--blue); }
.chip--a { top: -18px; left: -34px; animation-delay: -1s; }
.chip--b { top: 40%; right: -56px; animation-delay: -3s; }
.chip--c { bottom: -26px; left: -20px; animation-delay: -4.5s; }
@keyframes chipFloat { 0%, 100% { transform: translate3d(0, 0, 140px); } 50% { transform: translate3d(0, -10px, 140px); } }

/* Cards gain depth: they lift and tilt toward the pointer, with a soft light following it */
[data-tilt-card] { --tx: 0deg; --ty: 0deg; --gx: 50%; --gy: 0%; position: relative; transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform 500ms var(--ease-out), box-shadow 300ms ease, border-color 200ms ease; will-change: transform; }
[data-tilt-card]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(26,111,181,.10), transparent 45%); }
[data-tilt-card].is-hover { box-shadow: 0 30px 60px -34px rgba(10,30,60,.35); transition: transform 120ms linear, box-shadow 300ms ease; }
[data-tilt-card].is-hover::after { opacity: 1; }
.sol__card--lead[data-tilt-card]::after { background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(124,182,234,.16), transparent 45%); }
.problem__list > div, .sol__card { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 24px -22px rgba(10,30,60,.35); }

/* Scroll reveal: sections rise in with a slight 3D tilt */
.rv { opacity: 0; transform: perspective(1000px) translateY(28px) rotateX(6deg); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .stage { --rx: 4deg; --ry: -6deg; }
  .chip--a { left: 0; } .chip--b { right: 0; } .chip { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__floor, .orb { animation: none; }
  .chip { animation: none; transform: translateZ(140px); }
  .stage > .xl, [data-tilt-card] { transition: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
.sol__card[data-tilt-card]:hover, .plan[data-tilt-card]:hover { transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)) translateY(-3px); }

/* ===== 3D across the whole page ===== */
/* Dark documents section: perspective grid floor + glow, document chips float in depth */
.section--ink { position: relative; overflow: hidden; isolation: isolate; }
.section--ink::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -30%; height: 80%; z-index: -1; transform: perspective(800px) rotateX(70deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(124,182,234,.26) 1px, transparent 1px), linear-gradient(90deg, rgba(124,182,234,.26) 1px, transparent 1px); background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 25%, transparent 75%); animation: floorMove 20s linear infinite; }
.section--ink::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(26,111,181,.35), transparent 65%); filter: blur(30px); }
.docs__list { perspective: 1000px; }
.docs__list li { transform-style: preserve-3d; box-shadow: 0 18px 30px -22px rgba(0,0,0,.8); transition: transform 400ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .docs__list li:hover { transform: translateZ(26px) rotateX(4deg); border-color: #2c3a4a; background: #13161b; } }

/* Calculator, contact form and final CTA sit on a raised plane */
.calc__box, .contact form, .faq__list details { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -38px rgba(10,30,60,.35); }
.calc__box { position: relative; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .calc__box:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateZ(10px); } }
.plan--pick { transform: translateY(-10px); box-shadow: 0 40px 80px -36px rgba(10,30,60,.45); }
.plan--pick[data-tilt-card] { transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)) translateY(-10px); }
.steps { perspective: 1200px; }
.steps__n { box-shadow: 0 8px 16px -8px rgba(26,111,181,.6); }
.final__in { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 50px 90px -50px rgba(10,30,60,.6); }
.final__in::before { content: ""; position: absolute; left: -40%; right: -40%; bottom: -60%; height: 120%; z-index: -1; transform: perspective(700px) rotateX(70deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(124,182,234,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(124,182,234,.18) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 25%, transparent 75%); animation: floorMove 16s linear infinite; }
.final__in::after { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -200px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(26,111,181,.4), transparent 65%); filter: blur(30px); }
/* Light sections get a faint depth glow so the page reads as one space */
#solutions, #calculator, #how, #faq { position: relative; isolation: isolate; }
#solutions::before, #how::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; filter: blur(40px); pointer-events: none;
  background: radial-gradient(circle, rgba(26,111,181,.10), transparent 65%); left: -200px; top: 10%; }
#how::before { left: auto; right: -200px; }
@media (max-width: 900px) { .calc__box { transform: none; } .plan--pick { transform: none; } }
@media (prefers-reduced-motion: reduce) { .section--ink::before, .final__in::before { animation: none; } .calc__box, .docs__list li { transition: none; } }
/* Decorative glows never widen the page */
#solutions, #calculator, #how, #faq { overflow-x: clip; }
html, body { overflow-x: clip; }

/* Industries: three columns on wide screens */
@media (min-width: 1000px) { .who__list { grid-template-columns: repeat(3, 1fr); gap: 8px 32px; } }
