/* Snartek public site. Same palette as the app (snartek-app/src/theme/tokens.ts). */
:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5A6B80;
  --line: #CBD5E1;
  --control-line: #74879F;
  --ground: #EEF2F7;
  --surface: #FFFFFF;
  --wash: #E3ECF9;
  --wash-2: #F5F8FC;
  --accent: #2563EB;
  --accent-ink: #1D4ED8;
  --accent-text: #FFFFFF;
  --good: #16A34A;
  --warn: #F97316;
  --shadow: 0 24px 60px rgba(15, 23, 42, .18);
  --radius: 14px;
  --danger: #DC2626; --sky: #DBEAFE; --snow: #F8FAFC; --wood: #B45309; --wood-2: #92400E; --leaf: #15803D;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F1F5F9; --ink-2: #CBD5E1; --muted: #94A3B8; --line: #1E293B; --control-line: #64748B;
    --ground: #0B1220; --surface: #111B2E; --wash: #0F1B33; --wash-2: #0D1729;
    --accent: #60A5FA; --accent-ink: #93C5FD; --accent-text: #0B1220;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --sky: #1E3A5F; --snow: #1E293B; --danger: #F87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F1F5F9; --ink-2: #CBD5E1; --muted: #94A3B8; --line: #1E293B; --control-line: #64748B;
  --ground: #0B1220; --surface: #111B2E; --wash: #0F1B33; --wash-2: #0D1729;
  --accent: #60A5FA; --accent-ink: #93C5FD; --accent-text: #0B1220;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --sky: #1E3A5F; --snow: #1E293B; --danger: #F87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent-ink); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--surface); color: var(--ink); border: 1px solid var(--control-line); border-radius: 10px; padding: 12px 18px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { .skip { transition: none; } }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand svg { width: 28px; height: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav .links { flex: 1; justify-content: flex-end; }
.nav .tools { gap: 6px; }
.menu { display: none; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-2); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu .i-close { display: none; }
.menu[aria-expanded="true"] .i-open { display: none; }
.menu[aria-expanded="true"] .i-close { display: inline; }
.nav ul a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .98rem; display: inline-flex; align-items: center; min-height: 44px; }
.nav ul a:hover, .nav ul a.on { background: var(--wash); color: var(--accent-ink); }
.nav ul a.login { background: var(--accent); color: var(--accent-text); padding: 8px 16px; white-space: nowrap; }
.nav ul a.login:hover { background: var(--accent-ink); color: var(--accent-text); }
.lang { border: 1px solid var(--control-line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .85rem; cursor: pointer; min-height: 44px; min-width: 44px; }
@media (max-width: 860px) {
  /* Seven 44px targets do not fit one phone row, so the page links move into a
     panel behind the menu button and the bar keeps its single 58px row. */
  .nav .wrap { height: 58px; gap: 8px; }
  .brand { font-size: 1.2rem; margin-right: auto; }
  .brand svg { width: 22px; height: 22px; }
  .nav ul a { padding: 6px 9px; font-size: .9rem; }
  .nav ul a.login { padding: 6px 12px; }
  .lang { padding: 5px 8px; font-size: .8rem; }
  .nav ul a, .lang, .nav .theme { min-height: 44px; }
  .menu { display: inline-flex; order: 3; }
  .nav .tools { gap: 4px; }
  .nav .links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 20px 14px;
  }
  .nav .links li.hide-sm { display: block; }
  .nav.open .links { display: flex; }
  .nav .links a { font-size: 1rem; padding: 10px 12px; border-radius: 10px; }
}

