/* Cascade layer order: reset lowest, then Tailwind/Quanta base, then
 * components and finally utilities — so Quanta's q-* utilities (e.g.
 * q-button-*) always win over global element resets. */
@layer reset, theme, base, components, utilities;

@import "tailwindcss" source(none);
@source "../src";
@source "../packages/app-landing/src";
@source "../packages/quanta/src";
@import "@higgsfield/quanta/tailwind.css";

/* New in-app Quanta-style components (moved out of the quanta package). Their
 * CSS uses Tailwind v4 @utility/@source, so it must load through this tailwind
 * entry. Ordering mirrors quanta's components.css (composer after button;
 * media-card + generation-card after media). */
@import "./components/composer/composer.css";
@import "./components/media-card/media-card.css";
@import "./components/generation-card/generation-card.css";
@import "./components/setting-trigger/setting-trigger.css";
@import "./components/prompt-box/prompt-box.css";
@import "./components/icon-tile/icon-tile.css";

@import "tw-animate-css";
/* shadcn v4 base (scrollbar/scroll-fade utilities, toast base) for src/components/ui */
@import "shadcn/tailwind.css";

@custom-variant dark (&:where([data-theme="default-dark"], [data-theme="default-dark"] *));

/*
 * Quanta is the visual source of truth. This file imports Quanta's Tailwind
 * entry once; that entry brings in primitives, semantic theme variables,
 * typography, z-index, border-width, and q-* component utilities.
 *
 * Generated app layout should use normal Tailwind spacing (`p-4`, `gap-2`,
 * `mt-6`, `h-10`) and Quanta semantic utilities for color/type
 * (`bg-q-background-primary`, `text-q-body-md-regular`). Do not use old numeric
 * token classes such as `px-400` / `gap-200`, and do not reach for raw
 * q-spacing vars in app code. Quanta component internals own their q-* classes.
 *
 * The `--spacing: 0.25rem` restoration keeps native Tailwind layout utilities
 * stable for generated apps and legacy scaffold components. The inline theme
 * aliases below keep shadcn-style imports rendering while new UI migrates to
 * Quanta components.
 */
@theme {
  --spacing: 0.25rem;
}

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);

  --color-background: var(--hf-color-background-primary);
  --color-foreground: var(--hf-color-text-primary);
  --color-card: var(--hf-color-background-secondary);
  --color-card-foreground: var(--hf-color-text-primary);
  --color-popover: var(--hf-color-background-secondary);
  --color-popover-foreground: var(--hf-color-text-primary);
  --color-primary: var(--hf-color-button-brand);
  --color-primary-foreground: var(--hf-color-button-label-brand);
  --color-secondary: var(--hf-color-background-secondary);
  --color-secondary-foreground: var(--hf-color-text-primary);
  --color-muted: var(--hf-color-background-tertiary);
  --color-muted-foreground: var(--hf-color-text-secondary);
  --color-accent: var(--hf-color-overlay-hover);
  --color-accent-foreground: var(--hf-color-text-primary);
  /* shadcn v4 components use text-destructive on tinted fills — needs the
   * bright brand red, not the dark error surface */
  --color-destructive: var(--hf-color-button-destructive);
  --color-destructive-foreground: var(--hf-color-button-label-destructive);
  --color-border: var(--hf-color-border-default);
  --color-input: var(--hf-color-border-default);
  --color-ring: var(--hf-color-border-focus);
  --color-ring-offset-background: var(--hf-color-background-primary);

  --color-chart-1: var(--hf-color-lime-500);
  --color-chart-2: var(--hf-color-pink-500);
  --color-chart-3: var(--hf-color-blue-500);
  --color-chart-4: var(--hf-color-yellow-500);
  --color-chart-5: var(--hf-color-purple-500);

  --color-sidebar: var(--hf-color-background-secondary);
  --color-sidebar-foreground: var(--hf-color-text-primary);
  --color-sidebar-primary: var(--hf-color-button-brand);
  --color-sidebar-primary-foreground: var(--hf-color-button-label-brand);
  --color-sidebar-accent: var(--hf-color-overlay-hover);
  --color-sidebar-accent-foreground: var(--hf-color-text-primary);
  --color-sidebar-border: var(--hf-color-border-default);
  --color-sidebar-ring: var(--hf-color-border-focus);

  --font-grotesk: var(--hf-type-family-grotesk);
}

/* Fills used by src/components/ui (badge, tabs, marketing-button), mapped to
 * Quanta's --hf-gradient-* tokens. */
