/* Deskbridge — one stylesheet, system fonts, light + dark. */
:root {
  --bg: #f7f7f9;
  --bg-elev: #ffffff;
  --bg-sunk: #eeeef2;
  --text: #111116;
  --text-2: #4a4a55;
  --text-3: #74747f;
  --line: rgba(17, 17, 22, 0.1);
  --accent: #4f46e5;
  --accent-2: #0ea5e9;
  --accent-ink: #ffffff;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --good: #059669;
  --warn-bg: #fff7e6;
  --warn-ink: #7a4b00;
  --shadow: 0 1px 2px rgba(17, 17, 22, 0.06), 0 12px 40px -12px rgba(17, 17, 22, 0.18);
  --shadow-lg: 0 2px 6px rgba(17, 17, 22, 0.06), 0 40px 90px -30px rgba(30, 27, 75, 0.45);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --bg-elev: #15151d;
    --bg-sunk: #101017;
    --text: #f2f2f6;
    --text-2: #b5b5c2;
    --text-3: #8a8a98;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #8b85ff;
    --accent-2: #38bdf8;
    --accent-ink: #0b0b10;
    --accent-soft: rgba(139, 133, 255, 0.14);
    --good: #34d399;
    --warn-bg: #2a2110;
    --warn-ink: #f5d08a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    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; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif; letter-spacing: -0.022em; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-elev); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 620; font-size: 1rem; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-row form { margin: 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 0.93rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; }
@media (min-width: 820px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 719px) { section { padding: 64px 0; } }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.15rem; }
.alt { background: var(--bg-sunk); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto; height: 700px; background: radial-gradient(60% 50% at 50% 30%, var(--accent-soft), transparent 70%); pointer-events: none; z-index: -1; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-2); max-width: 680px; margin: 0 auto 32px; }
.hero .fine { margin-top: 16px; color: var(--text-3); font-size: 0.9rem; }
.notice { max-width: 640px; margin: 0 auto 28px; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.95rem; }
.hero-stage { position: relative; margin: 56px auto 0; max-width: 1040px; padding-right: 7%; }
.hero-stage .phone { position: absolute; right: 0; bottom: -18px; width: 17%; min-width: 74px; }

/* Mac window mock */
.window { border-radius: 14px; overflow: hidden; background: #1c1c22; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: linear-gradient(#3a3a42, #2c2c33); position: relative; }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { position: absolute; left: 0; right: 0; text-align: center; color: #c9c9d1; font-size: 13px; font-weight: 600; pointer-events: none; }
.window img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 560px) { .window-bar { height: 24px; gap: 6px; padding: 0 10px; } .window-bar i { width: 8px; height: 8px; } .window-bar span { font-size: 11px; } }