/* hero */
.hero { position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 22%, transparent) 1.2px, transparent 0), linear-gradient(180deg, color-mix(in srgb, var(--wash) 70%, transparent) 0%, transparent 100%);
  background-size: 28px 28px, 100% 100%; padding-block: clamp(40px, 8vw, 96px) clamp(32px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 .rot { color: var(--accent-ink); display: inline-block; min-width: 4ch; position: relative; }
.hero h1 .rot span { display: inline-block; animation: rise .45s ease both; }
.rot-pause { border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-2); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; margin-left: 12px; vertical-align: middle; padding: 0; align-items: center; justify-content: center; }
.rot-pause:not([hidden]) { display: inline-flex; }
.rot-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rot-pause .i-play { display: none; }
.rot-pause[aria-pressed="true"] .i-pause { display: none; }
.rot-pause[aria-pressed="true"] .i-play { display: inline; fill: currentColor; }
.rot-pause[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .rot span { animation: none; } }
.lede { font-size: 1.25rem; color: var(--ink-2); max-width: 34ch; margin-top: 20px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; padding: 10px 16px 10px 12px; border-radius: 10px; line-height: 1.1; min-height: 52px; }
:root[data-theme="dark"] .store, :root:not([data-theme="light"]) .store { }
.store small { display: block; font-size: .68rem; opacity: .8; letter-spacing: .02em; }
.store b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.store svg { width: 24px; height: 24px; fill: #fff; }
.store.soon { opacity: .55; pointer-events: none; }
.badges { align-items: center; }
.badge img { display: block; height: 52px; width: auto; }
.badge.soon { opacity: .6; pointer-events: none; }
.web-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.hero-note { margin-top: 10px; font-size: .9rem; }

/* phone */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before { content: ""; position: absolute; inset: -40px -60px; background: repeating-radial-gradient(circle at 50% 55%, transparent 0 58px, color-mix(in srgb, var(--accent) 18%, transparent) 58px 60px); border-radius: 50%; z-index: 0; pointer-events: none; }
.phone { z-index: 1; }
.phone { width: 300px; aspect-ratio: 9 / 18.6; background: #0F172A; border-radius: 40px; padding: 12px; box-shadow: var(--shadow); position: relative; max-width: 100%; transform: rotate(-3deg); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #0F172A; border-radius: 999px; z-index: 2; }
.screen { background: var(--ground); border-radius: 30px; height: 100%; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.screen .bar { display: flex; justify-content: space-between; align-items: center; padding: 44px 18px 10px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.screen .bar span:last-child { font-size: .78rem; color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.ic-gear { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.screen .room { padding: 10px 16px 4px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dev { margin: 0 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.dev .n { font-weight: 600; font-size: .95rem; }
.dev .s { font-size: .72rem; color: var(--muted); }
.dev .v { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; }
.dev .v.warn { color: var(--warn); }
.spark { width: 54px; height: 20px; }
.screen .add { margin: auto 12px 14px; background: var(--accent); color: var(--accent-text); border-radius: 10px; text-align: center; padding: 11px; font-weight: 600; font-size: .9rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 250px; transform: none; margin-top: 12px; }
}

/* sections */
section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 60ch; margin-bottom: 32px; }
.section-head p { margin-top: 10px; color: var(--ink-2); }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.tabs button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--font-mono); color: var(--accent-ink); font-size: .85rem; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.counters { background: #0F172A; color: #F1F5F9; }
.counters .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.counter b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; font-variant-numeric: tabular-nums; color: #60A5FA; }
.counter span { color: #B8C4D0; }
.counters .note { margin-top: 20px; color: #8FA3B5; font-size: .9rem; }
@media (max-width: 720px) { .counters .grid { grid-template-columns: 1fr; } }

.partners { text-align: center; padding-block: 40px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 20px; }
.logos span { font-family: var(--font-display); font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.cta { background: var(--wash); text-align: center; }
.cta .stores { justify-content: center; }
.cta p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
footer a:hover { text-decoration: underline; }

/* legal pages */
.legal { max-width: 70ch; padding-block: 48px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* help page */
.help { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-block: 40px; }
.help nav { position: sticky; top: 86px; align-self: start; font-size: .95rem; }
.help nav a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; }
.help nav a:hover { color: var(--accent-ink); }
.help article { max-width: 70ch; }
.help h1 { font-size: 2.2rem; }
.help h2 { font-size: 1.4rem; margin-top: 44px; padding-top: 12px; border-top: 1px solid var(--line); }
.help h3 { margin-top: 24px; }
.help p, .help li { color: var(--ink-2); margin-top: 10px; }
.help ol, .help ul { padding-left: 22px; }
.help .tip { background: var(--wash); border-left: 3px solid var(--accent); padding: 12px 16px; margin-top: 14px; border-radius: 0 10px 10px 0; }
.help .tip p { margin: 0; color: var(--ink); }
.help kbd { font-family: var(--font-mono); font-size: .85em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } .help nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; } }

/* site-wide LoRa network behind everything, two layers for depth (parallax in site.js) */
.bg-net { position: fixed; inset: -12vh 0; z-index: -1; pointer-events: none; overflow: hidden; color: var(--accent); }
.bg-net svg { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.bg-net .far { opacity: .05; filter: blur(.4px); }
.bg-net .near { opacity: .09; }
:root[data-theme="dark"] .bg-net .far, :root:not([data-theme="light"]) .bg-net .far { opacity: .08; }
:root[data-theme="dark"] .bg-net .near, :root:not([data-theme="light"]) .bg-net .near { opacity: .13; }
:root[data-theme="light"] .bg-net .far { opacity: .05; } :root[data-theme="light"] .bg-net .near { opacity: .09; }
.bg-net .dot { animation: blink 3.2s ease-in-out infinite; }
.bg-net g g:nth-child(2n) .dot { animation-delay: 1.6s; }
.bg-net g g:nth-child(3n) .dot { animation-delay: .8s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bg-net .dot { animation: none; } }

/* ---- Use cases (#cases): Private / Business switch, four illustrated cards ---- */
.cases-sec { background: var(--wash-2); }
.uc-switch { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; width: max-content; margin: -8px 0 28px; }
.uc-switch button { font: 600 1rem var(--font-display); border: 0; background: transparent; color: var(--ink-2); padding: 10px 22px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.uc-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.uc-switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cases { display: grid; gap: 28px; }
.case { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.case[hidden] { display: none; }
.case:nth-of-type(even) { grid-template-columns: 1fr 1.05fr; }
.case:nth-of-type(even) .art { order: 2; }
.case .art { background: var(--wash); display: grid; place-items: center; padding: 24px; min-height: 320px; }
.case .art svg { width: 100%; max-width: 480px; height: auto; display: block; }
.case .txt { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.case .txt h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; margin: 0; }
.case .txt > p { margin: 0; color: var(--ink-2); max-width: 48ch; }
.case .sensors { display: flex; flex-wrap: wrap; gap: 8px; }
.case .chip { font-size: .86rem; font-weight: 600; color: var(--ink-2); background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.case .chip small { font-weight: 400; color: var(--muted); }
.case .alert { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--ground); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.case .alert .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; color: var(--accent-ink); }
.case .alert .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.case .alert b { display: block; color: var(--ink); }
.case .alert span { color: var(--ink-2); }
.case .alert .t { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.case .quote { font-size: .95rem; color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .case, .case:nth-of-type(even) { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .art { order: 0; }
  .case .art { min-height: 0; }
  .case .txt { padding: 24px 20px; }
}

/* ---- Products page (produkter.html) ---- */
.prod-hero { padding-block: clamp(40px, 6vw, 72px) 0; }
.prod-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; margin: 0; }
.prod-hero .section-head p { font-size: 1.15rem; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 22px; }
.guide .q { display: grid; gap: 8px; }
.guide .q h3 { font-size: 1.05rem; margin: 0; }
.guide .n { color: var(--muted); font-weight: 400; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font: 600 .95rem var(--font-body); border: 1.5px solid var(--control-line); background: var(--wash-2); color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 44px; }
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.result { background: var(--wash); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.result h3 { font-size: 1.2rem; margin: 0; }
.result ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.result .why { color: var(--muted); font-size: .95rem; margin: 0; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { font: 600 1rem var(--font-display); border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 20px; cursor: pointer; background: transparent; color: var(--accent-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.packs-sec { background: var(--wash-2); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pack { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pack h3 { font-size: 1.25rem; margin: 0; }
.pack .for { color: var(--muted); font-size: .95rem; margin: 0; }
.pack ul { margin: 0; padding-left: 20px; color: var(--ink-2); flex: 1; }
.pack .price { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); font-size: .95rem; margin: 0; }
.pack .btn { align-self: flex-start; }
.cat { display: grid; gap: 14px; margin-top: 8px; }
.cat + .cat { margin-top: 32px; }
.cat-t { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.prod .img { background: var(--wash-2); display: grid; place-items: center; padding: 18px; }
.prod .img svg { width: 120px; height: 90px; }
.prod .body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.prod h3 { font-size: 1.05rem; margin: 0; }
.prod .model { color: var(--muted); font-size: .88rem; margin: 0; }
.prod p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--wash); border-radius: 999px; padding: 3px 10px; }
.fact.gw { background: var(--sky); }
.prod .btn { justify-self: start; font-size: .92rem; padding: 8px 16px; margin-top: 4px; }
@media (max-width: 860px) { .packs, .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .packs, .grid { grid-template-columns: 1fr; } .guide { padding: 20px; } }

/* ---- Contact page + theme toggle ---- */
.nav .theme { border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-2); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.nav .theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .nav .theme .i-moon { display: inline; }
}
:root[data-theme="dark"] .nav .theme .i-sun { display: none; }
:root[data-theme="dark"] .nav .theme .i-moon { display: inline; }
:root[data-theme="light"] .nav .theme .i-sun { display: inline; }
:root[data-theme="light"] .nav .theme .i-moon { display: none; }
.nav .theme:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact-sec { padding-block: clamp(40px, 6vw, 72px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-sec h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; margin: 0; }
.contact-facts { display: grid; gap: 14px; margin-top: 28px; color: var(--ink-2); }
.contact-facts p { margin: 0; }
.contact-facts b { color: var(--ink); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.contact-form input, .contact-form textarea { font: 1rem var(--font-body); color: var(--ink); background: var(--wash-2); border: 1px solid var(--control-line); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 44px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.contact-form [aria-invalid="true"]:focus { border-color: var(--accent); }
.cf-err { color: var(--danger); font-weight: 400; font-size: .9rem; }
.cf-err:empty { display: none; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: default; }
.cf-status { margin: 0; min-height: 1.4em; color: var(--ink-2); }
.cf-status.ok { color: var(--good); font-weight: 600; }
.cf-status.err { color: var(--danger); }
.small { font-size: .9rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

.sku { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin: 0; }
.cf-about { background: var(--wash); border-radius: 10px; padding: 10px 14px; color: var(--ink-2); font-size: .95rem; }
.cf-about code { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-left: 6px; }

.uc-btn { align-self: flex-start; margin-top: 4px; }
.pack.hl { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
