/*
 * Artista Solutions — dark "engineered" theme.
 * Layout: one dark stage with a dot grid; content in a 1280px column under one
 * sticky header shared by every page. Motion is layered on by main.js through
 * data attributes and never hides content at rest.
 */
:root {
    --night: #070d18;
    --panel: #0e1828;
    --panel-2: #12233a;
    --line: rgba(214, 228, 245, 0.15);
    --line-strong: rgba(214, 228, 245, 0.28);
    --ink: #f2f5fa;
    --mist: #a7b6ca;
    --dim: #6f819a;
    --accent: #38b6f5;
    --accent-ink: #04121f;
    --ok: #4ade80;
    --danger: #f87171;
    --display: "Geist", "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
    --radius: 24px;
    --max: 1280px;
    --gutter-l: max(20px, env(safe-area-inset-left, 0px));
    --gutter-r: max(20px, env(safe-area-inset-right, 0px));
    --hdr: 72px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0;
    background-color: var(--night);
    background-image: radial-gradient(rgba(214, 228, 245, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
picture { display: contents; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.accent { color: var(--accent); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
.page { position: relative; z-index: 1; }
.js .page { animation: page-in 0.6s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Split lines for headline reveals */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
    font: 600 16px/1 var(--display); cursor: pointer; text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--night); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; }

/* Header (every page) */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(7, 13, 24, 0.82); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: var(--hdr); }
.topbar-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.topbar-brand:hover { color: var(--ink); }
.topbar-brand .mark-img { display: block; width: 36px; height: 36px; }
.topbar-brand .brand-sub { color: var(--mist); font-weight: 500; }
.topbar-nav { display: flex; gap: 26px; margin-left: auto; }
.topbar-nav a { color: var(--mist); text-decoration: none; font-size: 15px; padding-block: 6px; border-bottom: 1px solid transparent; }
.topbar-nav a:hover { color: var(--ink); }
.topbar-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.menu-btn { display: none; }
.site-menu { position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 13, 24, 0.97); max-height: calc(100svh - var(--hdr)); overflow-y: auto; }
.site-menu .wrap { display: flex; flex-direction: column; padding-block: 10px 18px; }
.site-menu a { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.site-menu a.is-active { color: var(--accent); }
.site-menu a span { font-family: var(--mono); font-size: 12px; color: var(--mist); }

/* Section scaffolding */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 48rem; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; }
.section-head p { color: var(--mist); font-size: 1.15rem; max-width: 40rem; }
.section-title-xl { font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -0.045em; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 48px; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 26px; }
.page-hero h1 { font-size: clamp(2.8rem, 7.6vw, 6.6rem); line-height: 0.96; letter-spacing: -0.05em; max-width: 16ch; }
.page-hero .lede { color: var(--mist); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 44rem; }
.page-hero .lede a { color: var(--ink); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; }
.crumb a { color: var(--mist); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-top: 22px; border-top: 1px dashed var(--line); }

/* ---------- Home ---------- */
.home-hero { position: relative; min-height: min(calc(100svh - var(--hdr)), 900px); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
/* 3D logo: fixed behind the page content while you read the hero; lifted above the
   header while it flies in to land on the header logo. hero3d.js sets its opacity. */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; opacity: 0; }
#stage.is-landing { z-index: 45; }
html:not(.has-3d) #stage { display: none; }
html.has-3d .hero-logo { display: none; }
.hero-logo { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-logo-float { width: min(78vmin, 760px); aspect-ratio: 1; opacity: 0.13; filter: saturate(0.85) blur(0.5px); }
.hero-logo-float img { display: block; width: 100%; height: 100%; }
html.motion-on .hero-logo-float { animation: logo-float 9s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(-2deg); } }
/* Headline dead centre (equal rows above and below), detail row hanging under it */
.home-hero .hero-body { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); max-width: none; padding-block: 32px clamp(28px, 4vh, 44px); }
.home-hero h1 { grid-row: 2; font-size: clamp(2.6rem, 7vw, 9.5rem); line-height: 1; letter-spacing: -0.05em; text-align: center; white-space: nowrap; }
.hero-row { grid-row: 3; align-self: end; width: 100%; max-width: calc(clamp(2.6rem, 7vw, 9.5rem) * 12.35); margin: 32px auto 0; /* same width as the one-line headline; sits at the foot of the hero */ display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; }
.hero-actions { justify-content: flex-end; }
.home-hero .hero-sub { max-width: 26rem; font-family: var(--mono); font-size: 15px; line-height: 1.7; letter-spacing: 0.04em; color: var(--mist); text-transform: uppercase; }
.scroll-cue { flex-direction: column; display: flex; align-items: center; gap: 10px; }
.scroll-cue i { display: block; width: 1px; height: 36px; background: var(--mist); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.statement .tags { display: flex; flex-wrap: wrap; gap: 12px 44px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.statement-text { margin-top: 64px; max-width: 62rem; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.13; font-weight: 600; letter-spacing: -0.03em; }

.services-pin .svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: min(80svh, 760px); }
.svc-head { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.svc-head h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; }
.svc-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.svc-stack { display: flex; flex-direction: column; gap: 40px; }
.svc { display: flex; flex-direction: column; gap: 16px; }
.svc-num { font-family: var(--mono); color: var(--accent); font-size: 15px; }
.svc h3 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; }
.svc p { color: var(--mist); font-size: 1.15rem; max-width: 30rem; }
.svc-progress { display: none; gap: 8px; }
.svc-progress span { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.svc-progress b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html.motion-on .services-pin.is-pinned { padding-block: 0; }
html.motion-on .services-pin.is-pinned .svc-grid { min-height: calc(100svh - var(--hdr)); padding-block: 40px; }
html.motion-on .svc-stack.is-pinned { display: block; position: relative; min-height: 300px; }
html.motion-on .svc-stack.is-pinned .svc { position: absolute; inset: 0 0 auto 0; }
html.motion-on .svc-stack.is-pinned + .svc-progress { display: flex; }

/* Product gallery (home + products) */
.gallery { position: relative; overflow: hidden; }
.gallery .track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.gpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; color: inherit; text-decoration: none; }
.gpanel-copy { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.gpanel-copy h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; }
.gpanel-copy p { color: var(--mist); max-width: 30rem; }
.gpanel-copy .text-link { color: var(--accent); }
.gpanel-shot { background: var(--panel-2); padding: 28px; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 300px; }
.gpanel-shot img { display: block; width: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.counter { font-family: var(--mono); font-size: 14px; color: var(--mist); font-variant-numeric: tabular-nums; }
html.motion-on .gallery.is-track { padding-block: 0; }
html.motion-on .gallery.is-track .gallery-pin { height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; }
html.motion-on .gallery.is-track .track { display: flex; width: max-content; gap: 24px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
html.motion-on .gallery.is-track .gpanel { width: min(76vw, 1000px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); min-height: min(64svh, 560px); }
html.motion-on .gallery.is-track .gpanel-copy { justify-content: flex-end; padding: 40px; }
.tick-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--mist); font-size: 0.98rem; }
.tick-list li { display: flex; gap: 10px; }
.tick-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--accent); }

