/* =========================================================================
   Senova Landing - warm editorial system
   Cream/stone canvas, warm ink, single clay accent. Light + dark.
   Type: Newsreader (display serif) + Plus Jakarta Sans (UI) + JetBrains Mono.
   Radius lock: 8 / 12 / 16 / 22, pill (999) reserved for small tags only.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light (porcelain page; cream is reserved for panels, white for cards) */
  --ink: #171511;
  --ink-2: #322f27;
  --paper: #fbfaf6;
  --paper-2: #f4efe4;
  --paper-3: #eae3d2;
  --surface: #ffffff;
  --card: #ffffff;
  --card-ring: rgba(122, 110, 88, 0.16);
  --line: #e5dfd0;
  --line-soft: #efeadd;
  --muted: #5f5947;
  --faint: #8f8874;
  --accent: #ba4526;        /* clay — unchanged, it was never the problem */
  --accent-ink: #97361c;
  --accent-bright: #c85231;
  --accent-soft: rgba(186, 69, 38, 0.09);
  --accent-line: rgba(186, 69, 38, 0.26);
  --on-accent: #fdf7f0;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(40, 30, 15, 0.05), 0 2px 6px rgba(40, 30, 15, 0.05);
  --shadow-md: 0 6px 16px rgba(40, 30, 15, 0.07), 0 2px 6px rgba(40, 30, 15, 0.05);
  --shadow-lg: 0 18px 48px rgba(40, 30, 15, 0.12), 0 6px 16px rgba(40, 30, 15, 0.07);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;

  --container: 1160px;
  --nav-h: 74px;
}

/* Dark: warm off-black, brighter clay for contrast. One theme per page. */
:root[data-theme="dark"] {
  --ink: #f4efe3;
  --ink-2: #d8d1c2;
  --paper: #16130d;
  --paper-2: #1e1a12;
  --paper-3: #262117;
  --surface: #1c1810;
  --card: #221c12;
  --card-ring: rgba(0, 0, 0, 0.55);
  --line: rgba(240, 230, 210, 0.11);
  --line-soft: rgba(240, 230, 210, 0.07);
  --muted: #a79f8c;
  --faint: #7d7666;
  --accent: #dd6a45;
  --accent-ink: #e8825f;
  --accent-bright: #e8825f;
  --accent-soft: rgba(221, 106, 69, 0.13);
  --accent-line: rgba(221, 106, 69, 0.30);
  --on-accent: #1a120c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* No-JS dark preference honored on first paint */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4efe3;
    --ink-2: #d8d1c2;
    --paper: #16130d;
    --paper-2: #1e1a12;
    --paper-3: #262117;
    --surface: #1c1810;
    --card: #221c12;
    --card-ring: rgba(0, 0, 0, 0.55);
    --line: rgba(240, 230, 210, 0.11);
    --line-soft: rgba(240, 230, 210, 0.07);
    --muted: #a79f8c;
    --faint: #7d7666;
    --accent: #dd6a45;
    --accent-ink: #e8825f;
    --accent-bright: #e8825f;
    --accent-soft: rgba(221, 106, 69, 0.13);
    --accent-line: rgba(221, 106, 69, 0.30);
    --on-accent: #1a120c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* Fixed grain overlay (pointer-events none, non-scrolling) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before { mix-blend-mode: overlay; opacity: 0.22; }

.l-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* =========================================================================
   Navigation
   ========================================================================= */
/* Dynamic Island — a floating pill that morphs (shrinks) on scroll. */
.l-nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 100;
  padding: 0 20px;
  animation: slideFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.l-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 24px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 8px rgba(40, 30, 15, 0.05), 0 10px 34px rgba(40, 30, 15, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s ease, background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.l-nav.scrolled .l-nav-inner {
  max-width: 960px;
  height: 54px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  .l-nav { animation: none; }
  .l-nav-inner { transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
}

.l-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 23px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.l-brand img { width: 26px; height: 26px; }

.l-nav-links { display: flex; gap: 28px; }
.l-nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.l-nav-links a:hover { color: var(--ink); }

.l-nav-cta { display: flex; align-items: center; gap: 8px; }
.l-nav-cta .btn { white-space: nowrap; }
.l-nav-signin {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.l-nav-signin:hover { color: var(--ink); background: var(--accent-soft); }

/* Theme toggle */
.l-theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.l-theme-toggle:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.l-theme-toggle svg { width: 18px; height: 18px; }
.l-theme-toggle i { font-size: 19px; line-height: 1; }
.l-theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .l-theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .l-theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .l-theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .l-theme-toggle .icon-moon { display: block; }
}

/* Hamburger */
.l-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
}
.l-nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.l-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.l-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.l-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(120, 40, 15, 0.25);
}
.btn-primary:hover {
  background: var(--accent-ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
:root[data-theme="dark"] .btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-2); background: var(--accent-soft); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }
.btn-primary:hover svg { transform: translateX(2px); }
.btn svg { transition: transform 0.2s; }

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.l-section { padding: 130px 0; position: relative; }
.l-section-tight { padding: 88px 0; }
.l-section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}

