:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #5a534d;
  --line: #e8e1d8;
  --brand: #c2410c;
  --brand-ink: #9a3412;
  --brand-soft: #fdeede;
  --ok: #047857;
  --dark: #1c1917;
  --dark-2: #292420;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 12px 32px rgba(28, 25, 23, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
nav a:hover { color: var(--ink); }
nav a.btn { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-ink); }
.btn.sm { padding: 9px 16px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #cfc6bb; }
.btn.ghost:hover { background: var(--surface); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--brand-soft); }

/* Hero */
.hero { padding: 88px 0 64px; overflow: hidden; background:
  radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 22px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 260px; }
.hero-phones .phone { --px: 0px; --py: 0px; transition: translate .35s ease-out; translate: var(--px) var(--py); }
.hero-phones .phone:nth-child(1) { left: 6%; top: 40px; rotate: -4deg; }
.hero-phones .phone:nth-child(2) { right: 0; top: 0; rotate: 3deg; z-index: 2; }

/* Phone frame */
.phone {
  background: #0d0b0a; border-radius: 38px; padding: 8px;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #3a332e;
}
.phone img { border-radius: 30px; width: 100%; height: auto; }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 26px; }
.strip div { font-size: .93rem; color: var(--muted); line-height: 1.4; }
.strip b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

