/* ============================================================
   Actually Intelligent AI — shared design system
   Bold, colorful "Living Ally" style: big headlines, generous
   color, card/stat-block layouts, dynamic gradients.
   ============================================================ */

:root {
  /* Premium, restrained palette: one deep purple family carries the brand,
     one muted gold is the sole warm accent (used sparingly, for emphasis
     only — never as wallpaper), and greys do the rest of the work. */
  --ink: #16121f;
  --ink-soft: #4a4360;
  --paper: #faf8f5;
  --card: #ffffff;
  --tile: #f4f0fb;   /* tile background — deliberately distinct from --paper and --card so tiles never blend into whatever section they sit on */
  --tile-line: #ded5f0;
  --line: #e6e1ee;

  --purple: #4c2b82;
  --purple-deep: #2c1250;
  --violet: #6d4aa8;
  --blue: #2c1250;   /* alias kept for compatibility; same family as purple-deep */
  --teal: #1f6f54;   /* muted forest green — used only for "live/available" signals */
  --amber: #a9812f;  /* muted brass/gold — the one warm accent, used sparingly */
  --pink: #4c2b82;   /* alias kept for compatibility; folded into the purple family */
  --green: #1f6f54;  /* alias kept for compatibility; same as --teal */
  --gold: #a9812f;

  --grad-hero: linear-gradient(135deg, #2c1250 0%, #4c2b82 55%, #6d4aa8 100%);
  --grad-card-1: linear-gradient(135deg, #2c1250, #4c2b82);
  --grad-card-2: linear-gradient(135deg, #4c2b82, #6d4aa8);
  --grad-card-3: linear-gradient(135deg, #241043, #3a1e68);
  --grad-card-4: linear-gradient(135deg, #4c2b82, #a9812f);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px rgba(30, 15, 60, 0.10);
  --shadow-lg: 0 20px 48px rgba(30, 15, 60, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad-hero); display: inline-block; }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a { color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; }
nav.links a:hover { color: var(--purple); text-decoration: none; }
.nav-cta {
  background: var(--grad-hero); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 700 !important;
}
.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.links { position: fixed; inset: 64px 0 0 0; background: var(--paper); flex-direction: column;
    padding: 32px 24px; gap: 20px; transform: translateY(-110%); transition: transform 0.25s ease; }
  nav.links.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 45%);
}
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead { font-size: 1.25rem; max-width: 620px; color: rgba(255,255,255,0.9); }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: #fff; color: var(--purple-deep); }
.btn-primary:hover { background: #f3f0fb; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-outline-dark { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline-dark:hover { background: rgba(109,40,217,0.08); text-decoration: none; }
.btn-buy { background: var(--grad-hero); color: #fff; width: 100%; }
.btn-buy:hover { opacity: 0.92; text-decoration: none; }
.btn-soon { background: var(--line); color: var(--ink-soft); width: 100%; cursor: not-allowed; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, #fbf9fe 0%, var(--tile) 100%);
  border-radius: var(--radius); padding: 28px; padding-top: 32px;
  border: 1px solid var(--tile-line);
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(30, 15, 60, 0.06),
    0 8px 16px rgba(30, 15, 60, 0.07),
    0 24px 40px -12px rgba(30, 15, 60, 0.16);
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-hero);
  opacity: 0.9;
  z-index: 1;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(140% 90% at 20% -10%, rgba(255,255,255,0.55), transparent 55%);
  pointer-events: none;
}
.card-accent > .inner { position: relative; overflow: hidden; }
.card-accent > .inner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 90% at 20% -10%, rgba(255,255,255,0.55), transparent 55%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 2px 4px rgba(30, 15, 60, 0.08),
    0 16px 28px rgba(30, 15, 60, 0.12),
    0 36px 60px -12px rgba(30, 15, 60, 0.24);
}
.card-accent {
  border-radius: var(--radius); padding: 3px;
  box-shadow:
    0 2px 4px rgba(30, 15, 60, 0.10),
    0 14px 24px rgba(30, 15, 60, 0.14),
    0 32px 56px -14px rgba(30, 15, 60, 0.30);
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-accent:hover {
  transform: translateY(-7px);
  box-shadow:
    0 3px 6px rgba(30, 15, 60, 0.12),
    0 22px 36px rgba(30, 15, 60, 0.18),
    0 44px 76px -14px rgba(30, 15, 60, 0.36);
}
.card-accent > .inner { background: linear-gradient(180deg, #fbf9fe 0%, var(--tile) 100%); border-radius: calc(var(--radius) - 3px); padding: 26px; height: 100%; }
.accent-1 { background: var(--grad-card-1); }
.accent-2 { background: var(--grad-card-2); }
.accent-3 { background: var(--grad-card-3); }
.accent-4 { background: var(--grad-card-4); }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem;
  font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-live { background: #e6f2ec; color: #1f6f54; }
.badge-soon { background: #f1f0f6; color: var(--ink-soft); }
.badge-new { background: #f4ecd9; color: #7c5f22; }

/* ---------- Stat blocks ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 780px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-block {
  background: linear-gradient(180deg, #fbf9fe 0%, var(--tile) 100%);
  border-radius: var(--radius-sm); padding: 22px;
  border: 1px solid var(--tile-line); text-align: center;
  box-shadow:
    0 1px 2px rgba(30, 15, 60, 0.05),
    0 8px 18px rgba(30, 15, 60, 0.08);
}
.stat-block .num { font-size: 2.2rem; font-weight: 900; background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-block .label { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Price cards ---------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card .price { font-size: 2.2rem; font-weight: 900; margin: 12px 0; }
.price-card .price .unit { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- Tables ---------- */
table.styled { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow); }
table.styled th { background: var(--purple-deep); color: #fff; text-align: left; padding: 14px 18px; font-size: 0.9rem; }
table.styled td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.96rem; }
table.styled tr:nth-child(even) td { background: #faf9fd; }

/* ---------- Section headers ---------- */
.eyebrow-dark { color: var(--purple); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: #d9d5e8; padding: 56px 0 32px; margin-top: 80px; }
footer.site-footer h4 { color: #fff; font-size: 1rem; }
footer.site-footer a { color: #d9d5e8; }
footer.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 24px;
  font-size: 0.85rem; color: #9a94b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.disclosure {
  background: #f3f0fb; border: 1px solid #ddd3ef; color: var(--purple-deep); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 0.92rem; margin: 24px 0;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: var(--line); color: var(--ink-soft); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