.l-h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.l-h2 em { font-style: italic; color: var(--accent); }

.l-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.l-head { max-width: 640px; margin-bottom: 68px; }
.l-head .l-lead { margin-top: 20px; }

/* =========================================================================
   Hero - asymmetric split
   ========================================================================= */
.l-hero {
  padding-top: calc(var(--nav-h) + 84px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.l-hero::after {
  content: '';
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.l-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.l-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px 6px 8px;
  border-radius: var(--pill);
  margin-bottom: 28px;
}
.l-hero-pill b {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--pill);
  letter-spacing: 0.02em;
}

.l-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.l-hero-title em { font-style: italic; color: var(--accent); }

.l-hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.65;
  margin-bottom: 36px;
}

.l-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero builder panel (right) */
.l-hero-panel {
  position: relative;
  z-index: 2;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.l-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.l-panel-dots { display: flex; gap: 6px; }
.l-panel-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.l-panel-dots span:nth-child(1) { background: #d98b6b; }
.l-panel-dots span:nth-child(2) { background: #d9bd6b; }
.l-panel-dots span:nth-child(3) { background: #8fbd7e; }
.l-panel-title {
  flex: 1; text-align: center;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint);
}

.l-panel-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.l-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.l-prompt input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.l-prompt input::placeholder { color: var(--faint); }
.l-prompt-send {
  width: 34px; height: 34px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.l-prompt-send svg { width: 16px; height: 16px; }
.l-prompt-text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}

/* Hero chat — the working prompt input (Lovable/Base44 pattern) */
.l-hero-chat { margin-top: 28px; max-width: 560px; }
.l-hero-chat-box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.l-hero-chat-box:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md);
}
.l-hero-chat-box textarea {
  display: block; width: 100%;
  border: none; background: none; outline: none; resize: none;
  padding: 16px 18px 6px;
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  color: var(--ink); min-height: 64px;
  box-sizing: border-box;
}
.l-hero-chat-box textarea::placeholder { color: var(--faint); }
.l-hero-chat-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 8px 8px 18px;
}
.l-hero-chat-hint { font-size: 12.5px; color: var(--faint); }
.l-hero-chat-send {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r);
  transition: background .2s ease, transform .15s ease;
}
.l-hero-chat-send:hover { background: var(--accent-bright); }
.l-hero-chat-send:active { transform: scale(0.98); }
.l-hero-chat-send svg { width: 15px; height: 15px; }
.l-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.l-hero-chips button {
  border: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink-2); font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: var(--pill); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.l-hero-chips button:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.l-hero-chat-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.l-hero-chat-note a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) {
  .l-hero-chat-hint { display: none; }
}

