/* ══════════════════════════════════════════════════════════════════════════
   Landing page. Depends on kadili.css for tokens and primitives.
   ══════════════════════════════════════════════════════════════════════════ */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1.25rem; background: var(--accent); color: #fff;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--border); }
.site-head .wrap { gap: var(--sp-5); }

.site-nav { display: flex; gap: var(--sp-5); font-size: var(--text-sm); font-weight: 520; }
.site-nav a { color: var(--fg-muted); transition: color var(--dur-fast) var(--ease); }
.site-nav a:hover { color: var(--fg); }

.theme-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { background: var(--surface-alt); color: var(--fg); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme='light'] .icon-moon,
[data-theme='dark']  .icon-sun { display: none; }

@media (max-width: 880px) {
  .site-nav, .nav-signin { display: none; }
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: var(--sp-9) 0 var(--sp-8); overflow: hidden; }

/* The signature: concentric signal arcs radiating from behind the demo. */
.hero__field {
  position: absolute; inset: 0;
  pointer-events: none;
  display: grid; place-items: center;
  --origin-x: 76%;
}
.hero__field .arc {
  position: absolute;
  top: 42%; left: var(--origin-x);
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  opacity: 0;
  animation: arc-out 5.5s var(--ease-in-out) infinite;
}
.arc--1 { width: 420px;  height: 420px;  animation-delay: 0s; }
.arc--2 { width: 720px;  height: 720px;  animation-delay: .55s; }
.arc--3 { width: 1040px; height: 1040px; animation-delay: 1.1s; }
.arc--4 { width: 1400px; height: 1400px; animation-delay: 1.65s; }

@keyframes arc-out {
  0%   { opacity: 0;    scale: .72; }
  22%  { opacity: .55; }
  70%  { opacity: 0;    scale: 1.04; }
  100% { opacity: 0;    scale: 1.04; }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  gap: var(--sp-8);
  align-items: center;
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: 680;
  letter-spacing: -0.032em;
  line-height: 1.04;
  margin: var(--sp-3) 0 var(--sp-4);
}
.hero__actions { margin: var(--sp-5) 0 var(--sp-3); gap: var(--sp-3); }

@media (max-width: 940px) {
  .hero { padding-top: var(--sp-7); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__field { --origin-x: 50%; }
  .hero__demo { justify-self: center; }
}

/* ── phone / portal demo ────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: 288px; margin-inline: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}
.phone__notch {
  position: absolute; top: 16px; left: 50%; translate: -50% 0;
  width: 76px; height: 5px; border-radius: 3px;
  background: var(--border); z-index: 2;
}
.phone__screen {
  height: 464px;
  border-radius: 26px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.portal { display: flex; flex-direction: column; height: 100%; }
.portal__head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
}
.portal__name { display: block; font-size: var(--text-sm); font-weight: 620; }
.portal__sub  { display: block; font-size: var(--text-2xs); color: var(--fg-muted); }
.portal__body { flex: 1; padding: var(--sp-2) var(--sp-4) var(--sp-5); }
.portal__label { font-size: var(--text-xs); font-weight: 580; color: var(--fg-muted); margin-bottom: var(--sp-3); }
.portal__note  { font-size: var(--text-2xs); color: var(--fg-muted); text-align: center; margin-top: var(--sp-3); }

.pstate { animation: fade-up var(--dur) var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.plan {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .8125rem .9375rem; margin-bottom: var(--sp-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: var(--text-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.plan b { font-variant-numeric: tabular-nums; font-weight: 640; }
.plan.is-picked { border-color: var(--accent); box-shadow: var(--ring); }
.plan.is-picked b { color: var(--accent); }

.fake-input {
  padding: .75rem .875rem; margin-bottom: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.wait { display: grid; place-items: center; gap: var(--sp-3); padding: var(--sp-6) 0 var(--sp-5); color: var(--accent); }

.done { display: grid; place-items: center; gap: var(--sp-2); padding: var(--sp-7) 0; }
.done__tick {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  color: var(--ok); margin-bottom: var(--sp-2);
  animation: tick-pop 420ms var(--ease);
}
.done__tick svg { width: 24px; height: 24px; }
@keyframes tick-pop { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }

/* ── proof strip ────────────────────────────────────────────────────────── */
.strip { padding: var(--sp-5) 0; border-block: 1px solid var(--border-soft); background: var(--bg-sunken); }
.strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-5); }
.strip__item { display: grid; gap: 2px; }
.strip__value { font-size: var(--text-xl); font-weight: 680; letter-spacing: var(--tracking-tight); }
.strip__label { font-size: var(--text-xs); color: var(--fg-muted); }

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding: var(--sp-9) 0; }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--border-soft); }
.section__head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section__head h2 { margin: var(--sp-2) 0 var(--sp-3); }

