/* AimScan website. Matches the app: warm paper greys, graphite, signal orange. */
:root {
  --bg: #f2f2f0;
  --bg-2: #e9e9e6;
  --card: #ffffff;
  --text: #121214;
  --text-2: #55555a;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, .09);
  --accent: #ec4e20;
  --accent-2: #d8431a;
  --accent-tint: rgba(236, 78, 32, .10);
  --paper: #efe6d2;
  --ink: #16181b;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.10);
  --radius: 22px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0d0d0e;
    --card: #161618;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --line: rgba(255, 255, 255, .10);
    --accent: #ff6236;
    --accent-2: #ff7a54;
    --accent-tint: rgba(255, 98, 54, .14);
    --shadow: 0 1px 2px rgba(0,0,0,.5);
    --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: .1em .4em; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-hdr .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); text-decoration: none; }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; border: 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--accent-tint); color: var(--accent); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  background: var(--text); color: var(--bg); border-radius: 14px; padding: 10px 20px 10px 16px;
  transition: transform .15s, opacity .15s;
}
.store:hover { text-decoration: none; transform: translateY(-1px); opacity: .92; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.2; opacity: .75; letter-spacing: .01em; }
.store b { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 750; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; margin-bottom: 30px; }
.hero .meta { margin-top: 18px; color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .meta span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; border-radius: 46px; padding: 10px; background: #0b0b0c;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2c;
}
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--bg-2); }
.phones .phone:nth-child(1) { left: 4%; top: 40px; transform: rotate(-5deg); }
.phones .phone:nth-child(2) { right: 4%; top: 0; transform: rotate(4deg); }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 240px; border-radius: 40px; }
  .phone img { border-radius: 31px; }
}
@media (max-width: 520px) {
  .phones { height: 430px; }
  .phone { width: 190px; padding: 7px; border-radius: 32px; }
  .phone img { border-radius: 26px; }
  .phones .phone:nth-child(1) { left: 0; }
  .phones .phone:nth-child(2) { right: 0; }
}

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div { padding: 26px 12px; text-align: center; }
.strip div + div { border-left: 1px solid var(--line); }
.strip b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.strip span { color: var(--text-2); font-size: 14px; }
@media (max-width: 760px) {
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(3) { border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--card); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 720; }
.section-head p { color: var(--text-2); font-size: 19px; }
@media (max-width: 760px) { section.block { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.alt .step { background: var(--bg); box-shadow: none; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 22px; }
.step p { color: var(--text-2); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.alt .feature { background: var(--bg); box-shadow: none; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.015em; }
.feature p { color: var(--text-2); font-size: 15.5px; margin: 0; }
@media (max-width: 960px) { .features, .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features, .steps { grid-template-columns: 1fr; } }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 110px; }
.showcase.flip .copy { order: 2; }
.showcase h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 720; }
.showcase .copy > p { color: var(--text-2); font-size: 18.5px; }
.showcase .shot { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.showcase .shot .phone { position: relative; width: 280px; }
.showcase .shot .phone + .phone { margin-top: 60px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ec4e20' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks b { font-weight: 600; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase.flip .copy { order: 0; }
  .showcase + .showcase { margin-top: 80px; }
  .showcase .shot .phone { width: 46%; max-width: 260px; padding: 7px; border-radius: 34px; }
  .showcase .shot .phone img { border-radius: 28px; }
}

.orgs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.orgs span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.alt .orgs span { background: var(--bg); }
.center { text-align: center; }
.mt { margin-top: 32px; }

.privacy-card {
  max-width: 920px; margin: 0 auto; border-radius: 32px; padding: 56px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #2a2a2c 0%, #0b0b0c 70%); color: #f5f5f7;
}
.privacy-card h2 { font-size: clamp(30px, 4vw, 44px); }
.privacy-card p { color: #a1a1a6; font-size: 18px; max-width: 620px; margin-inline: auto; }
.privacy-card .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.privacy-card .pills span { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 620px) { .privacy-card { padding: 40px 22px; border-radius: 26px; } }

.price { max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 32px; padding: 44px; text-align: center; box-shadow: var(--shadow); }
.alt .price { background: var(--bg); box-shadow: none; }
.price .big { font-family: var(--font-display); font-size: 54px; font-weight: 750; letter-spacing: -.04em; line-height: 1; margin: 6px 0 12px; }
.price .ticks { text-align: left; max-width: 360px; margin: 26px auto 30px; }
.price .stores { justify-content: center; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.alt .faq details { background: var(--bg); box-shadow: none; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 24px 20px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; }
.cta p { color: var(--text-2); font-size: 19px; }
.cta .stores { justify-content: center; margin-top: 28px; }
.cta img.logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; box-shadow: var(--shadow-lg); }

/* ---------- footer ---------- */
.site-ftr { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; color: var(--text-2); }
.site-ftr .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-ftr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px; }
.site-ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-ftr a { color: var(--text-2); }
.site-ftr a:hover { color: var(--text); }
.site-ftr .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .site-ftr .cols { grid-template-columns: 1fr 1fr; } .site-ftr .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- documents (legal + wiki) ---------- */
.doc-hero { padding: 56px 0 8px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 740; }
.doc-hero p.lede { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--text-2); }
.crumbs span[aria-hidden] { opacity: .6; }
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 21px; margin-top: 1.8em; letter-spacing: -.015em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--text-3); }
.prose strong { font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--text-2); font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.5em; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.table-scroll table { margin: 0; }
.table-scroll th:first-child, .table-scroll td:first-child { padding-left: 18px; }
.note { background: var(--accent-tint); border-radius: 16px; padding: 16px 20px; margin: 0 0 1.4em; }
.note p:last-child { margin: 0; }
.tip { background: var(--card); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.4em; box-shadow: var(--shadow); }
.tip p:last-child { margin: 0; }
.figure { margin: 1.5em 0 2em; display: flex; gap: 18px; flex-wrap: wrap; }
.figure .phone { position: relative; width: 240px; padding: 8px; border-radius: 38px; }
.figure .phone img { border-radius: 31px; }
.figure figcaption { width: 100%; color: var(--text-3); font-size: 14px; }
.formula { font-family: var(--mono); font-size: 15px; background: var(--card); border-radius: 12px; padding: 14px 18px; overflow-x: auto; box-shadow: var(--shadow); margin: 0 0 1.4em; }
.updated { color: var(--text-3); font-size: 14px; }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 32px 20px 96px; }
.doc-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
.doc-side h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 10px 12px; }
.doc-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-side a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.doc-side a:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.doc-side a[aria-current] { background: var(--accent-tint); color: var(--accent); }
.doc-main { min-width: 0; }
.doc-main .doc-hero { padding-top: 8px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; max-width: 760px; }
.pager a { background: var(--card); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); color: var(--text); }
.pager a:hover { text-decoration: none; outline: 2px solid var(--accent-tint); }
.pager small { display: block; color: var(--text-3); font-size: 13px; }
.pager b { font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
.wiki-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; margin-top: 28px; }
.wiki-grid a { background: var(--card); border-radius: 18px; padding: 22px 22px; box-shadow: var(--shadow); color: var(--text); display: block; }
.wiki-grid a:hover { text-decoration: none; outline: 2px solid var(--accent-tint); }
.wiki-grid b { display: block; font-size: 18px; margin-bottom: 4px; letter-spacing: -.015em; }
.wiki-grid span { color: var(--text-2); font-size: 15px; }
.filter { width: 100%; max-width: 420px; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); margin: 0 0 18px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .doc-side { position: static; max-height: none; margin-bottom: 8px; }
  .doc-side details { background: var(--card); border-radius: 14px; padding: 4px 6px; box-shadow: var(--shadow); }
  .doc-side summary { padding: 12px; font-weight: 600; cursor: pointer; }
  .wiki-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .doc-side summary { display: none; } .doc-side details > ol { display: grid; } }

.legal-wrap { padding: 0 20px 96px; }
.legal-wrap .prose { margin: 32px auto 0; max-width: 760px; }
.legal-wrap .doc-hero .wrap { max-width: 800px; padding: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
