/* ScanSing site. The palette and faces are the app's Paper skin
   (singline: skins/paper/skin.json, web/src/design/design.css). */
:root {
  --bg: #F6F0E5;
  --paper: #FFFDF9;
  --sand: #EFE6D7;
  --line: #E8DFD0;
  --ink: #3A3630;
  --ink-soft: #5C5347;
  --ink-muted: #6E665B;
  --accent: #4E80B8;
  --accent-deep: #3C6797;
  --accent-soft: #E9F0F8;
  --on-accent: #FFFFFF;
  --pink: #B4708F;
  --green: #6E8F63;
  --band: rgba(78, 128, 184, .16);
  --shadow: 58 54 48;
  --decor-opacity: 1;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #231E29; --paper: #2E2735; --sand: #3A3142; --line: #463C4F;
    --ink: #F1EAF0; --ink-soft: #D6CCD8; --ink-muted: #ADA2B2;
    --accent: #8FA6DA; --accent-deep: #B0C2EA; --accent-soft: #343452; --on-accent: #1E1A26;
    --pink: #D397B2; --green: #9DB88F; --band: rgba(143, 166, 218, .28);
    --shadow: 0 0 0; --decor-opacity: .55;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; position: relative; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.hand { font-family: var(--hand); color: var(--ink-muted); font-size: 1.45rem; line-height: 1.2; }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 34em; }

