/* LockUSB website styles. Colours follow the logo (branding/): indigo #4338CA, deep #1E1B4B. */
:root {
  --bg: #ffffff; --bg-soft: #f5f6fc; --surface: #ffffff; --text: #1e1b4b; --body: #374151; --muted: #6b7280;
  --border: #e3e5f0; --brand: #4338ca; --brand-strong: #3730a3; --brand-text: #ffffff; --brand-soft: #eef0ff;
  --ok: #067647; --warn: #b54708; --shadow: 0 1px 2px rgba(30, 27, 75, .06), 0 8px 24px rgba(30, 27, 75, .08);
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f1a; --bg-soft: #131628; --surface: #171a2e; --text: #eef0ff; --body: #c9cce0; --muted: #9298b3;
    --border: #272b45; --brand: #818cf8; --brand-strong: #a5b4fc; --brand-text: #0d0f1a; --brand-soft: #1d2142;
    --ok: #47cd89; --warn: #fdb022; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 14px; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
code, pre { font-family: "Cascadia Mono", Consolas, monospace; font-size: .88em; }
pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; color: var(--text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--brand); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--body); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--brand-text); }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
       font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
       transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-text); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--body); max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Illustration of the unlock window (drawn with HTML, mirrors LockUSB.Tray/UnlockForm.cs) */
.window { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
          max-width: 420px; margin: 0 auto; overflow: hidden; font-size: .93rem; }
.window .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border);
               color: var(--text); font-weight: 600; font-size: .88rem; }
.window .bar img { width: 18px; height: 18px; }
.window .bar span { margin-left: auto; color: var(--muted); font-weight: 400; letter-spacing: 6px; }
.window .body { padding: 18px 20px 20px; }
.window .title { color: var(--text); font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }
.window .row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.window .row label { width: 78px; color: var(--muted); }
.window .field { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; background: var(--bg-soft); color: var(--text); }
.window .radio { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--text); }
.window .radio i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--muted); display: inline-block; flex: none; }
.window .radio i.on { border-color: var(--brand); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--brand); }
.window .select { border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; margin-left: auto; color: var(--text); }
.window .more { color: var(--brand); margin: 6px 0 2px; }
.window .field.muted { color: var(--muted); }
.window .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.window .buttons b { padding: 6px 16px; border-radius: 6px; border: 1px solid var(--border); font-weight: 600; color: var(--text); }
.window .buttons b.go { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.caption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid;
        place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.audience span { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; font-size: .92rem; color: var(--text); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px;
                border-radius: 50%; background: var(--brand); color: var(--brand-text); font-weight: 700; display: grid; place-items: center; }
.step p { color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.pricing > * { min-width: 0; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }
.buybox { background: var(--surface); border: 2px solid var(--brand); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.buybox .price { font-size: 2.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.buybox .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.buybox .total { font-size: 1.05rem; color: var(--text); margin: 6px 0 18px; min-height: 1.6em; }
.qty { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.qty label { font-weight: 600; color: var(--text); }
.stepper { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stepper button { width: 42px; border: 0; background: var(--bg-soft); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 84px; border: 0; text-align: center; font: inherit; font-weight: 600; color: var(--text); background: var(--surface);
                 padding: 9px 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hint { min-height: 1.5em; font-size: .92rem; color: var(--warn); margin-bottom: 10px; }
.buybox .btn { width: 100%; font-size: 1.08rem; padding: 14px; }
.includes { list-style: none; padding: 0; margin: 18px 0 0; font-size: .95rem; }
.includes li { padding: 4px 0; }
.includes li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.tiers { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tiers th, .tiers td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.tiers th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers tr.on td { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.tiers .save { color: var(--ok); font-size: .85rem; font-weight: 600; margin-left: 6px; }
.country { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .92rem; color: var(--muted); flex-wrap: wrap; }
.country select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; max-width: 100%; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--body); }

/* CTA band */
.band { background: linear-gradient(135deg, #312e81, #4338ca 60%, #6366f1); color: #fff; border-radius: 20px; padding: 48px 32px; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #e0e7ff; }
.band .btn-primary { background: #fff; color: #312e81; }
.band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Legal pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 2.2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 34px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); color: var(--text); }
.note { background: var(--brand-soft); border-radius: 10px; padding: 14px 16px; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Key box (thank-you page) */
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg-soft); border: 1px dashed var(--brand);
          border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.keybox code { font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: .04em; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%;
           animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
