/* DocSensei website. One stylesheet for every page. */

@font-face { font-family: "Google Sans Flex"; src: url("../fonts/GoogleSansFlex-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans Flex"; src: url("../fonts/GoogleSansFlex-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Google Sans Flex"; src: url("../fonts/GoogleSansFlex-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Google Sans Flex"; src: url("../fonts/GoogleSansFlex-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --indigo: #4f46e5;
  --indigo-deep: #3730a3;
  --indigo-ink: #312e81;
  --indigo-soft: #eef0ff;
  --indigo-line: #c7d2fe;
  --violet: #7c3aed;
  --band: #ef4444;

  --bg: #fbfbfe;
  --surface: #ffffff;
  --surface-2: #f4f4fb;
  --text: #16151f;
  --text-2: #4b4a5c;
  --text-3: #7a7990;
  --line: #e6e5f0;
  --accent: var(--indigo);
  --accent-text: #4338ca;
  --good: #0f9d58;
  --shadow: 0 1px 2px rgb(22 21 31 / 6%), 0 12px 32px -12px rgb(49 46 129 / 22%);

  --radius: 20px;
  --max: 1160px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c16;
    --surface: #15141f;
    --surface-2: #1c1a2a;
    --text: #f2f1fa;
    --text-2: #c2c0d6;
    --text-3: #8e8ca6;
    --line: #2a2840;
    --indigo-soft: #1e1b3a;
    --indigo-line: #3b3670;
    --accent-text: #a5b4fc;
    --good: #34d399;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--indigo-soft); border: 1px solid var(--indigo-line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 36em; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 4px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }
.menu-btn svg { margin: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 24px -8px rgb(79 70 229 / 60%); }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.play-btn { background: #0b0b12; color: #fff; padding: 10px 20px 10px 16px; border-radius: 14px; gap: 12px; border: 1px solid rgb(255 255 255 / 14%); }
.play-btn:hover { background: #1e1d2b; }
.play-btn .play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-btn small { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.play-btn strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgb(124 58 237 / 18%), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%); opacity: .55; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .accent { background: linear-gradient(90deg, var(--indigo), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 15px; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--good); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone { position: relative; width: 300px; aspect-ratio: 1280 / 2856; border-radius: 44px; padding: 10px; background: #0b0b12; box-shadow: 0 40px 80px -30px rgb(49 46 129 / 55%), 0 0 0 1px rgb(255 255 255 / 6%) inset; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone.back { position: absolute; width: 250px; transform: translate(-128px, 56px) rotate(-7deg); opacity: .96; }
.phone.front { transform: translateX(66px) rotate(3deg); }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; padding: 10px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.float-chip .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.chip-a { left: 0; top: 18%; }
.chip-b { right: -6px; bottom: 16%; }
.chip-a .dot { background: var(--good); }
.chip-b .dot { background: var(--indigo); }

/* Logos/trust strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.strip li { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip strong { display: block; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.strip span { color: var(--text-3); font-size: 14px; font-weight: 500; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature-tag { font-size: 14px; font-weight: 600; color: var(--accent-text); letter-spacing: .02em; margin-bottom: 12px; display: block; }
.feature h3 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.025em; font-weight: 700; }
.feature p { color: var(--text-2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: var(--indigo-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border: 1px solid var(--indigo-line); }
.feature-media { position: relative; display: flex; justify-content: center; padding: 36px 0; }
.feature-media::before { content: ""; position: absolute; inset: 0 6%; border-radius: 32px; background: linear-gradient(160deg, var(--indigo-soft), transparent 75%); border: 1px solid var(--line); }
.feature-media .phone { width: 280px; }

/* Before / after */
.compare { position: relative; width: 300px; aspect-ratio: 1280 / 2856; border-radius: 44px; padding: 10px; background: #0b0b12; box-shadow: 0 40px 80px -30px rgb(49 46 129 / 55%); }
.compare-inner { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; }
.compare-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-inner .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / 35%); pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 16px rgb(0 0 0 / 30%); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.compare-label { position: absolute; top: 72px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; background: rgb(0 0 0 / 55%); padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.compare-label.l { left: 14px; }
.compare-label.r { right: 14px; background: var(--indigo); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--indigo); color: #fff; font-weight: 700; margin-bottom: 20px; }
.steps p { color: var(--text-2); margin: 0; }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.tools li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 500; }
.tools .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.dark .tools .ic { color: #a5b4fc; }

/* Gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 28px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; }
.gallery figure { flex: none; width: 240px; margin: 0; scroll-snap-align: center; }
.gallery img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--text-3); text-align: center; margin-top: 12px; font-weight: 500; }

/* Privacy band */
.band { background: linear-gradient(135deg, var(--indigo-deep), var(--indigo) 55%, var(--violet)); color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; }
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .lede { color: rgb(255 255 255 / 82%); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.band-card { background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 20px; padding: 24px; }
.band-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.band-card p { color: rgb(255 255 255 / 78%); font-size: 15px; margin: 0; }
.band-card svg { margin-bottom: 16px; }
.band a { color: #fff; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin-inline: auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; }
.plan.pro { border: 2px solid var(--indigo); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 34px; background: var(--indigo); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan .sub { color: var(--text-3); font-size: 15px; margin-bottom: 22px; }
.plan .ticks li { font-size: 16px; }
.fine { color: var(--text-3); font-size: 14px; text-align: center; margin-top: 24px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-2); }

/* CTA */
.cta { text-align: center; }
.cta-card { background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: clamp(44px, 7vw, 88px) 24px; box-shadow: var(--shadow); }
.cta-card img.mark { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 16px 40px -14px rgb(79 70 229 / 70%); }
.cta-card .lede { margin-inline: auto; }
.cta-card .hero-actions { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--text-3); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--text); font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* Legal / document pages */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 26px; margin-top: 2.2em; letter-spacing: -0.015em; }
.doc h3 { font-size: 19px; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--text-3); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0 1.6em; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.doc td { color: var(--text-2); }
.callout { background: var(--indigo-soft); border: 1px solid var(--indigo-line); border-radius: 18px; padding: 20px 22px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 28px 0 8px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 10px; background: var(--indigo); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.contact-card { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 1.4em 0; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--indigo); color: #fff; display: grid; place-items: center; flex: none; }
.contact-card strong { display: block; color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .hero-visual { min-height: 520px; margin-top: 12px; }
  .band-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-header.open .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .plans { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { border: 1px solid var(--line); border-radius: 16px; padding: 6px 4px; margin-bottom: 12px; background: var(--surface); }
  .doc td { border: 0; padding: 8px 12px; }
  .doc td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero-visual { min-height: 470px; }
  .phone { width: 236px; border-radius: 36px; padding: 8px; }
  .phone img { border-radius: 28px; }
  .phone.back { width: 196px; transform: translate(-86px, 40px) rotate(-7deg); }
  .phone.front { transform: translateX(44px) rotate(3deg); }
  .feature-media .phone, .compare { width: 236px; }
  .float-chip { font-size: 13px; padding: 8px 12px; }
  .chip-a { left: -4px; }
  .chip-b { right: -4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
}
