/* The landing page. Motion is CSS; landing.js only adds classes (reveal on scroll, header state,
   a gentle tilt). Everything settles to its final state under prefers-reduced-motion. */

.landing em { font-style: normal; background: linear-gradient(100deg, #F07A2E, #C84C0A 60%, #9E3A06); -webkit-background-clip: text; background-clip: text; color: transparent }
.kicker { font: 700 .78rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem }
.title { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 1rem; font-weight: 750 }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 36rem; margin: 0 }
.center { text-align: center; margin-left: auto; margin-right: auto }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0 }
.narrow { max-width: 46rem }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s }
.btn.primary { color: #fff; background: linear-gradient(180deg, #D5520B, var(--fill) 55%, var(--fill-2)); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px rgba(200, 76, 10, .35) }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 34px rgba(200, 76, 10, .45) }
.btn.ghost { color: var(--fg); background: var(--card); border: 1px solid var(--line) }
.btn.ghost:hover { transform: translateY(-2px) }
.more { font-weight: 700; text-decoration: none }
.more-row { margin-top: 1.6rem }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); isolation: isolate }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background: radial-gradient(60% 50% at 75% 35%, rgba(232, 89, 12, .16), transparent 70%), radial-gradient(40% 40% at 15% 20%, rgba(20, 163, 163, .10), transparent 70%) }
.ecg-bg { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: 160px; z-index: -1; opacity: .55 }
.ecg-track { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke }
.ecg-comet { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: .14 .86; stroke-dashoffset: 1; animation: comet 4.8s linear infinite; filter: drop-shadow(0 0 6px rgba(232, 89, 12, .7)) }
@keyframes comet { to { stroke-dashoffset: 0 } }

.hero-grid { display: grid; gap: 3rem; align-items: center }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; margin: 1rem 0 1.2rem; font-weight: 800 }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 33rem; margin: 0 }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43, 182, 115, .6); animation: ping 2.4s var(--ease) infinite }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(43, 182, 115, 0) } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0) } }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem }
.trust { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; padding: 0; margin: 1.8rem 0 0; color: var(--muted); font-size: .92rem; font-weight: 600 }
.trust li::before { content: "✓"; color: var(--accent); margin-right: .45rem; font-weight: 800 }

/* The stage: phone, mark and two chips. Sized off one unit so it scales as a piece. */
.stage { --u: min(1px, calc((100vw - 32px) / 520)); position: relative; height: calc(600 * var(--u)); width: calc(500 * var(--u)); justify-self: center; transform-style: preserve-3d; transition: transform .6s var(--ease) }
.stage .glow { position: absolute; inset: 15% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 89, 12, .35), transparent); filter: blur(30px); animation: breathe 6s ease-in-out infinite }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75 } }
.phone { border-radius: 13% / 6%; padding: 2.4%; background: linear-gradient(145deg, #3A3D42, #0E0F11); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset; aspect-ratio: 1320 / 2868 }
.phone picture, .phone img { border-radius: 11% / 5.2%; overflow: hidden; width: 100%; height: 100% }
.phone img { object-fit: cover }
.phone-hero { position: absolute; width: calc(270 * var(--u)); right: calc(40 * var(--u)); top: 0 }
.mark { position: relative; aspect-ratio: 1; border-radius: 22.37%; overflow: hidden; box-shadow: var(--shadow-lg) }
.mark img { width: 100%; height: 100% }
.mark .ink { position: absolute; inset: 0; width: 100%; height: 100% }
.ink path { fill: none; stroke: var(--ink-mark); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1 }
@media (prefers-color-scheme: dark) { .ink { filter: drop-shadow(0 0 8px rgba(140, 247, 193, .65)) drop-shadow(0 0 22px rgba(140, 247, 193, .35)) } }
.ink .backlight { fill: #000; opacity: .32 }
.mark-hero { position: absolute; width: calc(190 * var(--u)); left: 0; top: calc(250 * var(--u)) }
.in .ink .backlight, .mark-hero.in .backlight { animation: power .5s .5s var(--ease) forwards }
@keyframes power { to { opacity: 0 } }
.in .ink .pulse { animation: draw 1.1s .7s cubic-bezier(.5, 0, .2, 1) forwards }
.in .ink .lobes { animation: draw 1s 1.3s cubic-bezier(.4, 0, .2, 1) forwards }
.in .ink .vee { animation: draw .7s 1.5s cubic-bezier(.4, 0, .2, 1) forwards }
@keyframes draw { to { stroke-dashoffset: 0 } }

.chip { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; white-space: nowrap }
.chip strong { display: block; font-size: .92rem; letter-spacing: -.01em }
.chip small { display: block; color: var(--muted); font-size: .76rem }
.chip-saved { left: calc(-10 * var(--u)); top: calc(70 * var(--u)) }
.lcd-mini { background: var(--lcd); color: var(--lcd-ink); border-radius: 10px; padding: .4rem .55rem; font: 700 1.05rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.02em }
.lcd-mini i { opacity: .5; font-style: normal; margin: 0 .1rem }
.tick { width: 22px; height: 22px; fill: none; stroke: #2BB673; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22 }
.chip-saved.in .tick { animation: tick .5s 1.7s var(--ease) forwards }
@keyframes tick { to { stroke-dashoffset: 0 } }
.chip-avg { right: calc(-6 * var(--u)); bottom: calc(40 * var(--u)); flex-direction: column; align-items: flex-start; gap: .1rem }
.chip-avg strong { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums }
.spark { width: 120px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round }
.spark path { stroke-dasharray: 1; stroke-dashoffset: 1 }
.chip-avg.in .spark path { animation: draw 1.2s 1.9s var(--ease) forwards }

/* Entrance and float */
.float-in { opacity: 0; transform: translateY(24px) scale(.97) }
.float-in.in { animation: rise .9s var(--d, 0s) var(--ease) forwards, bob 7s calc(var(--d, 0s) + 1s) ease-in-out infinite }
@keyframes rise { to { opacity: 1; transform: none } }
@keyframes bob { 0%, 100% { translate: 0 0 } 50% { translate: 0 -8px } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--d, 0s) var(--ease), transform .9s var(--d, 0s) var(--ease) }
.reveal.in { opacity: 1; transform: none }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding: 1.05rem 0; overflow: hidden }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent) }
.track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; font-weight: 650; color: var(--muted); font-size: .95rem }
.track span::before { content: "◆"; color: var(--accent); font-size: .6em; margin-right: 1rem; vertical-align: .2em }
@keyframes marquee { to { transform: translateX(-50%) } }
.strip:hover .track { animation-play-state: paused }

