/* Skelvo website: phone first, light + dark (prefers-color-scheme), system fonts, no frameworks. */

:root {
  --brand: #0085ff;
  --brand-dark: #0052ff;
  --brand-light: #00c2ff;
  --accent: #ff7a1a;

  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0b1320;
  --muted: #4a5568;
  --border: #dde4ee;
  --link: #0052ff;
  --focus: #0052ff;
  --btn-bg: #0052ff;
  --btn-bg-hover: #0041cc;
  --btn-text: #ffffff;
  --ghost-border: #b9c6d8;
  --callout-bg: #fff1e6;
  --callout-text: #7a3000;
  --callout-border: #ffc79e;
  --error: #b42318;
  --success-bg: #e8f6ee;
  --success-text: #0f5132;
  --mark-bg: #fff3b0;
  --mark-text: #3d3000;
  --header-bg: #ffffff;
  --shadow: 0 1px 2px rgba(11, 19, 32, 0.06), 0 8px 24px rgba(11, 19, 32, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1118;
    --bg-alt: #0f1720;
    --surface: #121b26;
    --text: #e8eef6;
    --muted: #9fb0c3;
    --border: #233140;
    --link: #4db8ff;
    --focus: #4db8ff;
    --btn-bg: #0085ff;
    --btn-bg-hover: #2b9bff;
    --btn-text: #04101c;
    --ghost-border: #39506a;
    --callout-bg: #2a1a0c;
    --callout-text: #ffc59a;
    --callout-border: #5c3410;
    --error: #ff8a80;
    --success-bg: #0f2a1d;
    --success-text: #9be3bd;
    --mark-bg: #4a3f00;
    --mark-text: #fff3b0;
    --header-bg: #0b1118;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html:has(.page-survey) { scroll-padding-top: 132px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: 0.92em; }
mark.placeholder { background: var(--mark-bg); color: var(--mark-text); padding: 0 0.2em; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.stack > * + * { margin-top: 24px; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* ---------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 44px; padding: 0.6em 1.15em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ghost-border); }
.btn-ghost:hover { border-color: var(--link); }
.btn-lg { min-height: 52px; padding: 0.75em 1.4em; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0.45em 0.95em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; padding: 4px 0; }
.brand img { width: 118px; height: auto; }
.main-nav { display: none; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a, .mobile-menu a { color: var(--text); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; display: block; }
.nav-links a:hover, .mobile-menu a:hover { background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 800; color: var(--text); text-decoration: none; border-radius: 8px; letter-spacing: 0.04em; }
.lang-switch:hover { background: var(--bg-alt); }
.header-cta { display: none; }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; color: var(--text); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .icon { width: 26px; height: 26px; }
.mobile-menu[open] summary { background: var(--bg-alt); }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } .brand img { width: 130px; } }
@media (min-width: 960px) { .main-nav { display: block; } .mobile-menu { display: none; } }

/* ---------------- sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 28px; }
@media (min-width: 768px) { .section { padding: 88px 0; } .section-head { margin-bottom: 40px; } }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark)); transform: rotate(45deg) scale(0.85); }

.benefit-num { display: inline-block; font-weight: 800; font-size: 0.95rem; color: var(--link); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* ---------------- hero */
.hero { padding: 40px 0 32px; background:
  radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand-light) 16%, transparent), transparent 60%),
  radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--link); margin-bottom: 12px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.2rem; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: 0.95rem; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .icon, .checks .icon, .story-points .icon { color: var(--link); }
@media (min-width: 980px) { .hero { padding: 72px 0 48px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }

.hero-visual { position: relative; aspect-ratio: 4 / 3; max-width: 520px; margin: 0 auto; display: grid; place-items: center; }
@media (max-width: 979px) { .hero-visual { aspect-ratio: 16 / 10; } .hv-icon { width: min(42%, 220px); } }
.hv-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-light) 35%, transparent), transparent 70%); filter: blur(10px); }
.hv-icon { position: relative; width: min(60%, 300px); filter: drop-shadow(0 24px 40px rgba(0, 82, 255, 0.25)); }
.hv-chip { position: absolute; max-width: 70%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.9rem; }
.hv-chip-1 { top: 10%; left: 2%; }
.hv-chip-2 { top: 46%; right: 0; }
.hv-chip-3 { bottom: 8%; left: 10%; }

