/* ==========================================================================
   Holabi · Landing Page Styles (Kintsugi & Sumi Design System)
   ========================================================================== */

:root {
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Kintsugi (Light, default) */
  --bg: #f4efe6;
  --surface: #fbf8f3;
  --surface-alt: #ece5d8;
  --ink: #1f1b17;
  --ink-muted: #5c5349;
  --ink-subtle: #6e6458;
  --line: #e1d8c9;
  --line-strong: #8c7f6e;
  --clay: #a84f2c;
  --clay-hover: #8f3f1f;
  --on-clay: #fbf8f3;
  --clay-soft: #f7e8df;
  --gold: #c29a45;
  --gold-mark: #a9812f;
  --focus-ring: #a84f2c;
  --success: #2c6b6e;
  --success-soft: #dcebe9;
  --danger: #a3271f;
  --danger-soft: #f6dcd6;

  --shadow-sm: 0 2px 8px rgba(31, 27, 23, 0.05);
  --shadow-md: 0 12px 32px rgba(31, 27, 23, 0.08);
  --shadow-lg: 0 24px 56px rgba(31, 27, 23, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container-max: 1180px;
  --header-h: 76px;
  color-scheme: light;
}

html.is-sumi {
  --bg: #111214;
  --surface: #1c1d20;
  --surface-alt: #26272b;
  --ink: #ece6da;
  --ink-muted: #b3ab9d;
  --ink-subtle: #9c9486;
  --line: #2c2d31;
  --line-strong: #6f695f;
  --clay: #d9774f;
  --clay-hover: #e58c67;
  --on-clay: #111214;
  --clay-soft: #3b2219;
  --gold: #d2a64f;
  --gold-mark: #d2a64f;
  --focus-ring: #d9774f;
  --success: #6db5ae;
  --success-soft: #16302f;
  --danger: #f08275;
  --danger-soft: #3d1b18;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--clay), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: holabi-scroll-progress linear both;
      animation-timeline: scroll(root block);
    }

    @keyframes holabi-scroll-progress {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.brand-logo--dark {
  display: none;
}

html.is-sumi .brand-logo--light {
  display: none;
}

html.is-sumi .brand-logo--dark {
  display: block;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-login {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 0 1.5rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu__nav > a {
  padding: 12px 8px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__ctas {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
  }

  .header-login {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--clay);
  color: var(--on-clay);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--clay) 28%, transparent);
}

.btn-primary:hover {
  background: var(--clay-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-alt);
}

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

.btn-ghost:hover {
  background: var(--surface-alt);
}

/* ==========================================================================
   Hero & Live Simulator
   ========================================================================== */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-muted);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-highlights li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* Simulator Card */
.sim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sim-card__top {
  padding: 0.85rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.sim-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

@media (min-width: 520px) {
  .sim-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sim-tab {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sim-tab:hover {
  color: var(--ink);
}

.sim-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.sim-panels {
  padding: 1.25rem;
  min-height: 310px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  border-radius: 50%;
  background: var(--surface-alt);
  padding: 3px;
}

.chat-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
}

.chat-thread {
  display: grid;
  gap: 0.85rem;
}

.msg {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  max-width: 92%;
}

.msg--in {
  background: var(--surface-alt);
  justify-self: start;
}

.msg--out {
  background: var(--clay-soft);
  border: 1px solid color-mix(in srgb, var(--clay) 24%, transparent);
  justify-self: end;
}

.msg-meta {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-subtle);
  margin-bottom: 0.35rem;
}

.voice-player {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.voice-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--clay);
  color: var(--on-clay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  flex: 1;
}

.voice-bars span {
  display: block;
  width: 3px;
  height: 35%;
  border-radius: 3px;
  background: var(--clay);
  opacity: 0.55;
  transition: height 0.2s ease;
}

.voice-bars span:nth-child(2n) {
  height: 75%;
}

.voice-bars span:nth-child(3n) {
  height: 55%;
}

.voice-player.is-playing .voice-bars span {
  opacity: 1;
  animation: holabi-wave 0.8s ease-in-out infinite alternate;
}

.voice-player.is-playing .voice-bars span:nth-child(odd) {
  animation-delay: 0.2s;
}

@keyframes holabi-wave {
  from {
    transform: scaleY(0.5);
  }
  to {
    transform: scaleY(1.25);
  }
}

.voice-duration {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.voice-transcript {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.flow-mock {
  margin-top: 0.65rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}

.flow-mock__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.flow-mock__badge {
  margin-top: 0.35rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.call-mock,
.mcp-mock {
  display: grid;
  gap: 0.85rem;
}

.call-pill {
  justify-self: start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
}

.call-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.call-subtitle {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.call-transcript,
.mcp-result {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.mcp-prompt {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--clay-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: grid;
  gap: 0.2rem;
}

.trust-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clay);
}

.trust-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.section--cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 66ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 0.75rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  font-weight: 700;
}

.section-desc {
  color: var(--ink-muted);
  font-size: 1.03rem;
}

.bento-grid,
.steps-grid,
.cases-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid,
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card,
.step-card,
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.card--featured {
  border-color: color-mix(in srgb, var(--clay) 45%, var(--line));
  background: linear-gradient(160deg, var(--surface) 60%, var(--clay-soft));
}

.card-tag {
  justify-self: start;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--clay);
}

.card h3,
.step-card h3,
.case-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.card p,
.step-card p,
.case-card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.steps-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-mark);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-switch {
  margin-top: 0.75rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}

.pricing-switch__btn {
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pricing-switch__btn.is-active {
  background: var(--clay);
  color: var(--on-clay);
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.plan-card--popular {
  border: 2px solid var(--clay);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: var(--on-clay);
  font-size: 0.76rem;
  font-weight: 700;
}

.plan-card__head h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
}

.plan-period {
  font-size: 0.88rem;
  color: var(--ink-subtle);
}

.plan-credits {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clay);
}

.plan-capacity {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.plan-features li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-heading {
  margin: 0;
  font-size: 1rem;
}

.faq-trigger {
  width: 100%;
  min-height: 54px;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--clay);
  transition: transform 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Form & Newsletter
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-perks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.contact-perks li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

.lead-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea,
.newsletter-row input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.newsletter-row input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 20%, transparent);
}

.field input:user-invalid,
.field textarea:user-invalid,
.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger-soft) 35%, var(--surface));
}

.field-error {
  min-height: 1.15em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
}

.form-footer {
  display: grid;
  gap: 0.65rem;
}

.form-status {
  min-height: 1.3em;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.form-legal {
  font-size: 0.82rem;
  color: var(--ink-subtle);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.7fr 0.8fr 1.3fr;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--clay);
}

.footer-newsletter {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-newsletter p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-row input {
  flex: 1 1 180px;
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Scroll Entry Effects (Progressive Enhancement + Reduced Motion Safe)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: holabi-reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }

    @keyframes holabi-reveal {
      from {
        opacity: 0;
        transform: translateY(22px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }

  /* Fallback for browsers without CSS animation-timeline: view() */
  .reveal.will-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