/* features */
.feature-grid { gap: var(--sp-4); }
.feature { padding: var(--sp-5); }
.feature h3 { margin: var(--sp-4) 0 var(--sp-2); }
.feature p { font-size: var(--text-sm); color: var(--fg-muted); }
.feature__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
}
.feature__icon svg { width: 20px; height: 20px; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--sp-4); counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step__n {
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  color: var(--accent); padding-top: 2px;
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--text-sm); color: var(--fg-muted); max-width: 64ch; }

/* pricing */
.price-grid { gap: var(--sp-4); align-items: start; }
.price { position: relative; padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.price--lead { border-color: var(--accent-line); box-shadow: var(--shadow); }
.price__flag {
  position: absolute; top: -10px; left: var(--sp-5);
  padding: .1875rem .625rem; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff;
  font-size: var(--text-2xs); font-weight: 620; letter-spacing: .02em;
}
.price__name { font-size: var(--text-base); font-weight: 600; }
.price__amount { display: grid; gap: 2px; }
.price__amount .num { font-size: var(--text-2xl); font-weight: 680; letter-spacing: var(--tracking-tight); }
.price__unit { font-size: var(--text-xs); color: var(--fg-muted); }
.price__list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--text-sm); color: var(--fg-muted); }
.price__list li { display: flex; gap: var(--sp-2); }
.price__list li::before { content: '—'; color: var(--accent); flex: none; }

.activation {
  margin-top: var(--sp-5); padding: var(--sp-5);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sp-5); align-items: center;
}
.activation__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.activation__opt { display: grid; gap: 4px; padding-left: var(--sp-4); border-left: 2px solid var(--accent-line); }
.activation__opt .num { font-size: var(--text-lg); font-weight: 660; }
@media (max-width: 780px) { .activation { grid-template-columns: 1fr; } }

/* faq */
.faq-wrap { max-width: 800px; }
.faq { display: grid; gap: var(--sp-2); }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
}
.faq__item summary {
  cursor: pointer; font-weight: 580; font-size: var(--text-base);
  list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; color: var(--accent); font-weight: 500; font-size: 1.25rem; line-height: 1;
  transition: rotate var(--dur) var(--ease);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin-top: var(--sp-3); font-size: var(--text-sm); color: var(--fg-muted); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-7); align-items: center; }
.contact__links { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.contact__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); width: fit-content; min-width: 280px;
  transition: border-color var(--dur-fast) var(--ease);
}
.contact__link:hover { border-color: var(--accent-line); }
.contact__link span span { display: block; }
.contact__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); flex: none; }
.contact__icon svg { width: 17px; height: 17px; }

.cta { padding: var(--sp-6); display: grid; gap: var(--sp-3); justify-items: start; }
.cta h3 { margin-top: var(--sp-2); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { padding: var(--sp-7) 0 var(--sp-5); border-top: 1px solid var(--border); background: var(--bg-sunken); }
.site-foot__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-5); padding-bottom: var(--sp-6); }
.site-foot__top nav { display: grid; gap: var(--sp-2); align-content: start; font-size: var(--text-sm); }
.site-foot__top nav a { color: var(--fg-muted); }
.site-foot__top nav a:hover { color: var(--accent); }
.site-foot__h { font-size: var(--text-xs); font-weight: 620; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); margin-bottom: var(--sp-1); }
.site-foot__bar { display: flex; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border-soft); }
@media (max-width: 720px) { .site-foot__top { grid-template-columns: 1fr 1fr; } }
