/* ==========================================================================
   DocInsight website — brand palette taken from the logo
   navy #000c30 · violet #4824cc
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #00071d;
  --navy-900: #000c30;
  --navy-800: #071a52;
  --navy-700: #0f2a75;
  --violet-700: #381aa8;
  --violet-600: #4824cc;
  --violet-500: #5b39e0;
  --violet-400: #7d62ee;
  --violet-300: #a99bff;
  --violet-100: #ece8fc;
  --violet-50: #f5f2fe;

  --ink: #0b1230;
  --muted: #4f5678;
  --line: #e1e5f0;
  --bg: #f5f8fc;
  --white: #ffffff;
  --green: #167a50;
  --green-bg: #e3f5ec;
  --amber: #8a5a00;
  --amber-bg: #fdf1d6;
  --red: #b3261e;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 12, 48, .06), 0 2px 8px rgba(0, 12, 48, .05);
  --shadow: 0 10px 30px rgba(0, 12, 48, .10);
  --shadow-lg: 0 24px 60px rgba(0, 12, 48, .22);

  --font-head: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--violet-600); text-underline-offset: 3px; }
a:hover { color: var(--violet-700); }
:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 500; font-size: .98rem; color: var(--navy-900); text-decoration: none;
  padding: 9px 14px; border-radius: 8px;
}
.nav a:hover { background: var(--violet-50); color: var(--violet-600); }
.nav a[aria-current="page"] { color: var(--violet-600); background: var(--violet-50); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--violet-700); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy-900); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--violet-600); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { background: var(--violet-700); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(72, 36, 204, .35); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--violet-50); color: var(--navy-900); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn-outline { background: transparent; border-color: var(--violet-600); color: var(--violet-600); }
.btn-outline:hover { background: var(--violet-600); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 190px;
  transition: transform .18s, border-color .18s, background .18s;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); border-color: #fff; background: #0b0b0b; }
.store-btn .icon { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; display: block; }
.store-btn small { display: block; font-size: .72rem; line-height: 1.1; opacity: .85; font-weight: 500; }
.store-btn strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.15; font-weight: 600; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dfe5ff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(91, 57, 224, .55), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(72, 36, 204, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(169, 155, 255, .35) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 40%, #000 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--violet-300); background: rgba(169, 155, 255, .14); border: 1px solid rgba(169, 155, 255, .3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent { color: var(--violet-300); }
.hero .lead { font-size: 1.2rem; color: #cdd5f5; max-width: 38em; margin-bottom: 1.6em; }
.hero-note { margin-top: 18px; font-size: .92rem; color: #a9b4e3; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.stat span.mb { font-size: .88rem; color: #a9b4e3; line-height: 1.35; margin-top: 4px; }

.phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.phones .phone:nth-child(2) { margin-top: 56px; }
.phone {
  width: 100%; max-width: 240px; padding: 7px; border-radius: 34px;
  background: linear-gradient(145deg, #1b2a63, var(--navy-900));
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12);
  box-sizing: border-box;
}
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: top center;
  border-radius: 27px;
  background: #fff;
}
.phone-light { background: linear-gradient(145deg, #1d2d6b, var(--navy-900)); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  color: #cdd5f5;
  background: radial-gradient(800px 400px at 100% 0%, rgba(91, 57, 224, .45), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.section-dark .section-head p { color: #b9c3ee; }
.kicker { display: inline-block; color: var(--violet-600); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.section-dark .kicker { color: var(--violet-300); }

.page-hero {
  color: #cdd5f5; padding: 64px 0 56px;
  background: radial-gradient(800px 380px at 90% 0%, rgba(91, 57, 224, .5), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .4em; }
.page-hero p { max-width: 46em; font-size: 1.15rem; margin: 0; color: #cdd5f5; }
.breadcrumb { font-size: .9rem; margin-bottom: 16px; color: #a9b4e3; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #cdd5f5; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
a.card:hover, .card-link:hover .card { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-300); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--violet-600); }
.card .more .icon { width: 1.1em; height: 1.1em; }
.icon-box {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--violet-50); color: var(--violet-600); border: 1px solid var(--violet-100);
}
.icon-box .icon { width: 28px; height: 28px; }
.icon-box.solid { background: var(--violet-600); color: #fff; border-color: var(--violet-600); }
.icon-box.has-img, .icon-box:has(img) { padding: 6px; overflow: hidden; }
.icon-box img {
  width: 42px; height: 42px; max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  user-select: none; pointer-events: none;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; margin: 0; counter-increment: step; box-shadow: var(--shadow-sm); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--violet-600); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.steps-vertical { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.steps-vertical li { padding-left: 84px; }
.steps-vertical li::before { position: absolute; left: 24px; top: 26px; margin: 0; }

/* ---------- App tour ---------- */
.tour { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; align-items: start; }
.tour figure { margin: 0; text-align: center; }
.tour .phone { margin: 0 auto 18px; max-width: 220px; }
.tour h3 { font-size: 1.1rem; margin-bottom: .25em; }
.tour figcaption p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 22px; box-shadow: var(--shadow-sm); }
.plan.featured { border: 2px solid var(--violet-600); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -14px; right: 20px; background: var(--green); color: #fff; font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; color: var(--navy-900); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.plan .plan-code { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; margin-bottom: 12px; }
.plan .price { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1.85vw, 2.15rem); color: var(--violet-600); line-height: 1.15; word-break: break-word; }
.plan .was { color: var(--muted); text-decoration: line-through; font-size: .92rem; font-weight: 500; margin-left: 4px; display: inline-block; }
.plan .tokens { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--navy-900); margin: 10px 0 4px; }
.plan .per { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); font-size: .94rem; margin-bottom: .45em; }
.plan li .icon { color: var(--green); width: 1.15em; height: 1.15em; margin-top: .2em; flex-shrink: 0; }
.table-badge { display: inline-block; background: #f3efff; color: var(--violet-600); border: 1px solid #d9ccff; font-weight: 700; font-size: .75rem; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.table-was { color: var(--muted); text-decoration: line-through; font-size: .92em; font-weight: 500; margin-right: 6px; display: inline-block; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .98rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--violet-50); color: var(--navy-900); font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- Feature detail blocks ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .95rem;
  background: #fff; color: var(--navy-900); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
}
.chip:hover { border-color: var(--violet-400); color: var(--violet-600); background: var(--violet-50); }
.chip .icon { width: 1.15em; height: 1.15em; color: var(--violet-600); }
.tool { scroll-margin-top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.tool-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.tool-head .icon-box { margin: 0; flex: none; }
.tool-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.tool > p { color: var(--muted); font-size: 1.08rem; max-width: 62em; }
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.tool h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-600); margin-bottom: .6em; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--violet-600); width: 1.2em; height: 1.2em; margin-top: .3em; }
.tool-foot { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.tool-foot .tags { color: var(--muted); font-size: .9rem; }

/* ---------- Split / misc ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .phones { justify-content: center; }
.callout { background: var(--violet-50); border: 1px solid var(--violet-100); border-left: 4px solid var(--violet-600); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--amber-bg); border-color: #f2d98f; border-left-color: #c58a00; }
.use-case { display: flex; gap: 16px; align-items: flex-start; }
.use-case .icon-box { margin: 0; width: 110px; height: 45px; border-radius: 14px; }
.use-case h3 { font-size: 1.1rem; margin-bottom: .2em; }
.use-case p { color: var(--muted); font-size: .98rem; margin: 0; }

.cta-band {
  text-align: center; padding: 72px 0; color: #cdd5f5;
  background: radial-gradient(700px 360px at 50% 0%, rgba(125, 98, 238, .45), transparent 65%), linear-gradient(160deg, var(--navy-950), var(--navy-900));
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 28px; font-size: 1.15rem; }
.cta-band .store-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq h2.faq-group { font-size: 1.5rem; margin: 40px 0 16px; }
.faq h2.faq-group:first-child { margin-top: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--violet-300); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--violet-600); border-bottom: 2px solid var(--violet-600); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: .4em; scroll-margin-top: 96px; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal .toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; margin: 28px 0 8px; }
.legal .toc h2 { font-size: 1.05rem; margin: 0 0 10px; padding: 0; }
.legal .toc ol { columns: 2; column-gap: 32px; margin: 0; }
.legal .toc a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #aab4de; padding: 64px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 46px; width: auto; background: #fff; padding: 8px 14px; border-radius: 12px; display: block; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #aab4de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.55; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--violet-600); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .phones { margin-top: 8px; }
  .grid-4, .tour { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, 
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .plans, .tool-cols { grid-template-columns: 1fr; }
  .tool { padding: 24px 20px; }
  .tool-head { align-items: flex-start; }
  .form-card { padding: 24px 20px; }
  .legal .toc ol { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .steps-vertical li { padding-left: 76px; }
  .tour {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding: 4px 20px 20px;
    margin: 0 -20px; -webkit-overflow-scrolling: touch;
  }
  .tour figure { flex: 0 0 72%; scroll-snap-align: center; }
  .phones .phone:nth-child(2) { margin-top: 36px; }
  .phone { max-width: 190px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}

/* ---------- Small utilities (no inline styles, so a strict CSP works) ---------- */
.cta-row { text-align: center; margin: 36px 0 0; }
.section-head.flush { margin-bottom: 0; }
.link-light { color: #fff; }
.link-light:hover { color: var(--violet-300); }
.price-note { text-align: center; color: var(--muted); margin-top: 24px; font-size: .95rem; }
.callout-narrow { max-width: 860px; margin: 48px auto 0; }
.cta-center { justify-content: center; margin-top: 28px; }

/* ---------- Layout hardening: let grid children shrink instead of overflowing on small screens ---------- */
.hero-grid > *, .split > *, .grid > *, .plans > *, .steps > *, .tool-cols > * { min-width: 0; }
.phone { border-radius: 30px; }
.phone img { border-radius: 23px; }
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .plans, .tool-cols, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { gap: 12px; }
}

/* ==========================================================================
   Motion & interaction effects
   - Everything is progressive: content stays visible without JavaScript.
   - Individual transform properties (translate / rotate) are used for entrance and
     float animations so they never fight with hover transforms.
   - All of it is switched off for visitors who prefer reduced motion.
   ========================================================================== */

/* ----- Dark-section cards (glass style, readable headings) ----- */
.section-dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.section-dark .card p { color: #b9c3ee; }
.section-dark .card:hover { background: rgba(255, 255, 255, .1); border-color: var(--violet-300); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0; translate: 0 32px;
  transition: opacity .7s ease var(--d, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
              transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.reveal.in-view { opacity: 1; translate: 0 0; }
.reveal-left { translate: -40px 0; }
.reveal-right { translate: 40px 0; }

/* ----- Hero entrance + ambient motion ----- */
.hero { isolation: isolate; }
.hero::before, .page-hero::before, .cta-band::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(14px);
  width: 560px; height: 560px; top: -180px; right: 4%;
  background: radial-gradient(circle, rgba(125, 98, 238, .55), rgba(72, 36, 204, 0) 68%);
  animation: drift 16s ease-in-out infinite alternate;
}
.page-hero, .cta-band { position: relative; overflow: hidden; isolation: isolate; }
.page-hero > .container, .cta-band > .container { position: relative; z-index: 1; }
.page-hero::before { width: 420px; height: 420px; top: -160px; right: 2%; opacity: .8; }
.cta-band::before { top: auto; bottom: -260px; right: auto; left: 50%; margin-left: -280px; animation-duration: 12s; }
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(18px);
  width: 380px; height: 380px; left: -120px; bottom: -140px;
  background: radial-gradient(circle, rgba(72, 36, 204, .5), rgba(72, 36, 204, 0) 70%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-60px, 50px, 0) scale(1.15); } }

.hero .eyebrow, .hero h1, .hero .lead, .hero #download, .hero .hero-note, .hero .hero-stats { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .12s; }
.hero .lead { animation-delay: .24s; }
.hero #download { animation-delay: .36s; }
.hero .hero-note { animation-delay: .46s; }
.hero .hero-stats { animation-delay: .56s; }
.hero .eyebrow svg { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.35) rotate(25deg); } }

