/* ─────────────────────────────────────────────────────────────────────────
   HOUZFLOW AI — Presentation Stylesheet
   1:1 replica of the original Tailwind/React build, hand-rolled in CSS.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --radius: 1rem;

  /* Brand from Houzflow logo */
  --navy-deep: oklch(0.22 0.09 268);
  --navy: oklch(0.30 0.10 268);
  --blue: oklch(0.58 0.24 263);          /* #1e5fff vivid */
  --blue-glow: oklch(0.70 0.20 258);
  --ink: oklch(0.20 0.07 268);
  --haze: oklch(0.985 0.005 260);

  --background: oklch(0.985 0.005 260);
  --foreground: oklch(0.18 0.05 268);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.05 268);
  --primary: oklch(0.58 0.24 263);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0.01 260);
  --secondary-foreground: oklch(0.20 0.05 268);
  --muted: oklch(0.96 0.01 260);
  --muted-foreground: oklch(0.48 0.03 260);
  --accent: oklch(0.58 0.24 263);
  --accent-foreground: oklch(1 0 0);
  --destructive: oklch(0.58 0.22 22);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.20 0.05 268 / 0.12);
  --input: oklch(0.20 0.05 268 / 0.15);
  --ring: oklch(0.58 0.24 263);

  --gradient-hero: radial-gradient(ellipse 90% 60% at 50% 0%, oklch(0.58 0.24 263 / 0.10), transparent 65%),
                   linear-gradient(180deg, oklch(1 0 0), oklch(0.97 0.01 260));
  --gradient-soft: linear-gradient(180deg, oklch(0.985 0.005 260), oklch(0.94 0.02 260));
  --gradient-blue: linear-gradient(135deg, var(--blue), var(--blue-glow));
  --shadow-glow: 0 30px 80px -20px oklch(0.58 0.24 263 / 0.30);

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
*, *::before, *::after { border-color: var(--border); }

