@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-background: #fbfaff;
  --color-background-secondary: #ffffff;
  --color-background-muted: #f3f0ff;
  --color-foreground: #17131f;
  --color-foreground-secondary: #5f586f;
  --color-foreground-muted: #928ba3;
  --color-card: #ffffff;
  --color-card-muted: #f5f2ff;
  --color-border: #e7dfff;
  --color-border-strong: #cfc2f4;
  --color-primary: #7c3aed;
  --color-primary-muted: #e9ddff;
  --color-primary-subtle: #f4eeff;
  --color-secondary: #ff4fb8;
  --color-tertiary: #2454d6;
  --color-warning: #ffca3a;
  --color-info: #22c7f2;
  --gradient-brand: linear-gradient(135deg, #2454ff 0%, #7c3aed 48%, #ff4fb8 100%);
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ff4fb8 100%);
  --gradient-bubble: linear-gradient(135deg, #ffffff 0%, #f4eeff 100%);
  --gradient-accent: linear-gradient(135deg, #ffca3a 0%, #ff7a59 100%);
  --shadow-soft: 0 24px 80px rgba(75, 40, 160, 0.18);
  --shadow-card: 0 16px 48px rgba(80, 54, 135, 0.12);
  --radius-card: 8px;
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0b0714;
    --color-background-secondary: #12101d;
    --color-background-muted: #1b1730;
    --color-foreground: #fffdf7;
    --color-foreground-secondary: #d8d2e8;
    --color-foreground-muted: #9e96b7;
    --color-card: #171327;
    --color-card-muted: #211b38;
    --color-border: #2f2750;
    --color-border-strong: #4a3a78;
    --color-primary: #a76bff;
    --color-primary-muted: #3b2568;
    --color-primary-subtle: #24183f;
    --color-secondary: #ff5dc8;
    --color-tertiary: #afc8ff;
    --color-info: #43d9ff;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.34);
    --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% -10%, rgba(36, 84, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 2%, rgba(255, 79, 184, 0.14), transparent 30rem),
    var(--color-background);
  color: var(--color-foreground);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header,
.site-footer,
.section,
.status-strip {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.container > .site-header {
  width: 100%;
  min-height: auto;
  margin-inline: 0;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-foreground);
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-foreground-secondary);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 76px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-top: 34px;
  padding-bottom: 58px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Fredoka", "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 86px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 58px);
}

h3 {
  margin-bottom: 8px;
  color: var(--color-foreground);
  font-size: 19px;
  line-height: 1.2;
}

.lead,
.split-section p,
.section-heading p,
.ios-callout p,
.faq-grid p {
  color: var(--color-foreground-secondary);
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  text-align: center;
}

.button-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.28);
}

.button-secondary {
  border: 1px solid var(--color-border-strong);
  background: color-mix(in srgb, var(--color-card) 82%, transparent);
  color: var(--color-foreground);
}

.quick-tags,
.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.quick-tags li,
.prompt-list span {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card-muted);
  color: var(--color-foreground-secondary);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 660px;
}

.phone-shell {
  position: relative;
  width: min(100%, 390px);
  margin: 20px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 34px;
  background:
    linear-gradient(var(--color-card), var(--color-card)) padding-box,
    var(--gradient-brand) border-box;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone-shell::before {
  content: "";
  display: block;
  height: 22px;
  width: 124px;
  margin: 12px auto 0;
  border-radius: 0 0 16px 16px;
  /* Device notch: always a dark cutout, independent of theme (foreground
     flips to near-white in dark mode, which made the notch glow white). */
  background: #0b0714;
  opacity: 0.92;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--color-border);
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.phone-brand img,
.bubble.agent img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.status-pill {
  border-radius: 999px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.chat-stack {
  display: grid;
  gap: 14px;
  min-height: 500px;
  align-content: end;
  padding: 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-card-muted) 68%, transparent), transparent 35%),
    var(--color-card);
}

.bubble {
  max-width: 88%;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(23, 19, 31, 0.08);
}

.bubble.user {
  justify-self: end;
  background: var(--gradient-primary);
  color: #ffffff;
}

.bubble.agent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--gradient-bubble);
  /* The received bubble is a light gradient in BOTH themes, so its text must
     stay dark — var(--color-foreground) would be near-white in dark mode and
     render white-on-white. */
  color: #17131f;
}