.l-msg {
  font-size: 13.5px;
  line-height: 1.55;
  padding: 11px 14px;
  border-radius: var(--r);
  animation: fadeUp 0.6s ease both;
}
.l-msg-ai {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink-2);
}
.l-msg-ai b { color: var(--accent); font-weight: 700; }
.l-build { display: flex; flex-direction: column; gap: 7px; }
.l-build-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.l-build-row::before {
  content: '';
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
}
.l-build-row.done { color: var(--ink-2); }
.l-build-row.done::before {
  border-color: #6aa15a;
  background: #6aa15a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
.l-build-row.active { color: var(--accent); }
.l-build-row.active::before { border-color: var(--accent); border-right-color: transparent; animation: spin 0.9s linear infinite; }

.l-msg:nth-child(1) { animation-delay: 0.5s; }
.l-build { animation: fadeUp 0.6s ease 1s both; }

/* ---- HERO v2: centered prompt-first ---------------------------------- */
.l-hero2 {
  position: relative;
  min-height: 100dvh;              /* never h-screen (iOS jump) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(72px + 6vh) 24px 12vh;
  overflow: hidden;
}
/* Ember-pulse hero: one real color moment (Lovable geometry, Senova palette).
   Saturated at the edges, porcelain clearing behind the headline + card. */
.l-hero2-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* 1 — porcelain clearing: headline and card sit on calm paper */
    radial-gradient(58% 46% at 50% 38%, var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 52%, transparent 100%),
    /* 2 — THE color moment: ember pulse rising from below the card */
    radial-gradient(74% 60% at 50% 106%, rgba(197, 76, 38, 0.52) 0%, rgba(222, 118, 58, 0.30) 32%, rgba(238, 170, 100, 0.14) 58%, transparent 80%),
    /* 3 — gold wash, upper-left */
    radial-gradient(52% 44% at 10% 2%, rgba(233, 164, 84, 0.20) 0%, transparent 70%),
    /* 4 — dusty violet counterweight, upper-right (keeps it modern, not autumnal) */
    radial-gradient(48% 42% at 92% 6%, rgba(150, 98, 152, 0.16) 0%, transparent 68%);
}
:root[data-theme="dark"] .l-hero2-bg {
  background:
    radial-gradient(58% 46% at 50% 38%, var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 52%, transparent 100%),
    radial-gradient(74% 60% at 50% 106%, rgba(221, 106, 69, 0.36) 0%, rgba(228, 140, 84, 0.18) 38%, transparent 78%),
    radial-gradient(52% 44% at 10% 2%, rgba(232, 150, 90, 0.13) 0%, transparent 70%),
    radial-gradient(48% 42% at 92% 6%, rgba(168, 120, 165, 0.13) 0%, transparent 68%);
}
/* Slow breathing drift -- imperceptible but kills the "static poster" feel. */
@media (prefers-reduced-motion: no-preference) {
  .l-hero2-bg { animation: heroBloom 14s ease-in-out infinite alternate; }
  @keyframes heroBloom {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to   { transform: translateY(-14px) scale(1.03); opacity: 0.92; }
  }
}
.l-hero2-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 768px;   /* the Lovable/Base44 card width */
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.l-hero2-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--pill); padding: 5px 14px; margin-bottom: 22px;
}
.l-hero2-pill b { color: var(--accent); font-weight: 700; }
.l-hero2-title {
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px; text-wrap: balance;
}
.l-hero2-title em { font-style: italic; color: var(--accent); }
.l-hero2-sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.5;
  color: var(--muted); max-width: 52ch; margin: 0 0 34px;
}
/* Prompt card: pure white, ring instead of border, 4%-alpha shadow cascade.
   This is Lovable's measured recipe (white ring + rgba(119,119,113,.16) ring + stacked 4% shadows). */