/* Process rail */
.proc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 36px; margin-top: 48px; }
.proc-rail { position: relative; width: 2px; background: var(--line); grid-row: 1 / span 4; }
.proc-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.step { padding-block: 28px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; min-width: 12ch; transition: color 0.4s; }
.step p { color: var(--mist); flex: 1 1 280px; }
html.motion-on .step h3 { color: var(--dim); }
html.motion-on .step.is-on h3 { color: var(--ink); }

/* Big CTA */
.cta-block { padding-block: clamp(120px, 18vw, 220px); text-align: center; }
.cta-block h2 { font-size: clamp(3rem, 8.4vw, 7.6rem); letter-spacing: -0.05em; line-height: 0.95; }
.cta-block p { margin: 26px auto 0; max-width: 38rem; color: var(--mist); font-size: 1.15rem; }
.cta-block .btn-row { justify-content: center; margin-top: 36px; }
.cta-contact { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-family: var(--mono); font-size: 14px; }
.cta-contact a { color: var(--mist); text-decoration: none; }
.cta-contact a:hover { color: var(--ink); }

/* ---------- Product pages ---------- */
.frame-browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.frame-browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9eef5; }
.frame-browser .bar b { width: 9px; height: 9px; border-radius: 50%; background: #c3ccd8; }
.frame-browser .bar span { margin-left: 12px; font: 12px var(--mono); color: #4f6177; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-browser img { display: block; width: 100%; }
.frame-phone { border-radius: 30px; padding: 8px; background: #1d2a44; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.frame-phone img { display: block; width: 100%; border-radius: 23px; }
.frame-paper img { display: block; border-radius: 6px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }

.p-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-block: clamp(24px, 3.5vw, 48px) 24px; }
.p-hero-copy { display: flex; flex-direction: column; gap: 26px; }
.p-hero h1 { font-size: clamp(2.9rem, 7.6vw, 7rem); line-height: 0.95; letter-spacing: -0.05em; max-width: 15ch; }
.p-hero-copy > p { max-width: 42rem; color: var(--mist); font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.p-hero-stage { position: relative; perspective: 1600px; padding-bottom: 60px; }
.p-hero-stage .frame-browser { transform-origin: 50% 0; }
.p-hero-stage .p-hero-phone { position: absolute; right: 4%; bottom: 0; width: min(210px, 24%); }
.p-hero-stage.is-phones { display: flex; justify-content: center; gap: 4%; padding-bottom: 0; }
.p-hero-stage.is-phones .frame-phone { width: min(260px, 30%); }
.p-hero-stage.is-phones .frame-phone:nth-child(2) { transform: translateY(48px); }

.walk-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 56px; align-items: center; margin-top: 48px; }
.walk-steps { display: flex; flex-direction: column; gap: 6px; }
.wstep { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.wstep h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; display: flex; gap: 16px; align-items: baseline; }
.wstep h3 span { font: 14px var(--mono); color: var(--accent); }
.wstep p { color: var(--mist); max-width: 30rem; }
.walk-screens { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.walk-screens .shot { display: flex; justify-content: center; }
.walk-screens .shot .frame-phone { width: min(280px, 60%); }
.walk-screens .shot .frame-paper img { width: min(420px, 70%); margin: 0 auto; }
html.motion-on .walk-grid.is-pinned { margin-top: 0; min-height: calc(100svh - var(--hdr)); padding-block: 32px; }
html.motion-on .walk-grid.is-pinned .walk-screens { display: block; position: relative; width: 100%; aspect-ratio: 16 / 11.5; max-height: calc(100svh - var(--hdr) - 64px); }
html.motion-on .walk-grid.is-pinned .walk-screens .shot { position: absolute; inset: 0; align-items: center; }
html.motion-on .walk-grid.is-pinned .walk-screens .shot .frame-browser { width: 100%; max-height: 100%; overflow: hidden; }
html.motion-on .walk-grid.is-pinned .walk-screens .shot .frame-phone { width: auto; height: 100%; aspect-ratio: 600 / 1320; }
html.motion-on .walk-grid.is-pinned .walk-screens .shot .frame-phone img { height: 100%; width: 100%; object-fit: cover; }
html.motion-on .walk-grid.is-pinned .walk-screens .shot .frame-paper { height: 100%; display: flex; justify-content: center; }
html.motion-on .walk-grid.is-pinned .walk-screens .shot .frame-paper img { width: auto; height: 100%; }
html.motion-on .walk-grid.is-pinned .wstep h3, html.motion-on .walk-grid.is-pinned .wstep p { transition: color 0.4s; }
html.motion-on .walk-grid.is-pinned .wstep:not(.is-on) h3, html.motion-on .walk-grid.is-pinned .wstep:not(.is-on) p { color: var(--dim); }

.start-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.start-line { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); }
.start-line b { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.sstep { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 40px; }
.sstep::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--night); border: 2px solid var(--accent); }
.sstep h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.sstep p { color: var(--mist); }

.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.fan { position: relative; height: clamp(440px, 52vw, 660px); }
.fan .frame-phone { position: absolute; top: 50%; left: 50%; width: clamp(150px, 17vw, 236px); margin-left: calc(clamp(150px, 17vw, 236px) / -2); margin-top: calc(clamp(150px, 17vw, 236px) * -1.08); }
.fan .fan-1 { --fx: -62; --fr: -9; translate: calc(var(--fx) * 1%) 2%; rotate: calc(var(--fr) * 1deg); }
.fan .fan-3 { --fx: 62; --fr: 9; translate: calc(var(--fx) * 1%) -2%; rotate: calc(var(--fr) * 1deg); }
.fan .fan-2 { z-index: 2; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-top: 48px; }
.feature-grid.is-flipped > :first-child { order: 2; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--mist); font-size: 0.98rem; }
.stack { position: relative; aspect-ratio: 16 / 12; }
.stack .frame-browser { position: absolute; width: 86%; }
.stack .stack-back { top: 0; left: 0; }
.stack .stack-front { bottom: 0; right: 0; }
.stack.is-phones { aspect-ratio: auto; display: flex; justify-content: center; gap: 6%; }
.stack.is-phones .frame-phone { position: static; width: min(240px, 42%); }
.stack.is-phones .frame-phone:nth-child(2) { margin-top: 60px; }
.plain-list { display: flex; flex-direction: column; margin-top: 32px; }
.plain-list > div { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; }
.plain-list h3 { font-size: 1.4rem; min-width: 13ch; }
.plain-list p { color: var(--mist); flex: 1 1 260px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 48px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan.is-featured { border-color: var(--accent); }
.price { font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; color: var(--mist); font-weight: 400; letter-spacing: 0; }
.plans-note { margin-top: 24px; color: var(--mist); }

.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 40px; }
.who-grid > * { background: var(--night); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: background-color 0.3s; }
.who-grid > *:hover { background: var(--panel); }
.who-grid h3 { font-size: 1.5rem; }
.who-grid p { color: var(--mist); }
.who-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .who-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.who-note { margin-top: 20px; color: var(--mist); }

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