html, body {
  margin: 0;
  padding: 0;
  background: oklch(0.985 0.005 260);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input { font-family: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Layout primitives ---------- */

.snap-deck {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.slide-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
}

.bg-hero { background: var(--gradient-hero); }
.bg-ink { background: oklch(0.97 0.01 260); }
.bg-blue-grad { background: var(--gradient-blue); color: #fff; }
.shadow-glow { box-shadow: var(--shadow-glow); }

.slide-inner {
  position: relative;
  width: 100%;
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
}

.slide-index {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}
@media (min-width: 768px) {
  .slide-index { top: 2.5rem; left: 3rem; }
}
.slide-index .idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.slide-index .title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.48 0.03 260 / 0.7);
  display: none;
}
@media (min-width: 768px) {
  .slide-index .title { display: inline; }
}

/* ---------- Glass effects ---------- */

.glass {
  background: linear-gradient(135deg, oklch(1 0 0 / 0.65), oklch(1 0 0 / 0.35));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid oklch(0.20 0.05 268 / 0.08);
  box-shadow: inset 0 1px 0 0 oklch(1 0 0 / 0.6), 0 10px 40px -10px oklch(0.20 0.05 268 / 0.12);
}
.glass-dark {
  background: linear-gradient(135deg, oklch(0.20 0.05 268 / 0.04), oklch(0.20 0.05 268 / 0.02));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid oklch(0.20 0.05 268 / 0.08);
}

/* ---------- Text gradients ---------- */

.text-gradient {
  background: linear-gradient(180deg, oklch(0.18 0.05 268) 0%, oklch(0.40 0.06 268) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Top nav ---------- */

.top-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.top-nav img { height: 1.75rem; width: auto; }
.top-nav span { font-size: 0.875rem; font-weight: 700; letter-spacing: -0.025em; }

/* ---------- Pill ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: oklch(0.18 0.05 268 / 0.9);
}
.pill .dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: var(--primary);
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

/* ---------- Generic helpers ---------- */

.center { text-align: center; }
.muted { color: var(--muted-foreground); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-15%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
.animate-bounce { animation: bounce 1s infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }

/* ===========================================================================
   01 HERO
   =========================================================================== */

.hero-content { text-align: center; }
.hero-title {
  margin-top: 2rem;
  font-size: 3rem;
  line-height: 0.95;
}
@media (min-width: 768px) {
  .hero-title { font-size: 6rem; }
}
.hero-sub {
  margin: 2rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.hero-scroll {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}
.hero-scroll span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* ===========================================================================
   02 ABOUT
   =========================================================================== */

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.about-grid h2 { font-size: 3rem; }
@media (min-width: 768px) { .about-grid h2 { font-size: 3.75rem; } }
.about-grid h3 { margin-top: 1.5rem; font-size: 1.875rem; font-weight: 600; }
.about-list { margin-top: 1.5rem; }
.about-list li {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}
.about-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}
.about-team {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.about-team-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.5);
  padding: 1.25rem;
}
.about-team-card .label { font-size: 0.75rem; color: var(--muted-foreground); }
.about-team-card .name { margin-top: 0.5rem; font-weight: 600; }
.about-team-card .role { font-size: 0.875rem; color: var(--muted-foreground); }

.about-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
}
.about-photo {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 oklch(0 0 0 / 0.05);
  aspect-ratio: 4 / 3;
}
.about-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.about-photo:hover img { transform: scale(1.05); }
.about-photo.pos-top img { object-position: top; }
.about-photo figcaption {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(0.18 0.05 268 / 0.9);
  margin: 0;
}

/* ===========================================================================
   03 PROBLEM
   =========================================================================== */

.problem-heading {
  font-size: 2.25rem;
  max-width: 56rem;
}
@media (min-width: 768px) { .problem-heading { font-size: 3.75rem; } }

.problem-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .problem-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card-basic {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.5);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.card-basic .icon-x { color: var(--destructive); }
.card-basic .card-title {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
}
.card-basic .card-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===========================================================================
   04 THREE PILLARS
   =========================================================================== */

.pillars-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar-card {
  position: relative;
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.3s;
  cursor: pointer;
}
.pillar-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-glow);
  border-color: oklch(0.58 0.24 263 / 0.4);
  background: var(--card);
}
.pillar-card .n {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.3em;
}
.pillar-card .pillar-icon {
  margin-top: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.pillar-card:hover .pillar-icon { transform: scale(1.1); }
.pillar-card h3 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.pillar-card ul {
  margin-top: 1rem;
}
.pillar-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.pillar-card li svg { color: oklch(0.58 0.24 263 / 0.7); flex-shrink: 0; }

/* ===========================================================================
   05 LEAD SYSTEM (Pillar 01) / 06 AI EMPLOYEE / generic two-col
   =========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.two-col h2 { font-size: 3rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .two-col h2 { font-size: 3.75rem; } }

.checklist { margin-top: 2rem; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
}
.checklist li svg { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* ---------- 06 AI Employee stats ---------- */

.section-lead {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted-foreground);
}
.stat-row {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-card-glass {
  border-radius: 1.5rem;
  padding: 1.75rem;
}
.stat-card-glass svg { color: var(--primary); }
.stat-card-glass .v {
  margin-top: 1rem;
  font-size: 3rem;
  font-weight: 700;
}
.stat-card-glass .l {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.feature-row {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .feature-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-card {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.5);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-glow);
  border-color: oklch(0.58 0.24 263 / 0.4);
  background: oklch(1 0 0 / 0.8);
}
.feature-card svg { color: var(--primary); transition: transform 0.3s; }
.feature-card:hover svg { transform: scale(1.1); }
.feature-card .t { margin-top: 1rem; font-weight: 600; }
.feature-card .d { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- 06 AI Employee — 4-up feature grid + stat strip ---------- */

.ai-employee-heading { font-size: 3rem; }
@media (min-width: 768px) { .ai-employee-heading { font-size: 3.75rem; } }

.feature-row-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .feature-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Supporting stat strip */
.ai-stat-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .ai-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-stat-pill {
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.ai-stat-pill .v { font-size: 1.125rem; font-weight: 700; }
.ai-stat-pill .l { font-size: 0.75rem; color: var(--muted-foreground); }

/* ===========================================================================
   07 REPUTATION (Pillar 03)
   =========================================================================== */

.rep-heading {
  font-size: 2.25rem;
  white-space: nowrap;
}
@media (min-width: 768px) { .rep-heading { font-size: 3rem; } }

.rep-cards { margin-top: 2rem; width: 100%; }
.rep-cards-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.rep-cards-bottom {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.rep-cards-bottom .rep-card-wrap { width: 50%; }

.rep-card {
  text-align: left;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.6);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: all 0.3s;
  cursor: pointer;
}
.rep-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-glow);
  border-color: oklch(0.58 0.24 263 / 0.3);
  background: oklch(1 0 0 / 0.8);
}
.rep-card.active {
  background: oklch(1 0 0 / 0.9);
  border-color: oklch(0.58 0.24 263 / 0.5);
  box-shadow: var(--shadow-glow);
  transform: translateY(-0.25rem);
}
.rep-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rep-card-icon {
  border-radius: 0.75rem;
  padding: 0.5rem;
  background: var(--secondary);
  transition: background-color 0.3s;
  display: flex;
}
.rep-card-icon svg { color: var(--muted-foreground); transition: color 0.3s; }
.rep-card.active .rep-card-icon,
.rep-card:hover .rep-card-icon { background: oklch(0.58 0.24 263 / 0.1); }
.rep-card.active .rep-card-icon svg,
.rep-card:hover .rep-card-icon svg { color: var(--primary); }
.rep-card-title { font-weight: 600; font-size: 0.875rem; }
.rep-card-live {
  margin-left: auto;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
.rep-card-desc {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.rep-card-result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: oklch(0.48 0.03 260 / 0.7);
  transition: color 0.3s;
}
.rep-card.active .rep-card-result,
.rep-card:hover .rep-card-result {
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Phone shells (shared between Pillar 01 & Pillar 03) ---------- */

.phone-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}
.phone-shadow {
  position: relative;
  margin: 0 auto;
  border-radius: 3.2rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55);
}
.phone-frame {
  position: relative;
  overflow: hidden;
  border-radius: 3.2rem;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 40%, #111 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 1px rgba(0,0,0,0.8);
}
.phone-btn-vol1, .phone-btn-vol2 {
  position: absolute;
  left: -3px;
  width: 3px;
  height: 2rem;
  border-radius: 9999px 0 0 9999px;
  background: #2d2d2d;
}
.phone-btn-vol1 { top: 88px; }
.phone-btn-vol2 { top: 132px; }
.phone-btn-power {
  position: absolute;
  right: -3px;
  top: 110px;
  width: 3px;
  height: 2.5rem;
  border-radius: 0 9999px 9999px 0;
  background: #2d2d2d;
}
.phone-screen {
  position: relative;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 2.6rem;
  height: 620px;
}
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem 0;
  font-size: 11px;
  font-weight: 600;
  color: #1c1c1e;
  flex-shrink: 0;
  position: relative;
}
.phone-statusbar .island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 88px;
  height: 24px;
  border-radius: 20px;
}
.phone-statusbar .island .cam {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: #1a1a1a;
  border: 1px solid #333;
}
.phone-statusbar .icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.phone-statusbar .icons span {
  font-size: 10px;
  font-weight: 600;
  margin-left: 2px;
}