.l-hero2-card {
  position: relative;
  width: 100%;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 28px;
  padding: 6px;
  box-shadow:
    0 0 0 1px var(--card),
    0 0 0 2px var(--card-ring),
    0 2px 1px rgba(31, 23, 10, 0.04),
    0 4px 3px rgba(31, 23, 10, 0.04),
    0 7px 6px rgba(31, 23, 10, 0.04),
    0 13px 12px rgba(31, 23, 10, 0.04),
    0 26px 36px rgba(31, 23, 10, 0.06);
  transition: box-shadow .15s ease;
  text-align: left;
}
.l-hero2-card:focus-within {
  box-shadow:
    0 0 0 1px var(--card),
    0 0 0 2px var(--accent-line),
    0 0 0 6px var(--accent-soft),
    0 13px 12px rgba(31, 23, 10, 0.04),
    0 26px 36px rgba(31, 23, 10, 0.06);
}
.l-hero2-card textarea {
  display: block; width: 100%; min-height: 88px; max-height: 35svh;
  resize: none; border: 0; outline: 0; background: transparent;
  font: 500 16px/1.5 var(--font-sans); color: var(--ink);
  padding: 16px 18px 8px;
}
.l-hero2-card textarea::placeholder { color: var(--faint); }
.l-hero2-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 8px 8px 18px;
}
.l-hero2-hint {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--faint);
}
.l-hero2-hint i { font-size: 15px; line-height: 1; color: var(--accent); }
.l-hero2-send {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.l-hero2-send svg { width: 18px; height: 18px; }
.l-hero2-send:hover { background: var(--accent-bright); }
.l-hero2-send:active { transform: scale(0.94); }
.l-hero2-send:disabled { opacity: .35; cursor: default; transform: none; }
.l-hero2-chips-label {
  margin: 40px 0 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.l-hero2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 0; }
.l-hero2-chips button {
  font: 500 13.5px/1 var(--font-sans); color: var(--ink-2);
  padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  box-shadow: 0 1px 2px rgba(31, 23, 10, 0.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.l-hero2-chips button:hover { border-color: var(--accent-line); background: var(--card); }
.l-hero2-chips button:active { transform: scale(0.97); }
.l-hero2-note { margin-top: 26px; font-size: 13px; color: var(--faint); }
.l-hero2-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .l-hero2 { padding-top: calc(64px + 4vh); }
  .l-hero2-card { border-radius: 20px; }
  .l-hero2-chips button:nth-child(n+4) { display: none; }  /* 3 chips on mobile */
}
@media (prefers-reduced-motion: reduce) {
  .l-hero2-send, .l-hero2-chips button, .l-hero2-card { transition: none; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   Stack strip (honest production stack, logos only)
   ========================================================================= */
.l-stack {
  padding: 40px 0 46px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.l-stack-label {
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}
.l-stack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
.l-stack-row .logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
}
.l-stack-row .logo:hover { opacity: 1; color: var(--ink); }
.l-stack-row .logo svg { width: 24px; height: 24px; }

/* =========================================================================
   How it works - vertical timeline progression
   ========================================================================= */
.l-flow { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.l-flow-steps { position: relative; }
.l-flow-steps::before {
  content: '';
  position: absolute;
  left: 21px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--accent-line), var(--line-soft));
}
.l-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 18px 0;
}
.l-flow-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  display: grid; place-items: center;
  position: relative; z-index: 1;
}
.l-flow-step h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.l-flow-step p { font-size: 15.5px; color: var(--muted); line-height: 1.65; max-width: 42ch; }

.l-flow-visual {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 26px;
  align-self: center;
}
.l-flow-visual .l-msg { margin-bottom: 12px; }
.l-flow-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 18px 20px;
  overflow: hidden;
}
.l-flow-code .k { color: var(--accent); }
.l-flow-code .s { color: #6aa15a; }
.l-flow-code .c { color: var(--faint); }

/* =========================================================================
   Features - bento grid (asymmetric, exact cells)
   ========================================================================= */
.l-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.l-cell {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.l-cell:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.l-cell-wide { grid-column: span 2; }
.l-cell-tall { grid-row: span 2; }

.l-cell-icon {
  width: 42px; height: 42px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.l-cell-icon svg { width: 22px; height: 22px; }
.l-cell-icon i { font-size: 25px; line-height: 1; }
.l-cell h3 { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.l-cell p { font-size: 14.5px; color: var(--muted); line-height: 1.62; }

/* Featured (tall) cell interior visual */
.l-cell-feature { background: var(--ink); border-color: var(--ink); }
.l-cell-feature h3, .l-cell-feature .l-cell-big { color: var(--paper); }
.l-cell-feature p { color: color-mix(in srgb, var(--paper) 66%, transparent); }
.l-cell-feature .l-cell-icon { background: rgba(255,255,255,0.1); color: var(--accent-bright); }
.l-cell-big {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: 26px;
}
.l-swatches { display: flex; gap: 7px; margin-top: 18px; flex-wrap: wrap; }
.l-swatches span { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.12); }

/* =========================================================================
   AI interview - editorial split
   ========================================================================= */
.l-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.l-split-copy .l-h2 { margin-bottom: 22px; }
.l-split-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.l-split-list li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.l-split-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.l-split-list b { color: var(--ink); font-weight: 700; display: block; margin-bottom: 2px; font-size: 15.5px; }
.l-split-list p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.l-chat {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.l-bubble { max-width: 82%; font-size: 14px; line-height: 1.55; padding: 12px 15px; border-radius: 16px; }
.l-bubble-ai { background: var(--paper-2); border: 1px solid var(--line-soft); color: var(--ink-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.l-bubble-user { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; align-self: flex-end; }
.l-chat-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); font-family: var(--font-mono); }
.l-chat-meta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6aa15a; }

/* =========================================================================
   Templates gallery
   ========================================================================= */
.l-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.l-shot {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.l-shot:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.l-shot.big { grid-column: span 4; }
.l-shot.small { grid-column: span 2; }
.l-shot-canvas { height: 180px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.l-shot.small .l-shot-canvas { height: 148px; }
.l-shot-frame {
  width: 82%; height: 78%;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.l-bar { border-radius: 3px; background: var(--paper-3); }
.l-bar.nav { height: 7px; width: 40%; background: var(--accent); opacity: 0.5; }
.l-bar.hero { height: 22px; }
.l-cols { display: flex; gap: 6px; flex: 1; }
.l-cols > span { flex: 1; border-radius: 4px; background: var(--paper-3); }
.l-shot-info { padding: 16px 18px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.l-shot-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.l-shot-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }

/* Live page-layout preview iframes inside the template gallery cards. */
a.l-shot { text-decoration: none; color: inherit; display: block; }
.l-shot-canvas iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 900px; border: 0; transform-origin: top left; pointer-events: none; background: #fff; }
.l-shot-canvas.loading { background: linear-gradient(135deg, var(--surface, #f4ede0), var(--surface-2, #e6d4bd)); }

/* =========================================================================
   Comparison - why Senova
   ========================================================================= */
.l-compare {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}
.l-compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.l-compare-row:last-child { border-bottom: none; }
.l-compare-row > div { padding: 20px 24px; font-size: 15px; }
.l-compare-head { background: var(--paper-2); font-weight: 700; }
.l-compare-head .senova { color: var(--accent); }
.l-compare-feature { color: var(--ink-2); font-weight: 600; }
.l-compare-cell { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.l-compare-cell.yes { color: var(--ink); font-weight: 600; }
.l-compare-cell svg { width: 18px; height: 18px; flex-shrink: 0; }
.l-compare-cell.yes svg { color: var(--accent); }
.l-compare-cell.no svg { color: var(--faint); }
.l-compare-col-senova { background: var(--accent-soft); }

/* =========================================================================
   Pricing
   ========================================================================= */
.l-price-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 52px; }
.l-price-toggle-label { font-size: 14px; color: var(--muted); cursor: pointer; font-weight: 600; }
.l-price-switch {
  width: 48px; height: 26px; border-radius: var(--pill);
  background: var(--line); border: none; cursor: pointer;
  position: relative; transition: background 0.2s;
}
.l-price-switch.active { background: var(--accent); }
.l-price-knob {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); position: absolute; top: 3px; left: 3px;
  transition: transform 0.2s; box-shadow: var(--shadow-sm);
}
.l-price-switch.active .l-price-knob { transform: translateX(22px); }
.l-save { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: var(--pill); margin-left: 6px; }

.l-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.l-price-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 34px;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.l-price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.l-price-card.popular { border: 1.5px solid var(--accent); box-shadow: var(--shadow-md); position: relative; }
.l-price-badge {
  position: absolute; top: -12px; left: 34px;
  background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; padding: 5px 14px;
  border-radius: var(--pill); text-transform: uppercase; letter-spacing: 0.08em;
}
.l-price-card h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.l-price-amount { margin-bottom: 8px; display: flex; align-items: baseline; gap: 4px; }
.l-price-value { font-family: var(--font-serif); font-size: 46px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.l-price-amount small { font-size: 15px; color: var(--faint); }
.l-price-blurb { font-size: 14px; color: var(--muted); margin-bottom: 26px; line-height: 1.55; }
.l-price-features { list-style: none; margin-bottom: 30px; flex: 1; display: flex; flex-direction: column; gap: 13px; }
.l-price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.l-price-features svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.l-price-cta {
  display: block; text-align: center; padding: 13px;
  border-radius: var(--r); font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink);
  transition: all 0.2s;
}
.l-price-cta:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.l-price-card.popular .l-price-cta { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.l-price-card.popular .l-price-cta:hover { background: var(--accent-ink); }

/* =========================================================================
   FAQ accordion (stripped boxes, border-bottom only)
   ========================================================================= */
.l-faq { max-width: 760px; margin: 0 auto; }
.l-faq-item { border-bottom: 1px solid var(--line); }
.l-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer;
  padding: 26px 4px;
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600; color: var(--ink);
  text-align: left;
}
.l-faq-q svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; transition: transform 0.3s; }
.l-faq-item.open .l-faq-q svg { transform: rotate(45deg); }
.l-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.l-faq-a p { font-size: 15.5px; color: var(--muted); line-height: 1.7; padding: 0 4px 26px; max-width: 62ch; }

/* =========================================================================
   Final CTA band (ink)
   ========================================================================= */
.l-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 120px 0;
}
/* CSS-only echo of the hero ShaderField — a slow warm drift, NOT a 2nd WebGL
   surface (one heavy GPU effect per page). Pure gradients + a long keyframe. */
.l-cta-shader {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(42% 55% at 22% 32%, rgba(221,106,69,0.55), transparent 60%),
    radial-gradient(38% 50% at 78% 68%, rgba(200,112,58,0.40), transparent 62%),
    radial-gradient(50% 60% at 60% 20%, rgba(186,69,38,0.30), transparent 64%);
  filter: blur(24px);
  animation: l-cta-drift 26s ease-in-out infinite alternate;
}
@keyframes l-cta-drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.04); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(4%, -1%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .l-cta-shader { animation: none; opacity: 0.34; } }
.l-cta::after {
  content: '';
  position: absolute;
  bottom: -260px; left: 8%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,106,69,0.32) 0%, transparent 66%);
  pointer-events: none;
}
.l-cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.l-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 500;
  color: var(--paper);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.l-cta h2 em { font-style: italic; color: var(--accent-bright); }
.l-cta p { color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 18px; margin-top: 18px; max-width: 44ch; line-height: 1.6; }
.l-cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.l-cta-actions .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.22); }
.l-cta-actions .btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.l-cta-note { font-size: 13.5px; color: color-mix(in srgb, var(--paper) 48%, transparent); }

/* =========================================================================
   Footer
   ========================================================================= */
.l-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--paper-2); }
.l-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.l-footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 21px; color: var(--ink); margin-bottom: 16px; }
.l-footer-brand img { width: 26px; height: 26px; }
.l-footer-about { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 300px; }
.l-footer-social { display: flex; gap: 10px; margin-top: 22px; }
.l-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.l-footer-social a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.l-footer-social svg { width: 17px; height: 17px; }
.l-footer-col h5 { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.l-footer-col a, .l-footer-col span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 11px; transition: color 0.2s; }
.l-footer-col a:hover { color: var(--accent); }
.l-footer-bottom { padding-top: 26px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================================
   Sub-pages (About, Changelog)
   ========================================================================= */
.l-page { padding-top: calc(var(--nav-h) + 96px); padding-bottom: 40px; }
.l-page-head { max-width: 720px; }
.l-page-head .eyebrow { margin-bottom: 22px; }
.l-page-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.l-page-title em { font-style: italic; color: var(--accent); }
.l-page-head .l-lead { margin-top: 24px; font-size: 20px; }

.l-prose { max-width: 680px; padding-bottom: 100px; }
.l-prose h2 {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.02em; margin: 56px 0 16px;
}
.l-prose p { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.l-prose p b, .l-prose strong { color: var(--ink); font-weight: 700; }
.l-prose a { color: var(--accent); font-weight: 600; }
.l-prose a:hover { color: var(--accent-ink); }
.l-prose ul { list-style: none; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.l-prose ul li { position: relative; padding-left: 26px; font-size: 17px; color: var(--muted); line-height: 1.7; }
.l-prose ul li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* Founder note card */
.l-note {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 26px;
  margin: 40px 0;
}
.l-note p { font-family: var(--font-serif); font-size: 22px; font-style: italic; color: var(--ink); line-height: 1.5; }
.l-note span { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: var(--faint); font-family: var(--font-sans); }

/* Changelog entries */
.l-log { max-width: 760px; padding-bottom: 100px; }
.l-log-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.l-log-entry:first-child { border-top: none; }
.l-log-meta { display: flex; flex-direction: column; gap: 10px; }
.l-log-date { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.l-log-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 11px; border-radius: var(--pill);
}
.l-log-body h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 12px; }
.l-log-body p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.l-log-body ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.l-log-body ul li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.l-log-body ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-line); }

