/* SnapSift landing - Direction D2 (Tek Darbe) brand system
 * Official palette: Darkroom (#0C0C0E), Film (#1C1C20), Grain (#3A3A40),
 * Safelight (#FF4A3A), Pencil (#D42E21), Silver (#A9A9B2), Paper (#F4F4F2), Light Grain (#CFCFD4).
 * Light and dark themes via [data-theme].
 */
:root, [data-theme="light"] {
    --bg: #FFFFFF; --bg-2: #F4F4F2; --card: #FFFFFF; --ink: #0C0C0E; --muted: #5C5C66;
    --line: #CFCFD4; --primary: #D42E21; --primary-2: #B82519; --on-primary: #FFFFFF;
    --accent: #FF4A3A; --soft: rgba(212, 46, 33, 0.08); --navy: #0C0C0E; --on-navy: #F4F4F2;
    --danger: #6E6E77; --ok: #12A66A;
    --shadow: 0 20px 50px -20px rgba(12, 12, 14, .22); --shadow-sm: 0 6px 18px -8px rgba(12, 12, 14, .14);
}
[data-theme="dark"] {
    --bg: #0C0C0E; --bg-2: #141418; --card: #1C1C20; --ink: #F4F4F2; --muted: #A9A9B2;
    --line: #3A3A40; --primary: #FF4A3A; --primary-2: #FF6457; --on-primary: #FFFFFF;
    --accent: #FF4A3A; --soft: rgba(255, 74, 58, 0.14); --navy: #1C1C20; --on-navy: #F4F4F2;
    --danger: #8A8A94; --ok: #34D399;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .72); --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .6);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; } button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .hd { font-family: 'Archivo', 'Inter', sans-serif; letter-spacing: -.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* nav */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { display: block; height: 46px; width: auto; min-width: 144px; border-radius: 0; }
.brand-footer .brand-logo { width: 320px; max-width: 100%; height: auto; min-width: 0; margin-left: -17px; margin-bottom: 4px; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.nav { display: none; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (min-width: 1024px) { .nav { display: flex; } }
.tools { display: flex; gap: 8px; align-items: center; }
.chip { height: 38px; min-width: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; transition: border-color .2s; }
.chip:hover { border-color: var(--primary); }
.chip.cur { color: var(--primary); border-color: var(--primary); }
.theme-toggle svg { width: 17px; height: 17px; } .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; } [data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: inline-flex; } @media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-menu { display: none; padding: 8px 24px 20px; border-top: 1px solid var(--line); }
.mobile-menu.open { display: block; } .mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); }
.btn-outline { background: var(--card); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); transform: translateY(-2px); }
.store { padding: 11px 22px; border-radius: 16px; text-align: left; gap: 12px; }
.store i { font-size: 24px; } .store small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; font-weight: 500; line-height: 1.1; }
.store b { font-size: 16px; line-height: 1.2; }

/* hero */
.hero { position: relative; padding: 72px 0 0; text-align: center; overflow: hidden;
    background: radial-gradient(60% 50% at 50% 0%, var(--soft), transparent 70%), radial-gradient(40% 40% at 90% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--soft); color: var(--primary); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; margin: 22px auto 0; max-width: 900px; }