@utility badge-gradient-blue {
  background-image: var(--hf-gradient-badge-blue);
}
@utility badge-gradient-pink {
  background-image: var(--hf-gradient-badge-pink);
}
@utility badge-gradient-purple {
  background-image: var(--hf-gradient-badge-purple);
}
@utility glass-sheen {
  background-image: var(--hf-gradient-glass-sheen);
}
@utility gloss-lime {
  background-image:
    var(--hf-gradient-special-gloss-lime-angled),
    linear-gradient(90deg, var(--hf-color-lime-500), var(--hf-color-lime-500));
}
@utility gloss-pink {
  background-image:
    var(--hf-gradient-special-gloss-pink),
    linear-gradient(90deg, var(--hf-color-pink-500), var(--hf-color-pink-500));
}

/* Toast skin (Figma node 4085:2671): compact glass pill, kind-colored fills */
[data-sonner-toast][data-styled="true"] {
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--hf-color-transparent-light-05);
  border-radius: var(--hf-radius-300, 12px);
  background: var(--hf-color-glass-dark);
  backdrop-filter: blur(40px);
  box-shadow: 0 6px 6px rgb(0 0 0 / 0.25);
  color: var(--hf-color-text-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
[data-sonner-toast][data-type="success"] {
  border-color: var(--hf-color-transparent-light-15);
  background: #68b922; /* toast/success — raw value in Figma, no hf token */
  backdrop-filter: none;
}
[data-sonner-toast].toast-new {
  border-color: var(--hf-color-transparent-light-15);
  background: #7a58ff; /* toast/new — raw value in Figma, no hf token */
  backdrop-filter: none;
}
[data-sonner-toast] [data-close-button] {
  position: static;
  order: 9;
  margin-left: 4px;
  border: none;
  background: transparent;
  color: inherit;
  transform: none;
}
[data-sonner-toast] [data-close-button]:hover {
  background: var(--hf-color-overlay-hover);
}

:root {
  --radius: 0.625rem;
}

@layer base {
  html {
    background-color: var(--hf-color-background-primary);
    color: var(--hf-color-text-primary);
    color-scheme: dark;
  }

  body {
    min-height: 100vh;
    background-color: var(--hf-color-background-primary);
    color: var(--hf-color-text-primary);
    font-family: var(--hf-type-family-secondary);
  }

  * {
    border-color: var(--hf-color-border-default);
  }
}

/* ============================================================
   BraveVoice site layer (design brief tokens + sections)
   ============================================================ */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/baloo2/v23/wXK0E3kTposypRydzVT08TS3JnAmtdj9yppo_leP6HcMmzc.woff2) format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url(https://fonts.gstatic.com/s/baloo2/v23/wXK0E3kTposypRydzVT08TS3JnAmtdiayppo_leP6HcMmzc.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500; font-display: swap; src: url(https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2di8HDBImdTQ3j6zbXWjQeQ.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2dq8HDBImdTQ3j6zbXWjQeQ.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2da8HDBImdTQ3j6zbXWjQeQ.woff2) format('woff2'); }

.bv {
  --bv-night: #10142B;
  --bv-night-2: #171D3C;
  --bv-ink: #F4F2FF;
  --bv-hush: #A9B0D6;
  --bv-mint: #9FE6C8;
  --bv-gold: #FFD9A0;
  --bv-coral: #E8724A;
  background: var(--bv-night);
  color: var(--bv-ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 500;
  cursor: default;
}
.bv ::selection { background: var(--bv-mint); color: var(--bv-night); }
.bv h1, .bv h2, .bv h3, .bv .bv-display { font-family: 'Baloo 2', 'Nunito', sans-serif; }

.bv-skip { position: absolute; left: -999px; top: 0; z-index: 90; background: var(--bv-gold); color: var(--bv-night); padding: 10px 18px; border-radius: 0 0 14px 0; font-weight: 900; }
.bv-skip:focus { left: 0; }

/* nav */
.bv-nav { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); mix-blend-mode: normal; pointer-events: none; }
.bv-nav > * { pointer-events: auto; }
.bv-wordmark { font-family: 'Baloo 2'; font-weight: 800; font-size: 24px; letter-spacing: 0.2px; color: var(--bv-ink); text-decoration: none; text-shadow: 0 2px 18px rgba(16,20,43,0.8); }
.bv-wordmark b { color: var(--bv-mint); font-weight: 800; }
.bv-nav nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.bv-navlink { position: relative; color: var(--bv-hush); text-decoration: none; font-weight: 700; font-size: 14.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.bv-navlink::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--bv-mint); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.bv-navlink:hover { color: var(--bv-ink); }
.bv-navlink:hover::after { transform: scaleX(1); }
.bv-pill { display: inline-block; background: var(--bv-coral); color: #FFF6EC; font-weight: 900; font-size: 14px; letter-spacing: 0.04em; padding: 11px 22px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 24px rgba(232,114,74,0.35); transition: box-shadow .3s ease; will-change: transform; }
.bv-pill:hover { box-shadow: 0 10px 34px rgba(232,114,74,0.55); }

/* journey dial */
.bv-journey { position: relative; }
.bv-dial { position: fixed; right: clamp(14px, 3vw, 40px); top: 50%; transform: translateY(-50%); z-index: 55; display: flex; flex-direction: column; gap: 14px; font-family: 'Baloo 2'; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; transition: opacity .4s ease; }
.bv-dial--off { opacity: 0; pointer-events: none; }
.bv-dial span { color: rgba(169,176,214,0.45); transition: color .3s ease, transform .3s ease; }
.bv-dial span.on { color: var(--bv-mint); transform: scale(1.22); }
@media (max-width: 860px) { .bv-dial { display: none; } }

/* shared section chrome */
.bv-section { position: relative; padding: clamp(84px, 12vh, 150px) clamp(20px, 6vw, 92px); background: var(--bv-night); }
.bv-eyebrow { color: var(--bv-mint); font-weight: 900; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 18px; }
.bv-h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; line-height: 1.02; margin: 0 0 18px; }
.bv-lead { color: var(--bv-hush); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; max-width: 56ch; }
.bv-reveal { transform: translateY(26px); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.bv-reveal.is-in { transform: translateY(0); }

/* worlds grid */
.bv-worlds-grid { margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.bv-card { position: relative; border-radius: 26px; overflow: hidden; background: var(--bv-night-2); transform-style: preserve-3d; will-change: transform; transition: box-shadow .35s ease; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.bv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.bv-card:hover img { transform: scale(1.06); }
.bv-card:hover { box-shadow: 0 24px 60px rgba(5,8,24,0.65), 0 0 0 1px rgba(159,230,200,0.35); }
.bv-card-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,20,43,0) 32%, rgba(16,20,43,0.88) 86%); }
.bv-card-num { position: absolute; top: 18px; left: 20px; font-family: 'Baloo 2'; font-weight: 800; font-size: 15px; letter-spacing: 0.2em; color: var(--bv-gold); text-shadow: 0 2px 12px rgba(16,20,43,0.9); }
.bv-card-body { position: relative; padding: 22px 22px 20px; }
.bv-card-body h3 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: 0.04em; }
.bv-card-body p { margin: 0; color: var(--bv-hush); font-size: 14.5px; line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.22,1,.36,1), margin .5s ease; }
.bv-card:hover .bv-card-body p, .bv-card:focus-within .bv-card-body p { max-height: 90px; margin-top: 4px; }