@media (max-width: 720px) {
  .l-log-entry { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
}

/* =========================================================================
   Scroll reveal (transform + opacity only)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .l-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .l-hero-panel { max-width: 560px; }
  .l-flow { grid-template-columns: 1fr; gap: 44px; }
  .l-split { grid-template-columns: 1fr; gap: 44px; }
  .l-bento { grid-template-columns: repeat(2, 1fr); }
  .l-cell-wide { grid-column: span 2; }
  .l-cell-tall { grid-row: span 1; }
  .l-gallery { grid-template-columns: repeat(4, 1fr); }
  .l-shot.big { grid-column: span 4; }
  .l-shot.small { grid-column: span 2; }
  .l-cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .l-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .l-footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .l-section { padding: 84px 0; }
  .l-container { padding: 0 20px; }
  .l-nav-links, .l-nav-signin { display: none; }
  .l-nav-hamburger { display: flex; }
  .l-nav.open .l-nav-links {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); padding: 28px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .l-nav.open .l-nav-signin { display: block; }
  .l-bento { grid-template-columns: 1fr; }
  .l-cell-wide { grid-column: span 1; }
  .l-gallery { grid-template-columns: 1fr; }
  .l-shot.big, .l-shot.small { grid-column: span 1; }
  .l-price-grid { grid-template-columns: 1fr; }
  .l-compare-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .l-compare-row > div { padding: 15px 14px; font-size: 13px; }
  .l-footer-grid { grid-template-columns: 1fr 1fr; }
  .l-flow-steps::before { left: 21px; }
}

/* =============================================================================
   @senova/motion — creative-direction landing (Sonnet-5 / Fable)
   ============================================================================= */

/* HERO — ShaderField host (lazy WebGL; the CSS gradient below is the fallback) */
.l-hero2 { position: relative; }
.l-hero2-shader { position: absolute; inset: 0; z-index: 1; opacity: 0.45; pointer-events: none; overflow: hidden; }
.l-hero2-shader canvas { mix-blend-mode: multiply; }
.l-hero2-bg { z-index: 0; }
.l-hero2-inner { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .l-hero2-shader { opacity: 0.3; } }

/* WATCH IT BUILD — scroll-scrubbed timeline (THE moment) */
.l-build { position: relative; background: var(--paper); }
.l-build-track { position: relative; height: 300vh; }
.l-build-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.l-build-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; width: 100%; }
.l-build-copy .eyebrow { margin-bottom: 14px; }
.l-build-copy .l-lead { margin-top: 14px; max-width: 40ch; }
.l-build-steps { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.l-build-steps li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; opacity: 0.42; transition: opacity 0.4s ease, background 0.4s ease; }
.l-build-steps li.active { opacity: 1; background: var(--paper-2); }
.l-build-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 2px; }
.l-build-steps b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.l-build-steps p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.l-build-stage { position: relative; }
.l-browser { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 34px 90px rgba(23, 21, 17, 0.18); will-change: transform; }
.l-browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.l-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.l-dot:nth-child(1) { background: #e0685a; } .l-dot:nth-child(2) { background: #e6b95c; } .l-dot:nth-child(3) { background: #6aa15a; }
.l-browser-url { margin-left: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--surface); padding: 5px 14px; border-radius: 7px; border: 1px solid var(--line); }
.l-browser-body { position: relative; height: 430px; }
.l-frame { position: absolute; inset: 0; padding: 24px; will-change: opacity; }