section { padding: 96px 0; }
section h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.sub { color: var(--muted); max-width: 38em; font-size: 1.1rem; margin: 0 0 44px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature.flip .phone-wrap { order: 2; }
.feature .phone-wrap { display: flex; justify-content: center; }
.feature .phone { width: 270px; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Sectors */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.band .card { background: var(--bg); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.sectors .card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }

/* Setup */
.setup { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.setup-shots { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.setup-shots .phone { width: 220px; }
.setup-shots .phone:nth-child(2) { margin-top: 48px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .97rem; }

/* Security (dark) */
.dark { background: var(--dark); color: #f4eee7; }
.dark .sub { color: #c4b9ad; }
.dark .eyebrow { color: #fb923c; }
.dark .card { background: var(--dark-2); border-color: #3a332e; }
.dark .card p { color: #c4b9ad; }
.dark a { color: #fdba74; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* CTA */
.cta { background: var(--brand); color: #fff; text-align: center; padding: 88px 0; }
.cta h2 { color: #fff; }
.cta p { color: #ffe9d6; max-width: 34em; margin: 0 auto 30px; font-size: 1.1rem; }

footer { padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); margin-left: 20px; text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Policy page */
.doc { max-width: 740px; margin: 0 auto; padding: 64px 24px 80px; }
.doc h1 { font-size: 2.5rem; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 1.35rem; margin: 42px 0 10px; letter-spacing: -.01em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.note { background: var(--brand-soft); border-radius: var(--radius); padding: 16px 20px; }

@media (max-width: 900px) {
  .hero .wrap, .feature, .setup { grid-template-columns: 1fr; }
  .feature { gap: 32px; padding: 36px 0; }
  .feature.flip .phone-wrap { order: 0; }
  .hero { padding-top: 56px; }
  .hero-phones { height: 520px; max-width: 420px; margin: 0 auto; width: 100%; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  nav a:not(.btn):not(.keep) { display: none; }
  section { padding: 64px 0; }
  .setup-shots .phone { width: 42vw; max-width: 220px; }
}
@media (max-width: 480px) {
  .hero-phones .phone { width: 200px; }
  .hero-phones { height: 440px; }
}

/* ---------- Motion ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
header.site { transition: box-shadow .25s, background .25s; }
header.site.scrolled { box-shadow: 0 6px 24px rgba(28, 25, 23, .08); }

nav a:not(.btn) { position: relative; }
nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s; }
nav a:not(.btn):hover::after { transform: scaleX(1); }

.btn { transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194, 65, 12, .28); }
.btn:active { transform: translateY(0); }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero .wrap > div:first-child > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }
.hero-phones .phone { animation: phoneIn 1s cubic-bezier(.2, .7, .2, 1) both, floatA 7s ease-in-out 1.2s infinite; }
.hero-phones .phone:nth-child(1) { animation-delay: .25s, 1.4s; }
.hero-phones .phone:nth-child(2) { animation-delay: .1s, 1.2s; animation-name: phoneIn, floatB; animation-duration: 1s, 8s; }

/* Scroll reveal */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .feature.reveal .phone { transition: transform .9s cubic-bezier(.2, .7, .2, 1) .1s; transform: translateY(30px) rotate(-2deg); }
html.js .feature.flip.reveal .phone { transform: translateY(30px) rotate(2deg); }
html.js .feature.reveal.in .phone { transform: none; }
html.js .feature.reveal .ticks li { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s ease; }
html.js .feature.reveal.in .ticks li { opacity: 1; transform: none; }
html.js .feature.reveal.in .ticks li:nth-child(1) { transition-delay: .35s; }
html.js .feature.reveal.in .ticks li:nth-child(2) { transition-delay: .45s; }
html.js .feature.reveal.in .ticks li:nth-child(3) { transition-delay: .55s; }
html.js .feature.reveal.in .ticks li:nth-child(4) { transition-delay: .65s; }

/* Hover lifts */
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8cdbf; }
.dark .card:hover { border-color: #5a4d44; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.feature .phone { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.feature.in .phone:hover, .feature:not(.reveal) .phone:hover { transform: translateY(-6px) scale(1.015); }
details { transition: background .2s; }
details p { animation: rise .35s ease both; }
summary::after { transition: transform .25s; }

/* Flow demo */
.flow { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; max-width: 900px; margin: 0 auto; }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow-btn { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; position: relative; padding: 16px 20px 18px; border-radius: 14px; border: 1px solid transparent; transition: background .3s, border-color .3s, transform .3s; }
.flow-btn b { display: block; font-size: 1.05rem; color: var(--muted); transition: color .3s; }
.flow-btn span { display: block; font-size: .95rem; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease, margin .4s; }
.flow-btn:hover { background: var(--surface); }
.flow-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.flow-btn.active { background: var(--surface); border-color: var(--line); box-shadow: 0 8px 24px rgba(28, 25, 23, .06); }
.flow-btn.active b { color: var(--ink); }
.flow-btn.active span { max-height: 60px; opacity: 1; margin-top: 4px; }
.flow-btn .bar { position: absolute; left: 20px; right: 20px; bottom: 8px; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
.flow-btn .bar::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.flow-btn.active .bar { background: var(--line); }
.flow-btn.active .bar::after { animation: fill 4.2s linear forwards; }
.flow.paused .flow-btn.active .bar::after, .flow.off .flow-btn.active .bar::after { animation-play-state: paused; }
.flow.static .flow-btn.active .bar::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.flow-phone .phone { width: 270px; }
.flow-screens { position: relative; aspect-ratio: 414 / 900; border-radius: 30px; overflow: hidden; background: #fbf9f6; }
.flow-screens img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.flow-screens img.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 32px; }
  .flow-phone { order: -1; display: flex; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { background: var(--dark); border-color: var(--dark); color: #f4eee7; }
.plan.featured .plan-sub { color: #c4b9ad; }
.plan h3 { font-size: 1.6rem; }
.plan-sub { color: var(--muted); margin: 4px 0 22px; font-size: .95rem; }
.plan .ticks li { font-size: .97rem; }
.plan-note { color: var(--muted); max-width: 44em; margin: 32px auto 0; font-size: .93rem; }
.sec .ticks { margin-top: 20px; }
.dark .ticks li { color: #e6ddd2; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Download section */
.download { background: var(--surface); border-block: 1px solid var(--line); scroll-margin-top: 72px; }
.download .wrap { padding-block: 8px; }
.dl-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; max-width: 920px; margin: 0 auto; }
.dl-text .sub { color: var(--muted); max-width: 28em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; border-radius: 14px;
  background: var(--dark); color: #fff; text-decoration: none; border: 1px solid var(--dark); transition: transform .2s, background .2s; }
.store:hover { background: #3a332e; transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.store small { font-size: .7rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.store.off { background: transparent; color: var(--muted); border: 1px dashed #cfc6bb; cursor: default; }
.store.off:hover { background: transparent; transform: none; }
.download .fine { margin-top: 20px; font-size: .92rem; color: var(--muted); }
.qr-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 26px; text-align: center; box-shadow: var(--shadow); }
.qr-card img { display: block; margin: 0 auto 16px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); max-width: 100%; height: auto; }
.qr-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.qr-card b { color: var(--ink); font-size: 1rem; }
.phone-only { display: none; }
@media (max-width: 760px) {
  .dl-grid { grid-template-columns: 1fr; gap: 32px; }
  .qr-card { display: none; }
  .desk-only { display: none; }
  .phone-only { display: inline; }
}