/* the five ways */
.bv-way { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: clamp(14px, 3vw, 36px); padding: 26px 8px; border-bottom: 1px solid rgba(169,176,214,0.18); text-decoration: none; position: relative; overflow: hidden; }
.bv-way::before { content: ''; position: absolute; inset: auto 0 0 0; height: 100%; background: linear-gradient(90deg, rgba(159,230,200,0.12), rgba(159,230,200,0)); transform: translateX(-101%); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.bv-way:hover::before { transform: translateX(0); }
.bv-way-num { font-family: 'Baloo 2'; font-weight: 700; color: var(--bv-gold); letter-spacing: 0.18em; font-size: 15px; }
.bv-way h3 { margin: 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.bv-way:hover h3 { transform: translateX(12px); color: var(--bv-mint); }
.bv-way p { margin: 0; color: var(--bv-hush); font-size: 15px; max-width: 34ch; text-align: right; }
@media (max-width: 720px) { .bv-way { grid-template-columns: 48px 1fr; } .bv-way p { display: none; } }

/* promise */
.bv-promise { background: linear-gradient(180deg, var(--bv-night) 0%, var(--bv-night-2) 100%); text-align: center; }
.bv-promise blockquote { margin: 0 auto; max-width: 20ch; font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(34px, 6.4vw, 78px); line-height: 1.08; }
.bv-promise em { font-style: normal; color: var(--bv-mint); }
.bv-promise strong { color: var(--bv-gold); font-weight: 800; }
.bv-promise figcaption { margin-top: 26px; color: var(--bv-hush); font-size: 16px; }

/* grown-ups */
.bv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(22px, 4vw, 56px); margin-top: 40px; }
.bv-col { border: 1px solid rgba(169,176,214,0.2); border-radius: 24px; padding: clamp(24px, 3vw, 40px); background: rgba(23,29,60,0.55); }
.bv-col h3 { margin: 0 0 14px; font-size: 26px; font-weight: 800; color: var(--bv-gold); }
.bv-col li { color: var(--bv-hush); line-height: 1.65; margin: 10px 0; list-style: none; position: relative; padding-left: 22px; }
.bv-col li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--bv-mint); }

