/* ==========================================================
   Picture2Mobile (P2M) – Launch Website Styles
   Brand: Navy #2E3F75 · Orange #F7A21E · Violet #5B00E6
   ========================================================== */

:root {
  --navy: #2e3f75;
  --navy-dark: #1f2b55;
  --navy-light: #4a5c96;
  --orange: #f7a21e;
  --orange-soft: #fde6bf;
  --violet: #5b00e6;
  --violet-soft: #eee8ff;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #141a2e;
  --muted: #5d6680;
  --border: #e3e6ef;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(31, 43, 85, 0.35);
  --max: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(46, 63, 117, 0.97);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-logo {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 4px 10px;
}

.brand-mark {
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -1px;
  border-radius: 10px;
  padding: 4px 9px;
  font-size: 1.05rem;
}

.brand-mark span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links .nav-cta {
  background: var(--orange);
  color: var(--navy-dark);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: #ffb43f;
  color: var(--navy-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.menu-toggle svg {
  margin: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-dark);
  box-shadow: 0 12px 26px -12px rgba(247, 162, 30, .8);
}

.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(91, 0, 230, .7);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d1226;
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  min-width: 170px;
  transition: transform .15s;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge small {
  display: block;
  font-size: .68rem;
  opacity: .75;
  line-height: 1.1;
}

.store-badge strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 48px 48px;
  padding: 72px 0 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 162, 30, .22), transparent 65%);
  right: -120px;
  top: -140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .8);
  margin: 20px 0 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--orange);
}

.hero-stats span {
  font-size: .88rem;
  color: rgba(255, 255, 255, .7);
}

/* ---------- Phone mockup (built in HTML/CSS) ---------- */
.phone {
  width: 300px;
  margin-inline: auto;
  background: #0d1226;
  padding: 12px;
  border-radius: 44px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.phone-screen {
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
}

.ps-top {
  background: var(--navy);
  color: #fff;
  padding: 22px 18px 54px;
  border-radius: 0 0 26px 26px;
}

.ps-top h4 {
  font-size: 17px;
  margin-bottom: 12px;
}

.ps-search {
  background: rgba(255, 255, 255, .25);
  border-radius: 12px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
}

.ps-storage {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 6px;
  font-size: 10.5px;
  opacity: .85;
}

.ps-bar {
  height: 5px;
  background: rgba(255, 255, 255, .25);
  border-radius: 9px;
}

.ps-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--orange);
  border-radius: 9px;
}

.ps-scan {
  margin: -36px 14px 0;
  background: var(--orange);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  box-shadow: 0 10px 20px -10px rgba(247, 162, 30, .9);
}

.ps-scan .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .3);
  display: grid;
  place-items: center;
}

.ps-scan b {
  display: block;
  font-size: 13px;
}

.ps-scan small {
  font-size: 10px;
  opacity: .9;
}

.ps-files {
  padding: 14px 16px 22px;
}

