/* ============================================================
   PDF Scanner — marketing site stylesheet
   Design language: graphite "darkroom" surface, electric scan-beam
   blue for structure, coral red for action. Hand-written CSS,
   no framework — deliberately unlike the ARDraw site.
   ============================================================ */

:root {
  /* Ink & surfaces (dark-first) */
  --void:      #05070D;
  --bg:        #080B14;
  --surface:   #0E1320;
  --surface-2: #141B2C;
  --raised:    #1A2235;
  --hair:      rgba(140, 170, 255, 0.13);
  --hair-2:    rgba(140, 170, 255, 0.24);

  --text:      #EEF2FB;
  --text-2:    #A9B4CC;
  --text-3:    #6C7893;

  /* Brand */
  --beam:      #2E7BFF;
  --beam-hi:   #6BA8FF;
  --beam-dim:  rgba(46, 123, 255, 0.14);
  --red:       #FF3B30;
  --red-hi:    #FF6257;
  --red-dim:   rgba(255, 59, 48, 0.14);

  /* Tool accent hues, lifted from the app's utility tiles */
  --c-green:  #34C759;
  --c-purple: #AF52DE;
  --c-teal:   #30B0AF;
  --c-orange: #FF9500;
  --c-yellow: #FFCC00;
  --c-indigo: #5856D6;
  --c-pink:   #FF375F;
  --c-brown:  #A2845E;
  --c-slate:  #7C8794;
  --c-cyan:   #32ADE6;
  --c-olive:  #B4B43C;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 36px);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .78, .3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint blueprint grid — the "scanner bed" the whole site sits on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 10%, transparent 72%);
  opacity: .55;
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { padding: clamp(72px, 10vw, 132px) 0; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.028em; font-weight: 700; }

h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h3 { font-size: clamp(21px, 2.4vw, 27px); }

p { margin: 0; }

.lede {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
}

.muted { color: var(--text-3); }

/* Monospaced section label — the site's structural signature. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--beam-hi);
}
.tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beam));
}
.tag.red { color: var(--red-hi); }
.tag.red::before { background: linear-gradient(90deg, transparent, var(--red)); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 18px; }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(0) scale(.98); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 59, 48, .3);
}
.btn-red:hover {
  background: var(--red-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 59, 48, .42);
}

.btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--hair-2);
}
.btn-line:hover {
  border-color: var(--beam);
  color: var(--beam-hi);
  transform: translateY(-2px);
  background: var(--beam-dim);
}

.btn-light { background: #fff; color: #05070D; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }

.btn-store { gap: 13px; padding: 13px 26px; text-align: left; line-height: 1.12; }
.btn-store svg { width: 25px; height: 25px; flex: none; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .68; }
.btn-store b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background .35s var(--ease), backdrop-filter .35s, box-shadow .35s;
}
.nav.stuck {
  background: rgba(8, 11, 20, .92);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: inset 0 -1px 0 var(--hair);
}
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 76px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--hair-2);
}
.brand em { font-style: normal; color: var(--text-3); font-weight: 500; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
}
.nav-links a:hover { color: var(--beam-hi); }

.nav-toggle {
  display: none;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--hair);
  background: rgba(8, 11, 20, .97);
  backdrop-filter: blur(18px);
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap { flex-direction: column; align-items: stretch; gap: 4px; height: auto; padding-block: 16px 22px; }
.mobile-nav a { padding: 11px 0; font-weight: 600; color: var(--text-2); }
.mobile-nav .btn { margin-top: 10px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav .btn-store-top { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(122px, 16vw, 176px);
  padding-bottom: clamp(56px, 8vw, 92px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  width: min(1200px, 130vw); height: 760px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(46,123,255,.26), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(255,59,48,.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.hero h1 { margin-top: 22px; }
/* On narrow screens let the headline flow instead of breaking mid-phrase. */
@media (max-width: 620px) { .hero h1 br { display: none; } }
.hero h1 .beam {
  background: linear-gradient(96deg, var(--beam-hi), var(--beam) 45%, var(--red-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-top: 22px; max-width: 47ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--beam); flex: none; }

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
}

/* ---------- Phone mockups ---------- */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 580px;
}
.phone {
  position: relative;
  width: 258px;
  padding: 7px;
  border-radius: 44px;
  background: linear-gradient(168deg, #39435C, #0A0E18 62%);
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 40px 90px rgba(0,0,0,.7),
    0 0 0 1px rgba(140,170,255,.09);
}
/* Natural sizing: the intrinsic 736x1600 ratio governs, so the shot can
   never be stretched or cropped. */
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
}