/* beacon */
.bv-beacon-wrap { text-align: center; padding-bottom: clamp(110px, 16vh, 190px); }
.bv-beacon-wrap .bv-h2 { max-width: 16ch; margin-inline: auto; }
.bv-beacon { display: inline-block; margin-top: 38px; font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(19px, 2.2vw, 25px); color: var(--bv-night); background: var(--bv-gold); padding: 20px 46px; border-radius: 999px; text-decoration: none; box-shadow: 0 0 0 0 rgba(255,217,160,0.45), 0 18px 50px rgba(255,217,160,0.28); transition: box-shadow .4s ease; will-change: transform; }
.bv-beacon:hover { box-shadow: 0 0 0 10px rgba(255,217,160,0.16), 0 24px 70px rgba(255,217,160,0.45); }
.bv-beacon-note { margin-top: 20px; color: var(--bv-hush); font-size: 14.5px; letter-spacing: 0.04em; }

.bv-footer { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 26px clamp(20px, 6vw, 92px) 40px; color: rgba(169,176,214,0.65); font-size: 13.5px; border-top: 1px solid rgba(169,176,214,0.14); }

/* cursor glow */
.bv-cursor { position: fixed; z-index: 70; left: 0; top: 0; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(159,230,200,0.14) 0%, rgba(159,230,200,0.05) 38%, rgba(16,20,43,0) 70%); mix-blend-mode: screen; }
@media (hover: none), (prefers-reduced-motion: reduce) { .bv-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .bv-reveal { transform: none; transition: none; }
  .bv-card img, .bv-way h3, .bv-pill, .bv-beacon { transition: none; }
}

/* ============================================================
   Daybreak — the bright half of the site (post-journey)
   ============================================================ */
/* Chapter nav: the engine pins it top-right where it collides with the site
   nav. Force it to a centered glassy strip along the bottom of the journey. */
