/* ============================================================
   Kyrova — landing page styles
   Palette: ink black, electric blue, violet, lilac text
   ============================================================ */

:root {
  --ink:        #06060B;
  --surface:    #0D0D18;
  --surface-hi: #15152A;
  --line:       rgba(255, 255, 255, 0.09);
  --line-hi:    rgba(255, 255, 255, 0.18);

  --blue:       #3D6BFF;
  --violet:     #8B45FF;
  --lilac:      #B7AEDC;
  --mist:       #8B87A8;
  --white:      #F5F4FB;
  --credit:     #4ADE9B;

  --grad: linear-gradient(115deg, var(--blue) 0%, var(--violet) 100%);

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --figure:  "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --shell: 1160px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient wash — two soft lights, nothing more */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(46% 52% at 22% 8%,  rgba(61, 107, 255, 0.20), transparent 70%),
    radial-gradient(40% 46% at 82% 0%,  rgba(139, 69, 255, 0.20), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}

p { margin: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 99;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--figure);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lilac);
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--wide { width: 100%; }

.btn--solid {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(110, 88, 255, 0.9);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(110, 88, 255, 1);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-hi);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.link-quiet {
  color: var(--lilac);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.link-quiet:hover { color: var(--white); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark__glyph { display: inline-flex; }
.mark__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.masthead__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.masthead__nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.masthead__nav a:hover { color: var(--white); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- hero ---------- */

.hero { padding: 86px 0 26px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: clamp(44px, 5.6vw, 74px);
  margin: 20px 0 22px;
}
.hero__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  color: var(--lilac);
  font-size: 18.5px;
  max-width: 33em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__reassure {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.hero__reassure span::before {
  content: "—";
  color: var(--violet);
  margin-right: 7px;
}

/* ---------- signature: live ledger ---------- */

.ledgerbox {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: 0 40px 90px -50px rgba(96, 70, 255, 0.85);
  overflow: hidden;
}

.ledgerbox__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.ledgerbox__bar strong {
  font-family: var(--figure);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
}
.ledgerbox__unmatched {
  font-family: var(--figure);
  font-size: 12.5px;
  color: var(--mist);
}
.ledgerbox__unmatched b { color: var(--white); font-weight: 700; }

.ledgerbox__rows { list-style: none; margin: 0; padding: 0; }

.lrow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  opacity: 0.42;
  transition: opacity 0.5s ease, background 0.5s ease;
}
.lrow.is-matched {
  opacity: 1;
  background: linear-gradient(90deg, rgba(61, 107, 255, 0.10), rgba(139, 69, 255, 0.05) 60%, transparent);
}

.lrow__who { min-width: 0; }
.lrow__who b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lrow__who small {
  font-family: var(--figure);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.lrow__amount {
  font-family: var(--figure);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lrow__amount.is-credit { color: var(--credit); }

.lrow__tag {
  font-family: var(--figure);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  color: var(--mist);
  white-space: nowrap;
}
.lrow.is-matched .lrow__tag {
  border-color: rgba(74, 222, 155, 0.4);
  color: var(--credit);
}

.ledgerbox__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}
.ledgerbox__total span {
  font-family: var(--figure);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
}
.ledgerbox__total output {
  font-family: var(--figure);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- feature band ---------- */

.band { padding: 110px 0; }

.band__head {
  max-width: 720px;
  margin-bottom: 54px;
}
.band__head h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin: 16px 0 16px;
}
.band__head p { color: var(--lilac); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 30px 30px 32px;
  transition: border-color 0.24s ease, transform 0.24s ease;
}
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }

.card__key {
  font-family: var(--figure);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}
.card h3 {
  font-size: 23px;
  margin: 14px 0 12px;
}
.card p { color: var(--mist); font-size: 15.5px; }

.card__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.card__list li {
  font-size: 14.5px;
  color: var(--lilac);
  padding-left: 20px;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- flow (a real sequence, so it is numbered) ---------- */

.flow { padding: 30px 0 110px; }

.flow__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.step {
  padding: 34px 30px 38px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }

.step__n {
  font-family: var(--figure);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.step h3 { font-size: 21px; margin: 12px 0 10px; }
.step p { color: var(--mist); font-size: 15px; }

/* ---------- plans ---------- */

.plans { padding: 0 0 110px; }

.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-hi), var(--surface-hi)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -50px rgba(110, 88, 255, 0.9);
}

.plan__flag {
  font-family: var(--figure);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--credit);
}

.plan__name { font-size: 24px; }
.plan__note { color: var(--mist); font-size: 14.5px; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--figure);
  font-variant-numeric: tabular-nums;
}
.plan__price b { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.plan__price span { font-size: 13px; color: var(--mist); }

.plan__seats {
  font-family: var(--figure);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--lilac);
}
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.plans__small {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--mist);
  text-align: center;
}