/* Phone mock (folded Galaxy, screen blacked out) */
.phone { aspect-ratio: 9 / 20; border-radius: 22% / 10%; background: #000; border: 3px solid #2a2a31; box-shadow: var(--shadow-lg), inset 0 0 0 2px #0e0e12; position: relative; }
.phone::before { content: ""; position: absolute; top: 3.5%; left: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #16161b; transform: translateX(-50%); }
.phone-label { position: absolute; inset: auto 0 8%; text-align: center; color: #5d5d68; font-size: clamp(8px, 1vw, 11px); font-weight: 600; letter-spacing: 0.04em; }

/* Trust chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 64px auto 0; color: var(--text-2); font-size: 0.95rem; }
.chips span { display: inline-flex; align-items: center; gap: 8px; }
.chips svg { color: var(--good); flex: none; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 18px; }
.step p { color: var(--text-2); margin: 0; }

/* Feature grid */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature p { color: var(--text-2); margin: 0; font-size: 0.98rem; }

/* Orientation switcher (CSS only) */
.orient { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .orient { grid-template-columns: 1fr 1.25fr; } }
.seg { display: inline-flex; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 8px 0 20px; }
.orient-radio { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--text-2); }
#o-land:checked ~ .orient .seg label[for="o-land"], #o-port:checked ~ .orient .seg label[for="o-port"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
#o-land:focus-visible ~ .orient .seg label[for="o-land"], #o-port:focus-visible ~ .orient .seg label[for="o-port"] { outline: 3px solid var(--accent); }
.orient-stage { display: grid; place-items: center; min-height: 420px; }
.orient-stage .window { width: 100%; transition: width 0.35s ease; }
.orient-stage .window img { transition: aspect-ratio 0.35s ease; }
.orient-stage .img-port { display: none; }
#o-port:checked ~ .orient .orient-stage .window { width: min(46%, 300px); }
#o-port:checked ~ .orient .orient-stage .img-land { display: none; }
#o-port:checked ~ .orient .orient-stage .img-port { display: block; aspect-ratio: 9 / 16; }
@media (max-width: 899px) { .orient-stage { min-height: 0; } #o-port:checked ~ .orient .orient-stage .window { width: min(62%, 300px); } }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 10px; color: var(--text-2); }
.bullets li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Blackout */
.blackout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .blackout { grid-template-columns: 1.1fr 1fr; } }
.blackout-art { display: flex; align-items: flex-end; justify-content: center; gap: 6%; }
.blackout-art .window { width: 70%; }
.blackout-art .phone { width: 20%; }

/* Pricing */
.pricing { display: grid; gap: 24px; align-items: stretch; max-width: 900px; margin: 0 auto; }
@media (min-width: 820px) { .pricing { grid-template-columns: 1.15fr 1fr; } }
.price-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 36px; background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.price strong { font-size: 4rem; font-weight: 760; letter-spacing: -0.04em; line-height: 1; }
.price s { color: var(--text-3); font-size: 1.4rem; }
.price-card .bullets { margin: 24px 0 28px; }
.price-card .stack { display: grid; gap: 10px; }
.price-card form { margin: 0; }
.compare { background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.compare-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.compare-row:last-of-type { border-bottom: 0; }
.compare-row b { font-size: 1.4rem; }
.compare-row.us b { color: var(--accent); }

/* Setup guide */
.setup { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.setup ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--text-2); }
.setup ol b { color: var(--text); }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.reqs { display: grid; gap: 16px; }
@media (min-width: 720px) { .reqs { grid-template-columns: repeat(3, 1fr); } }
.reqs .card p { margin: 0; color: var(--text-2); font-size: 0.97rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-weight: 620; font-size: 1.07rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--text-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* Final CTA */
.final { text-align: center; }
.final .panel { background: radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-elev); border: 1px solid var(--line); border-radius: 28px; padding: 64px 24px; }

/* Plain document pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--text-3); font-size: 0.92rem; }
.doc pre { background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; color: var(--text-2); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 650; }
.doc td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }

/* License key UI (thanks + recover) */
.panel-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); margin: 28px 0; }
.key-box { width: 100%; min-height: 96px; resize: none; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--text); font: 0.85rem/1.45 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.key-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.status { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: #dc2626; }
@media (prefers-color-scheme: dark) { .error { color: #f87171; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input { font: inherit; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--text); }
.form input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.form .hint { font-weight: 400; color: var(--text-3); font-size: 0.86rem; }
[hidden] { display: none !important; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.footer-inner { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.2fr 2fr; } }
.footer-brand p { color: var(--text-3); font-size: 0.93rem; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.footer-links h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 0 12px; }
.footer-links a { display: block; color: var(--text-2); font-size: 0.95rem; padding: 4px 0; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-legal p { color: var(--text-3); font-size: 0.8rem; margin: 0; }

/* Polish */
h1, h2, .section-head p, .hero .lede { text-wrap: balance; }
.price-card .btn-ghost { background: var(--bg-sunk); }

/* macOS notification banner mock (New in 1.1 section) */
.callmock { display: grid; gap: 14px; align-content: center; }
.mac-note { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 440px; }
.mac-note-icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #4d5cf9, #1a9ef2); }
.mac-note-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.mac-note-head span, .mac-note-sub { color: var(--text-3); font-size: 12.5px; }
.mac-note-text { font-size: 14px; margin-top: 2px; }
.mac-note-actions { display: grid; gap: 6px; }
.mac-note-actions span { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 8px; background: rgba(127, 127, 127, 0.16); text-align: center; }
.mac-note-actions span:last-child { color: #e5484d; }
@media (max-width: 560px) { .mac-note { grid-template-columns: 32px 1fr; } .mac-note-icon { width: 32px; height: 32px; } .mac-note-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