.bubble.agent p {
  margin: 0;
}

.bubble.compact {
  max-width: 94%;
}

.hero-avatar {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: min(34vw, 210px);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-border);
  box-shadow: var(--shadow-card);
}

.status-strip span {
  min-height: 70px;
  display: grid;
  place-items: center;
  background: var(--color-card);
  color: var(--color-foreground-secondary);
  padding: 16px;
  text-align: center;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.feature-grid,
.plan-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.plan-card,
.faq-grid details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.feature-card {
  padding: 22px;
}

.feature-card p,
.plan-card p {
  margin-bottom: 0;
  color: var(--color-foreground-secondary);
}

.prompt-section {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 36px;
  align-items: center;
  border-block: 1px solid var(--color-border);
}

.prompt-list span {
  background: var(--color-card);
  color: var(--color-foreground);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.plan-card.recommended {
  border-color: transparent;
  background:
    linear-gradient(var(--color-card), var(--color-card)) padding-box,
    var(--gradient-primary) border-box;
  transform: translateY(-8px);
}

.plan-card.recommended::after {
  content: "";
  position: absolute;
  inset: auto -26px -34px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.25;
}

.plan-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card strong {
  display: block;
  margin-top: 18px;
  color: var(--color-foreground);
  font-size: 22px;
}

.ios-callout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: center;
  border-radius: var(--radius-card);
  background:
    linear-gradient(var(--color-card-muted), var(--color-card-muted)) padding-box,
    var(--gradient-brand) border-box;
  border: 1px solid transparent;
  padding: 30px;
}

.ios-callout img {
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--color-foreground);
  font-weight: 800;
}

.faq-grid p {
  margin: 12px 0 0;
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  padding: 28px 0 42px;
  color: var(--color-foreground-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.container {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
}

.legal {
  color: var(--color-foreground-secondary);
}

.legal h1 {
  color: var(--color-foreground);
  font-size: clamp(40px, 6vw, 64px);
}

.legal h2 {
  margin-top: 34px;
  color: var(--color-foreground);
  font-family: "Fredoka", "Poppins", sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

.legal p,
.legal li {
  font-size: 15px;
}

.legal a {
  color: var(--color-primary);
  font-weight: 700;
}

.ios-page {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
}

.ios-panel {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 46px);
}

.ios-panel img {
  border-radius: 34px;
  box-shadow: 0 18px 44px rgba(124, 58, 237, 0.22);
}

.launch-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.launch-list li {
  border-left: 4px solid var(--color-primary);
  background: var(--color-card-muted);
  padding: 10px 14px;
  color: var(--color-foreground-secondary);
  font-weight: 700;
}

/* Rot Level — the personality dial showcase. Three tone tiles mirror the
   in-app picker (Lightly Cooked / Rotted / Goblin Mode). */
.rot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rot-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 24px;
}

.rot-card-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--color-card), var(--color-card)) padding-box,
    var(--gradient-primary) border-box;
}

.rot-emoji {
  display: block;
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1;
}

.rot-card h3 {
  margin-bottom: 8px;
}

.rot-card p {
  margin-bottom: 16px;
  color: var(--color-foreground-secondary);
}

.rot-tag {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card-muted);
  color: var(--color-foreground-secondary);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.rot-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Scroll-reveal — sections fade and rise into view as they enter the
   viewport. Hidden state is gated behind `.js` so visitors without
   JavaScript still see everything, and disabled under reduced-motion. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split-section,
  .prompt-section,
  .ios-callout,
  .ios-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 610px;
  }

  .hero-avatar {
    right: -12px;
    bottom: -16px;
    width: 150px;
  }

  .status-strip,
  .plan-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .rot-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.recommended {
    transform: none;
  }

  .ios-callout img,
  .ios-panel img {
    width: 150px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .section,
  .status-strip,
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    padding: 54px 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .phone-shell {
    border-radius: 26px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-avatar {
    width: 118px;
  }

  .chat-stack {
    min-height: 460px;
    padding: 16px;
  }

  .bubble {
    max-width: 94%;
  }

  .ios-callout,
  .ios-panel {
    padding: 20px;
  }
}
