/* DocNest presentation site - shared styles */
:root {
  --bg: #0b1220;
  --bg-2: #0e1729;
  --card: #111b30;
  --card-2: #15213a;
  --line: #1e293b;
  --line-2: #27354d;
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --sky: #0ea5e9;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --ok: #34d399;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: #7cc4fa; text-underline-offset: 3px; }
a:hover { color: #bae6fd; }
:focus-visible { outline: 3px solid var(--amber-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: #1c1203; padding: 8px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #1c1203; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; }
.main-nav { margin-left: auto; display: none; gap: 4px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.main-nav a:hover { color: var(--text); background: var(--card); }
@media (min-width: 820px) { .main-nav { display: flex; } }
.lang-toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--bg-2); }
@media (min-width: 820px) { .lang-toggle { margin-left: 8px; } }
.lang-toggle button {
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  padding: 5px 11px; cursor: pointer; min-width: 40px; min-height: 30px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.lang-toggle button:hover:not([aria-pressed="true"]) { color: var(--text); }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--amber-soft); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1;
  background:
    radial-gradient(520px 320px at 78% 30%, rgba(14, 165, 233, .20), transparent 70%),
    radial-gradient(420px 300px at 15% 10%, rgba(37, 99, 235, .22), transparent 70%),
    radial-gradient(300px 200px at 70% 85%, rgba(245, 158, 11, .10), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-logo { width: 72px; height: 72px; margin-bottom: 20px; filter: drop-shadow(0 10px 24px rgba(14, 165, 233, .35)); }
.hero h1 .grad { background: linear-gradient(90deg, #38bdf8, #60a5fa 55%, var(--amber-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { display: block; font-size: clamp(1.05rem, 2.6vw, 1.3rem); font-weight: 600; color: #cbd5e1; letter-spacing: 0; margin-top: 8px; }
.hero .lead { max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li { font-size: .85rem; color: #cbd5e1; border: 1px solid var(--line-2); background: rgba(17, 27, 48, .7); border-radius: 999px; padding: 5px 12px; }

/* Store badges (coming soon, not links) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid #3b4a63; border-radius: 12px;
  padding: 8px 16px 8px 12px; min-width: 190px; cursor: default; user-select: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .b-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .b-small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-soft); font-weight: 700; }
.store-badge .b-big { font-size: 1.12rem; font-weight: 650; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 280px; max-width: 100%; aspect-ratio: 280 / 580;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #334155, #0f172a 40%, #1e293b);
  box-shadow: 0 30px 80px rgba(2, 6, 23, .7), 0 0 0 1px #475569 inset, 0 0 60px rgba(14, 165, 233, .15);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: #020617; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0a0f1a; display: flex; flex-direction: column; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; padding: 44px 14px 10px; color: #e2e8f0; font-size: .82rem; font-weight: 600; }
.screen-top .pill { font-size: .68rem; font-weight: 700; color: #0b1220; background: var(--amber-soft); border-radius: 999px; padding: 2px 8px; }
.screen-view { flex: 1; min-height: 0; position: relative; }
.screen-view svg { width: 100%; height: 100%; display: block; }
.screen-tools { padding: 10px 12px 18px; background: #0d1424; border-top: 1px solid #1e293b; }
.looks { display: flex; gap: 4px; justify-content: space-between; margin-bottom: 10px; }
.looks span { flex: 1 1 auto; min-width: 0; text-align: center; font-size: .6rem; font-weight: 600; color: #94a3b8; border: 1px solid #1e293b; border-radius: 8px; padding: 5px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.looks span.on { color: #fff; border-color: var(--sky); background: rgba(14, 165, 233, .18); }
.slider { display: flex; align-items: center; gap: 8px; font-size: .62rem; color: #94a3b8; margin-bottom: 12px; }
.slider .track { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky) 68%, #1e293b 68%); position: relative; }
.slider .track::after { content: ""; position: absolute; left: 68%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(14, 165, 233, .35); }
.save-btn { display: block; text-align: center; font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: 12px; padding: 9px; }
.scanline { animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: .0; } 10% { opacity: .9; } 50% { transform: translateY(230px); opacity: .9; } 60% { opacity: 0; } }
.handle { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .scanline, .handle { animation: none; } .scanline { opacity: 0; } }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .22), rgba(37, 99, 235, .22)); color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, .25);
}
.feature .icon.amber { background: rgba(245, 158, 11, .14); color: var(--amber-soft); border-color: rgba(245, 158, 11, .3); }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #0b1220;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
}
.step p { color: var(--muted); }

/* Plans */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(14, 165, 233, .55); background: linear-gradient(180deg, rgba(14, 165, 233, .10), var(--card) 40%); }
.plan .plan-tag { font-size: .75rem; font-weight: 700; color: var(--amber-soft); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.plan .plan-kind { color: #cbd5e1; font-weight: 600; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; color: #cbd5e1; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: rgba(148, 163, 184, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.price-note { max-width: 760px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: .95rem; }

.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.compare caption { text-align: left; padding: 16px 16px 4px; font-weight: 650; }
.compare th, .compare td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { border-top: 0; color: #e2e8f0; font-weight: 700; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: #cbd5e1; }
.compare td { color: var(--muted); }
.yes { color: var(--ok); font-weight: 800; }
.no-mark { color: #64748b; }

/* Privacy highlights */
.privacy-points { list-style: none; padding: 0; margin: 0; }
.privacy-points li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-points .dot { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 158, 11, .14); color: var(--amber-soft); border: 1px solid rgba(245, 158, 11, .3); }
.privacy-points .dot svg { width: 18px; height: 18px; }
.privacy-points h3 { margin-bottom: 4px; }
.privacy-points p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--sky); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; }
.cta .badges { justify-content: center; }

/* Legal / document pages */
.doc { padding: 48px 0 72px; }
.doc .container { max-width: 820px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.3rem; margin-top: 40px; padding-top: 8px; }
.doc p, .doc li { color: #cbd5e1; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc strong { color: var(--text); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0; }
.callout.amber { border-left-color: var(--amber); }
.callout p:last-child { margin-bottom: 0; }
.operator { font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; color: #cbd5e1; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; margin-bottom: 14px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #0b1220; background: linear-gradient(135deg, var(--amber-soft), var(--amber)); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; line-height: 1; background: linear-gradient(90deg, #38bdf8, var(--amber-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; text-decoration: none; color: #fff;
  background: var(--blue); border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; min-height: 44px;
}
.btn:hover { background: var(--blue-2); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--card); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (min-width: 720px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
.footer-legal p { margin: 0 0 .3em; }
.view-chip { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; font-size: .66rem; font-weight: 700; color: #fff; background: rgba(14, 165, 233, .92); border-radius: 999px; padding: 4px 10px; box-shadow: 0 6px 16px rgba(2, 6, 23, .5); }
.view-chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