.phone-alt {
  position: absolute;
  right: 2%; bottom: 54px;
  width: 202px;
  border-radius: 38px;
  transform: rotate(6.5deg);
  z-index: -1;
  opacity: .8;
  filter: brightness(.86) saturate(.92);
}
.phone-alt img { border-radius: 32px; }
.row-media .phone { width: 240px; }

/* The scan beam sweeping across the hero device. */
.phone .beam-line {
  position: absolute;
  left: 7px; right: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--beam-hi), transparent);
  box-shadow: 0 0 18px 4px rgba(46,123,255,.65);
  animation: sweep 4.2s var(--ease) infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes sweep {
  0%, 100% { top: 12%; opacity: 0; }
  10%      { opacity: 1; }
  85%      { opacity: 1; }
  92%      { top: 92%; opacity: 0; }
}

@media (max-width: 940px) { .phones { min-height: 540px; margin-top: 20px; } }
@media (max-width: 520px) {
  .phone { width: 232px; }
  .phone-alt { display: none; }
}

/* ---------- Metric bar ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.metric {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--hair);
}
.metric:last-child { border-right: 0; }
.metric b {
  display: block;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--beam-hi);
}
.metric span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 680px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-2) 40%, transparent);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--hair-2);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 11px; }
.card p { font-size: 15.5px; line-height: 1.62; color: var(--text-2); }

.ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: var(--raised);
  border: 1px solid var(--hair-2);
  color: var(--accent, var(--beam-hi));
}
.ico svg { width: 25px; height: 25px; }

/* ---------- Feature rows ---------- */

.rows { display: grid; gap: clamp(64px, 9vw, 116px); }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}
.row.flip .row-media { order: -1; }
.row-media { display: flex; justify-content: center; }

.row h2 { margin-top: 18px; font-size: clamp(27px, 3.4vw, 40px); }
.row p { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--text-2); max-width: 48ch; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: 15.5px; line-height: 1.5; color: var(--text-2);
}
.ticks svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--beam); }

@media (max-width: 900px) {
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip .row-media { order: 0; }
}

/* ---------- Tool matrix ---------- */

.toolset + .toolset { margin-top: 38px; }
.toolset > h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--hair);
}
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
}
.tool {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.tool:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--beam));
  background: var(--surface-2);
}
.tool .ico {
  margin: 0 auto 13px;
  width: 46px; height: 46px;
  border-radius: 13px;
}
.tool .ico svg { width: 23px; height: 23px; }
.tool b { display: block; font-size: 14.5px; font-weight: 650; }
.tool span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }

/* ---------- Privacy band ---------- */

.band {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--void) 100%);
  border-block: 1px solid var(--hair);
}
.band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}
.pledges { display: grid; gap: 16px; }
.pledge {
  display: flex; gap: 17px; align-items: flex-start;
  background: rgba(20, 27, 44, .7);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.pledge .ico { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.pledge .ico svg { width: 21px; height: 21px; }
.pledge b { display: block; font-size: 16px; margin-bottom: 5px; }
.pledge p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 30px 28px;
}
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--beam);
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* ---------- FAQ ---------- */

.faq { max-width: 840px; margin-inline: auto; }
details {
  border-bottom: 1px solid var(--hair);
  background: transparent;
}
details:first-of-type { border-top: 1px solid var(--hair); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color .2s;
}
summary:hover { color: var(--beam-hi); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 13px; height: 13px;
  flex: none;
  position: relative;
  background:
    linear-gradient(var(--beam), var(--beam)) center/13px 1.8px no-repeat,
    linear-gradient(var(--beam), var(--beam)) center/1.8px 13px no-repeat;
  transition: transform .28s var(--ease);
}
details[open] summary::after { transform: rotate(135deg); }
details > p, details > div { padding: 0 4px 24px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); max-width: 74ch; }

/* ---------- Prose (legal & guide pages) ---------- */

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 52px; }
.prose h3 { font-size: 20px; margin-top: 34px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.prose p { margin-top: 16px; }
.prose ul, .prose ol { margin-top: 16px; padding-left: 22px; display: grid; gap: 9px; }
.prose a { color: var(--beam-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--hair); padding: 12px 14px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 650; color: var(--text); }
.prose td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }

.page-head {
  padding-top: clamp(120px, 15vw, 168px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.page-head .wrap { max-width: 860px; }
.page-head h1 { font-size: clamp(32px, 5vw, 54px); margin-top: 18px; }
.page-head .lede { margin-top: 18px; }
.page-head .stamp {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-3);
}

.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--beam-hi); }

.callout {
  margin-top: 28px;
  border: 1px solid var(--hair-2);
  border-left: 3px solid var(--beam);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 20px 24px;
}
.callout p { margin-top: 0; }

/* ---------- CTA ---------- */

.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(46,123,255,.28), transparent 62%),
    var(--surface);
  padding: clamp(50px, 7vw, 86px) var(--pad);
  text-align: center;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--beam), var(--red), transparent);
  opacity: .8;
}
.cta-box p { margin: 18px auto 0; max-width: 50ch; color: var(--text-2); font-size: clamp(16px, 1.9vw, 19px); }
.cta-box .btn { margin-top: 32px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hair);
  background: var(--void);
  padding-top: 62px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.foot-grid a:hover { color: var(--beam-hi); }
.foot-about { font-size: 14.5px; color: var(--text-2); margin-top: 18px; max-width: 40ch; line-height: 1.65; }
.foot-legal { margin-top: 22px; font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.foot-bar {
  border-top: 1px solid var(--hair);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone .beam-line { animation: none; opacity: 0; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:focus-visible { outline: 2px solid var(--beam-hi); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 20px; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  transition: transform .28s var(--ease), border-color .28s, background .28s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--hair-2); background: var(--surface-2); }

.plan.featured {
  border-color: rgba(46, 123, 255, .55);
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(46,123,255,.16), transparent 62%),
    var(--surface);
}
.plan.featured::before {
  content: "Best value";
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--beam);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
}
.plan-price b {
  font-size: clamp(30px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}
.plan-price span { font-size: 14px; color: var(--text-3); }

.plan-trial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  align-self: flex-start;
  background: var(--beam-dim);
  border: 1px solid rgba(46,123,255,.3);
  color: var(--beam-hi);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-trial svg { width: 13px; height: 13px; }
.plan-trial.none {
  background: transparent;
  border-color: var(--hair);
  color: var(--text-3);
  font-weight: 500;
}

.plan-note {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}
.plan-id {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--text-3);
  word-break: break-all;
}
.plan .btn { margin-top: 18px; width: 100%; }

.plans-note {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 74ch;
}
.plans-note a { color: var(--beam-hi); }

/* ============================================================
   Legal documents (privacy, terms)
   Deliberately separated from the marketing layout: a plain,
   readable document with minimal chrome, because App Store review
   and users in a hurry both land here directly.
   ============================================================ */

.doc {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(104px, 13vw, 140px) var(--pad) clamp(72px, 9vw, 104px);
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-3);
  transition: color .2s;
}
.doc-back:hover { color: var(--beam-hi); }

.doc h1 {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 44px);
}

.doc-dates {
  margin-top: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--text-3);
}

.doc-intro {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}
.doc-intro + .doc-intro { margin-top: 14px; }

.doc h2 {
  margin-top: 46px;
  font-size: clamp(20px, 2.4vw, 24px);
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.doc h3 { margin-top: 28px; font-size: 17.5px; }

.doc p  { margin-top: 15px; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.doc li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.doc ul, .doc ol { margin-top: 15px; padding-left: 22px; display: grid; gap: 9px; }
.doc a { color: var(--beam-hi); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--text); font-weight: 650; }

.doc table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--hair); padding: 11px 13px; text-align: left; }
.doc th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.doc td { color: var(--text-2); }

/* Identity block — the data controller's legal name, registered address and
   contact route, each on its own labelled row so it can be read at a glance
   and quoted verbatim by a regulator or an App Store reviewer. */
.legal-id {
  margin-top: 20px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.legal-id div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--hair);
}
.legal-id div:last-child { border-bottom: 0; }
.legal-id dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 2px;
}
.legal-id dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.legal-id dd a { color: var(--beam-hi); }
@media (max-width: 620px) {
  .legal-id div { grid-template-columns: 1fr; gap: 6px; }
}

.doc-note {
  margin-top: 26px;
  border: 1px solid var(--hair-2);
  border-left: 3px solid var(--beam);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px 22px;
}
.doc-note p { margin-top: 0; }

.doc-foot {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 14.5px;
}
.doc-foot a { color: var(--text-2); text-decoration: none; }
.doc-foot a:hover { color: var(--beam-hi); }