/* Side-by-side compare (what you enter / what they get) */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 56px; }
.compare-side { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.compare-side .frame-phone { width: min(280px, 80%); }
.compare-side .frame-paper img { width: min(380px, 100%); }
.compare-side .frame-browser { width: 100%; }
.compare-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--accent); text-align: center; max-width: 12rem; }
.compare-mid svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; border: 1px solid var(--accent); }
.cipher { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; font-family: var(--mono); font-size: 13px; }
.cipher dl { margin: 0; }
.cipher dt { color: var(--mist); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.cipher dd { margin: 4px 0 16px; color: var(--ink); word-break: break-all; }
.cipher .is-key dd { color: var(--accent); margin-bottom: 0; }
.cipher-note { margin-top: 14px; color: var(--dim); font-size: 12px; }

/* App screen captions under the fan */
.app-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 28px; margin-top: 28px; }
.app-list div { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.app-list h3 { font-size: 1.05rem; }
.app-list p { color: var(--mist); font-size: 0.95rem; }

/* Statement band */
.band-statement { font-size: clamp(1.8rem, 3.8vw, 3.2rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; max-width: 60rem; }
.band-note { margin-top: 28px; color: var(--mist); font-size: 1.15rem; max-width: 44rem; }

/* FAQ (shared) */
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform 0.3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 24px; color: var(--mist); max-width: 50rem; }
.faq-cta { margin-top: 32px; color: var(--mist); }

/* Prose (blog posts, privacy) */
.prose { max-width: 46rem; font-size: 1.1rem; line-height: 1.75; color: #d7e0ec; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-size: 1.35rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); }
.legal-updated { color: var(--mist); }

/* Blog list */
.blog-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.blog-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px 40px; align-items: baseline; padding-block: 36px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: padding-left 0.3s ease; }
.blog-card:hover { padding-left: 12px; }
.blog-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; }
.blog-card p { color: var(--mist); margin-top: 10px; max-width: 44rem; }
.blog-card .arrow { color: var(--accent); font-size: 1.5rem; }
.blog-footer-nav { margin-top: 3em !important; font-family: var(--mono); font-size: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-grid .prose { max-width: none; }
.stats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stats li { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stats strong { font-size: 1.6rem; letter-spacing: -0.02em; font-weight: 600; }
.stats span { color: var(--mist); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.founder-photo { margin: 0; border-radius: 28px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.founder-photo img { display: block; width: 100%; filter: grayscale(0.15) contrast(1.05); }
.founder-copy { display: flex; flex-direction: column; gap: 18px; }
.founder-copy h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -0.045em; line-height: 1; }
.founder-copy p { color: var(--mist); font-size: 1.1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-meta { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-meta li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.contact-meta .mono { font-size: 12px; }
.contact-meta a, .contact-meta strong { color: var(--ink); font-size: 1.2rem; text-decoration: none; font-weight: 500; }
.contact-meta a:hover { color: var(--accent); }
.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
    font: 400 16px/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink);
    background: var(--night); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 182, 245, 0.25); }
.contact-form .btn { justify-self: start; }
.form-banner { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 14px; list-style: none; }
.form-banner.is-success { background: rgba(74, 222, 128, 0.12); color: var(--ok); }
.form-banner.is-error { background: rgba(248, 113, 113, 0.12); color: var(--danger); padding-left: 18px; }
.form-note { color: var(--mist); font-size: 0.95rem; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 72px 140px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand > p { color: var(--mist); max-width: 26rem; }
.footer-mark { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink) !important; }
.footer-mark span { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--mist); }
.footer-social a:hover { color: var(--ink); border-color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin-bottom: 6px; }
.footer-col p, .footer-col a { color: var(--mist); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }

/* Lightbox for product screenshots */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; background: rgba(4, 8, 16, 0.94); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox.is-open { display: flex; }
.lightbox-toolbar { display: flex; justify-content: flex-end; gap: 8px; }
.lightbox-btn { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 500 15px var(--display); cursor: pointer; }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lightbox-stage.is-dragging { cursor: grabbing; }
.lightbox-image { max-width: 100%; max-height: 100%; transform-origin: center; transition: transform 0.15s ease; user-select: none; }
.lightbox-caption { text-align: center; color: var(--mist); padding-top: 10px; }
body.lightbox-open { overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
    .topbar-nav { display: none; }
    .menu-btn { display: inline-flex; }
    .topbar-actions { margin-left: auto; }
}
@media (max-width: 960px) {
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
    body { font-size: 16px; }
    .services-pin .svc-grid, .walk-grid, .app-grid, .feature-grid, .about-grid, .founder-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .feature-grid.is-flipped > :first-child { order: 0; }
    .services-pin .svc-grid { min-height: auto; }
    html.motion-on .services-pin .svc-grid { align-content: center; }
    .start-row { grid-template-columns: minmax(0, 1fr); }
    .start-line { display: none; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .compare { grid-template-columns: minmax(0, 1fr); }
    .compare-mid { flex-direction: row; max-width: none; justify-content: center; }
    .compare-mid svg { transform: rotate(90deg); }
    .fan { height: 420px; overflow-x: clip; }
    .fan .frame-phone { width: 136px; margin-left: -68px; margin-top: -147px; }
    .fan .fan-1 { --fx: -58; }
    .fan .fan-3 { --fx: 58; }
    .p-hero-stage .p-hero-phone { width: 30%; }
    .blog-card { grid-template-columns: minmax(0, 1fr); }
    .blog-card .arrow { display: none; }
    .contact-form { grid-template-columns: minmax(0, 1fr); }
    .scroll-cue { display: none; }
    .home-hero h1 { white-space: normal; font-size: clamp(2.6rem, 11vw, 5rem); }
    .hero-row { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 24px; }
    .home-hero .hero-sub { font-size: 13px; }
    .hero-actions { justify-content: center; }
}
@media (max-width: 520px) {
    :root { --hdr: 64px; }
    .topbar-inner { gap: 12px; }
    .topbar-brand { font-size: 18px; }
    .topbar-brand .brand-sub, .topbar-wa { display: none; }
    .topbar-cta { padding: 0 14px; min-height: 40px; font-size: 14px; }
    .hero-logo-float { width: 92vw; }
}
@media (max-width: 420px) {
    .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .js .page { animation: none; }
    .scroll-cue i { animation: none; }
    .blog-card, .who-grid > * { transition: none; }
    .hero-logo-float { animation: none; }
}