/* Steps */
.steps { display: grid; gap: 18px; margin-top: 2.6rem }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr) } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 1.2rem 1.4rem 1.6rem; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease) }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) }
.step h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: .4rem 0 .4rem }
.step p { margin: 0; color: var(--muted) }
.step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem }
.art { border-radius: 20px; background: var(--bg); margin-bottom: 1.1rem; overflow: hidden }
.art svg { width: 100%; height: auto; display: block }
.art text { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif }

.art-scan .dev { fill: #F7F5F1; stroke: #D9D5CC; stroke-width: 2 }
@media (prefers-color-scheme: dark) { .art-scan .dev { fill: #3A3E45; stroke: #4A4F57 } }
.art-scan .lcd { fill: var(--lcd) }
.art-scan .seg { fill: var(--lcd-ink); font: 700 26px ui-monospace, "SF Mono", Menlo, monospace }
.art-scan .seg.big { font-size: 34px }
.art-scan .seg.small { font-size: 18px }
.art-scan .lbl { fill: var(--lcd-ink); opacity: .6; font: 700 9px ui-monospace, Menlo, monospace; letter-spacing: .1em }
.art-scan .btn-dev { fill: var(--accent) }
.art-scan .finder path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round }
.art-scan .finder { transform-origin: 160px 92px; animation: focus 3.2s var(--ease) infinite }
@keyframes focus { 0%, 100% { transform: scale(1.06); opacity: .7 } 40%, 70% { transform: scale(1); opacity: 1 } }
.art-scan .scanline { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(232, 89, 12, .9)); animation: scan 3.2s ease-in-out infinite }
@keyframes scan { 0% { transform: translateY(4px); opacity: 0 } 15% { opacity: 1 } 60% { transform: translateY(104px); opacity: 1 } 75%, 100% { transform: translateY(104px); opacity: 0 } }

.art-family .row rect { fill: var(--card); stroke: var(--line) }
.art-family .ini { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle }
.art-family .nm { fill: var(--fg); font-size: 14px; font-weight: 700 }
.art-family .sub { fill: var(--muted); font-size: 10.5px }
.art-family .rd { fill: var(--fg); font-size: 18px; font-weight: 800; letter-spacing: -.02em }
.art-family .row { opacity: 0; transform: translateX(-16px) }
.in .art-family .row { animation: slide .7s var(--ease) forwards }
.in .art-family .r2 { animation-delay: .15s } .in .art-family .r3 { animation-delay: .3s }
@keyframes slide { to { opacity: 1; transform: none } }

.art-avg .band { fill: rgba(20, 163, 163, .12) }
.art-avg .bars rect { fill: #14A3A3; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.05) }
.art-avg .bars rect.hi { fill: #E2B33C }
.in .art-avg .bars rect { animation: grow .9s calc(var(--i) * .07s + .1s) var(--ease) forwards }
@keyframes grow { to { transform: none } }
.art-avg .avg { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1 }
.in .art-avg .avg { animation: draw 1.2s .7s var(--ease) forwards }
.art-avg .tag { fill: var(--card); stroke: var(--line) }
.art-avg .tagt { fill: var(--fg); font-size: 13px; font-weight: 800 }

/* Showcase */
.showcase .wrap { text-align: center }
.showcase .sub { margin: 0 auto }
.gallery { display: flex; gap: clamp(14px, 2.5vw, 28px); justify-content: center; padding: 3rem 16px 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none }
.gallery::-webkit-scrollbar { display: none }
.gallery figure { margin: 0; flex: 0 0 auto; width: clamp(190px, 21vw, 250px); scroll-snap-align: center; text-align: center }
.gallery figure:nth-child(even) { margin-top: 2.5rem }
.gallery figcaption { margin-top: 1rem; font-weight: 700; letter-spacing: -.01em }
.gallery .phone { transition: transform .6s var(--ease) }
.gallery figure:hover .phone { transform: translateY(-8px) rotate(-.6deg) }
@media (max-width: 1000px) { .gallery { justify-content: flex-start } .gallery figure:nth-child(even) { margin-top: 0 } }

/* Privacy vault: graphite in both appearances. */
.vault { display: grid; gap: 2.4rem; align-items: center; padding: clamp(2rem, 5vw, 3.6rem); border-radius: 36px; color: #ECEEF1; background: radial-gradient(80% 120% at 0% 0%, #2F343B, #191B1F 70%); box-shadow: var(--shadow-lg); overflow: hidden }
@media (min-width: 860px) { .vault { grid-template-columns: 300px 1fr } }
.vault .kicker { color: #8CF7C1 }
.vault .title { color: #fff }
.vault .more { color: #FF995C }
.vault-art svg { width: min(260px, 70vw); margin: 0 auto; display: block; overflow: visible }
.vault-art .ring { fill: none; stroke: rgba(140, 247, 193, .18); stroke-width: 1.5 }
.vault-art .r1 { animation: ripple 4s ease-out infinite; transform-origin: 100px 100px }
.vault-art .r2 { animation: ripple 4s 2s ease-out infinite; transform-origin: 100px 100px }
@keyframes ripple { from { transform: scale(.7); opacity: 1 } to { transform: scale(1.15); opacity: 0 } }
.vault-art .shackle { fill: none; stroke: #8CF7C1; stroke-width: 12; stroke-linecap: round; transform: translateY(-14px); transition: transform .8s .4s cubic-bezier(.5, -.4, .3, 1.4) }
.vault.in .shackle { transform: none }
.vault-art .body { fill: #8CF7C1; filter: drop-shadow(0 0 24px rgba(140, 247, 193, .45)) }
.vault-art .hole { fill: #1E2A24 }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; color: #C9CDD3 }
.ticks li { padding-left: 1.8rem; position: relative }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(140, 247, 193, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%238CF7C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat }
.ticks strong { color: #fff }

/* Pricing */
.plans { display: grid; gap: 18px; margin-top: 2.6rem; max-width: 52rem; margin-inline: auto }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 1.8rem; box-shadow: var(--shadow) }
.plan h3 { margin: 0; font-size: 1.1rem; color: var(--muted) }
.plan .price { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; margin: .2rem 0 1rem }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0 }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem }
.plan li { padding-left: 1.6rem; position: relative }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800 }
.plan.pro { border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(140deg, #F07A2E, rgba(232, 89, 12, .15) 50%, #C84C0A) border-box; box-shadow: var(--shadow-lg) }
.plan.pro h3 { color: var(--accent) }
.badge { position: absolute; top: 1.4rem; right: 1.4rem; font-size: .75rem; font-weight: 800; color: #fff; background: var(--fill); padding: .3rem .7rem; border-radius: 999px }
.fine { font-size: .82rem; color: var(--muted); margin: 1.2rem 0 0 }

/* FAQ */
.faq { margin-top: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: .4rem 1.4rem }
.faq details:first-child { border-top: 0 }
.faq details p { color: var(--muted); margin: .6rem 0 .2rem }

/* Final */
.final-card { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; border-radius: 36px; background: radial-gradient(60% 80% at 50% 0%, rgba(232, 89, 12, .16), transparent 70%), var(--card); border: 1px solid var(--line) }
.final-card .sub { margin: 0 auto 1.8rem }
.mark-final { width: 112px; margin: 0 auto 1.6rem }

/* Respect reduced motion: show everything at rest. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important }
  .ecg-comet, .track { animation: none !important }
  .ink path, .spark path, .art-avg .avg, .tick { stroke-dashoffset: 0 }
  .ink .backlight { opacity: 0 }
  .reveal, .float-in, .art-family .row { opacity: 1; transform: none }
  .art-avg .bars rect { transform: none }
}