.hero h1 .accent {
  background: linear-gradient(90deg, #a99bff 0%, #e4deff 45%, #a99bff 90%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--violet-300);
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* floating phones (entrance, then a gentle float; JS adds mouse tilt via --rx / --ry) */
.hero .phones { perspective: 1000px; }
.hero .phone {
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .25s ease-out;
  animation: phoneIn 1s cubic-bezier(.2, .7, .2, 1) .35s both, float 7s ease-in-out 1.4s infinite;
}
.hero .phone:nth-child(2) { animation-delay: .55s, 2.4s; }
@keyframes phoneIn { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* brand "pixels" drifting in the hero (created by JS, echoing the logo mark) */
.px {
  position: absolute; z-index: 0; border-radius: 4px; pointer-events: none; background: var(--violet-400); opacity: .0;
  animation: pxfloat var(--t, 9s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes pxfloat {
  0%, 100% { opacity: 0; transform: translateY(20px) rotate(0); }
  20%, 80% { opacity: var(--o, .5); }
  50% { transform: translateY(-40px) rotate(45deg); }
}

/* ----- Header / progress / back-to-top ----- */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.header-inner { transition: min-height .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 12, 48, .10); }
.site-header.scrolled .header-inner { min-height: 62px; }
.brand img { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.brand:hover img { transform: scale(1.05) rotate(-1deg); }
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet-400), var(--violet-600), var(--navy-700));
}
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--violet-600); color: #fff; box-shadow: 0 10px 24px rgba(72, 36, 204, .45);
  opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .3s, translate .3s, background .2s, transform .2s;
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--violet-700); transform: translateY(-4px); }
.to-top .icon { width: 22px; height: 22px; }