/* ---------- iMessage mockup (Pillar 03) ---------- */

.imsg-navbar {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem 0.25rem;
  flex-shrink: 0;
}
.imsg-navbar .back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #007aff;
}
.imsg-navbar .back span { font-size: 13px; font-weight: 400; }

.imsg-thread {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.imsg-date {
  text-align: center;
  font-size: 10px;
  color: #8e8e93;
  margin-bottom: 4px;
  margin-top: 4px;
}
.imsg-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideUp 0.3s both;
}
.imsg-bubble {
  background: #e9e9eb;
  padding: 6px 12px;
  max-width: 85%;
  border-radius: 18px 18px 18px 4px;
}
.imsg-bubble p {
  font-size: 12px;
  color: #1c1c1e;
  line-height: 1.4;
  margin: 0;
}
.imsg-bubble.typing {
  padding: 8px 12px;
}
.imsg-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 14px;
}
.imsg-typing-dots span {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: #8e8e93;
  animation: bounce 1s infinite;
}
.imsg-photo {
  margin-top: 4px;
  border-radius: 1rem;
  overflow: hidden;
  animation: slideUp 0.5s both;
}
.imsg-photo img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: top;
}
.imsg-delivered {
  text-align: right;
  font-size: 10px;
  color: #8e8e93;
  padding-right: 4px;
  animation: fadeIn 0.3s both;
}
.imsg-inputbar {
  flex-shrink: 0;
  padding: 4px 0.75rem 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #e5e5ea;
  background: #fff;
}
.imsg-inputbar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.imsg-apps-icon {
  height: 28px;
  width: 28px;
  border-radius: 9999px;
  border: 1px solid #c7c7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.imsg-textfield {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #c7c7cc;
  background: #fff;
  padding: 6px 12px;
  gap: 0.5rem;
}
.imsg-textfield span {
  font-size: 12px;
  color: #c7c7cc;
  flex: 1;
}
.imsg-send {
  height: 28px;
  width: 28px;
  border-radius: 9999px;
  background: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.imsg-send svg { color: #fff; }

/* ---------- Instagram ad mockup (Pillar 01) ---------- */

.ig-screen {
  position: relative;
  background: #fff;
  overflow: hidden;
  height: 620px;
  display: flex;
  flex-direction: column;
  border-radius: 2.6rem;
}
.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.ig-header .wordmark {
  font-family: cursive;
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
}
.ig-header .actions {
  display: flex;
  gap: 0.75rem;
  color: oklch(0.18 0.05 268 / 0.8);
}
.ig-body {
  flex: 1;
  overflow-y: auto;
}
.ig-post-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
}
.ig-avatar {
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  background: linear-gradient(to top right, #ec4899, #fb923c, #facc15);
  padding: 2px;
  flex-shrink: 0;
}
.ig-avatar-inner {
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  overflow: hidden;
}
.ig-avatar-inner img { height: 100%; width: 100%; object-fit: cover; }
.ig-post-head .who { flex: 1; }
.ig-post-head .name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ig-post-head .loc { font-size: 10px; color: var(--muted-foreground); }
.ig-post-head svg.more { color: oklch(0.18 0.05 268 / 0.7); }
.ig-creative {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.ig-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s;
}
.ig-cta-btn:hover { background: oklch(0.94 0.02 260); }
.ig-cta-btn span { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.ig-cta-btn svg { color: var(--primary); }
.ig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
}
.ig-actions .left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: oklch(0.18 0.05 268 / 0.9);
}
.ig-actions svg.liked { fill: #ef4444; color: #ef4444; }
.ig-caption { padding: 0 0.75rem 1rem; font-size: 12px; }
.ig-caption .likes { font-weight: 600; }
.ig-caption .text { margin-top: 0.25rem; }
.ig-caption .text .biz { font-weight: 600; }

/* ---------- Quiz funnel ---------- */

.quiz-panel { padding: 1.25rem; }
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.quiz-top button:hover { color: var(--foreground); }
.quiz-progress {
  margin-top: 0.5rem;
  height: 4px;
  border-radius: 9999px;
  background: var(--secondary);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--gradient-blue);
  transition: width 0.3s;
}
.quiz-q {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.quiz-options {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quiz-option {
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: oklch(0.96 0.01 260 / 0.4);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.quiz-option:hover {
  background: var(--secondary);
  border-color: oklch(0.58 0.24 263 / 0.4);
}

.contact-form { padding: 1.25rem; }
.contact-form h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.contact-form .hint {
  margin-top: 0.25rem;
  font-size: 11px;
  color: var(--muted-foreground);
}
.contact-fields {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-fields input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: oklch(0.96 0.01 260 / 0.4);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.contact-fields input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.contact-submit {
  margin-top: 1rem;
  width: 100%;
  border-radius: 9999px;
  background: var(--gradient-blue);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-glow);
}
.contact-submit:disabled { opacity: 0.6; cursor: default; }

.quiz-done { padding: 2rem; text-align: center; }
.quiz-done .checkmark {
  margin: 0 auto;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}
.quiz-done .checkmark svg { color: #fff; }
.quiz-done h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.quiz-done .sub { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.quiz-done .summary {
  margin-top: 1rem;
  text-align: left;
  border-radius: 0.75rem;
  background: oklch(0.96 0.01 260 / 0.5);
  padding: 0.75rem;
  font-size: 11px;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.quiz-done .summary strong { color: var(--foreground); font-weight: 600; }
.quiz-done .reset {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.live-demo-label {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===========================================================================
   08 CRM
   =========================================================================== */

.crm-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}
.crm-feature {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.4);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crm-feature svg { color: var(--primary); flex-shrink: 0; }

.dash-mock { border-radius: 1.5rem; padding: 1.25rem; }
.dash-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.dash-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.dash-stat {
  border-radius: 1rem;
  background: oklch(1 0 0 / 0.7);
  padding: 1rem;
}
.dash-stat.closed { background: var(--gradient-blue); box-shadow: var(--shadow-glow); color: #fff; }
.dash-stat .l { font-size: 0.75rem; color: var(--muted-foreground); }
.dash-stat.closed .l { color: oklch(1 0 0 / 0.8); }
.dash-stat .v { font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem; }

.dash-pipeline {
  margin-top: 1rem;
  border-radius: 1rem;
  background: oklch(1 0 0 / 0.7);
  padding: 1rem;
}
.dash-pipeline .l { font-size: 0.75rem; color: var(--muted-foreground); }
.dash-pipeline .v {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.dash-pipeline-bar {
  margin-top: 0.75rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: oklch(0.985 0.005 260 / 0.6);
  overflow: hidden;
}
.dash-pipeline-bar-fill {
  height: 100%;
  width: 75%;
  background: var(--gradient-blue);
}

.dash-ai-note {
  margin-top: 0.75rem;
  border-radius: 1rem;
  background: oklch(1 0 0 / 0.7);
  padding: 1rem;
  font-size: 0.875rem;
}
.dash-ai-note-head { display: flex; align-items: center; gap: 0.5rem; }
.dash-ai-badge {
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 9999px;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.dash-ai-note-head .name { font-weight: 500; }
.dash-ai-note-head .when { margin-left: auto; font-size: 0.75rem; color: var(--muted-foreground); }
.dash-ai-note p { margin-top: 0.5rem; color: var(--muted-foreground); }

/* ===========================================================================
   09 / 10 CASE STUDIES
   =========================================================================== */

.case-heading { font-size: 3rem; }
@media (min-width: 768px) { .case-heading { font-size: 3.75rem; } }
.case-loc {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.stat-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--border);
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.stat-card .v {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .stat-card .v { font-size: 3.75rem; } }
.stat-card .l { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 500; color: oklch(0.18 0.05 268 / 0.9); }
.stat-card .s { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

.case-quote {
  margin-top: 3rem;
  max-width: 48rem;
  font-size: 1.5rem;
  line-height: 1.35;
}
@media (min-width: 768px) { .case-quote { font-size: 1.875rem; } }
.case-quote footer {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: normal;
}

/* ===========================================================================
   11 GUARANTEES
   =========================================================================== */

.guarantee-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .guarantee-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.guarantee-card {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
}
.guarantee-icon {
  height: 3rem;
  width: 3rem;
  border-radius: 1rem;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  color: #fff;
}
.guarantee-card .t { font-size: 1.25rem; font-weight: 600; }
.guarantee-card .d { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ===========================================================================
   12 ROI CALCULATOR
   =========================================================================== */

.calc-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) { .calc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; } }

.calc-inputs {
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 1px 2px 0 oklch(0 0 0 / 0.05);
}
@media (min-width: 1024px) { .calc-inputs { grid-column: span 2 / span 2; } }
.calc-input-row .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.calc-input-row .top .val { font-weight: 600; color: var(--foreground); font-size: 0.875rem; }
.calc-input-row input[type="range"] {
  margin-top: 0.5rem;
  width: 100%;
  accent-color: oklch(0.58 0.24 263);
}

.calc-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .calc-results { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .calc-results { grid-column: span 3 / span 3; } }
.calc-card {
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.calc-card.roas { background: var(--gradient-blue); box-shadow: var(--shadow-glow); color: #fff; }
.calc-card .label { font-size: 0.75rem; color: var(--muted-foreground); letter-spacing: 0.05em; }
.calc-card.roas .label { color: oklch(1 0 0 / 0.8); }
.calc-card .big { margin-top: 0.5rem; font-size: 2.25rem; font-weight: 700; }
.calc-card.roas .big { font-size: 3rem; }
.calc-card .sub { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
.calc-card.roas .sub { color: oklch(1 0 0 / 0.9); font-size: 0.875rem; }

/* ===========================================================================
   13 BONUS
   =========================================================================== */

.bonus-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .bonus-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bonus-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.4);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bonus-item svg { color: var(--primary); flex-shrink: 0; }

/* ===========================================================================
   14 CULTURE FIT
   =========================================================================== */

.culture-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .culture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.culture-card {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--border);
  padding: 1.75rem;
}
.culture-card.no {
  border: 1px solid oklch(0.58 0.22 22 / 0.4);
  background: oklch(0.58 0.22 22 / 0.05);
}
.culture-card svg.yes { color: var(--primary); }
.culture-card svg.no { color: var(--destructive); }
.culture-card p { margin-top: 1.25rem; font-size: 1.125rem; }
.culture-card.no p { color: var(--muted-foreground); }

/* ===========================================================================
   15 VALUE STACK
   =========================================================================== */

.value-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value-card {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--border);
  padding: 1.75rem;
}
.value-card .cat {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.value-card ul { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }
.value-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: oklch(0.18 0.05 268 / 0.9);
}
.value-card li svg { color: oklch(0.58 0.24 263 / 0.7); flex-shrink: 0; }

/* ===========================================================================
   16 INVESTMENT
   =========================================================================== */

.invest-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.invest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .invest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.invest-card {
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.6);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
}
.invest-card.glass { padding: 1.75rem; }
.invest-card .tag { font-size: 0.75rem; color: var(--muted-foreground); letter-spacing: 0.1em; }
.invest-card .price { margin-top: 0.75rem; font-size: 3rem; font-weight: 700; }
.invest-card .price .unit { font-size: 1.25rem; color: var(--muted-foreground); }
.invest-card .desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.invest-recommended-pill {
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
}

.invest-divider {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.invest-fee-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 768px) { .invest-fee-row { flex-direction: row; } }
.invest-fee-card {
  border-radius: 1.5rem;
  padding: 1.75rem;
  flex: 1;
  width: 100%;
}
.invest-fee-card.retainer { background: var(--gradient-blue); box-shadow: var(--shadow-glow); color: #fff; }
.invest-fee-card.payperjob { background: oklch(1 0 0 / 0.6); border: 1px solid var(--border); }
.invest-fee-card .tag { font-size: 0.75rem; letter-spacing: 0.1em; color: oklch(1 0 0 / 0.8); }
.invest-fee-card.payperjob .tag { color: var(--muted-foreground); }
.invest-fee-card .price { margin-top: 0.75rem; font-size: 3rem; font-weight: 700; }
.invest-fee-card .price .unit { font-size: 1.25rem; color: oklch(1 0 0 / 0.8); }
.invest-fee-card .desc { margin-top: 0.5rem; font-size: 0.875rem; color: oklch(1 0 0 / 0.9); }
.invest-fee-card.payperjob .desc { color: var(--muted-foreground); }
.invest-plus { font-size: 1.875rem; font-weight: 700; color: var(--muted-foreground); flex-shrink: 0; }

/* ===========================================================================
   17 NEXT STEPS
   =========================================================================== */

.steps-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.6);
}
.step-card.here {
  background: var(--gradient-blue);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
  color: #fff;
}
.step-card .n { font-size: 0.75rem; letter-spacing: 0.3em; color: var(--muted-foreground); }
.step-card.here .n { color: oklch(1 0 0 / 0.8); }
.step-card svg { margin-top: 1.25rem; color: var(--primary); }
.step-card.here svg { color: #fff; }
.step-card .t { margin-top: 1rem; font-weight: 600; font-size: 1.125rem; }
.step-card .here-tag {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: oklch(1 0 0 / 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.closing { margin-top: 5rem; text-align: center; }
.closing h3 { font-size: 2.25rem; }
@media (min-width: 768px) { .closing h3 { font-size: 3.75rem; } }
.closing-footer {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- Misc ---------- */
.heart-liked { fill: #ef4444; color: #ef4444; }
.snap-deck::-webkit-scrollbar { width: 0; height: 0; }