.ps-files h5 {
  font-size: 12.5px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.ps-files h5 span {
  color: var(--navy);
  font-weight: 600;
}

.ps-file {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.ps-file .pdf {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fde9e9;
  color: #d13a3a;
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ps-file b {
  display: block;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.ps-file small {
  color: var(--muted);
  font-size: 9.5px;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-head .tag {
  display: inline-block;
  background: var(--orange-soft);
  color: #9a5b00;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--navy-dark);
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  margin: 18px 0 8px;
  color: var(--navy-dark);
}

.card p {
  color: var(--muted);
  font-size: .97rem;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #e8ecf8;
  color: var(--navy);
}

.icon-box.orange {
  background: var(--orange-soft);
  color: #b56a00;
}

.icon-box.violet {
  background: var(--violet-soft);
  color: var(--violet);
}

/* Smart name demo */
.name-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.name-demo h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--navy-dark);
  line-height: 1.2;
}

.name-demo p {
  color: var(--muted);
  margin: 16px 0 24px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.name-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.name-card .label {
  font-size: .75rem;
  letter-spacing: .12em;
  color: #8a93ad;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip {
  background: var(--violet-soft);
  color: var(--violet);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: .86rem;
  word-break: break-all;
}

.name-field {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 22px;
}

.name-opt {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 10px;
}

.name-opt.selected {
  border: 2px solid #6b6fe8;
  background: #f2f3ff;
}

.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.token {
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef1f8;
  color: var(--navy);
  font-weight: 500;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 1.08rem;
  color: var(--navy-dark);
}

.step p {
  color: var(--muted);
  font-size: .94rem;
}

/* Detailed steps (How it works page) */
.flow {
  display: grid;
  gap: 28px;
}

.flow-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
}

.flow-num {
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: var(--navy);
  color: var(--orange);
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.flow-item h3 {
  font-size: 1.35rem;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.flow-item p {
  color: var(--muted);
}

.flow-item ul {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

/* Use cases */
.use-case {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.use-case .icon-box {
  flex-shrink: 0;
}

.use-case h3 {
  margin: 0 0 4px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: 36px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(247, 162, 30, .18);
  right: -80px;
  bottom: -120px;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.2;
}

.cta-band p {
  color: rgba(255, 255, 255, .8);
  margin-top: 12px;
}

.cta-band .store-badges {
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
  transition: transform .2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  margin-top: 12px;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 84px;
  border-radius: 0 0 48px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -.5px;
}

.page-hero p {
  color: rgba(255, 255, 255, .78);
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 1.08rem;
}

.crumbs {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
}

.crumbs a:hover {
  color: var(--orange);
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-split h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-split p {
  color: var(--muted);
  margin-bottom: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
}

.stat strong {
  font-size: 2rem;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: .92rem;
}

.stat.accent {
  background: var(--orange);
  border-color: var(--orange);
}

.stat.accent strong,
.stat.accent span {
  color: var(--navy-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-grid>*,
.info-item>div {
  min-width: 0;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.info-item small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.info-item b {
  color: var(--navy-dark);
  word-break: break-word;
}

.form-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-card h2 {
  color: var(--navy-dark);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-card>p {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 500;
  font-size: .9rem;
  color: var(--navy-dark);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: .97rem;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fafbfd;
  color: var(--text);
  transition: border .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(46, 63, 117, .12);
  background: #fff;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field .error {
  color: #c62828;
  font-size: .8rem;
  min-height: 1em;
}

.form-success {
  display: none;
  background: #e8f6ee;
  color: #1b6b3f;
  border: 1px solid #bfe5cf;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* Privacy policy */
.policy {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}

.policy-toc h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a93ad;
  margin-bottom: 10px;
}

.policy-toc ol {
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: .9rem;
}

.policy-toc a {
  color: var(--muted);
}

.policy-toc a:hover {
  color: var(--navy);
}

.policy-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px;
}

.policy-body h2 {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin: 34px 0 10px;
  scroll-margin-top: 96px;
}

.policy-body h2:first-of-type {
  margin-top: 0;
}

.policy-body p,
.policy-body li {
  color: #3e4660;
}

.policy-body p {
  margin-bottom: 12px;
}

.policy-body ul {
  padding-left: 22px;
  margin-bottom: 12px;
  display: grid;
  gap: 6px;
}

.policy-meta {
  display: inline-block;
  background: var(--orange-soft);
  color: #8a5200;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .75);
  padding: 64px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: .94rem;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-about p {
  margin-top: 14px;
  font-size: .94rem;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .86rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {

  .hero-grid,
  .name-demo,
  .about-split,
  .contact-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .policy {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
  }

  .cta-band .store-badges {
    justify-content: flex-start;
  }

  .hero {
    padding-bottom: 72px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 12px 16px 20px;
    gap: 4px;
    display: none;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .5);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    line-height: 35px;
  }

  section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-2,
  .steps,
  .form-row,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .flow-item {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .flow-num {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    border-radius: 18px;
  }

  .cta-band {
    padding: 36px 24px;
    border-radius: 28px;
  }

  .policy-body,
  .form-card {
    padding: 26px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 270px;
  }

  .hero,
  .page-hero {
    border-radius: 0 0 32px 32px;
  }
}

/* ==========================================================
   v2 – Focus: PDF generation + AI naming
   ========================================================== */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .78rem;
  background: linear-gradient(90deg, var(--violet), #8b3dff);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
}

.hero h1 .ai {
  background: linear-gradient(90deg, #ffb43f, #ffd27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Phone mockup – Document Preview screen */
.pv {
  padding: 18px 16px 20px;
}

.pv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pv-head b {
  font-size: 15px;
  color: var(--navy-dark);
}

.pv-head span {
  font-size: 10px;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 600;
}

.pv-label {
  font-size: 9px;
  letter-spacing: .1em;
  color: #8a93ad;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 6px;
}

.pv-field {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  line-height: 1.45;
  word-break: break-all;
  color: var(--text);
}

.pv-opt {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  line-height: 1.45;
  word-break: break-all;
  margin-top: 6px;
  color: var(--text);
}

.pv-opt.sel {
  border: 1.5px solid #6b6fe8;
  background: #f2f3ff;
}

.pv-doc {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pv-thumb {
  width: 46px;
  height: 60px;
  border-radius: 4px;
  background: linear-gradient(#d9dce4 0 12%, #f3f4f7 12% 20%, #d9dce4 20% 24%, #f3f4f7 24% 40%, #e3e6ec 40% 44%, #f3f4f7 44% 52%, #e3e6ec 52% 56%, #f3f4f7 56% 100%);
  border: 1px solid #ccd0da;
  flex-shrink: 0;
}

.pv-doc small {
  font-size: 9.5px;
  color: var(--muted);
}

.pv-doc b {
  font-size: 11px;
  display: block;
  color: var(--navy-dark);
}

.pv-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.pv-btns span {
  text-align: center;
  border-radius: 12px;
  padding: 9px;
  font-size: 11px;
  font-weight: 700;
}

.pv-btns .a {
  border: 1.5px solid #cfc8f5;
  color: var(--navy-dark);
}

.pv-btns .b {
  background: var(--violet);
  color: #fff;
}

.float-tag {
  position: absolute;
  background: #fff;
  color: var(--navy-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45);
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.float-tag.t1 {
  top: 70px;
  left: -10px;
}

.float-tag.t2 {
  bottom: 70px;
  right: -10px;
}

.float-tag i {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

/* Two pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pillar {
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.pillar.pdf {
  background: var(--orange);
  color: var(--navy-dark);
}

.pillar.ai {
  background: linear-gradient(135deg, #3b1b9e, var(--violet));
  color: #fff;
}

.pillar .num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}

.pillar h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 10px 0 12px;
}

.pillar p {
  opacity: .88;
  margin-bottom: 20px;
}

.pillar ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.pillar li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.pillar li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  margin-top: 2px;
}

.pillar.pdf li::before {
  background: var(--navy-dark);
  color: var(--orange);
}

.pillar.ai li::before {
  background: #fff;
  color: var(--violet);
}

.pillar .big-ic {
  position: absolute;
  right: -20px;
  top: -20px;
  opacity: .14;
}

/* Before / after */
.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.ba-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
}

.ba-box h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a93ad;
  margin-bottom: 14px;
}

.ba-file {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.ba-file:last-child {
  border-bottom: 0;
}

.ba-file .pdf {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fde9e9;
  color: #d13a3a;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ba-file .mono {
  font-size: .8rem;
}

.ba-box.bad .mono {
  color: #9aa0b3;
}

.ba-box.good {
  border: 2px solid #b9a6ff;
  background: #fbfaff;
}

.ba-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -10px rgba(91, 0, 230, .8);
}

/* Live AI demo */
.demo {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.demo-pick {
  display: grid;
  gap: 12px;
  align-content: start;
}

.demo-pick button {
  font-family: inherit;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: border .2s, box-shadow .2s;
}

.demo-pick button:hover {
  border-color: #b9a6ff;
}

.demo-pick button[aria-pressed="true"] {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(91, 0, 230, .1);
}

.demo-pick b {
  display: block;
  color: var(--navy-dark);
  font-size: .95rem;
}

.demo-pick small {
  color: var(--muted);
  font-size: .82rem;
}

.demo-pick .flag {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef1f8;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.demo-panel {
  background: #12183a;
  color: #e7e9f5;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
}

.demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-panel .lbl {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d95c2;
  font-weight: 600;
}

.demo-before {
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem;
  color: #8d95c2;
  text-decoration: line-through;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fld {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 9px 12px;
  opacity: .35;
  transition: opacity .3s, border .3s, background .3s;
}

.fld small {
  display: block;
  font-size: .7rem;
  color: #8d95c2;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fld span {
  font-family: "JetBrains Mono", monospace;
  font-size: .82rem;
  color: #fff;
}

.fld.on {
  opacity: 1;
  border-color: rgba(185, 166, 255, .6);
  background: rgba(139, 61, 255, .18);
}

.demo-out {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: .86rem;
  word-break: break-all;
  min-height: 52px;
}

.demo-out .cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--violet);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.demo-status {
  font-size: .85rem;
  color: #b9a6ff;
  min-height: 1.3em;
}

/* Supporting features (secondary) */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.mini h3 {
  font-size: 1rem;
  color: var(--navy-dark);
  margin: 12px 0 4px;
}

.mini p {
  color: var(--muted);
  font-size: .9rem;
}

.mini .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

/* AI fields table */
.ai-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ai-table th,
.ai-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}

.ai-table th {
  background: #f0f2f8;
  color: var(--navy-dark);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-table td:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem;
  color: var(--violet);
}

.ai-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
}

.part-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 22px;
}

.part-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-dark);
}

.part-title .pill {
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.pill.pdf {
  background: var(--orange);
  color: var(--navy-dark);
}

.pill.ai {
  background: var(--violet);
  color: #fff;
}

.flow-item.ai-step .flow-num {
  background: var(--violet);
  color: #fff;
}

@media (max-width: 980px) {

  .pillars,
  .demo {
    grid-template-columns: 1fr;
  }

  .ba {
    grid-template-columns: 1fr;
  }

  .ba-arrow {
    margin: auto;
    transform: rotate(90deg);
  }

  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .float-tag.t1 {
    left: 0;
  }

  .float-tag.t2 {
    right: 0;
  }
}

@media (max-width: 760px) {
  .pillar {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .fields,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .demo-panel {
    padding: 22px 18px;
  }

  .float-tag {
    display: none;
  }
}

.form-row>.field {
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
}

.demo-pick button#demo-run {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  font-weight: 600;
  justify-content: center;
}

.demo-pick button#demo-run:hover {
  background: #6d1cff;
}

.float-tag.t1 {
  top: 40px;
  left: -60px;
}

.float-tag.t2 {
  bottom: 40px;
  right: -50px;
}

@media (max-width: 980px) {
  .float-tag.t1 {
    left: 0;
  }

  .float-tag.t2 {
    right: 0;
  }
}

/* ==========================================================
   v3 – Monthly subscription + download (below hero)
   ========================================================== */
.subscribe {
  padding: 88px 0 40px;
}

.sub-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

/* Phones */
.sub-phones {
  position: relative;
  height: 600px;
}

.sub-phone {
  position: absolute;
  width: 268px;
  padding: 10px;
  border-radius: 40px;
}

.sub-phone .phone-screen {
  border-radius: 31px;
  height: 525px;
  position: relative;
}

#features {
  /* background: #f0eeee;
  margin-bottom: 70px;
  margin-top: 40px; */
}

.sub-phone.back {
  left: 0;
  top: 10px;
  transform: rotate(-5deg);
}

.sub-phone.front {
  right: 0;
  top: 30px;
  transform: rotate(4deg);
  z-index: 2;
}

.md-bar {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: var(--navy-dark);
  padding: 10px 18px 0;
}

/* My Document screen */
.md {
  background: linear-gradient(#c9cfe0 0, #e7e9f1 110px, var(--bg) 200px);
}

.md-title {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 8px 0 10px;
  color: var(--navy);
}

.md-title b {
  font-size: 15px;
  color: #10152b;
}

.md-title svg {
  position: absolute;
  right: 18px;
}

.md-search {
  margin: 0 14px;
  background: #fff;
  border: 1px solid #dfe2ec;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 10.5px;
  color: #7c849c;
  display: flex;
  gap: 8px;
  align-items: center;
}

.md-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 14px 6px;
}

.md-tabs span {
  text-align: center;
  border-radius: 999px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  background: #e9e9ee;
  color: var(--navy);
}

.md-tabs span.on {
  background: var(--navy);
  color: #fff;
}

.md-count {
  font-size: 9.5px;
  color: var(--muted);
  padding: 2px 16px 6px;
}

.md-list {
  display: grid;
  gap: 7px;
  padding: 0 12px;
}

.md-card {
  background: #fff;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 4px 10px -6px rgba(31, 43, 85, .35);
}

.md-ic {
  width: 26px;
  height: 32px;
  border-radius: 3px;
  background: linear-gradient(#f2f2f2 0 62%, #d94141 62%);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.md-txt {
  min-width: 0;
  flex: 1;
}

.md-txt b {
  display: block;
  font-size: 10.5px;
  color: #10152b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-txt small {
  display: block;
  font-size: 8.5px;
  color: var(--muted);
  line-height: 1.4;
}

.md-card i {
  font-style: normal;
  color: #9aa0b3;
  font-size: 12px;
}

.md-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fafbfd;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 12px;
}

.md-nav span {
  text-align: center;
  font-size: 15px;
  color: #9097ad;
  line-height: 1.1;
}

.md-nav small {
  display: block;
  font-size: 7.5px;
  margin-top: 2px;
}

.md-nav span.on {
  color: var(--navy);
  font-weight: 700;
}

/* Document Preview screen */
.dp {
  background: #f2f3f9;
  padding-bottom: 12px;
}

.dp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 4px;
}

.dp-back {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #10152b;
  flex-shrink: 0;
}

.dp-head b {
  display: block;
  font-size: 13px;
  color: #10152b;
  line-height: 1.2;
}

.dp-head small {
  font-size: 8.5px;
  color: #5a6a94;
}

.dp-pages {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 600;
  background: var(--violet-soft);
  color: #3a1a8a;
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.dp-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: .1em;
  font-weight: 700;
  color: #8a93ad;
  padding: 0 14px;
  margin: 9px 0 5px;
}

.dp-chip {
  background: var(--violet-soft);
  color: #3a1a8a;
  letter-spacing: 0;
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 99px;
}

.dp-from {
  letter-spacing: 0;
  font-weight: 500;
  font-size: 8.5px;
}

.dp-field,
.dp-opt {
  margin: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  line-height: 1.45;
  word-break: break-all;
  color: #10152b;
}

.dp-opt {
  margin-top: 5px;
}

.dp-opt.sel {
  border: 1.5px solid #6b6fe8;
  background: #eff0ff;
}

.dp-preview {
  margin: 0 14px;
  background: #fff;
  border-radius: 12px;
  height: 118px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -6px rgba(31, 43, 85, .35);
}

.dp-sheet {
  width: 74px;
  height: 100px;
  background: #e4e6ea;
  border: 1px solid #c9ccd4;
  padding: 8px 7px;
  display: grid;
  gap: 5px;
  align-content: start;
  position: relative;
}

.dp-sheet i {
  display: block;
  height: 3px;
  background: #b5b9c3;
  border-radius: 2px;
}

.dp-sheet i:nth-child(1) {
  width: 45%;
  height: 5px;
}

.dp-sheet i:nth-child(2) {
  width: 35%;
  margin-left: auto;
  background: #e05a5a;
}

.dp-sheet i:nth-child(3) {
  width: 60%;
  margin-top: 6px;
}

.dp-sheet i:nth-child(4) {
  width: 90%;
}

.dp-sheet i:nth-child(5) {
  width: 90%;
}

.dp-sheet i:nth-child(6) {
  width: 70%;
}

.dp-sheet em {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-style: normal;
  font-size: 6px;
  font-weight: 700;
  border: 1px solid #6b6f7a;
  color: #4b4f5a;
  padding: 2px 4px;
  transform: rotate(-6deg);
}

.dp-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 14px 0;
}

.dp-btns span {
  text-align: center;
  padding: 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.dp-btns .a {
  border: 1.5px solid #cfc8f5;
  color: #3a1a8a;
}

.dp-btns .b {
  background: var(--violet);
  color: #fff;
}

/* Subscription content */
.sub-content {
  position: relative;
}

.sub-tag {
  display: inline-block;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 600;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.sub-content h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--navy-dark);
}

.sub-lead {
  color: var(--muted);
  margin: 12px 0 24px;
  font-size: 1.02rem;
}

.price-card {
  background: linear-gradient(150deg, var(--navy-dark), var(--navy) 60%, #3c2c9a);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.price-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(247, 162, 30, .2);
}

.price-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.plan-name {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}

.price .cur {
  font-size: 1.6rem;
  vertical-align: top;
  margin-right: 2px;
  position: relative;
  top: 6px;
}

.price .per {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  letter-spacing: 0;
  margin-left: 6px;
}

.plan-badge {
  background: var(--orange);
  color: var(--navy-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  position: relative;
  z-index: 1;
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
}

.plan-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-dark);
  font-size: .7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.price-btn {
  width: 100%;
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--violet);
  box-shadow: none;
}

.price-btn:hover {
  background: var(--orange);
  color: var(--navy-dark);
}

.plan-note {
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
  text-align: center;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.sub-download {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.sub-dl-note {
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 980px) {
  .sub-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sub-phones {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .subscribe {
    padding: 56px 0 24px;
  }

  .sub-wrap {
    gap: 24px;
  }

  .sub-phones {
    height: 400px;
    max-width: 340px;
  }

  .sub-phone {
    transform-origin: top left;
  }

  .sub-phone.back {
    transform: scale(.64) rotate(-5deg);
    left: 0;
    top: 14px;
  }

  .sub-phone.front {
    transform: scale(.64) rotate(4deg);
    right: auto;
    left: calc(100% - 172px);
    top: 26px;
  }

  .price-card {
    padding: 22px 18px;
  }

  .price {
    font-size: 2.5rem;
  }
}

/* ==========================================================
   v4 – Free trial: first 5 scans free, then monthly plan
   ========================================================== */
.free-card {
  background: var(--surface);
  border: 2px solid var(--orange);
  border-radius: 24px;
  padding: 22px 24px;
  position: relative;
  box-shadow: 0 18px 36px -24px rgba(247, 162, 30, .9);
}

.free-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.free-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9a5b00;
}

.free-big {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--navy-dark);
}

.free-big span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}

.free-badge {
  background: var(--orange-soft);
  color: #8a5200;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.free-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
}

.free-meter .pip {
  height: 40px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--navy-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  position: relative;
}

.free-meter .pip i {
  font-style: normal;
}

.free-meter .pip:not(.lock)::after {
  content: "PDF";
  position: absolute;
  bottom: 3px;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .6;
}

.free-meter .pip.lock {
  background: var(--violet-soft);
  color: var(--violet);
  border: 1.5px dashed #b9a6ff;
}

.free-note {
  font-size: .88rem;
  color: var(--muted);
}

.free-then {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.free-then::before,
.free-then::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.free-then span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.free-then span::after {
  content: "↓";
  color: var(--violet);
  font-size: .95rem;
}

@media (max-width: 760px) {
  .free-card {
    padding: 18px;
  }

  .free-head {
    flex-direction: column;
  }

  .free-big {
    font-size: 2.2rem;
  }

  .free-meter {
    gap: 6px;
  }

  .free-meter .pip {
    height: 36px;
    border-radius: 10px;
  }
}

/* ---------- v4.1 – Layout polish for the subscribe section ---------- */
.subscribe .sub-wrap {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Phones stay in view while the plan column scrolls */
.subscribe .sub-phones {
  position: sticky;
  top: 110px;
  height: 640px;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.subscribe .sub-phone {
  width: 280px;
}

.subscribe .sub-phone .phone-screen {
  height: 560px;
}

.subscribe .sub-phone.back {
  left: 0;
  top: 30px;
}

.subscribe .sub-phone.front {
  right: 0;
  top: 60px;
}

/* Soft glow behind the phones */
.subscribe .sub-phones::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 0, 230, .14), rgba(247, 162, 30, .08) 60%, transparent);
  z-index: 0;
}

/* Heading + lead */
.sub-content h2 {
  text-wrap: balance;
}

.sub-lead {
  max-width: 520px;
  margin-bottom: 22px;
}

/* Free card – tighter */
.free-card {
  padding: 20px 22px 18px;
}

.free-head {
  align-items: center;
}

.free-big {
  font-size: 2.3rem;
}

.free-meter {
  margin: 14px 0 10px;
}

.free-meter .pip {
  height: 42px;
}

.free-meter .pip.lock svg {
  width: 18px;
  height: 18px;
}

.free-note {
  font-size: .86rem;
  line-height: 1.5;
}

.free-then {
  margin: 12px 0;
  font-size: .74rem;
}

/* Price card – cleaner glow + compact two-column list */
.price-card {
  padding: 26px 26px 22px;
}

.price-card::after {
  right: -70px;
  top: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(247, 162, 30, .35), rgba(247, 162, 30, 0) 70%);
}

.plan-list {
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 18px 0 20px;
}

.plan-list li {
  font-size: .9rem;
  line-height: 1.45;
}

.plan-list li::before {
  margin-top: 1px;
}

.plan-note {
  margin-top: 10px;
  line-height: 1.5;
}

.sub-download {
  margin-top: 18px;
}

/* Tablet */
@media (max-width: 1100px) {
  .plan-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .subscribe .sub-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .subscribe .sub-phones {
    position: relative;
    top: 0;
    height: 620px;
  }

  .sub-content {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .plan-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .subscribe .sub-phones {
    height: 410px;
    max-width: 340px;
  }

  .subscribe .sub-phone.back {
    transform: scale(.62) rotate(-5deg);
    left: 0;
    top: 14px;
  }

  .subscribe .sub-phone.front {
    transform: scale(.62) rotate(4deg);
    right: auto;
    left: calc(100% - 180px);
    top: 30px;
  }

  .plan-list {
    grid-template-columns: 1fr;
  }

  .free-head {
    flex-direction: row;
    align-items: center;
  }

  .free-badge {
    font-size: .7rem;
    padding: 4px 10px;
  }
}

@media (max-width: 380px) {
  .free-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 981px) {
  .subscribe .sub-phones {
    align-self: center;
  }
}

@media (max-width: 760px) {
  .subscribe .sub-phones {
    height: 370px;
  }
}

/* ---------- v4.2 – Logo card above the phones ---------- */
.sub-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

@media (min-width: 981px) {
  .sub-visual {
    position: sticky;
    top: 100px;
    align-self: center;
  }

  .subscribe .sub-phones {
    position: relative;
    top: 0;
    align-self: auto;
  }
}

.sub-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 14px 12px 12px;
  box-shadow: 0 18px 36px -22px rgba(31, 43, 85, .45);
  position: relative;
  z-index: 3;
}

.sub-brand-logo {
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 6px 10px;
}

.sub-brand-logo img {
  height: 100%;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.sub-brand-fallback {
  display: none;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -1px;
  color: var(--navy);
}

.sub-brand-fallback em {
  font-style: normal;
  color: var(--orange);
}

.sub-brand-txt b {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-dark);
  line-height: 1.2;
}

.sub-brand-txt small {
  font-size: .82rem;
  color: var(--muted);
}

.sub-brand-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: .76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
}

.sub-brand-rating svg {
  display: inline-block;
}

@media (max-width: 760px) {
  .sub-brand {
    gap: 10px;
    padding: 10px 12px 10px 10px;
    border-radius: 18px;
  }

  .sub-brand-logo {
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
  }

  .sub-brand-txt b {
    font-size: .95rem;
  }

  .sub-brand-txt small {
    font-size: .74rem;
  }

  .sub-brand-rating {
    display: none;
  }
}

.sub-brand-fallback {
  white-space: nowrap;
  line-height: 1;
}

.sub-visual {
  gap: 22px;
}

@media (max-width: 760px) {
  .sub-visual {
    gap: 14px;
  }
}

/* ==========================================================
   v5 – Terms & Conditions page
   ========================================================== */
.policy-body a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(46, 63, 117, .3);
  text-underline-offset: 3px;
}

.policy-body a:hover {
  text-decoration-color: var(--navy);
}

.terms-summary {
  background: linear-gradient(135deg, #f6f3ff, #fff8ec);
  border: 1px solid #e3dcff;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 32px;
}

.terms-summary h3 {
  font-size: 1.05rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.policy-body .terms-summary ul {
  list-style: none;
  padding-left: 0;
  gap: 8px;
}

.terms-summary li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.terms-summary li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.policy-body .terms-summary p {
  font-size: .82rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.terms-plan {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 6px 0 18px;
}

.terms-plan-item {
  border-radius: 18px;
  padding: 16px 18px;
}

.terms-plan-item span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.terms-plan-item b {
  display: block;
  font-size: 1.2rem;
  line-height: 1.3;
}

.terms-plan-item small {
  font-size: .82rem;
}

.terms-plan-item.free {
  background: var(--orange-soft);
  border: 2px solid var(--orange);
  color: var(--navy-dark);
}

.terms-plan-item.free span {
  color: #9a5b00;
}

.terms-plan-item.pro {
  background: linear-gradient(150deg, var(--navy-dark), var(--navy) 60%, #3c2c9a);
  color: #fff;
}

.terms-plan-item.pro span,
.terms-plan-item.pro small {
  color: rgba(255, 255, 255, .75);
}

.terms-plan-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

@media (max-width: 760px) {
  .terms-summary {
    padding: 18px;
  }

  .terms-plan {
    grid-template-columns: 1fr;
  }

  .terms-plan-arrow {
    margin: auto;
    transform: rotate(90deg);
  }
}

.terms-summary li {
  display: block;
  position: relative;
  padding-left: 30px;
}

.terms-summary li::before {
  position: absolute;
  left: 0;
  top: 0;
}

#pricing {
    background: #f0eeee;
    margin-top: 50px;
    padding-top: 80px;
}


        .pp {
            --pp-violet: var(--violet, #6d4aff);
            --pp-violet-soft: var(--violet-soft, #efeaff);
            --pp-navy: var(--navy, #14163a);
            --pp-orange: var(--orange, #ff7a3d);
            --pp-orange-soft: var(--orange-soft, #fff1e9);
            --pp-line: rgba(20, 22, 58, .10);
            --pp-muted: #6b6f86;
            padding-top: 0;
        }

        .pp-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            align-items: stretch;
            max-width: 1080px;
            margin: 0 auto;
        }

        .pp-card {
            position: relative;
            display: flex;
            flex-direction: column;
            background: #fff;
            border: 1px solid var(--pp-line);
            border-radius: 24px;
            padding: 32px 28px 28px;
            box-shadow: 0 1px 2px rgba(20, 22, 58, .04), 0 12px 32px -18px rgba(20, 22, 58, .18);
            transition: transform .25s ease, box-shadow .25s ease;
        }

        .pp-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 2px 4px rgba(20, 22, 58, .05), 0 22px 44px -20px rgba(20, 22, 58, .28);
        }

        .pp-card.pop {
            background: linear-gradient(165deg, #2a1f7a 0%, var(--pp-navy) 70%);
            border-color: transparent;
            color: #fff;
            transform: scale(1.04);
            box-shadow: 0 30px 60px -24px rgba(109, 74, 255, .55);
        }

        .pp-card.pop:hover {
            transform: scale(1.04) translateY(-4px);
        }

        .pp-ribbon {
            position: absolute;
            top: -13px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(90deg, var(--pp-violet), var(--pp-orange));
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .04em;
            padding: 6px 14px;
            border-radius: 999px;
            white-space: nowrap;
        }

        .pp-icon {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: var(--pp-violet-soft);
            color: var(--pp-violet);
            margin-bottom: 18px;
        }

        .pp-card.pop .pp-icon {
            background: rgba(255, 255, 255, .12);
            color: #fff;
        }

        .pp-card.custom .pp-icon {
            background: var(--pp-orange-soft);
            color: var(--pp-orange);
        }

        .pp-name {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: var(--pp-muted);
        }

        .pp-card.pop .pp-name {
            color: rgba(255, 255, 255, .7);
        }

        .pp-scans {
            font-size: 22px;
            font-weight: 700;
            margin: 6px 0 18px;
            color: var(--pp-navy);
        }

        .pp-card.pop .pp-scans {
            color: #fff;
        }

        .pp-price {
            display: flex;
            align-items: flex-start;
            gap: 2px;
            line-height: 1;
            color: var(--pp-navy);
        }

        .pp-card.pop .pp-price {
            color: #fff;
        }

        .pp-price .cur {
            font-size: 22px;
            font-weight: 700;
            margin-top: 6px;
        }

        .pp-price .amt {
            font-size: 56px;
            font-weight: 800;
            letter-spacing: -.03em;
        }

        .pp-price .per {
            align-self: flex-end;
            font-size: 15px;
            font-weight: 500;
            color: var(--pp-muted);
            margin: 0 0 8px 6px;
        }

        .pp-card.pop .pp-price .per {
            color: rgba(255, 255, 255, .65);
        }

        .pp-price .amt.custom {
            font-size: 40px;
            margin-top: 8px;
        }

        .pp-unit {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            font-size: 13px;
            color: var(--pp-muted);
            min-height: 26px;
        }

        .pp-card.pop .pp-unit {
            color: rgba(255, 255, 255, .7);
        }

        .pp-save {
            background: #e7f8ee;
            color: #13804a;
            font-weight: 700;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 999px;
        }

        .pp-card.pop .pp-save {
            background: rgba(52, 211, 153, .18);
            color: #6ee7b7;
        }

        .pp-list {
            list-style: none;
            padding: 22px 0 0;
            margin: 22px 0 28px;
            border-top: 1px dashed var(--pp-line);
            display: grid;
            gap: 12px;
            flex: 1;
        }

        .pp-card.pop .pp-list {
            border-top-color: rgba(255, 255, 255, .16);
        }

        .pp-list li {
            display: flex;
            gap: 10px;
            font-size: 15px;
            line-height: 1.45;
        }

        .pp-list li::before {
            content: "";
            flex: 0 0 18px;
            height: 18px;
            margin-top: 2px;
            border-radius: 50%;
            background: var(--pp-violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d4aff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
        }

        .pp-card.pop .pp-list li::before {
            background-color: rgba(255, 255, 255, .14);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
        }

        .pp-card.custom .pp-list li::before {
            background-color: var(--pp-orange-soft);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a3d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
        }

        .pp-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 15px 20px;
            border-radius: 14px;
            font-weight: 700;
            font-size: 15px;
            text-decoration: none;
            transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
        }

        .pp-btn:hover {
            transform: translateY(-1px);
        }

        .pp-btn.line {
            border: 1.5px solid var(--pp-navy);
            color: var(--pp-navy);
            background: transparent;
        }

        .pp-btn.line:hover {
            background: var(--pp-navy);
            color: #fff;
        }

        .pp-btn.solid {
            background: linear-gradient(90deg, var(--pp-violet), #8b6bff);
            color: #fff;
            box-shadow: 0 12px 24px -12px rgba(109, 74, 255, .8);
        }

        .pp-btn.warm {
            background: var(--pp-orange);
            color: #fff;
            box-shadow: 0 12px 24px -12px rgba(255, 122, 61, .8);
        }

        .pp-foot {
            text-align: center;
            margin-top: 40px;
            font-size: 14px;
            color: var(--pp-muted);
        }

        .pp-foot a {
            color: var(--pp-violet);
            font-weight: 600;
        }

        @media (max-width: 960px) {
            .pp-grid {
                grid-template-columns: 1fr;
                max-width: 440px;
                gap: 28px;
            }

            .pp-card.pop,
            .pp-card.pop:hover {
                transform: none;
            }
        }
    
/* "Start with 5 free scans" button – standalone, below "After your 5th scan" */
.free-cta {
  width: 100%;
  padding: 16px 26px;
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.free-cta:hover {
  background: #4a00bd;
  box-shadow: 0 16px 30px -12px rgba(91, 0, 230, .8);
}

/* Keep the pricing heading clear of the sticky header when jumping to #pricing */
#pricing {
  scroll-margin-top: 72px;
}
