/* My Scanner website. Colors match the app's design tokens. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #152536;
  --navy-2: #1d3247;
  --teal: #2cb8a5;
  --teal-text: #1c7a6e;
  --teal-tint: #e3f5f2;
  --mist: #f5f8f8;
  --surface: #ffffff;
  --ink: #182126;
  --slate: #5e6c73;
  --line: #dce3e5;
  --divider: #e8edee;
  --paper: #f4f1ea;
  --on-navy-muted: #b7c4c9;
  --radius-lg: 20px;
  --radius-md: 12px;
  --max: 1120px;
  --text: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(245, 248, 248, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--divider); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--divider); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal-text); background: var(--teal-tint); }
@media (max-width: 720px) {
  .nav a.optional { display: none; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #26a493; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--slate); color: var(--ink); }
.store-badge { display: inline-flex; line-height: 0; }
.store-badge img { display: block; height: 40px; width: auto; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .now { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--teal-text); }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 750; margin: 0 0 22px; max-width: 11ch; }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--slate); max-width: 32ch; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: center; max-width: 420px; }
}

/* Hero illustration: a skewed photo of a page, cleared into a straight page by the teal line */
.scene { position: absolute; inset: 0; }
.scene .before, .scene .after { position: absolute; inset: 0; }
.scene .after { clip-path: polygon(100% 0, 100% 100%, 100% 100%, 100% 0); }
.hero-art.ready .scene .after { clip-path: polygon(78.5% 0, 100% 0, 100% 100%, 25.2% 100%); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1) .35s; }
.scene .line { position: absolute; inset: 0; opacity: 0; transform: translateX(42%); }
.hero-art.ready .scene .line { opacity: 1; transform: translateX(0); transition: transform 1.1s cubic-bezier(.65,0,.35,1) .35s, opacity .2s .35s; }
@media (prefers-reduced-motion: reduce) {
  .scene .after { clip-path: polygon(78.5% 0, 100% 0, 100% 100%, 25.2% 100%); }
  .scene .line { opacity: 1; transform: none; }
  .hero-art.ready .scene .after, .hero-art.ready .scene .line { transition: none; }
}

/* Promise band */
.promise { background: var(--navy); color: #fff; padding: 88px 0; }
.promise h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 48px; max-width: 18ch; font-weight: 700; }
.promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.promise-list li { border-top: 2px solid var(--teal); padding-top: 20px; }
.promise-list h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.promise-list p { margin: 0; color: var(--on-navy-muted); font-size: 16px; }
@media (max-width: 820px) { .promise-list { grid-template-columns: 1fr; gap: 28px; } }

/* Sections */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 14px; font-weight: 700; }
.section .intro { color: var(--slate); font-size: 18px; max-width: 52ch; margin: 0 0 48px; }

/* Feature groups */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 26px 30px; box-shadow: 0 1px 2px rgba(21, 37, 54, .05), 0 6px 20px rgba(21, 37, 54, .05); }
.group.pro { background: var(--navy); color: #fff; }
.group header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.group h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--teal); color: var(--navy); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.group li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.45; }
.group li svg { margin-top: 2px; }
.group.pro li { color: #e7eef0; }
.groups.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group.soon { box-shadow: none; border: 1px dashed rgba(21, 37, 54, .2); background: transparent; }
.group.soon h3 { font-size: 20px; color: var(--slate); }
.group.soon .tag { background: transparent; border: 1px solid var(--slate); color: var(--slate); white-space: nowrap; margin-left: 12px; }
.group.soon p { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.45; }
@media (max-width: 920px) { .groups, .groups.two { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
.plan { border-radius: var(--radius-lg); padding: 30px 28px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.plan.pro { box-shadow: inset 0 0 0 2px var(--teal); }
.plan h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.plan .sub { margin: 0 0 20px; color: var(--slate); font-size: 15px; }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.plan .note { margin: 20px 0 0; font-size: 14px; color: var(--slate); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* CTA band */
.cta { padding: 0 0 96px; }
.cta .box { background: var(--teal-tint); border-radius: 28px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.1; }
.cta p { margin: 0; color: var(--slate); }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 40px 0 48px; font-size: 15px; color: var(--slate); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Document pages (legal, FAQ, contact) */
.doc-hero { padding: 56px 0 24px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 12px; font-weight: 750; }
.doc-hero p { color: var(--slate); margin: 0; max-width: 60ch; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 32px 20px 96px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc p { font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--slate); text-decoration: none; }
.toc a:hover { color: var(--teal-text); }
.prose { max-width: var(--text); background: var(--surface); border-radius: var(--radius-lg); padding: 44px 48px; box-shadow: 0 1px 2px rgba(21, 37, 54, .05), 0 6px 20px rgba(21, 37, 54, .05); }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: #2b363c; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .callout { background: var(--teal-tint); border-radius: var(--radius-md); padding: 18px 20px; margin: 0 0 28px; color: var(--ink); }
.prose .callout p { margin: 0; color: var(--ink); }
@media (max-width: 880px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .prose { padding: 28px 22px; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--surface); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--divider); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; color: #2b363c; }
.faq .answer p { margin: 0 0 10px; }
.faq h2 { font-size: 20px; margin: 32px 0 4px; letter-spacing: -0.01em; }
.faq h2:first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 96px; }
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: inset 0 0 0 1px var(--divider); display: flex; flex-direction: column; gap: 10px; }
.contact-card.main { background: var(--navy); color: #fff; box-shadow: none; }
.contact-card.main p { color: var(--on-navy-muted); }
.contact-card h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.contact-card p { margin: 0; color: var(--slate); font-size: 16px; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.contact-card.main a.email { color: #fff; font-weight: 600; word-break: break-all; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.group .card-text { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.45; }
.promo-banner { background: var(--teal-tint); border-bottom: 1px solid var(--divider); }
.promo-banner[hidden] { display: none; }
.promo-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.promo-banner p { margin: 0; font-size: 15px; color: var(--ink); }
.promo-banner .store-badge img { height: 32px; }

/* Why My Scanner: bento highlights */
.highlights { padding-bottom: 24px; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 37, 54, .08); }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-text); margin-bottom: 16px; }
.tile h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.tile h3 .tag { margin-left: 6px; vertical-align: middle; }
.tile p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--slate); }
.tile-lg { grid-column: span 2; grid-row: span 2; background: var(--navy); border-color: var(--navy); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; border-top: 3px solid var(--teal); }
.tile-lg .tile-icon { background: rgba(44, 184, 165, .18); color: var(--teal); }
.tile-lg h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.tile-lg p { color: var(--on-navy-muted); font-size: 17px; }
.tile-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile-checks li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #e7eef0; }
.tile-checks svg { width: 18px; height: 18px; flex: none; }
.pills { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.pill { font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; }
.pill-new { background: var(--teal); color: var(--navy); }
.pill-free { background: var(--teal-tint); color: var(--teal-text); border: 1px solid var(--teal); padding: 4px 8px; }
.free-strip { margin: 0 0 24px; padding: 12px 16px; background: var(--teal-tint); border-radius: var(--radius-md); color: var(--teal-text); font-weight: 600; font-size: 16px; }
@media (max-width: 719px) {
  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-column: auto; grid-row: auto; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
