:root {
  --purple-900: #1C0F33;
  --purple-800: #2A1745;
  --purple-700: #3B2462;
  --purple-500: #6B3FA0;
  --purple-400: #7B4FB8;
  --gold: #E3B53C;
  --gold-light: #F5CF5B;
  --cream: #FAF6EE;
  --card: #FFFDF9;
  --line: #E8DFCE;
  --ink: #2A1745;
  --muted: #5E5270;
  --muted-dark: #D9CEEA;
  --radius: 20px;
  --max: 1160px;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--purple-500); }
a:hover { color: var(--purple-800); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(42, 23, 69, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(227, 181, 60, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand svg { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.brand-by { font-size: 13px; color: var(--muted-dark); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--cream); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--gold-light); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--purple-800); }
.btn-gold:hover { background: var(--gold-light); color: var(--purple-800); }
.btn-ghost { border-color: rgba(250, 246, 238, 0.5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.nav .btn { padding: 9px 18px; color: var(--purple-800); }

/* Sections */
section { padding: 96px 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--purple-500); margin: 0 0 12px; }
.dark .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.5px; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 18px 0 0; }
.dark { background: var(--purple-800); color: var(--cream); }
.dark .lead { color: var(--muted-dark); }
.section-head { margin-bottom: 48px; }

/* Hero */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--gold); }
.promo {
  display: inline-block; margin: 0 0 20px; padding: 8px 18px; border-radius: 999px;
  background: var(--gold); color: var(--purple-800); font-weight: 700; font-size: 15px;
}
.promo s { font-weight: 500; opacity: 0.7; margin-left: 4px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-art .halo { position: absolute; inset: 0; border-radius: 50%; background: var(--purple-700); }
.hero-art svg { position: absolute; inset: 8%; width: 84%; height: 84%; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--muted-dark); }

/* Steps */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.card p { margin: 10px 0 0; color: var(--muted); }
.card .icon { width: 72px; height: 72px; margin-bottom: 18px; }
.card.highlight { background: var(--purple-800); border-color: var(--purple-800); color: var(--cream); }
.card.highlight h3 { color: var(--gold); }
.card.highlight p { color: var(--muted-dark); }

/* Chat example */
.chat-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.chat {
  background: #F3ECFA; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.msg { max-width: 82%; padding: 14px 18px; border-radius: 20px; font-size: 16px; line-height: 1.45; }
.msg.client { align-self: flex-end; background: var(--card); border-bottom-right-radius: 6px; }
.msg-row { display: flex; gap: 10px; align-items: flex-end; max-width: 90%; }
.msg-row svg { width: 40px; height: 40px; flex: none; }
.msg.kaito { background: var(--purple-800); color: var(--cream); border-bottom-left-radius: 6px; max-width: 100%; }
.msg.kaito b { color: var(--gold); display: block; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: var(--purple-800); }
.chip.alt { background: #5A3591; color: var(--cream); }

/* Creates */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 14px; text-align: center; }
.tile svg { width: 64px; height: 64px; margin: 0 auto 12px; }
.tile h3 { font-size: 17px; }
.perks { margin-top: 24px; }
.perk { display: flex; gap: 16px; align-items: flex-start; background: var(--purple-800); color: var(--cream); border-radius: var(--radius); padding: 26px; }
.perk svg { width: 52px; height: 52px; flex: none; }
.perk h3 { color: var(--gold); font-size: 19px; }
.perk p { margin: 6px 0 0; color: var(--muted-dark); font-size: 16px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--purple-800); }
.price { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -1.5px; margin: 18px 0 4px; color: var(--purple-500); }
.price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .tagline { color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='%232A1745' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.plan.featured { background: var(--purple-800); border-color: var(--purple-800); color: var(--cream); }
.plan.featured .price { color: var(--gold); }
.plan.featured .price small, .plan.featured .tagline { color: var(--muted-dark); }
.plans-note { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plans-note .card h3 { font-size: 19px; }
.extras { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 16px; }
.extras td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.extras td:last-child { text-align: right; font-weight: 700; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Contact */
.contact { background: var(--gold); color: var(--purple-800); }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact .lead { color: var(--purple-800); }
.contact-list { display: grid; gap: 14px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; background: var(--purple-800); color: var(--cream);
  text-decoration: none; padding: 18px 22px; border-radius: 16px; font-weight: 600; font-size: 18px;
}
.contact-list a:hover { background: var(--purple-700); color: var(--gold-light); }
.contact-list svg { width: 26px; height: 26px; flex: none; }

/* Footer */
.site-footer { background: var(--purple-900); color: var(--muted-dark); padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: #3E3452; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: #F1EADC; }
.fill { background: #FFE9A8; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.back { display: inline-block; margin-bottom: 28px; text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 980px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plans-note { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  section { padding: 72px 0; }
  .nav a:not(.btn) { display: none; }
  .hero .wrap, .chat-grid, .contact .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(300px, 80%); order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .brand-by { display: none; }
  .card, .plan { padding: 24px; }
  .msg { max-width: 92%; }
}
