:root {
  --violet: #7b2ff7;
  --magenta: #f107a3;
  --orange: #ff8a00;
  --sun: #ffe14d;
  --teal: #00c2a8;
  --ink: #140c24;
  --paper: #fdfbff;
  --muted: #6b6480;
  --line: rgba(20, 12, 36, 0.12);
  --brand: linear-gradient(120deg, var(--violet), var(--magenta), var(--orange));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: var(--violet);
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

nav.top a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

nav.top a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero h1 span {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(123, 47, 247, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}

.btn.small {
  padding: 9px 16px;
  font-size: 14px;
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.hint {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.phone {
  aspect-ratio: 9 / 17;
  border-radius: 34px;
  padding: 14px;
  background: var(--brand);
  box-shadow: 0 30px 70px rgba(20, 12, 36, 0.28);
}

.phone .screen {
  height: 100%;
  border-radius: 24px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.phone .screen .row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.phone .cover {
  width: 46px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--teal), var(--violet));
  flex: none;
}

.phone .cover.b {
  background: linear-gradient(160deg, var(--orange), var(--magenta));
}

.phone .cover.c {
  background: linear-gradient(160deg, var(--sun), var(--orange));
}

.phone .bar {
  height: 9px;
  border-radius: 6px;
  background: rgba(20, 12, 36, 0.1);
}

.phone .bar.short {
  width: 45%;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section p.sub {
  color: var(--muted);
  margin: 0 0 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  padding-left: 46px;
  position: relative;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* ------------------------------------------------------------------ console */

.console-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.panel {
  max-width: 420px;
  margin: 8vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(20, 12, 36, 0.1);
}

.panel h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.panel p.sub {
  margin: 0 0 22px;
  color: var(--muted);
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 14px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
  color: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.error {
  color: #c62368;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.metric .label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric .value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

th {
  background: rgba(123, 47, 247, 0.06);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 194, 168, 0.15);
  color: #0a7a6b;
}

.pill.warn {
  background: rgba(255, 138, 0, 0.18);
  color: #a15400;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.stack {
  display: grid;
  gap: 26px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filters input {
  width: auto;
}

.pill.bad {
  background: rgba(198, 35, 104, 0.14);
  color: #c62368;
}

.ok {
  color: #0a7a6b;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.callout {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.12);
  color: #8a4700;
  font-size: 14px;
}

input.tick {
  width: auto;
  margin: 0 6px 0 0;
}

label.check {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 12px 0;
  font-weight: 500;
}

.people-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 12px;
  margin-top: 8px;
}

.people-list label.check {
  margin: 8px 0;
}

.email-preview {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f3fb;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .phone {
    max-width: 320px;
    margin: 0 auto;
  }

  nav.top a {
    margin-left: 14px;
    font-size: 14px;
  }
}

.scroll-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px 0;
}

.shelf {
  margin-top: 28px;
}

.shelf-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.book-tile {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.book-tile img,
.book-tile .blank {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a00, #c62368);
}

.book-tile .meta {
  color: #6b6b7b;
  font-size: 13px;
}

.sponsored-tag {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.16);
  color: #8a4700;
  font-size: 12px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- contact */

.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.wa-fab svg {
  width: 32px;
  height: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.contact-card.hidden {
  display: none;
}

.contact-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 22px;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-icon.phone,
.contact-icon.mail {
  background: var(--brand);
}

.cover-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 12px;
}

.cover-preview {
  width: 96px;
  aspect-ratio: 0.68;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.cover-preview.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: #faf8ff;
}

.asset-list {
  margin: 0;
  padding-left: 20px;
}

.asset-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

progress {
  width: 100%;
  margin-top: 12px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  column-gap: 12px;
}

.check-grid label.check {
  margin: 6px 0;
}

.terms-check label.check {
  display: block;
  line-height: 1.5;
  max-width: 70ch;
}

/* ------------------------------------------------------------------ legal pages */

.legal {
  max-width: 78ch;
  margin: 0 auto 60px;
  line-height: 1.65;
}

.legal h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.legal h2 {
  margin-top: 36px;
  font-size: 21px;
}

.legal h3 {
  margin-top: 22px;
  font-size: 17px;
}

.legal .meta {
  color: var(--muted);
  font-size: 14px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.legal nav.toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
}
