/* kestel.no: same look as the Kestel panel. */
:root {
  color-scheme: dark;
  --bg: #000000; --card: #1c1c1e; --raised: #2c2c2e;
  --separator: rgba(84, 84, 88, 0.65);
  --label: #ffffff; --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3);
  --live: #ff9f0a; --accent: #0a84ff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 17px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font); line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, ol { margin: 0; }
a { color: var(--accent); text-decoration: none; }

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { color: var(--label); font-weight: 700; font-size: 1.24rem; display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px rgba(255, 159, 10, 0.6); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--label-2); padding: 6px 10px; border-radius: 8px; font-size: 0.94rem; }
.nav a[aria-current] { color: var(--label); background: var(--card); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.login { background: var(--accent); color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 10px; font-size: 0.94rem; }
.lang { color: var(--label-2); border: 1px solid var(--separator); padding: 6px 10px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
.hero { padding: 72px 0 56px; max-width: 760px; }
.eyebrow { color: var(--live); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; }
.lead { color: var(--label-2); font-size: 1.12rem; margin-top: 18px; max-width: 640px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--raised); color: var(--label); font-weight: 600; }
.btn.primary { background: var(--accent); color: #fff; }

.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid3 article, .card { background: var(--card); border-radius: 16px; padding: 22px; }
.grid3 h2, .card h2, .steps h2 { font-size: 1.12rem; margin-bottom: 8px; }
.grid3 p, .card p, .steps p { color: var(--label-2); }
.card ul { padding-left: 1.1em; color: var(--label-2); display: grid; gap: 6px; }
.small { font-size: 0.82rem; margin-top: 14px; color: var(--label-3) !important; }

/* Front page: the hero shows the talk keys, then varied sections (not a card grid). */
.split-hero { max-width: none; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.keypad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--card); border-radius: 28px; padding: 14px; max-width: 380px; width: 100%; justify-self: end; box-shadow: 0 30px 80px rgba(255, 159, 10, 0.08); }
.key { aspect-ratio: 1 / 1; border-radius: 18px; background: var(--raised); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.key b { font-size: 1rem; }
.key span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.key.live { background: var(--live); color: #000; }
.key.latched { box-shadow: inset 0 0 0 3px var(--live); }
.key.latched span { color: var(--live); }

.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: 40px 0; border-top: 0.5px solid var(--separator); }
.feature h2, .split h2, .band h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.feature p { color: var(--label-2); font-size: 1.06rem; max-width: 620px; }
.feature .aside { font-size: 0.94rem; border-left: 3px solid var(--live); padding-left: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 0.5px solid var(--separator); }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; color: var(--label-2); }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.ticks b { color: var(--label); font-weight: 600; }
.band { background: var(--card); border-radius: 20px; padding: 32px; margin-top: 24px; }
.band p { color: var(--label-2); max-width: 640px; }

.page-head { padding: 56px 0 32px; max-width: 760px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: s; margin-bottom: 14px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 16px; padding: 22px 22px 22px 70px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--raised); color: var(--live); font-weight: 700;
}
.note { border: 1px solid rgba(255, 159, 10, 0.35); }

.foot { max-width: 1080px; margin: 0 auto; padding: 24px 16px max(32px, env(safe-area-inset-bottom)); color: var(--label-3); font-size: 0.82rem; border-top: 0.5px solid var(--separator); }

@media (max-width: 800px) {
  .split-hero, .feature, .split { grid-template-columns: 1fr; gap: 28px; }
  .keypad { justify-self: start; max-width: 320px; }
}
@media (max-width: 640px) {
  .top { gap: 10px 12px; }
  .nav { order: 3; width: 100%; }
  .hero { padding: 40px 0 36px; }
  .band { padding: 22px; }
  .steps li { padding-left: 62px; }
  .steps li::before { left: 18px; }
}
