/* kebho.app: "calm clinical", the portal's tokens. Light by default, dark from the OS setting. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --panel: #ffffff;
  --line: #e3e8ef;
  --ink: #1b2a41;
  --muted: #5b6678;
  --accent: #1b2a41;
  --primary: #1b2a41;
  --primary-ink: #ffffff;
  --ok: #16a34a;
  --crit: #b91c1c;
  --frame: #1b2a41;
  --footer-bg: #1b2a41;
  --footer-ink: #cfd8e6;
  --shadow: 0 2px 10px rgb(20 40 80 / .08);
  --shadow-lg: 0 24px 60px rgb(20 40 80 / .16);
  --radius: 14px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Noto Sans Devanagari', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --bg-alt: #121a28;
    --panel: #161d2b;
    --line: #243046;
    --ink: #e6ebf2;
    --muted: #8c97a8;
    --accent: #9db4d6;
    --primary: #e6ebf2;
    --primary-ink: #0e1420;
    --ok: #22c55e;
    --crit: #f87171;
    --frame: #2c3a52;
    --footer-bg: #0a0f18;
    --footer-ink: #b7c2d3;
    --shadow: 0 2px 10px rgb(0 0 0 / .35);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.975rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-large { min-height: 52px; padding: 0 24px; font-size: 1.05rem; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: .9rem; background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .975rem; text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-actions { display: flex; gap: 10px; }
.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink);
  font: 600 .95rem var(--font); cursor: pointer;
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .menu-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; margin: 0; }
  .nav-links a { padding: 12px; font-size: 1.05rem; color: var(--ink); }
  .nav-actions .btn { flex: 1; }
}

/* Sections */
.section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: .85rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.lead { margin-top: 20px; color: var(--muted); font-size: 1.2rem; max-width: 560px; }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero-visual { display: flex; justify-content: center; }

/* Device frames (CSS only) */
.phone {
  width: 300px; max-width: 100%; padding: 10px; border-radius: 44px; background: var(--frame);
  box-shadow: var(--shadow-lg); position: relative;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: var(--frame); z-index: 1; }
.phone img { width: 100%; border-radius: 34px; background: var(--bg-alt); }
.phone-small { width: 240px; }
.screen {
  padding: 10px; border-radius: 16px; background: var(--frame); box-shadow: var(--shadow-lg);
}
.screen img { width: 100%; border-radius: 8px; background: var(--bg-alt); }
.screen-browser { padding: 32px 0 0; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); position: relative; }
.screen-browser::before {
  content: ''; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); box-shadow: 16px 0 0 var(--line), 32px 0 0 var(--line);
}
.screen-browser img { border-radius: 0; }

/* Readings and cards */
.readings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.readings li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.readings strong { display: block; font-size: 1.05rem; }
.readings span { display: block; margin-top: 4px; color: var(--muted); font-size: .925rem; line-height: 1.45; }
.cards { display: grid; gap: 16px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; list-style: none; margin: 0; padding: 0; }
.features li { padding-left: 18px; border-left: 2px solid var(--line); }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 1rem; }

/* How it works */
.diagram { margin: 0 0 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.diagram svg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.diagram text { fill: var(--ink); font: 600 15px var(--font); }
.d-link text { fill: var(--muted); font-weight: 500; font-size: 13px; }
.d-link line, .d-link path { stroke: var(--muted); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-link line { stroke-dasharray: 4 6; }
.d-ring { fill: none; stroke: var(--ink); stroke-width: 9; }
.d-ring-in { fill: none; stroke: var(--line); stroke-width: 2; }
.d-box { fill: var(--bg-alt); stroke: var(--ink); stroke-width: 2.5; }
.d-wave { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.d-dot { fill: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: .95rem;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Screenshots */
.band-img { display: flex; align-items: center; justify-content: center; height: 260px; margin-bottom: 20px; border-radius: calc(var(--radius) - 4px); background: #fff; }
.band-img img { max-width: 70%; max-height: 220px; width: auto; height: auto; }
.specs { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); }
.shots { display: grid; grid-template-columns: 280px 1fr; gap: 48px 56px; align-items: start; }
.shot { margin: 0; }
.shot-phone { grid-row: span 2; display: flex; flex-direction: column; align-items: center; }
.shot figcaption { margin-top: 16px; color: var(--muted); font-size: .975rem; }
.shot figcaption strong { display: block; color: var(--ink); }
.shot-phone figcaption { text-align: center; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--muted); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 4px 16px; color: var(--muted); }
.faq details p:last-child { padding-bottom: 22px; }
.disclaimer { font-weight: 600; color: var(--ink); }

/* Form */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.access-form { display: grid; gap: 20px; padding: 32px; scroll-margin-top: 90px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .975rem; padding: 0; }
.optional, .hint { color: var(--muted); font-weight: 400; font-size: .925rem; }
input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
input[type="text"]:hover, textarea:hover { border-color: var(--muted); }
textarea { resize: vertical; min-height: 110px; }
[aria-invalid="true"] { border-color: var(--crit) !important; }
.field-error { color: var(--crit); font-size: .925rem; font-weight: 500; }
.field-error:empty { display: none; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.radio {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-weight: 500 !important;
}
.radio:has(input:checked) { border-color: var(--ink); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.access-form .btn { justify-self: start; }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.error { color: var(--crit); }
.form-status.success::before { content: '\2713\00a0'; }

/* Footer */
.site-footer { padding: 56px 0 32px; background: var(--footer-bg); color: var(--footer-ink); }
.site-footer a { color: #ffffff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-text { margin-top: 14px; max-width: 320px; font-size: .975rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; max-width: 520px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); display: grid; gap: 8px; font-size: .95rem; }
.site-footer .disclaimer { color: #ffffff; }
.site-footer :focus-visible { outline-color: #ffffff; }

/* Responsive */
@media (max-width: 959px) {
  .hero-grid, .split, .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .readings { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .shot-phone { grid-row: auto; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .cards.two, .features, .steps { grid-template-columns: 1fr; }
  .readings li { padding: 14px 16px; }
  .phone { width: 260px; }
  .access-form { padding: 22px; }
  .access-form .btn { justify-self: stretch; }
  .diagram { padding: 16px; }
  .diagram text { font-size: 26px; }
  .diagram .d-link text { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
