/* Prototype 4: minimal, direct, pastel bands, product windows, 3D characters.
   One font (Libre Franklin), one accent (Sirovi purple), 1024px measure, light only. */
:root {
  --font: 'Libre Franklin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #0b0a10;
  --card: #16151d;
  --ink: #f0eef5;
  --ink-2: #c9c6d6;
  --muted: #8f8a9e;
  --line: #26242f;
  --line-2: #3a3747;
  --primary: #6c4cf5;
  --primary-ink: #4b32c4;
  --primary-soft: #a895ff;
  --on-primary: #ffffff;
  --night: #0f0c24;
  --night-2: #1c1740;
  --pastel-lavender: #19152e;
  --pastel-sky: #111826;
  --pastel-mint: #101c17;
  --pastel-peach: #1f1712;
  --pastel-butter: #1e1b10;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1024px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h1 {
  font-size: 52px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-ink);
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover {
  background: #d9d5e6;
}
.btn-light {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-light:hover {
  border-color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}
.btn-pill {
  border-radius: 999px;
  min-height: 40px;
  font-weight: 500;
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-2);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-soft);
  text-decoration: none;
}
.arrow-link:hover {
  text-decoration: underline;
}

/* Header */
.p4-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 10, 16, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.p4-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}
.p4-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.p4-header .brand img {
  height: 26px;
  width: auto;
  display: block;
}
.p4-header .crumb {
  color: var(--muted);
  font-weight: 400;
}
.p4-header nav {
  display: flex;
  gap: 22px;
  margin: 0 auto;
}
.p4-header nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.p4-header nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}
.p4-header .btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.p4-header.on-dark {
  background: rgba(15, 12, 36, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.p4-header.on-dark nav a {
  color: rgba(255, 255, 255, 0.78);
}
.p4-header.on-dark nav a[aria-current='page'] {
  color: #fff;
}

/* Hero: headline left, the live sphere right */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: radial-gradient(900px 500px at 78% 40%, rgba(108, 76, 245, 0.22), transparent 70%), var(--night);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1 {
  max-width: 14ch;
  color: #fff;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
}
.hero .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.hero .row .btn {
  max-width: 100%;
}
.hero .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}
.hero .btn-primary {
  background: var(--primary-soft);
  color: var(--night);
}
.hero .btn-primary:hover {
  background: #c0b3ff;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
/* The live sphere is the background of the hero's right side; the whole drawing stays visible. */
.hero-figure {
  margin: 0;
  position: absolute;
  inset: 0 32px 0 48%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
  display: flex;
  align-items: center;
}
.hero-grid {
  width: 100%;
}
.hero-grid > .hero-text {
  grid-column: 1;
  position: relative;
  z-index: 1;
}
.factory-plate {
  width: 100%;
}
.factory-plate svg {
  display: block;
  width: 100%;
  height: auto;
}
.factory-plate .sirovi-sphere text {
  font-family: var(--mono);
}

.factory-plate .flow {
  animation: march 1.6s linear infinite;
}
.factory-plate .flow-rev {
  animation: march 1.6s linear infinite reverse;
}
@keyframes march {
  to {
    stroke-dashoffset: -15;
  }
}
.factory-plate .dial {
  transform-origin: 400px 160px;
  animation: spin 60s linear infinite;
}
.factory-plate .dial-rev {
  transform-origin: 400px 160px;
  animation: spin 40s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.factory-plate .you-ring {
  transform-origin: 58px 160px;
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .factory-plate .flow,
  .factory-plate .flow-rev {
    animation-duration: 4s;
  }
  .factory-plate .dial {
    animation-duration: 180s;
  }
  .factory-plate .dial-rev {
    animation-duration: 120s;
  }
  .factory-plate .you-ring {
    animation: none;
  }
}

/* Bands */
.band {
  padding: 96px 0;
}
.band-lavender {
  background: var(--pastel-lavender);
}
.band-sky {
  background: var(--pastel-sky);
}
.band-mint {
  background: var(--pastel-mint);
}
.band-peach {
  background: var(--pastel-peach);
}
.band-butter {
  background: var(--pastel-butter);
}
.band-night {
  background: var(--night);
  color: #fff;
}
.band-night .lead {
  color: rgba(255, 255, 255, 0.8);
}
.band .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.band h2 {
  max-width: 24ch;
}
.band .caption {
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

/* Product window */
.window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1d1b26;
  border-bottom: 1px solid var(--line);
}
.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2574c;
}
.window-bar i:nth-child(2) {
  background: #e9b23f;
}
.window-bar i:nth-child(3) {
  background: #5fb85f;
}
.window-bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.window-body {
  padding: 20px 24px;
}
.term {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  background: #15131f;
  color: #e9e6f5;
  padding: 18px 22px;
}
.term .you {
  color: #a895ff;
}
.term .agent {
  color: #8fd3a6;
}
.term .dim {
  color: #8d8aa0;
}
.term .tag {
  display: inline-block;
  min-width: 118px;
  color: #8d8aa0;
}
.rows {
  display: flex;
  flex-direction: column;
}
.rows > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rows > div:last-child {
  border-bottom: 0;
}
.rows .ic {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #2a2342;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
}
.rows .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #163524;
  color: #8fd3a6;
}
.pill-wait {
  background: #3a2e0f;
  color: #f0c868;
}
.pill-you {
  background: #2a2342;
  color: var(--primary-soft);
}

/* Window with a character beside it */
.showcase {
  position: relative;
}
.showcase .spot {
  position: absolute;
  width: 220px;
  pointer-events: none;
}
.showcase .spot-left {
  left: -250px;
  bottom: -10px;
}
.showcase .spot-right {
  right: -250px;
  bottom: -10px;
}
.showcase .spot-top {
  right: 24px;
  top: -150px;
  width: 200px;
}

.scene {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.band-night .caption {
  color: rgba(255, 255, 255, 0.6);
}
.split img {
  max-height: 420px;
}
/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 260px;
}
.card p {
  color: var(--ink-2);
  font-size: 15px;
}
.card .arrow-link {
  margin-top: auto;
  font-size: 14px;
}
.card-lavender {
  background: #1d1836;
  border-color: #2b2550;
}
.card-sky {
  background: #141d30;
  border-color: #223049;
}
.card-mint {
  background: #13231c;
  border-color: #1f3a2d;
}
.card-peach {
  background: #251b15;
  border-color: #3d2c22;
}
.card-butter {
  background: #252113;
  border-color: #3d371f;
}
.card .art {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(168, 149, 255, 0.1);
  border: 1px solid rgba(168, 149, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .art.portrait {
  width: 128px;
  height: 128px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 70%, rgba(168, 149, 255, 0.22), rgba(168, 149, 255, 0.06));
}
.card .art.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.card .art svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--primary-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Two-column with character (wins over .band .container's column flex) */
.band .container.split,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.split img {
  display: block;
  max-height: 380px;
  width: auto;
  margin: 0 auto;
}
.split.reverse > :first-child {
  order: 2;
}
.split h2 + .lead,
.split h1 + .lead {
  margin-top: 16px;
}

/* Whitelist form */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form-row input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--card);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.form-row input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.notice {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #163524;
  color: #8fd3a6;
}

/* Footer sitemap */
.p4-footer {
  background: var(--pastel-sky);
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  font-size: 14px;
}
.p4-footer .cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.p4-footer h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.p4-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p4-footer a {
  text-decoration: none;
  color: var(--ink-2);
}
.p4-footer a:hover {
  text-decoration: underline;
}
.p4-footer .bottom {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}
.p4-footer .bottom img {
  height: 24px;
  width: auto;
}

/* Sub-page article */
.article {
  padding: 72px 0 96px;
}
.article .container {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article h1 {
  font-size: 48px;
}
.article h2 {
  font-size: 28px;
  margin-top: 28px;
}
.article p,
.article li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.article ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 8px;
}
.article strong {
  color: var(--ink);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.plan {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan .price {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plan ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Prototype bar */

@media (max-width: 900px) {
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 28px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .hero-figure {
    position: static;
    pointer-events: auto;
    margin-top: 32px;
  }
  .hero-figure {
    opacity: 1;
  }
  .factory-plate {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: #0b0b10;
  }

  .btn-lg {
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
  }
  .form-row .btn {
    flex: 1 1 100%;
  }
  .band {
    padding: 64px 0;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .split,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .showcase .spot {
    display: none;
  }
  .p4-header nav {
    display: none;
  }
  .p4-footer .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article h1 {
    font-size: 36px;
  }
}

/* Link-styled button (opens the eBook dialog from running text) */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--primary-soft);
  text-decoration: underline;
  cursor: pointer;
}
/* eBook dialog */
.ebook-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.ebook-dialog::backdrop {
  background: rgba(5, 4, 10, 0.7);
}
.ebook-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
}
.ebook-cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.ebook-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ebook-body h2 {
  font-size: 28px;
}
.ebook-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.ebook-close:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ebook-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 880px) {
  .ebook-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }
  .ebook-cover-img {
    max-width: 180px;
  }
}
/* Consent bar */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  margin: 0 auto;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-size: 14px;
}
.consent[hidden] {
  display: none;
}
.consent p {
  margin: 0;
}
.consent .row {
  display: flex;
  gap: 8px;
}