/* Frame 0 — blank */
.l-frame-blank { display: flex; align-items: center; justify-content: center; }
.l-caret { width: 3px; height: 30px; background: var(--ink); animation: l-blink 1.05s steps(1) infinite; }
@keyframes l-blink { 50% { opacity: 0; } }
/* Frame 1 — structure (wireframe) */
.l-frame-wire .wire { background: var(--line); border-radius: 6px; }
.wire-top { height: 42px; margin-bottom: 18px; }
.wire-row { display: flex; gap: 18px; }
.wire-side { width: 92px; height: 288px; flex-shrink: 0; }
.wire-main { flex: 1; }
.wire-lg { height: 34px; width: 62%; margin-bottom: 14px; }
.wire-md { height: 18px; width: 42%; margin-bottom: 22px; }
.wire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wire-grid span { height: 96px; background: var(--line); border-radius: 8px; }
/* Frame 2 — styled */
.sty-top { display: flex; align-items: center; gap: 12px; height: 42px; margin-bottom: 18px; }
.sty-logo { width: 36px; height: 22px; border-radius: 7px; background: var(--accent); }
.sty-nav { width: 52px; height: 11px; border-radius: 6px; background: var(--paper-3); }
.sty-row { display: flex; gap: 18px; }
.sty-side { width: 92px; height: 288px; background: var(--paper-2); border-radius: 12px; flex-shrink: 0; }
.sty-main { flex: 1; }
.sty-h { height: 34px; width: 58%; background: var(--accent-soft); border-radius: 8px; margin-bottom: 18px; }
.sty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sty-grid span { height: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
/* Frame 3 — live */
.live-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-weight: 700; color: var(--ink); font-size: 17px; }
.live-logo i { color: var(--accent); font-size: 20px; }
.live-badge { font-size: 11px; font-weight: 600; color: #4f8a43; background: rgba(106, 161, 90, 0.16); padding: 4px 11px; border-radius: 999px; }
.live-row { display: flex; gap: 18px; }
.live-side { width: 92px; display: flex; flex-direction: column; gap: 9px; flex-shrink: 0; }
.live-side span { height: 13px; border-radius: 6px; background: var(--paper-2); }
.live-side span.on { background: var(--accent-soft); }
.live-main { flex: 1; }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.live-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.live-stats b { display: block; font-family: var(--font-serif); font-size: 22px; color: var(--ink); font-weight: 700; }
.live-stats small { font-size: 11px; color: var(--muted); }
.live-list { display: flex; flex-direction: column; gap: 8px; }
.live-list div { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 13px; color: var(--ink); }
.live-list div span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.live-list em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }

.l-build-progress { height: 3px; background: var(--line-soft); border-radius: 2px; margin-top: 22px; overflow: hidden; }
.l-build-progress span { display: block; height: 100%; background: var(--accent); border-radius: 2px; transform-origin: left; transform: scaleX(0); }

/* STATS — CountUp */
.l-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.l-stat-num { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 60px); font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.l-stat-num small { font-size: 0.5em; font-weight: 700; }
.l-stat-label { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* TESTIMONIAL */
.l-quote { max-width: 780px; margin: 0 auto; text-align: center; }
.l-quote-text { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 32px); line-height: 1.42; color: var(--ink); font-weight: 500; }
.l-quote-cite { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.l-quote-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
  .l-build-track { height: auto; }
  .l-build-sticky { position: static; height: auto; padding: 72px 0; }
  .l-build-grid { grid-template-columns: 1fr; gap: 36px; }
  .l-browser-body { height: 360px; }
  .l-stats { grid-template-columns: 1fr; gap: 32px; }
}

/* =============================================================================
   PROMPT-FIRST hero — the chat input leads; the headline is demoted below it.
   (Rob's requirement: the prompt is the first, primary, immediately-usable
   element; no animation delays or pushes it.)
   ============================================================================= */
.l-hero2-inner--prompt { max-width: 720px; }
.l-hero2-inner--prompt .l-hero2-pill { margin-bottom: 20px; }
.l-hero2-inner--prompt .l-hero2-card { margin-top: 0; }
.l-hero2-inner--prompt .l-hero2-chips-label { margin-top: 26px; }
/* Headline, demoted to a supporting line beneath the prompt + chips. */
.l-hero2-title--sub {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 600; line-height: 1.28; letter-spacing: -0.015em;
  color: var(--ink); margin: 46px 0 0; opacity: 0.94; text-wrap: balance;
}
.l-hero2-title--sub em { font-style: italic; color: var(--accent); }
.l-hero2-inner--prompt .l-hero2-sub { margin: 12px 0 0; font-size: clamp(15px, 1.7vw, 17px); max-width: 46ch; }
.l-hero2-inner--prompt .l-hero2-note { margin-top: 28px; }