/* nav links: sliding underline */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--violet-600);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ----- Buttons: shine sweep, press, arrow nudge ----- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  translate: -130% 0; transition: translate .7s ease;
}
.btn:hover::after { translate: 130% 0; }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.store-btn { position: relative; overflow: hidden; }
.store-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); translate: -130% 0; transition: translate .7s ease;
}
.store-btn:hover::after { translate: 130% 0; }
.store-btn:hover .icon { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { rotate: -10deg; } 75% { rotate: 10deg; } }

/* ----- Cards: lift, icon pop, arrow slide, accent bar ----- */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--violet-400), var(--violet-600)); transition: transform .35s ease;
}
.card:hover::before, .card-link:focus-visible .card::before { transform: scaleX(1); }
.icon-box { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s, color .25s, box-shadow .25s; }
.card:hover .icon-box { transform: translateY(-3px) rotate(-6deg) scale(1.08); background: var(--violet-600); color: #fff; box-shadow: 0 10px 22px rgba(72, 36, 204, .35); }
.card:hover .icon-box.solid { background: var(--violet-400); border-color: var(--violet-400); }
.card:hover .icon-box.has-img, .card:hover .icon-box:has(img) {
  background: var(--violet-100); border-color: var(--violet-300); box-shadow: 0 10px 22px rgba(72, 36, 204, .25);
}
.card .more .icon { transition: transform .25s ease; }
.card:hover .more .icon { transform: translateX(6px); }
.card-link:focus-visible .card { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-300); }
.card-link { border-radius: var(--radius); }