.hero h1 em { display: block; margin-top: 6px; font-style: normal; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 680px; margin: 22px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.trust { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.trust i { color: var(--ok); margin-right: 6px; }

.stage { position: relative; margin: 56px auto 0; max-width: 980px; height: 540px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 14px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.phone { position: relative; width: 270px; border-radius: 40px; overflow: hidden; background: #0C0C0E; border: 9px solid #1C1C20; box-shadow: var(--shadow); flex: 0 0 auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p-main { z-index: 2; width: 300px; aspect-ratio: 9/19; }
.phone.p-left { transform: translateX(34px) rotate(-6deg) translateY(56px); aspect-ratio: 9/19; width: 250px; z-index: 1; }
.phone.p-right { transform: translateX(-34px) rotate(6deg) translateY(56px); aspect-ratio: 9/19; width: 250px; z-index: 1; }
@media (max-width: 760px) { .phone.p-left, .phone.p-right { display: none; } .phone.p-main { width: 260px; } }
.float { position: absolute; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center; text-align: left; animation: bob 5s ease-in-out infinite alternate; }
.float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--primary); font-size: 16px; flex: none; }
.float b { display: block; font-size: 14px; line-height: 1.2; } .float span { font-size: 12px; color: var(--muted); }
.f1 { top: 12%; left: 2%; } .f2 { top: 44%; right: 0; animation-delay: -2s; } .f3 { bottom: 12%; left: 8%; animation-delay: -3.5s; }
.f2 .ic { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.f3 .ic { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
@keyframes bob { to { transform: translateY(-10px); } }
@media (max-width: 900px) { .float { display: none; } }

/* metrics */
.metrics { border-block: 1px solid var(--line); background: var(--bg-2); }
.metrics-in { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .metrics-in { grid-template-columns: repeat(4, 1fr); } }
.metric { padding: 28px 16px; text-align: center; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric b { display: block; font: 800 34px 'Archivo', sans-serif; letter-spacing: -.03em; color: var(--primary); }
.metric span { font-size: 13.5px; color: var(--muted); }

/* sections */
section.s { padding: 96px 0; }
.s.alt { background: var(--bg-2); }
.s-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.s-head h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; font-weight: 800; margin: 18px 0 14px; letter-spacing: -.035em; }
.s-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* scenarios */
.grid2 { display: grid; gap: 22px; }
@media (min-width: 800px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--soft); color: var(--primary); margin-bottom: 20px; }
.card h3 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card.hl { background: linear-gradient(135deg, #0C0C0E 0%, #1C1C20 100%); color: #F4F4F2; border: 1.5px solid #FF4A3A; box-shadow: 0 20px 50px -24px rgba(255, 74, 58, .3); }
.card.hl p { color: #A9A9B2; } .card.hl .ico { background: rgba(255, 74, 58, .18); color: #FF4A3A; }
.tagline { display: inline-block; margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--primary); }
.card.hl .tagline { background: rgba(255, 74, 58, .18); color: #FF4A3A; }

/* demo */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tab { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14.5px; transition: all .2s; }
.tab:hover { border-color: var(--primary); }
.tab.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: 0 8px 20px -10px var(--primary); }
.demo { display: grid; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 36px; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .demo { grid-template-columns: 330px 1fr; padding: 48px; } }
.demo .phone { margin: 0 auto; width: 290px; aspect-ratio: 9/19; }
.demo h3 { font-size: 30px; line-height: 1.12; margin: 0 0 12px; font-weight: 800; }
.demo p { color: var(--muted); margin: 0 0 24px; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.meter { background: var(--bg-2); border-radius: 18px; padding: 16px; }
.meter b { display: block; font: 800 26px 'Archivo', sans-serif; color: var(--primary); letter-spacing: -.03em; line-height: 1.1; }
.meter span { font-size: 12.5px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 15px; align-items: flex-start; }
.checks li::before { content: '\f00c'; font: 900 12px 'Font Awesome 6 Free'; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); display: grid; place-items: center; flex: none; margin-top: 2px; }
.checks.x li::before { content: '\f00d'; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

/* criteria */
.crit-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .crit-grid { grid-template-columns: 1fr 1.05fr; } }
.crit { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.crit li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.crit .ico { margin: 0; width: 46px; height: 46px; font-size: 18px; flex: none; }
.crit strong { display: block; font: 700 18px 'Archivo', sans-serif; } .crit small { color: var(--muted); font-size: 14.5px; }
.panel { background: var(--navy); color: var(--on-navy); border: 1px solid #3A3A40; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-top span { font-size: 14px; color: #A9A9B2; }
.score { font: 800 52px 'Archivo', sans-serif; color: #FF4A3A; letter-spacing: -.04em; line-height: 1; }
.slider-row { padding: 14px 0; } .slider-row .l { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 10px; } .slider-row .l b { color: #FF4A3A; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: rgba(244, 244, 242, .14); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #F4F4F2; border: 5px solid #FF4A3A; cursor: grab; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #F4F4F2; border: 5px solid #FF4A3A; cursor: grab; }
.saved { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 22px; border-top: 1px solid #3A3A40; gap: 12px; flex-wrap: wrap; }
.saved span { font-size: 13px; color: #A9A9B2; display: block; } .saved b { font: 800 30px 'Archivo', sans-serif; color: #34D399; }
.saved .btn-primary { background: #FF4A3A; color: #FFFFFF; box-shadow: none; }
.saved .btn-primary:hover { background: #FF6457; }

/* steps */
.steps { display: grid; gap: 22px; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps::before { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 2px dashed var(--line); } }
.step { text-align: center; position: relative; padding: 0 8px; }
.step .num { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--primary); color: var(--primary); display: grid; place-items: center; font: 800 26px 'Archivo', sans-serif; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg); }
.s.alt .step .num { box-shadow: 0 0 0 8px var(--bg-2); }
.step h3 { font-size: 19px; margin: 0 0 8px; } .step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* features */
.fgrid { display: grid; gap: 20px; }
@media (min-width: 700px) { .fgrid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1020px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
.fgrid .card { padding: 28px; } .fgrid .card h3 { font-size: 19px; } .fgrid .card p { font-size: 14.5px; }

/* compare (darkroom band) */
.band { background: #0C0C0E; color: #F4F4F2; border-block: 1px solid var(--line); }
.band .s-head p { color: #A9A9B2; } .band .eyebrow { background: rgba(255, 74, 58, .14); color: #FF4A3A; border-color: rgba(255, 74, 58, .35); } .band .eyebrow::before { background: #FF4A3A; }
.vs { display: grid; gap: 24px; } @media (min-width: 900px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs > div { border-radius: 28px; padding: 36px; }
.vs .old { border: 1px solid #3A3A40; background: #141418; }
.vs .old li { color: #A9A9B2; }
.vs .new { background: #1C1C20; border: 1.5px solid #FF4A3A; box-shadow: 0 30px 60px -25px rgba(255, 74, 58, .28); }
.vs h3 { font-size: 26px; margin: 0 0 22px; } .vs small { display: block; margin-bottom: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #A9A9B2; }
.vs .new small { color: #FF4A3A; }
.vs .new .btn { background: #FF4A3A; color: #FFFFFF; }
.vs .new .btn:hover { background: #FF6457; }

/* screens */
.reel { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; }
.reel figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; text-align: center; }
.reel .phone { width: 100%; aspect-ratio: 9/19; border-width: 6px; border-radius: 30px; }
.reel .phone::after { display: none; }
.reel figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* cta */
.cta { margin: 0 24px; border-radius: 36px; padding: 72px 24px; text-align: center; color: #F4F4F2; background: linear-gradient(135deg, #0C0C0E 0%, #1C1C20 100%); border: 1px solid #3A3A40; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: rgba(255, 74, 58, .14); }
.cta h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0 auto 16px; max-width: 760px; position: relative; }
.cta p { max-width: 560px; margin: 0 auto 32px; color: #A9A9B2; font-size: 17px; position: relative; }
.cta .cta-row { margin: 0; position: relative; }
.cta .btn-primary { background: #FF4A3A; color: #FFFFFF; box-shadow: 0 10px 24px -10px rgba(255, 74, 58, .55); }
.cta .btn-primary:hover { background: #FF6457; }
.cta .btn-outline { background: transparent; color: #F4F4F2; border-color: #3A3A40; }
.cta .btn-outline:hover { border-color: #FF4A3A; }

/* contact */
.form { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow-sm); }
.form .two { display: grid; gap: 18px; } @media (min-width: 700px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.ok { max-width: 760px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 600; }

footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 56px 0 32px; background: var(--bg-2); }
.f-grid { display: grid; gap: 36px; margin-bottom: 40px; } @media (min-width: 800px) { .f-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.f-grid h4 { margin: 0 0 14px; font: 700 15px 'Archivo', sans-serif; }
.f-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.f-grid a:hover, .f-grid button:hover { color: var(--primary); } .f-grid button { background: none; border: 0; padding: 0; color: inherit; text-align: left; }
.f-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }

/* error page */
.err-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.err-card { max-width: 440px; width: 100%; text-align: center; padding: 40px 32px; }
.err-brand { justify-content: center; margin-bottom: 24px; }
.err-ico { margin: 0 auto 20px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.err-card h1 { font-size: 40px; margin: 0 0 10px; }
.err-card p { margin: 0 0 28px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 14, .72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; max-width: 620px; width: 100%; max-height: 85vh; overflow: auto; padding: 32px; box-shadow: var(--shadow); }
.modal-box h3 { margin: 0 0 14px; font-size: 24px; } .modal-box p { color: var(--muted); }
.modal-x { float: right; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); }

.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; } .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .float { animation: none; } }
