/* Malva Live — the public site. Colours are taken from the logo: the near-black
   tile, and the blue-to-magenta sweep of its dial. */
:root {
  --bg: #0c0f15;
  --bg-raised: #141923;
  --bg-card: #171d29;
  --line: #262e3d;
  --text: #eef1f5;
  --text-dim: #a3adbf;
  --text-faint: #6f7a8e;
  --blue: #2a4bff;
  --violet: #8a44ff;
  --magenta: #db3cf0;
  --sweep: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--magenta));
  --ok: #3ccf8e;
  --soon: #f0b44c;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.sweep-text {
  background: var(--sweep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 15, 21, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
@media (min-width: 860px) { .top .wrap { gap: 24px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.brand .word { width: 128px; height: auto; }
@media (max-width: 359px) { .top .brand .word { width: 84px; } .top .btn { padding: 8px 12px; font-size: 0.82rem; } }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-dim); font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.top .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .top .btn { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sweep); color: #fff; box-shadow: 0 6px 24px -8px rgba(138, 68, 255, 0.7); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(138, 68, 255, 0.9); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg-raised); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(138, 68, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } .hero { padding: 104px 0 96px; } }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-bottom: 20px;
}
.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { font-size: 0.9rem; color: var(--text-faint); margin-top: 14px; }

/* The illustration of the desk. Drawn, not a screenshot. */
.desk {
  background: linear-gradient(180deg, #161c28, #10141c);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.desk-bar { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-faint); margin-bottom: 12px; }
.desk-bar .live { color: var(--ok); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.desk-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.desk-bar .lufs { margin-left: auto; font-variant-numeric: tabular-nums; }
.desk svg { width: 100%; height: auto; display: block; }

/* ---------- sections ---------- */
section { padding: 80px 0; scroll-margin-top: 64px; }
.alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(42, 75, 255, 0.2), rgba(219, 60, 240, 0.2));
  border: 1px solid rgba(138, 68, 255, 0.35);
}
.card .icon svg { width: 20px; height: 20px; stroke: #c9b6ff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The promise about the room */
.promise { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .promise { grid-template-columns: 1fr 1fr; gap: 56px; } }
.chain { display: grid; gap: 10px; }
.chain .node {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
}
.chain .node small { display: block; color: var(--text-faint); font-size: 0.85rem; }
.chain .ours { border-color: rgba(138, 68, 255, 0.5); background: linear-gradient(135deg, rgba(42, 75, 255, 0.12), rgba(219, 60, 240, 0.12)); }
.chain .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chain .arrow { text-align: center; color: var(--text-faint); font-size: 0.9rem; line-height: 1; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(60, 207, 142, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ccf8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks li strong { color: var(--text); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--sweep);
}
.step.card { padding-top: 78px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; max-width: 820px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.plan.featured { border: 1.5px solid transparent; background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--sweep) border-box; }
.plan .badge { position: absolute; top: -12px; left: 28px; max-width: calc(100% - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--sweep); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--text-dim); font-size: 0.95rem; min-height: 3em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 18px 0 22px; }
.price strong { font-size: clamp(2.2rem, 11vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--text-faint); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan li.soon { color: var(--text-dim); }
.plan li.soon::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0b44c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.soon-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soon); background: rgba(240, 180, 76, 0.12); padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.plan .btn { width: 100%; }
.price-notes { display: grid; gap: 14px; margin-top: 36px; color: var(--text-dim); font-size: 0.95rem; }
@media (min-width: 900px) { .price-notes { grid-template-columns: repeat(3, 1fr); } }
.price-notes strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- requirements ---------- */
.reqs { display: grid; gap: 14px; }
@media (min-width: 900px) { .reqs { grid-template-columns: repeat(4, 1fr); } }
.reqs .card h3 { font-size: 1rem; margin-bottom: 6px; }

/* ---------- faq ---------- */
.faq details { max-width: 820px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--text-faint); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-dim); padding-right: 36px; }
.faq details a { color: #c9b6ff; }

/* ---------- closing call ---------- */
.closing { text-align: center; }
.closing .card { padding: 56px 24px; background: radial-gradient(ellipse at top, rgba(138, 68, 255, 0.25), transparent 65%), var(--bg-card); }
.closing p { color: var(--text-dim); max-width: 34em; margin: 0 auto 28px; font-size: 1.08rem; }
.closing .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-faint); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; color: var(--text-dim); }
footer a:hover { color: var(--text); }
footer .copy { margin-left: auto; }
@media (max-width: 719px) { footer .copy { margin-left: 0; width: 100%; } }

/* ---------- the missing page ---------- */
.lost { padding-top: 96px; padding-bottom: 96px; }
.lost p { color: var(--text-dim); }

:focus-visible { outline: 2px solid #b48cff; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