.btn { display: inline-flex; align-items: center; gap: .55em; justify-content: center; font: 600 1rem/1 var(--body); padding: .95em 1.6em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgb(var(--shadow) / .14); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Nav */
nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.7rem; font-weight: 600; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
nav.top .links { display: flex; gap: 24px; margin-left: auto; }
nav.top .links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav.top .links a:hover { color: var(--accent-deep); }
nav.top .btn { padding: .7em 1.2em; font-size: .92rem; }
@media (max-width: 820px) { nav.top .links { display: none; } nav.top .btn { margin-left: auto; } }

.decor { position: absolute; pointer-events: none; opacity: var(--decor-opacity); user-select: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 72px 96px; }
.hero .leaf-l { width: 260px; left: -70px; top: -60px; }
.hero .leaf-r { width: 280px; right: -80px; top: -90px; opacity: calc(var(--decor-opacity) * .8); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; position: relative; z-index: 2; }
.hero-copy h1 em { font-style: italic; color: var(--accent-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.platforms { font-size: .88rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.platforms span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-block: 48px 72px; } }
@media (max-width: 600px) { .hero .leaf-l { width: 150px; left: -60px; top: -40px; } .hero .leaf-r { width: 160px; right: -60px; top: -60px; } }

/* Hero visual: a real printed page under the scanner, the real app beside it */
.stage { position: relative; height: 580px; max-width: 100%; }
.sheet { position: absolute; left: -40px; top: 36px; width: 320px; background: #FFFFFF; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 18px 40px rgb(var(--shadow) / .18); padding: 8px; }
.sheet img { width: 100%; height: auto; border-radius: 2px; }
.scan-frame { position: absolute; inset: 14px; pointer-events: none; }
.scan-frame i { position: absolute; width: 28px; height: 28px; border: 3px solid var(--accent); }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-line { position: absolute; left: 14px; right: 14px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); top: 20%; animation: scan 3.6s ease-in-out infinite; opacity: .8; }
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.sheet-label { position: absolute; left: -6px; bottom: -52px; transform: rotate(4deg); white-space: nowrap; }

.phone { position: absolute; right: 0; top: 0; width: 272px; aspect-ratio: 375 / 813; border-radius: 42px; background: #1E1B18; padding: 10px; box-shadow: 0 30px 60px rgb(var(--shadow) / .28); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 80px; height: 22px; border-radius: 20px; background: #1E1B18; transform: translateX(-50%); z-index: 1; }
@media (max-width: 900px) { .stage { height: 600px; max-width: 480px; margin: 0 auto; width: 100%; } .sheet { left: 0; } }
@media (max-width: 480px) {
  .stage { height: 510px; }
  .sheet { width: 220px; left: -4px; top: 30px; }
  .phone { width: 220px; border-radius: 34px; padding: 8px; }
  .phone img { border-radius: 27px; }
  .sheet-label { bottom: -44px; font-size: 1.25rem; }
}
.credit { font-size: .76rem; color: var(--ink-muted); }
.credit a { color: inherit; }

/* Sections */
section.block { padding-block: 96px; position: relative; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 40em; }
@media (max-width: 600px) { section.block { padding-block: 64px; } .section-head { margin-bottom: 32px; } }

/* Steps: a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border-radius: 22px; padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.step .num { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--accent); font-style: italic; }
.step p { color: var(--ink-soft); }
.step .art { height: 190px; border-radius: 14px; background: var(--sand); overflow: hidden; position: relative; }
.step .art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step .art { height: 240px; } }

/* The plate: your part picked out on the real page */
.plate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 64px; }
.plate figure { margin: 0; background: #FFFFFF; border-radius: 18px; padding: 14px; box-shadow: 0 10px 30px rgb(var(--shadow) / .12); position: relative; min-width: 0; }
.plate-img { position: relative; }
.plate-img img { width: 100%; height: auto; }
.band { position: absolute; left: 10.5%; right: 0; border-radius: 6px; background: var(--band); box-shadow: inset 3px 0 0 var(--accent); transition: top .3s ease; mix-blend-mode: multiply; }
.plate figcaption { margin-top: 10px; }
.plate .copy { display: grid; gap: 18px; min-width: 0; }
.plate .copy p { color: var(--ink-soft); }
.voice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.voice { font: 600 .92rem var(--body); border-radius: 999px; padding: 9px 18px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; }
.voice[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) { .plate { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature { background: var(--paper); border-radius: 22px; padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; grid-column: span 2; }
.feature.wide { grid-column: span 3; }
.feature p { color: var(--ink-soft); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }
.feature .spec { font-size: .86rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.feature .shot { border-radius: 14px; overflow: hidden; margin-top: 8px; border: 1px solid var(--line); max-width: 340px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature, .feature.wide { grid-column: span 1; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Skins */
.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.skins figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.skins img { border-radius: 18px; box-shadow: 0 10px 30px rgb(var(--shadow) / .14); }
.skins figcaption { font-size: .9rem; color: var(--ink-muted); }
.skins figcaption b { color: var(--ink); font-family: var(--display); font-size: 1.3rem; margin-right: 6px; }
@media (max-width: 700px) { .skins { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--paper); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-top: 20px; }
.privacy-band .seal { width: 108px; height: 108px; border-radius: 50%; border: 2px dashed var(--green); display: grid; place-items: center; text-align: center; color: var(--green); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; padding: 10px; }
.privacy-band h3 { margin-bottom: 10px; }
.privacy-band p { color: var(--ink-soft); max-width: 44em; }
@media (max-width: 640px) { .privacy-band { grid-template-columns: 1fr; padding: 28px; } }

/* Pricing */
.billing { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.billing button { font: 600 .9rem var(--body); border: 0; background: transparent; color: var(--ink-soft); padding: .6em 1.2em; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px rgb(var(--shadow) / .1); }
.billing .save { color: var(--green); font-size: .78rem; margin-left: 4px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.plan { background: var(--paper); border-radius: 26px; padding: 32px; display: grid; gap: 18px; align-content: start; border: 1.5px solid var(--line); min-width: 0; }
.plan.pro { border-color: var(--accent); position: relative; }
.plan .price { font-family: var(--display); font-size: 3.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--body); font-size: .95rem; color: var(--ink-muted); font-weight: 500; }
.plan .note { font-size: .88rem; color: var(--ink-muted); min-height: 1.4em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-soft); }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.plan li.no { color: var(--ink-muted); }
.plan li.no svg { color: var(--ink-muted); }
.plan .badge { position: absolute; top: -13px; right: 24px; background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.lifetime { margin-top: 20px; max-width: 880px; color: var(--ink-soft); }
.lifetime strong { color: var(--ink); }
.fine { margin-top: 12px; max-width: 880px; font-size: .84rem; color: var(--ink-muted); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* Directors */
.directors { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.directors .card { background: var(--paper); border-radius: 22px; padding: 24px; display: grid; gap: 12px; min-width: 0; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.share-row .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; flex: none; }
.share-row .who { flex: 1; min-width: 0; }
.share-row .who b { display: block; font-size: .92rem; }
.share-row .who span { font-size: .8rem; color: var(--ink-muted); }
.soon { display: inline-block; justify-self: start; background: var(--accent-soft); color: var(--accent-deep); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .directors { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border-radius: 18px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; 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(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }

/* Final CTA */
.final { position: relative; overflow: hidden; text-align: center; padding-block: 110px 150px; border-top: 1px solid var(--line); }
.final .inner { display: grid; gap: 22px; justify-items: center; position: relative; z-index: 1; }
.final .leaf-b { width: 380px; left: -90px; bottom: -80px; opacity: calc(var(--decor-opacity) * .5); }
.perch { position: absolute; right: 4%; bottom: 20px; width: 220px; aspect-ratio: 978 / 563; pointer-events: none; opacity: var(--decor-opacity); }
.perch img { position: absolute; inset: 0; width: 100%; height: 100%; }
.perch .bird { animation: arrive 1.05s cubic-bezier(.16, .84, .32, 1) .3s both; }
@keyframes arrive { 0% { transform: translate(60%, -8%); opacity: 0; } 68% { transform: translate(3%, -1%); opacity: 1; } 86% { transform: translate(-2%, 1%); } 100% { transform: none; } }
@media (max-width: 700px) { .perch { width: 150px; right: -10px; bottom: 0; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .9rem; color: var(--ink-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--accent-deep); text-decoration: underline; }
footer .credits { flex-basis: 100%; font-size: .78rem; }
footer .credits a { text-decoration: underline; }

/* Legal pages */
.legal { padding-block: 56px 96px; }
.legal article { max-width: 720px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.legal h2 { font-size: 1.6rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .meta { font-size: .88rem; color: var(--ink-muted); }
.legal .back { font-weight: 600; text-decoration: none; }