/* ---------------- video slot */
.video-slot { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0b1118; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #0b1118; }
.video-frame.portrait { aspect-ratio: 9 / 16; width: auto; height: min(72vh, 640px); max-width: 100%; margin: 0 auto; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #e8eef6;
  background:
    linear-gradient(135deg, rgba(0, 194, 255, 0.18), rgba(0, 82, 255, 0.28)),
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px),
    #0b1118; }
.video-placeholder img { width: 72px; height: 72px; margin-bottom: 12px; }
.vp-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.vp-text { margin: 0; color: #c9d6e6; font-size: 0.95rem; }
.video-controls { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.video-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.5em 1em; border-radius: 999px; border: 0; background: rgba(11, 17, 24, 0.82); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.video-btn:hover { background: rgba(11, 17, 24, 0.95); }
.video-btn .icon { width: 18px; height: 18px; }
.video-btn:focus-visible { outline-color: #4db8ff; }

/* ---------------- story */
.story { display: grid; gap: 28px; }
.story p { color: var(--muted); max-width: 42em; }
.story-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.story-points li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-weight: 700; }
.story-points .icon { margin-top: 0.2em; }
@media (min-width: 900px) { .story { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

/* ---------------- audience cards */
.audience-card { padding: 0; }
.audience-card a { display: flex; flex-direction: column; height: 100%; padding: 22px; color: inherit; text-decoration: none; border-radius: var(--radius); }
.audience-card a:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.audience-card .more { margin-top: auto; padding-top: 8px; color: var(--link); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.audience-card a:hover .more { text-decoration: underline; }

/* ---------------- license facts */
.fact h3 { color: var(--text); }
.callout { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius); background: var(--callout-bg); color: var(--callout-text); border: 1px solid var(--callout-border); font-weight: 700; }
.fineprint { font-size: 0.95rem; color: var(--muted); margin-top: 12px; }

/* ---------------- FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; list-style: none; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 18px 4px; color: var(--muted); }

/* ---------------- forms */
.waitlist-card { display: grid; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 24px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.waitlist-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-dark)); }
@media (min-width: 900px) { .waitlist-card { grid-template-columns: 1fr 1.15fr; gap: 48px; padding: 44px; } }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 16px; align-items: end; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; }
legend { padding: 0; }
.req { font-weight: 500; color: var(--muted); font-size: 0.9em; }
.hint { color: var(--muted); font-size: 0.95rem; margin: -2px 0 8px; }
input[type="email"], input[type="text"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--ghost-border); border-radius: var(--radius-sm); }
textarea { min-height: 72px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--btn-bg); }
.check label { font-weight: 500; margin: 0; }
.input-affix { display: flex; align-items: center; gap: 8px; max-width: 240px; }
.input-affix span { font-weight: 700; color: var(--muted); }
.field-error { color: var(--error); font-weight: 600; margin: 6px 0 12px; }
.form-summary { color: var(--error); font-weight: 700; border: 2px solid var(--error); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.form-status:not(:empty) { margin-top: 12px; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.waitlist-success { background: var(--success-bg); color: var(--success-text); border-radius: var(--radius); padding: 20px; }
.waitlist-success:focus { outline: none; }
.waitlist-success p { color: inherit; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- simple, legal and admin pages */
.page-simple { min-height: 50vh; }
.simple-card { padding: 28px 20px; }
@media (min-width: 768px) { .simple-card { padding: 40px; } }
.simple-card h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.survey-form { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.survey-form h2 { font-size: 1.5rem; }
.price-group > .hint { margin-bottom: 12px; }
.price-field label { font-weight: 600; }
.unsub-actions { margin-top: 16px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p { color: var(--text); }
.draft-notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--mark-bg); color: var(--mark-text); font-weight: 600; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table { overflow-x: auto; }

/* ---------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--header-bg); padding: 48px 0 24px; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 120px; margin-bottom: 12px; }
.footer-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer nav a { color: var(--text); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer nav a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.footer-bottom .footer-trademarks { margin-top: 6px; font-size: 0.85rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

@media print { .site-header, .site-footer, .waitlist, .video-controls { display: none; } }

/* ---------------- questionnaire */
.survey-form { margin-top: 24px; }
.survey-meta { color: var(--muted); }
.survey-meta strong { color: var(--text); }
.survey-progress { display: flex; align-items: center; gap: 10px; position: sticky; top: 64px; z-index: 5; background: var(--surface); padding: 8px 0; margin-bottom: 8px; font-size: 0.9rem; color: var(--muted); }
.survey-progress progress { flex: 1; height: 8px; accent-color: var(--btn-bg); }
.q { border: 0; margin: 0; padding: 20px 0; border-top: 1px solid var(--border); min-width: 0; }
.q > legend, .q > label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
/* float: the legend behaves like a normal heading instead of sitting in the fieldset border */
.q > legend { float: left; width: 100%; }
.q > legend + * { clear: both; }
.q.has-error > legend, .q.has-error > label { color: var(--error); }
.q-num { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; font-size: 0.85rem; font-weight: 800; color: var(--link); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.q select, .q textarea { max-width: 100%; }
.choices { display: grid; gap: 8px; }
@media (min-width: 640px) { .choices-2col { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; padding: 10px 14px; min-height: 48px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg); }
.choice:hover { border-color: var(--ghost-border); }
.choice:has(input:checked) { border-color: var(--btn-bg); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--btn-bg); }
.choice.is-disabled { opacity: 0.55; cursor: not-allowed; }
.choice-inline { display: inline-flex; margin-top: 10px; }
.other-field { margin-top: 10px; }
.q-sub { border: 0; padding: 0; margin: 14px 0 0; }
.q-sub > legend { font-weight: 600; margin-bottom: 8px; }
.price-field { margin: 12px 0 0; }
.price-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.price-field .input-affix { margin-top: 6px; }
.consent-note { color: var(--muted); font-size: 0.95rem; margin: 20px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