/* use-cases, chips, steps, plans, tools */
.use-case { padding: 18px; margin: -18px; border-radius: var(--radius); transition: background .25s, transform .25s; }
.use-case:hover { background: var(--violet-50); transform: translateX(6px); }
.use-case:hover .icon-box { transform: rotate(-8deg) scale(1.1); background: var(--violet-600); color: #fff; }
.chip { transition: transform .2s, border-color .2s, color .2s, background .2s, box-shadow .2s; }
.chip:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(72, 36, 204, .18); }
.steps li { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--violet-300); }
.steps li::before { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
/* .steps li:hover::before { transform: scale(1.2) rotate(-8deg); } */
.steps li.in-view::before { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) .2s backwards; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.plan { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--violet-300); }
.plan.featured { animation: glow 3.2s ease-in-out infinite; }
.plan.featured:hover { animation-play-state: paused; border-color: var(--violet-600); }
@keyframes glow { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 8px rgba(72, 36, 204, .10), var(--shadow); } }
.plan .badge { overflow: hidden; }
.plan .badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); translate: -130% 0; animation: badgeshine 3.5s ease-in-out infinite; }
@keyframes badgeshine { 0%, 55% { translate: -130% 0; } 100% { translate: 130% 0; } }
.tool { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.tool:hover { box-shadow: var(--shadow); border-color: var(--violet-300); }
.tool:hover .tool-head .icon-box { transform: rotate(-8deg) scale(1.08); }
.check-list li { transition: transform .2s ease; }
.check-list li:hover { transform: translateX(4px); }

/* app-tour & split phones */
.tour .phone, .split .phone { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
.tour figure:hover .phone, .split .phone:hover { transform: translateY(-12px) rotate(-1.5deg); box-shadow: 0 34px 60px rgba(72, 36, 204, .32); }
.tour figure:nth-child(even):hover .phone { transform: translateY(-12px) rotate(1.5deg); }
.tour figcaption { transition: transform .3s ease; }
.tour figure:hover figcaption { transform: translateY(-4px); }
.split .phones .phone { animation: float 8s ease-in-out infinite; }
.split .phones .phone:nth-child(2) { animation-delay: -4s; }

/* FAQ */
.faq details { transition: border-color .2s, box-shadow .25s, transform .2s; }
.faq details:hover { border-color: var(--violet-300); box-shadow: var(--shadow); }
.faq summary { transition: color .2s, padding-left .25s; }
.faq summary:hover { color: var(--violet-600); padding-left: 28px; }
.faq details[open] .answer { animation: fadeDown .35s ease both; }
@keyframes fadeDown { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }


/* footer */
.site-footer li a { display: inline-block; transition: transform .2s ease, color .2s ease; }
.site-footer li a:hover { transform: translateX(5px); text-decoration: none; }
.footer-brand img { transition: transform .3s ease; }
.footer-brand img:hover { transform: scale(1.04); }

/* 404 */
.notfound .code { animation: float 5s ease-in-out infinite; display: inline-block; }

/* ----- Switch everything off when asked ----- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .hero .phone, .split .phones .phone, .plan.featured, .notfound .code { animation: none !important; }
  .hero::before, .page-hero::before, .cta-band::before, .hero-orb, .px, .scroll-progress { display: none; }
  .btn::after, .store-btn::after, .plan .badge::after { display: none; }
}
@media print {
  .reveal { opacity: 1 !important; translate: none !important; }
  .scroll-progress, .to-top, .px, .hero-orb { display: none !important; }
}
@media (hover: none) {
  .card:hover, .steps li:hover, .plan:hover, .use-case:hover { transform: none; }
}

/* ---------- Contact page ---------- */
.contact-item { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.contact-item .btn { margin-top: auto; }
.contact-item p { margin-bottom: 1em; }
.contact-item:hover .icon-box { transform: translateY(-3px) scale(1.05); }
.contact-big { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.4; color: var(--navy-900); font-style: normal; margin-bottom: .6em; overflow-wrap: anywhere; text-decoration: none; }
a.contact-big { color: var(--violet-600); }
a.contact-big:hover { color: var(--violet-700); text-decoration: underline; }