/* ---------- questions ---------- */

.questions { padding: 0 0 110px; }

.qa {
  border-top: 1px solid var(--line);
}
.qa details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.qa summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  color: var(--violet);
  font-family: var(--figure);
  font-weight: 400;
}
.qa details[open] summary::after { content: "–"; }
.qa p {
  color: var(--mist);
  font-size: 15.5px;
  margin-top: 12px;
  max-width: 74ch;
}

/* ---------- closing call ---------- */

.closer { padding: 0 0 120px; }

.closer__panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 8% 0%, rgba(61, 107, 255, 0.22), transparent 62%),
    radial-gradient(70% 130% at 96% 100%, rgba(139, 69, 255, 0.26), transparent 62%),
    var(--surface);
  padding: 62px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.closer__panel h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 16ch; }
.closer__panel p { color: var(--lilac); margin-top: 14px; max-width: 42ch; }

/* ---------- checkout ---------- */

.checkout { padding: 70px 0 110px; }

.checkout__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.panelform {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 34px 34px 38px;
}
.panelform h1 { font-size: 34px; margin: 14px 0 10px; }
.panelform > p { color: var(--mist); font-size: 15.5px; }

.field { display: block; margin-top: 22px; }
.field span {
  display: block;
  font-family: var(--figure);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 8px;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
}
.field input::placeholder { color: #5D5A78; }
.field input:focus,
.field select:focus { border-color: var(--violet); outline: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 14px;
  color: var(--mist);
}
.consent input { margin-top: 3px; accent-color: var(--violet); }

.panelform .btn { margin-top: 26px; }

.formnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--mist);
  text-align: center;
}

.alert {
  margin-top: 20px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 106, 138, 0.45);
  background: rgba(255, 106, 138, 0.09);
  color: #FFB3C4;
  font-size: 14.5px;
}

.summary {
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--surface-hi), var(--surface)) padding-box,
    var(--grad) border-box;
  padding: 30px 28px 32px;
  position: sticky;
  top: 96px;
}
.summary h2 { font-size: 22px; margin-bottom: 6px; }
.summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--lilac);
}
.summary__line b {
  font-family: var(--figure);
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.summary__due {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
}
.summary__due span { font-family: var(--figure); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac); }
.summary__due output {
  font-family: var(--figure);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.summary__switch { margin-top: 18px; font-size: 14px; color: var(--mist); }
.summary__switch a { color: var(--white); }

/* ---------- handoff ---------- */

.handoff { padding: 110px 0 130px; text-align: center; }
.handoff h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 18px 0 16px; }
.handoff p { color: var(--lilac); max-width: 50ch; margin: 0 auto; }
.handoff .btn { margin-top: 30px; }
.handoff__ref {
  margin-top: 26px;
  font-family: var(--figure);
  font-size: 12.5px;
  color: var(--mist);
}

/* ---------- footer ---------- */

.footplate {
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  background: rgba(255, 255, 255, 0.015);
}
.footplate__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footplate__brand p {
  color: var(--mist);
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 34ch;
}
.footplate__col { display: flex; flex-direction: column; gap: 10px; }
.footplate__col h3 {
  font-family: var(--figure);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 4px;
}
.footplate__col a {
  color: var(--mist);
  text-decoration: none;
  font-size: 14.5px;
}
.footplate__col a:hover { color: var(--white); }

.footplate__base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #6B6788;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .checkout__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .flow__steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .plans__grid { grid-template-columns: 1fr; }
  .footplate__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .masthead__nav { display: none; }
  .masthead__inner { gap: 16px; }
  .masthead__actions { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .band, .flow, .plans, .questions { padding-bottom: 78px; }
  .band { padding-top: 78px; }
  .closer__panel { padding: 40px 26px; }
  .panelform { padding: 26px 22px 30px; }
  .field-row { grid-template-columns: 1fr; }
  .footplate__inner { grid-template-columns: 1fr; gap: 30px; }
  .shell { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
