﻿/* Button text must stay white: `.np a {color:inherit}` is more specific than `.btn-primary` */
.np .btn-primary, .np a.btn-primary, .np .dd > button.btn-primary { color: #fff !important; }
.np .btn-primary:hover { color: #fff !important; }
.np .plan .base .btn { color: var(--navy) !important; }

/* ============================================================
   Nesto — Public website (landing page)
   Design tokens mirror nesto-ui.css brand colours so the public
   site and the application feel like one product.
   No external dependencies: system font stack + inline SVG icons.
   ============================================================ */
:root {
  --brand: #4f6ef7;
  --brand-dark: #3b57e8;
  --brand-indigo: #6366f1;
  --brand-purple: #8b5cf6;
  --navy: #131c4a;

  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255,255,255,.82);
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #5b6b82;
  --line: #e2e8f0;
  --accent-soft: #eef1ff;
  --ok: #059669;
  --warn: #d97706;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.05);
  --shadow-md: 0 10px 30px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.05);
  --shadow-lg: 0 30px 70px rgba(19,28,74,.18), 0 8px 20px rgba(19,28,74,.08);

  --r-sm: .5rem; --r-md: .875rem; --r-lg: 1.25rem; --r-xl: 1.75rem;
  --ease: cubic-bezier(.4,0,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --header-h: 68px;
}
[data-theme="dark"] {
  --bg: #0b1020;
  --bg-soft: #0f1630;
  --bg-card: #121a38;
  --bg-glass: rgba(11,16,32,.8);
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --ink-3: #9aa9c0;
  --line: #243055;
  --accent-soft: #1a2349;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.np {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.np img, .np svg { max-width: 100%; display: block; }
.np a { color: inherit; text-decoration: none; }
.np h1, .np h2, .np h3, .np h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.np p { margin: 0; }
.np ul { margin: 0; padding: 0; list-style: none; }
.np button { font: inherit; color: inherit; cursor: pointer; }
.ico { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 1rem; height: 1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
[data-theme="dark"] .eyebrow { color: #93a5ff; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; margin-top: .6rem; }
.sec-head p { margin-top: .9rem; color: var(--ink-3); font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }

/* Focus + skip link */
.np :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 1000; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: .95rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-indigo)); color: #fff; box-shadow: 0 8px 22px rgba(79,110,247,.32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,110,247,.42); }
.btn-ghost { background: var(--bg-card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
[data-theme="dark"] .btn-ghost:hover { color: #b5c1ff; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ───────── Header ───────── */
.hdr { position: sticky; top: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.hdr.scrolled { background: var(--bg-glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--line); box-shadow: var(--shadow-sm); }
.hdr-in { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.hdr.scrolled .hdr-in { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.nav { display: none; margin-inline: auto; gap: .25rem; }
.nav a { padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 550; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.hdr-act { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--accent-soft); }
.burger { margin-left: auto; }

.dd { position: relative; }
.dd > button { min-height: 44px; padding: .5rem 1rem; display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); font-weight: 600; font-size: .92rem; }
.dd > button:hover { border-color: var(--brand); }
.dd > button .ico { transition: transform .2s var(--ease); }
.dd.open > button .ico { transform: rotate(180deg); }
.dd-menu { position: absolute; right: 0; top: calc(100% + .6rem); min-width: 290px; padding: .5rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu .dd-title { padding: .5rem .75rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dd-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: var(--r-md); }
.dd-item:hover, .dd-item:focus-visible { background: var(--accent-soft); }
.dd-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--brand-dark); flex: none; line-height: 0; }
.dd-ic .ico { width: 20px; height: 20px; margin: 0; }
[data-theme="dark"] .dd-ic { color: #a9b7ff; background: #1d2750; }
.dd-item strong { display: block; font-size: .92rem; line-height: 1.2; }
.dd-item div span { display: block; font-size: .78rem; color: var(--ink-3); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(8,12,30,.55); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-pn { position: absolute; right: 0; top: 0; bottom: 0; width: min(90vw, 380px); background: var(--bg); padding: 1rem 1.1rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
.drawer.open .drawer-pn { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-nav a { display: block; padding: .85rem .5rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer h3 { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 1.4rem 0 .4rem; }
.drawer .btn { margin-top: 1rem; }

@media (min-width: 1020px) {
  .nav, .hdr-act { display: flex; }
  .burger { display: none; }
}

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 80% 10%, rgba(99,102,241,.16), transparent 70%),
  radial-gradient(45% 40% at 5% 30%, rgba(79,110,247,.12), transparent 70%),
  linear-gradient(var(--bg), var(--bg-soft)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(5,150,105,.16); }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 850; margin-top: 1.1rem; letter-spacing: -.035em; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.2rem; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--ink-3); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-3); }
.hero-note a { color: var(--brand-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .hero-note a { color: #a9b7ff; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.4rem; font-size: .88rem; color: var(--ink-2); }
.hero-ticks li { display: inline-flex; gap: .4rem; align-items: center; }
.hero-ticks .ico { color: var(--ok); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 2rem; } }

/* Device mockups (CSS-built UI previews) */
.stage { position: relative; padding: 0 0 2.5rem; }
.browser { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: .75rem; flex: 1; font-size: .72rem; color: var(--ink-3); background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .75rem; max-width: 260px; }
.dash { display: grid; grid-template-columns: 54px 1fr; min-height: 300px; }
.dash-side { background: var(--navy); padding: .9rem 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; color: #a5b4fc; }
.dash-side .ico { width: 1.15rem; height: 1.15rem; }
.dash-side .on { color: #fff; background: rgba(255,255,255,.14); padding: .45rem; width: 2rem; height: 2rem; border-radius: 10px; }
.dash-main { padding: 1rem; background: var(--bg-soft); }
.dash-h { font-size: .8rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; margin-bottom: .75rem; }
.dash-h small { font-weight: 500; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tile { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .65rem .7rem; }
.tile b { display: block; font-size: .66rem; font-weight: 600; color: var(--ink-3); }
.tile .bar { height: 7px; border-radius: 99px; background: var(--accent-soft); margin-top: .55rem; overflow: hidden; }
.tile .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-purple)); }
.tile em { font-style: normal; font-size: .78rem; font-weight: 700; display: block; margin-top: .3rem; }
.rows { margin-top: .7rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); }
.row { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; font-size: .72rem; border-bottom: 1px solid var(--line); }
.row:last-child { border: 0; }
.row .av { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--brand-dark); flex: none; }
.row .av .ico { width: .8rem; height: .8rem; }
.row span { flex: 1; color: var(--ink-2); }
.tag { font-size: .62rem; font-weight: 700; padding: .12rem .5rem; border-radius: 99px; background: #dcfce7; color: #047857; }
.tag.a { background: #fef3c7; color: #b45309; } .tag.b { background: #e0e7ff; color: #4338ca; }

.phone { width: 210px; background: #0b1020; border-radius: 34px; padding: 9px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.phone-in { background: var(--bg-soft); border-radius: 26px; overflow: hidden; min-height: 400px; position: relative; display: flex; flex-direction: column; }
.phone-in::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 58px; height: 14px; border-radius: 99px; background: #0b1020; z-index: 3; }
.ph-top { padding: 1.8rem .85rem .8rem; background: linear-gradient(135deg, var(--navy), #1e2563); color: #fff; }
.ph-top small { font-size: .62rem; opacity: .7; display: block; } .ph-top strong { font-size: .88rem; }
.ph-body { padding: .7rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
.ph-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .65rem; font-size: .66rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: center; }
.ph-card .ico { color: var(--brand); width: 1rem; height: 1rem; }
.ph-card b { color: var(--ink); display: block; font-size: .7rem; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.ph-grid span { aspect-ratio: 1; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-dark); }
.ph-grid .ico { width: 1rem; height: 1rem; }
.ph-nav { display: flex; justify-content: space-around; padding: .55rem; background: var(--bg-card); border-top: 1px solid var(--line); color: var(--ink-3); }
.ph-nav .on { color: var(--brand); }
.qr { width: 74px; height: 74px; margin: .2rem auto; background:
  conic-gradient(from 90deg at 50% 50%, var(--ink) 0 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0/14px 14px; border: 6px solid var(--bg-card); outline: 1px solid var(--line); border-radius: 6px; opacity: .85; }

.stage .phone { position: absolute; right: -.2rem; bottom: 0; width: 176px; transform: rotate(3deg); }
.stage .phone .phone-in { min-height: 330px; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .5rem; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: .5rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; animation: floaty 6s ease-in-out infinite; }
.chip .ico { color: var(--ok); }
.chip.c1 { left: -.5rem; top: 28%; } .chip.c2 { left: 10%; bottom: .2rem; animation-delay: -3s; }
.preview-note { position: absolute; left: 0; bottom: -1.9rem; font-size: .72rem; color: var(--ink-3); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .stage .phone { width: 140px; right: -.4rem; } .stage .phone .phone-in { min-height: 260px; } .chip.c1 { display: none; } .tiles { grid-template-columns: repeat(2, 1fr); } .tiles .tile:nth-child(3) { display: none; } }

/* ───────── Problem cards ───────── */
.grid3 { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79,110,247,.4); }
.card h3 { font-size: 1.1rem; font-weight: 750; margin-top: 1rem; }
.card p { margin-top: .5rem; color: var(--ink-3); font-size: .95rem; }
.ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-indigo)); }
.ic.g { background: linear-gradient(135deg, #10b981, #059669); } .ic.a { background: linear-gradient(135deg, #f59e0b, #d97706); } .ic.r { background: linear-gradient(135deg, #ef4444, #dc2626); } .ic.p { background: linear-gradient(135deg, #8b5cf6, #7c3aed); } .ic.t { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.from-to { display: flex; flex-direction: column; gap: .35rem; margin-top: .9rem; font-size: .85rem; }
.from-to s { color: var(--ink-3); } .from-to b { color: var(--ok); font-weight: 650; }

/* ───────── Feature bento ───────── */
.bento { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento .w2 { grid-column: span 2; } }
.badge { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .55rem; border-radius: 99px; background: var(--accent-soft); color: var(--brand-dark); margin-left: .5rem; vertical-align: middle; }
[data-theme="dark"] .badge { color: #a9b7ff; }
.ticks { margin-top: .9rem; display: grid; gap: .4rem; font-size: .88rem; color: var(--ink-2); }
.ticks li { display: flex; gap: .5rem; align-items: flex-start; }
.ticks .ico { width: 1rem; height: 1rem; color: var(--ok); margin-top: .25rem; }
.mods { margin-top: 2.2rem; padding: 1.4rem; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.mods h3 { font-size: 1rem; font-weight: 700; }
.mods p { color: var(--ink-3); font-size: .9rem; margin-top: .25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chips li { display: inline-flex; gap: .4rem; align-items: center; padding: .4rem .8rem; border-radius: 99px; background: var(--bg-card); border: 1px solid var(--line); font-size: .85rem; font-weight: 550; }
.chips .ico { color: var(--brand); width: 1rem; height: 1rem; }

/* ───────── Roles (tabs) ───────── */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; margin-bottom: 1.8rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 650; font-size: .92rem; color: var(--ink-3); white-space: nowrap; min-height: 44px; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-indigo)); color: #fff; }
.tab:not([aria-selected="true"]):hover { color: var(--ink); background: var(--accent-soft); }
.panel { display: none; gap: 2rem; align-items: center; }
.panel.on { display: grid; animation: fadeUp .4s var(--ease); }
@media (min-width: 900px) { .panel.on { grid-template-columns: 1fr 1fr; } }
.panel h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.panel .sub { margin-top: .7rem; color: var(--ink-3); }
.panel-vis { background: linear-gradient(135deg, var(--accent-soft), var(--bg-card)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.6rem; display: grid; place-items: center; min-height: 280px; }
.panel-vis .phone { width: 190px; transform: none; }
.panel-vis .phone-in { min-height: 300px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────── How it works ───────── */
.steps { display: grid; gap: 1rem; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps > li { list-style: none; }
.steps > li::marker { content: ""; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); position: relative; } .steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; } }
.step { position: relative; z-index: 1; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-indigo)); color: #fff; font-weight: 800; font-size: .9rem; margin-bottom: .8rem; box-shadow: 0 0 0 5px var(--bg-soft); }
.step h3 { font-size: 1rem; font-weight: 750; }
.step p { font-size: .88rem; color: var(--ink-3); margin-top: .35rem; }

/* ───────── Mobile / PWA ───────── */
.mob { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .mob { grid-template-columns: 1fr 1fr; } }
.phones { display: flex; justify-content: center; gap: 1.2rem; }
.phones .phone:nth-child(2) { margin-top: 2.5rem; }
@media (max-width: 480px) { .phones .phone { width: 150px; } .phones .phone-in { min-height: 300px; } }
.feat-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feat-list li { display: flex; gap: .9rem; }
.feat-list .ic { width: 40px; height: 40px; border-radius: 12px; }
.feat-list strong { display: block; font-size: .98rem; } .feat-list li > div span { display: block; color: var(--ink-3); font-size: .9rem; }
.feat-list .ic, .plan .mod .ic { display: grid; place-items: center; flex: none; color: #fff; }

/* ───────── Security ───────── */
.sec-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.sec-note { margin-top: 1.5rem; font-size: .88rem; color: var(--ink-3); }
.sec-note a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .sec-note a { color: #a9b7ff; }

/* ───────── Plans ───────── */
.plan { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .plan { grid-template-columns: 1fr 1.5fr; } }
.plan .base { background: linear-gradient(160deg, var(--navy), #1e2563); color: #fff; border-radius: var(--r-xl); padding: 2rem; }
.plan .base h3 { color: #fff; font-size: 1.4rem; }
.plan .base p { color: #c7d2fe; margin-top: .6rem; font-size: .95rem; }
.plan .base .ticks { color: #e0e7ff; } .plan .base .ticks .ico { color: #6ee7b7; }
.plan .base .btn { margin-top: 1.5rem; background: #fff; color: var(--navy); }
.plan .mod-grid { display: grid; gap: .8rem; }
@media (min-width: 560px) { .plan .mod-grid { grid-template-columns: 1fr 1fr; } }
.plan .mod { display: flex; gap: .8rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.plan .mod strong { font-size: .92rem; display: block; } .plan .mod div span { font-size: .8rem; color: var(--ink-3); display: block; }
.plan .mod .ic { width: 40px; height: 40px; border-radius: 12px; }

/* App boxes */
.pt-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .pt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .pt-grid { grid-template-columns: repeat(5, 1fr); } }
.pt { display: flex; align-items: center; gap: .7rem; padding: .8rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; min-height: 64px; }
.pt:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pt .dd-ic { width: 40px; height: 40px; }
.pt .ico { width: 1.2rem; height: 1.2rem; }
.pt strong { display: block; font-size: .88rem; line-height: 1.2; }
.pt div span { display: block; font-size: .74rem; color: var(--ink-3); }

/* ───────── FAQ ───────── */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: .7rem; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1.2rem; transition: border-color .2s; }
.faq details[open] { border-color: rgba(79,110,247,.5); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 0; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--ink-3); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-3); font-size: .95rem; }
.faq details a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .faq details a { color: #a9b7ff; }

/* ───────── Demo form ───────── */
.demo { display: grid; gap: 2.5rem; align-items: start; background: linear-gradient(160deg, var(--navy), #1e2563); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3rem); color: #fff; }
@media (min-width: 900px) { .demo { grid-template-columns: .9fr 1.1fr; } }
.demo h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
.demo .lead2 { margin-top: .9rem; color: #c7d2fe; }
.demo ul { margin-top: 1.4rem; display: grid; gap: .6rem; color: #e0e7ff; font-size: .95rem; }
.demo li { display: flex; gap: .6rem; } .demo li .ico { color: #6ee7b7; margin-top: .2rem; }
.demo .mail { margin-top: 1.6rem; font-size: .92rem; color: #c7d2fe; }
.demo .mail a { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.form { background: var(--bg-card); color: var(--ink); border-radius: var(--r-lg); padding: 1.4rem; display: grid; gap: .9rem; box-shadow: var(--shadow-lg); }
.f2 { display: grid; gap: .9rem; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.fld label { display: block; font-size: .82rem; font-weight: 650; margin-bottom: .3rem; color: var(--ink-2); }
.fld label small { font-weight: 500; color: var(--ink-3); }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 46px; padding: .65rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,110,247,.18); }
.fld .err { display: none; color: #dc2626; font-size: .78rem; margin-top: .25rem; }
.fld.bad input, .fld.bad textarea { border-color: #dc2626; } .fld.bad .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: .8rem 1rem; border-radius: var(--r-sm); font-size: .9rem; display: none; }
.msg.show { display: block; } .msg.ok { background: #dcfce7; color: #166534; } .msg.no { background: #fee2e2; color: #991b1b; }
.fine { font-size: .75rem; color: var(--ink-3); }
.fine a { text-decoration: underline; }

/* ───────── Footer ───────── */
.ftr { border-top: 1px solid var(--line); padding-block: 3rem 2rem; margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--bg-soft); }
.ftr-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .ftr-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.ftr h4 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.ftr li a { display: inline-block; padding: .2rem 0; font-size: .92rem; color: var(--ink-2); }
.ftr li a:hover { color: var(--brand-dark); text-decoration: underline; }
.ftr p.d { color: var(--ink-3); font-size: .9rem; margin-top: .8rem; max-width: 22rem; }
.ftr-bot { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Scroll reveal (only when JS is active) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

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

/* App boxes inside the Mobile section (narrow column) */
.mob-apps { margin-top: 1.5rem; grid-template-columns: repeat(2, 1fr) !important; }
.mob-apps .pt:last-child { grid-column: span 2; }
@media (max-width: 380px) { .mob-apps { grid-template-columns: 1fr !important; } .mob-apps .pt:last-child { grid-column: auto; } }


/* Dark mode: white edges on buttons, images and device frames */
[data-theme="dark"] .btn,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .dd > button,
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .tab,
[data-theme="dark"] .tabs,
[data-theme="dark"] .pill,
[data-theme="dark"] .chip,
[data-theme="dark"] .chips li,
[data-theme="dark"] .pt { border-color: #fff; }
[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .dd > button:hover,
[data-theme="dark"] .pt:hover { border-color: #fff; background: rgba(255,255,255,.08); }
[data-theme="dark"] .np img,
[data-theme="dark"] .brand img,
[data-theme="dark"] .browser,
[data-theme="dark"] .phone,
[data-theme="dark"] .panel-vis,
[data-theme="dark"] .dd-menu,
[data-theme="dark"] .form,
[data-theme="dark"] .fld input,
[data-theme="dark"] .fld textarea,
[data-theme="dark"] .fld select { border: 1px solid #fff; }
[data-theme="dark"] .brand img { border-radius: 9px; }

/* Dark mode: white form fields */
[data-theme="dark"] .fld input,
[data-theme="dark"] .fld textarea,
[data-theme="dark"] .fld select { background: #fff; color: #0b1020; }
[data-theme="dark"] .fld input::placeholder,
[data-theme="dark"] .fld textarea::placeholder { color: #6b7280; }
[data-theme="dark"] .fld select option { background: #fff; color: #0b1020; }