.bv .scroll-scrub__route {
  top: auto !important;
  bottom: clamp(1rem, 3vh, 1.9rem) !important;
  left: 0 !important;
  right: 0 !important;
  justify-content: center !important;
  gap: 0.4rem !important;
}
.bv .scroll-scrub__route-button {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: rgba(16, 20, 43, 0.45);
  backdrop-filter: blur(6px);
}
.bv .scroll-scrub__route-button[aria-current="step"] {
  background: rgba(159, 230, 200, 0.18);
  text-decoration: none;
  color: #9FE6C8;
}
@media (max-width: 860px) {
  .bv .scroll-scrub__route {
    justify-content: flex-start !important;
  }
}
.bv-day {
  position: relative;
  background: linear-gradient(180deg, #10142B 0%, #3C4578 4%, #8FB3E8 10%, #CDEBFF 18%, #EAF6FF 34%, #FDF2FF 56%, #FFF6E3 78%, #E8F9EE 100%);
  color: #24345F;
  overflow: hidden;
}
.bv-day .bv-section { background: transparent; }
.bv-day .bv-h2 { color: #24345F; }
.bv-day .bv-lead { color: #5C6287; }
.bv-day .bv-eyebrow { color: #E8724A; }
.bv-sunrise-note { text-align: center; padding: 72px 20px 0; color: #EAF2FF; font-family: 'Baloo 2'; font-weight: 700; font-size: clamp(17px, 2vw, 22px); letter-spacing: 0.04em; }
.bv-day .bv-card { background: #FFFFFF; box-shadow: 0 10px 28px rgba(36,52,95,0.12); }
.bv-day .bv-card:hover { box-shadow: 0 26px 60px rgba(36,52,95,0.22), 0 0 0 2px #9FE6C8; }
.bv-day .bv-card-body h3 { color: #FFFFFF; }
.bv-day .bv-way { border-bottom-color: rgba(36,52,95,0.14); }
.bv-day .bv-way h3 { color: #24345F; }
.bv-day .bv-way:hover h3 { color: #1A6FA8; }
.bv-day .bv-way p { color: #5C6287; }
.bv-day .bv-way-num { color: #E8724A; }
.bv-day .bv-way::before { background: linear-gradient(90deg, rgba(159,230,200,0.35), rgba(159,230,200,0)); }
.bv-day .bv-promise { background: transparent; }
.bv-day .bv-promise blockquote { color: #24345F; }
.bv-day .bv-promise em { color: #1A6FA8; }
.bv-day .bv-promise strong { color: #E8724A; }
.bv-day .bv-promise figcaption { color: #5C6287; }
.bv-day .bv-col { background: rgba(255,255,255,0.8); border-color: rgba(36,52,95,0.12); box-shadow: 0 8px 24px rgba(36,52,95,0.08); }
.bv-day .bv-col h3 { color: #1A6FA8; }
.bv-day .bv-col li { color: #4A4E69; }
.bv-day .bv-col li::before { background: #E8724A; }
.bv-day .bv-beacon { color: #FFF6EC; background: #E8724A; box-shadow: 0 0 0 0 rgba(232,114,74,0.4), 0 18px 50px rgba(232,114,74,0.3); }
.bv-day .bv-beacon:hover { box-shadow: 0 0 0 10px rgba(232,114,74,0.14), 0 24px 70px rgba(232,114,74,0.45); }
.bv-day .bv-beacon-note { color: #5C6287; }
.bv-day .bv-footer { color: #5C6287; border-top-color: rgba(36,52,95,0.14); }

/* about */
.bv-about { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bv-about-fin { text-align: center; }
.bv-about-fin img { width: min(100%, 360px); filter: drop-shadow(0 18px 40px rgba(36,52,95,0.2)); }
.bv-about p { color: #4A4E69; font-size: clamp(15.5px, 1.6vw, 18.5px); line-height: 1.7; margin: 0 0 16px; max-width: 58ch; }
.bv-about p b { color: #1A6FA8; }
@media (max-width: 860px) { .bv-about { grid-template-columns: 1fr; } }

/* newsletter */
.bv-news { text-align: center; }
.bv-news-card { position: relative; max-width: 720px; margin: 0 auto; background: #FFFFFF; border-radius: 30px; padding: clamp(30px, 4.5vw, 54px); box-shadow: 0 18px 50px rgba(36,52,95,0.14); }
.bv-news-card h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #24345F; margin: 0 0 10px; }
.bv-news-card > p { color: #5C6287; margin: 0 auto 26px; max-width: 46ch; line-height: 1.6; }
.bv-news-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.bv-news-form input { flex: 1; min-width: 0; border: 3px solid #BFE3FF; border-radius: 999px; padding: 14px 22px; font-family: 'Nunito'; font-weight: 700; font-size: 16px; color: #24345F; background: #F7FBFF; outline: none; transition: border-color .25s ease; }
.bv-news-form input:focus { border-color: #1A6FA8; }
.bv-news-form button { border: 0; cursor: pointer; background: #1A6FA8; color: #FFFFFF; font-family: 'Baloo 2'; font-weight: 700; font-size: 17px; padding: 14px 30px; border-radius: 999px; transition: background .25s ease, box-shadow .25s ease; box-shadow: 0 8px 22px rgba(26,111,168,0.3); }
.bv-news-form button:hover { background: #15598a; box-shadow: 0 12px 30px rgba(26,111,168,0.45); }
.bv-news-form button:disabled { opacity: .6; cursor: wait; }
.bv-news-done { font-family: 'Baloo 2'; font-weight: 700; font-size: 20px; color: #22A55B; }
.bv-news-err { margin-top: 12px; color: #E5484D; font-weight: 700; font-size: 14px; }
.bv-news-small { margin-top: 16px; font-size: 13px; color: #8A8FB0; }
@media (max-width: 560px) { .bv-news-form { flex-direction: column; } }

/* faq */
.bv-faq { max-width: 860px; margin: 0 auto; }
.bv-faq details { background: #FFFFFF; border-radius: 20px; padding: 4px 24px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(36,52,95,0.08); }
.bv-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: 'Baloo 2'; font-weight: 700; font-size: clamp(17px, 2vw, 21px); color: #24345F; }
.bv-faq summary::-webkit-details-marker { display: none; }
.bv-faq summary::after { content: '+'; font-size: 26px; color: #E8724A; transition: transform .3s ease; flex-shrink: 0; }
.bv-faq details[open] summary::after { transform: rotate(45deg); }
.bv-faq details p { color: #5C6287; line-height: 1.65; margin: 0 0 18px; }

/* floating butterflies */
.bv-flutter { position: absolute; pointer-events: none; animation: bv-bob 5.5s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(36,52,95,0.18)); }
.bv-flutter.f2 { animation-duration: 7s; animation-delay: 1.2s; }
.bv-flutter.f3 { animation-duration: 6.2s; animation-delay: 0.6s; }
@keyframes bv-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .bv-flutter { animation: none; } }

/* footer links */
.bv-footlinks { display: flex; gap: 22px; flex-wrap: wrap; }
.bv-footlinks a { color: #1A6FA8; font-weight: 800; text-decoration: none; font-size: 13.5px; }
.bv-footlinks a:hover { text-decoration: underline; }

/* hero CTA cluster: Fin + the two journey buttons */
.bv-hero-cta { position: fixed; right: clamp(18px, 4vw, 64px); bottom: clamp(22px, 5vh, 46px); z-index: 56; display: flex; align-items: flex-end; gap: 20px; transition: opacity .5s ease, transform .5s ease; }
.bv-hero-cta.off { opacity: 0; transform: translateY(14px); pointer-events: none; }
.bv-hero-cta img { width: clamp(96px, 11vw, 150px); filter: drop-shadow(0 14px 30px rgba(5,8,24,0.55)); animation: bv-bob 5s ease-in-out infinite; }
.bv-hero-btns { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.bv-cta-main { display: inline-block; text-align: center; background: #E8724A; color: #FFF6EC; font-family: 'Baloo 2'; font-weight: 800; font-size: 18px; padding: 15px 30px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 30px rgba(232,114,74,0.45); transition: box-shadow .3s ease; will-change: transform; }
.bv-cta-main:hover { box-shadow: 0 16px 44px rgba(232,114,74,0.65); }
.bv-cta-ghost { display: inline-block; text-align: center; color: #D4F5E6; font-family: 'Baloo 2'; font-weight: 700; font-size: 15.5px; padding: 11px 26px; border-radius: 999px; border: 2px solid rgba(159,230,200,0.55); text-decoration: none; background: rgba(16,20,43,0.35); transition: border-color .3s ease, background .3s ease; will-change: transform; }
.bv-cta-ghost:hover { border-color: #9FE6C8; background: rgba(159,230,200,0.14); }
@media (max-width: 860px) { .bv-hero-cta img { display: none; } .bv-hero-cta { right: 16px; bottom: 78px; } }
@media (prefers-reduced-motion: reduce) { .bv-hero-cta img { animation: none; } }

/* how it works steps */
.bv-steps { margin-top: clamp(32px, 5vh, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.bv-step { background: #FFFFFF; border-radius: 26px; padding: clamp(22px, 3vw, 34px); text-align: center; box-shadow: 0 10px 28px rgba(36,52,95,0.1); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.bv-step:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(36,52,95,0.18); }
.bv-step .big { font-size: 46px; line-height: 1; }
.bv-step h3 { font-size: 23px; font-weight: 800; color: #1A6FA8; margin: 12px 0 6px; }
.bv-step p { margin: 0; color: #5C6287; font-size: 15px; line-height: 1.55; }

/* real gameplay shots */
.bv-shots { margin-top: clamp(32px, 5vh, 56px); display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.6vw, 30px); flex-wrap: wrap; }
.bv-shot { width: clamp(180px, 20vw, 250px); text-align: center; }
.bv-shot img { width: 100%; border-radius: 26px; border: 7px solid #FFFFFF; box-shadow: 0 18px 40px rgba(36,52,95,0.2); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.bv-shot:nth-child(1) img { transform: rotate(-4deg); }
.bv-shot:nth-child(2) img { transform: rotate(2.5deg) translateY(14px); }
.bv-shot:nth-child(3) img { transform: rotate(-2deg); }
.bv-shot:nth-child(4) img { transform: rotate(4deg) translateY(10px); }
.bv-shot:hover img { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.bv-shot figcaption { margin-top: 16px; font-family: 'Baloo 2'; font-weight: 700; font-size: 15px; color: #24345F; }

/* Brighter night: the generated film reads too dark on most panels. */
.bv .scroll-scrub__video,
.bv .scroll-scrub__poster {
  filter: none;
}

/* announcement bar */
.bv-announce { position: fixed; inset: 0 0 auto 0; z-index: 62; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(90deg, #1A6FA8, #8B5CF6); color: #FFFFFF; font-weight: 800; font-size: 13px; letter-spacing: 0.03em; }
.bv-announce b { color: #FFD9A0; }
.bv-nav { top: 36px; }

/* characters */
.bv-chars { margin-top: clamp(32px, 5vh, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px, 2.6vw, 28px); }
.bv-char { background: #FFFFFF; border-radius: 28px; padding: 28px 22px 24px; text-align: center; box-shadow: 0 10px 28px rgba(36,52,95,0.1); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.bv-char:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 24px 54px rgba(36,52,95,0.2); }
.bv-char img { width: min(100%, 190px); height: 190px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(36,52,95,0.18)); }
.bv-char h3 { margin: 14px 0 2px; font-size: 24px; font-weight: 800; color: #24345F; }
.bv-char .role { color: #E8724A; font-weight: 900; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.bv-char p { margin: 10px 0 0; color: #5C6287; font-size: 14.5px; line-height: 1.5; }

/* hero fin image swap sizing */
.bv-hero-cta img { width: clamp(110px, 13vw, 170px); }

/* ---- subpage chrome (bright) ---- */
.bvp { background: linear-gradient(180deg, #CDEBFF 0%, #EAF6FF 26%, #FDF2FF 55%, #FFF6E3 82%, #E8F9EE 100%); color: #24345F; font-family: 'Nunito', system-ui, sans-serif; font-weight: 500; min-height: 100vh; }
.bvp h1, .bvp h2, .bvp h3 { font-family: 'Baloo 2', 'Nunito', sans-serif; }
.bvp ::selection { background: #9FE6C8; color: #10142B; }
.bvp-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px clamp(20px, 5vw, 72px); flex-wrap: wrap; }
.bvp-head .bv-wordmark { color: #24345F; text-shadow: none; }
.bvp-head .bv-wordmark b { color: #1A6FA8; }
.bvp-head nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); flex-wrap: wrap; }
.bvp-link { color: #5C6287; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.bvp-link:hover, .bvp-link[aria-current="page"] { color: #1A6FA8; border-bottom-color: #9FE6C8; }
.bvp-hero { text-align: center; padding: clamp(40px, 7vh, 80px) clamp(20px, 6vw, 92px) 0; }
.bvp-hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; margin: 0 0 14px; }
.bvp-hero > p { color: #5C6287; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6; max-width: 62ch; margin: 0 auto; }
.bvp main { padding-bottom: 60px; }
.bvp .bv-section { background: transparent; }
.bvp-note { display: inline-block; background: #FFF8E8; border: 2px dashed #F2B705; color: #6B5518; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 7px 18px; }
.bvp-soon { display: inline-block; background: #EDE9FE; color: #6D28D9; font-weight: 900; font-size: 11.5px; letter-spacing: 0.14em; border-radius: 999px; padding: 5px 13px; text-transform: uppercase; }
.bvp-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0 8px; }
.bvp-filter button { border: 2px solid rgba(36,52,95,0.16); background: #FFFFFF; color: #24345F; font-family: 'Baloo 2'; font-weight: 700; font-size: 14.5px; border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: all .25s ease; }
.bvp-filter button:hover { border-color: #1A6FA8; }
.bvp-filter button.on { background: #1A6FA8; border-color: #1A6FA8; color: #FFFFFF; }
.bvp-gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.bvp-game { background: #FFFFFF; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 22px rgba(36,52,95,0.1); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.bvp-game:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(36,52,95,0.18); }
.bvp-game img { width: 100%; height: 140px; object-fit: cover; display: block; }
.bvp-game .inner { padding: 14px 16px 16px; }
.bvp-game h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: #24345F; }
.bvp-game p { margin: 0 0 10px; color: #5C6287; font-size: 13.5px; line-height: 1.45; }
.bvp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bvp-tag { background: #EAF6FF; color: #1A6FA8; font-weight: 800; font-size: 11px; border-radius: 999px; padding: 4px 10px; letter-spacing: 0.05em; }
.bvp-area { border-radius: 28px; padding: clamp(24px, 4vw, 44px); margin-bottom: 22px; box-shadow: 0 10px 30px rgba(36,52,95,0.1); }
.bvp-area h2 { margin: 0 0 6px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.bvp-area p { color: #41466E; line-height: 1.65; max-width: 70ch; }
.bvp-area ul { margin: 12px 0 0; padding-left: 20px; color: #41466E; line-height: 1.7; }

/* color utility classes so route files stay hex-free (check:ui contract) */
.bvp-body { color: #41466E; line-height: 1.7; max-width: 58ch; }
.bvp-area--solid { background: #FFFFFF; }
.bvp-area--soft { background: rgba(255, 255, 255, 0.75); }
.hue-blue { color: #1A6FA8; }
.hue-coral { color: #E8724A; }
.hue-violet { color: #8B5CF6; }
.hue-green { color: #22A55B; }

/* ---- daylight hero chrome: the film is now bright 1pm blue ---- */
.bv { background: #BFE4FF; }
.bv-wordmark { color: #17315B; text-shadow: 0 2px 14px rgba(255,255,255,0.65); }
.bv-wordmark b { color: #1A6FA8; }
.bv-navlink { color: #2C4A7C; text-shadow: 0 1px 10px rgba(255,255,255,0.55); }
.bv-navlink:hover { color: #17315B; }
.bv-navlink::after { background: #1A6FA8; }
.bv-dial span { color: rgba(23,49,91,0.38); }
.bv-dial span.on { color: #1A6FA8; }
.bv .scroll-scrub__route-button { background: rgba(255,255,255,0.55); color: #2C4A7C; }
.bv .scroll-scrub__route-button:hover { color: #17315B; }
.bv .scroll-scrub__route-button[aria-current="step"] { background: rgba(26,111,168,0.16); color: #1A6FA8; }
.bv-cta-ghost { color: #17315B; border-color: rgba(26,111,168,0.5); background: rgba(255,255,255,0.45); }
.bv-cta-ghost:hover { border-color: #1A6FA8; background: rgba(255,255,255,0.7); }
.bv-cursor { background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(159,230,200,0.12) 38%, rgba(255,255,255,0) 70%); }
.bv-skip { background: #1A6FA8; color: #FFFFFF; }
.bv-day { background: linear-gradient(180deg, #BFE4FF 0%, #CDEBFF 16%, #EAF6FF 34%, #FDF2FF 56%, #FFF6E3 78%, #E8F9EE 100%); }
.bv-sunrise-note { color: #2C4A7C; }
.bv-footer { color: #5C6287; }
.bv-announce a { color: #FFD9A0; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* Hide the platform-injected "Made in Higgsfield" footer attribution so the
   site carries only the BraveVoice brand. */
a[href*="higgsfield.ai"],
a[href*="higgsfield.app/supercomputer"],
[class*="made-in"],
[data-higgsfield-badge],
[id*="higgsfield-badge"] { display: none !important; }

/* ============================================================= */
/* Phone responsiveness (<= 700px): collapse nav, fix floating   */
/* hero CTA overlap, fit the announce banner, no h-scroll.       */
/* ============================================================= */
@media (max-width: 700px) {
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Announce banner: one tidy line */
  .bv-announce { height: 34px; font-size: 10px; letter-spacing: 0; padding: 0 10px; gap: 5px; white-space: nowrap; overflow: hidden; }

  /* Nav: just the logo + the Get BraveVoice pill (the links live in the footer) */
  .bv-nav { padding: 11px 16px; top: 34px; }
  .bv-nav nav .bv-navlink { display: none; }
  .bv-wordmark { font-size: 20px; }
  .bv-pill { font-size: 12px; padding: 9px 16px; }

  /* Floating hero CTAs overlap the big hero title on a phone and duplicate the nav's
     "Get BraveVoice" pill — hide the floating bar; the nav pill is the mobile CTA. */
  .bv-hero-cta { display: none; }

  /* Keep the hero title from spilling off the edge */
  .scroll-scrub__title { font-size: clamp(34px, 11vw, 52px); line-height: 1.04; }
  .scroll-scrub__body { font-size: 15px; }
  .scroll-scrub__copy { padding-right: 8px; }

  /* The scroll-chapter route labels are a desktop affordance — they bleed over copy on a phone */
  .scroll-scrub__route { display: none; }
}

/* Tablet (iPad portrait): keep the nav links but tighten spacing */
@media (min-width: 701px) and (max-width: 1024px) {
  .bv-nav nav { gap: clamp(12px, 2vw, 22px); }
  .bv-navlink { font-size: 13px; }
}
