/* ==========================================================================
   Hall Noir — brand layer over landing.css
   Same language as the social posts (FANTASY HALL/marketing/BRAND.md):
   absolute black, depth from light rather than colour, Sora set light with
   one "lit" phrase, a single lit object, hairline surfaces, an off-white CTA.
   Minimal on purpose: no glows on type, no metallic fills, orange only for
   the lit phrase.
   Loaded after landing.css; remove the <link> to roll back.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --bg:          #000;
  --bg-2:        #000;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   #0c0c0c;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text:        #F5F5F4;
  --muted:       #A1A1A1;
  --faint:       #8A8A8A;

  --hn-ink-grad: linear-gradient(180deg, #FFFFFF 0%, #E4E4E4 45%, #9C9C9C 100%);
  --hn-lit-grad: linear-gradient(100deg, #FFD3AE 0%, #FF9A4D 45%, #E0651A 100%);
}

/* ------------------------------------------------------------- the light -- */
/* Painted once, fixed to the viewport, so every section sits in the same room.
   main goes transparent so the room shows through. */
body { background: #000; }
main, .faq { background: transparent; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.045) 52%, rgba(255, 255, 255, 0.015) 60%, transparent 70%),
    linear-gradient(118deg, transparent 58%, rgba(255, 255, 255, 0.028) 66%, transparent 74%),
    radial-gradient(70% 50% at 88% -8%, rgba(255, 255, 255, 0.09), transparent 70%),
    radial-gradient(60% 45% at 12% 108%, rgb(var(--accent-rgb) / 0.07), transparent 70%);
}
main { position: relative; z-index: 1; }

/* Grain + vignette over everything, never catching a click. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 299;
  pointer-events: none;
  box-shadow: inset 0 0 160px 10px rgba(0, 0, 0, 0.45);
}
@media (max-width: 700px) {
  html::after { box-shadow: inset 0 0 90px 10px rgba(0, 0, 0, 0.45); }
}

/* Hero: the orange floodlights become one cold beam from the top right and a
   faint warm bloom where the phones stand. */
.hero-lights {
  background:
    radial-gradient(50% 42% at 72% -4%, rgba(255, 255, 255, 0.10), transparent 72%),
    radial-gradient(38% 28% at 50% 66%, rgb(var(--accent-rgb) / 0.08), transparent 70%);
}
.hero-lights span:first-child,
.hero-lights span:last-child { display: none; }

/* Rings and rules: hairlines with a faint orange cast, never a glow. */
.hero-stage::before,
.final::before,
.feature-media::before {
  border-color: rgb(var(--accent-rgb) / 0.16);
  outline-color: rgba(255, 255, 255, 0.03);
  background: none;
}
.hero-stage::after {
  background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / 0.18) 30%, rgb(var(--accent-rgb) / 0.18) 70%, transparent);
}
.bridge-line { background: linear-gradient(180deg, transparent, rgb(var(--accent-rgb) / 0.4) 30%, rgb(var(--accent-rgb) / 0.4) 70%, transparent); }
#features { background: transparent; }

/* Sections are separated by a hairline that fades out at both ends. */
main > section + section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, 0.10) 30%, rgba(255, 255, 255, 0.10) 70%, transparent 96%) 1;
}

/* ------------------------------------------------------------ typography -- */
/* Big type goes light and tight, lit from above. One orange phrase. */
.hero-title,
.section-head h2,
.final h2,
.faq-head h2,
.product-demo-title {
  font-weight: 300;
  letter-spacing: -0.055em;
}
.hero-title { line-height: 1; }
.hero-line > span,
.section-head h2 > span:not(.dim),
.final h2 > span,
.faq-head h2 > span,
.product-demo-title {
  background: var(--hn-ink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* The lit phrase. */
.hero-line.accent > span {
  font-weight: 500;
  letter-spacing: -0.05em;
  background: var(--hn-lit-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* The setup line stays a ghost; the payoff is white. */
.section-head h2 .dim { color: #5E5E5E; -webkit-text-fill-color: #5E5E5E; }
.section-head h2 > span:not(.dim) {
  font-weight: 400;
  letter-spacing: -0.05em;
}

.feature-copy h3,
.fgrid-title,
.product-demo-kicker,
.product-demo-end-t { font-weight: 500; letter-spacing: -0.035em; }

/* Orange is the accent: flat, small, one job per element (labels, icons,
   states, progress). Big surfaces and the CTA stay black and white. */
.group-title,
.prob-num,
.product-demo-kicker,
.fgrid-eyebrow { color: #FF9A4D; }

/* Footer: the "Marcador" lockup as a ghost, cropped by the page bottom. */
.footer-wordmark {
  display: flex; justify-content: center; align-items: flex-start; gap: 0.24em;
  font-family: 'Sora', sans-serif; font-size: min(15vw, 230px); line-height: 1;
  letter-spacing: 0; margin-bottom: -0.32em; color: #fff; opacity: 0.06;
}
.footer-wordmark img { display: block; width: auto; height: 1.15em; }
.fw-st { display: flex; flex-direction: column; justify-content: space-between; height: 1.15em; }
.fw-a { font-size: 0.4em; font-weight: 600; letter-spacing: 0.34em; margin-right: -0.34em; line-height: 0.74; }
.fw-b { font-weight: 700; letter-spacing: 0.032em; margin-right: -0.032em; margin-left: -0.05em; line-height: 0.74; }

/* ------------------------------------------------------------------ logo -- */
/* "Marcador" lockup: the H spans two lines, FANTASY tracked out to the exact
   width of HALL. Everything is in em off .brand's font-size. */
.brand { font-size: 24px; align-items: flex-start; gap: 0.24em; line-height: 1; }
.brand-mark { display: block; width: auto; height: auto; }
.brand-mark img { display: block; width: auto; height: 1.15em; }
.brand-name { font-size: 1em; display: flex; flex-direction: column; justify-content: space-between; height: 1.15em; letter-spacing: 0; }
.brand-a { font-size: 0.4em; font-weight: 600; letter-spacing: 0.34em; margin-right: -0.34em; line-height: 0.74; color: #A1A1A1; }
.brand-b { font-weight: 700; letter-spacing: 0.032em; margin-right: -0.032em; margin-left: -0.05em; line-height: 0.74; color: #F5F5F4; }
@media (max-width: 380px) { .brand { font-size: 22px; } .brand-name { font-size: 1em; } }

/* --------------------------------------------------------------- buttons -- */
/* Hall Noir Kit (FANTASY HALL/marketing/kit): one shape, four roles.
   Lit = the primary action, the headline's gradient as a fill. Glass = the
   secondary, translucent with a rim of light on top (Resend's button with
   Apple's glass edge). Radius 14, not a pill: pills are for chips and the nav. */
:root {
  --hn-lit-ink: #1A0A02;
  --hn-rim: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --hn-glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.035) 100%);
  --hn-glass-line: rgba(255, 255, 255, 0.11);
  --hn-glass-blur: blur(22px) saturate(170%);
}
.btn { border-radius: 14px; letter-spacing: -0.01em; }
.btn:focus-visible { border-radius: 14px; outline: 2px solid #FF9A4D; }
.btn-lg { border-radius: 16px; }
.btn-sm { border-radius: 12px; }
.btn-primary {
  background-color: #FF9A4D;
  background-image: var(--hn-lit-grad);
  color: var(--hn-lit-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(120, 40, 0, 0.25),
    0 10px 28px -10px rgba(255, 122, 26, 0.55);
}
/* The sheen crosses once on hover: light catching the lit face. */
.btn-primary::after { display: block; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%); }
.btn-ghost {
  background-color: transparent;
  background-image: var(--hn-glass-fill);
  border: 1px solid var(--hn-glass-line);
  color: #F5F5F4;
  -webkit-backdrop-filter: var(--hn-glass-blur);
  backdrop-filter: var(--hn-glass-blur);
  box-shadow: var(--hn-rim);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: #FF9A4D;
    transform: translateY(-1px);
    filter: brightness(1.06) saturate(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(120, 40, 0, 0.25),
      0 16px 34px -12px rgba(255, 122, 26, 0.65);
  }
  .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }
}
/* One lit button per view: in the nav the CTA is glass, the hero keeps the lit one. */
.nav-actions .btn-primary.nav-desktop-only {
  background-image: var(--hn-glass-fill);
  background-color: rgba(255, 255, 255, 0.02);
  color: #F5F5F4;
  border: 1px solid var(--hn-glass-line);
  box-shadow: var(--hn-rim);
}
.nav-actions .btn-primary.nav-desktop-only::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-actions .btn-primary.nav-desktop-only:hover { filter: none; background-color: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); box-shadow: var(--hn-rim); }
}
/* Once the hero has scrolled away, the nav CTA becomes the lit one. */
.nav.scrolled .nav-actions .btn-primary.nav-desktop-only {
  background-image: var(--hn-lit-grad);
  color: var(--hn-lit-ink);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px -10px rgba(255, 122, 26, 0.55);
}

/* ------------------------------------------------------------------ glass - */
/* Liquid Glass on what floats: the nav capsule and the mobile CTA bar. */
@media (min-width: 921px) {
  .nav-inner { border-radius: 999px; }
  .nav.scrolled .nav-inner {
    background-color: rgba(12, 12, 12, 0.55);
    background-image: var(--hn-glass-fill);
    border-color: var(--hn-glass-line);
    -webkit-backdrop-filter: var(--hn-glass-blur);
    backdrop-filter: var(--hn-glass-blur);
    box-shadow: var(--hn-rim), 0 16px 40px -16px rgba(0, 0, 0, 0.9);
  }
  .nav.scrolled .nav-inner::after { left: 40px; right: 40px; }
  .nav-links > a { border-radius: 999px; }
}
@media (max-width: 920px) {
  .nav.scrolled {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: var(--hn-glass-blur);
    backdrop-filter: var(--hn-glass-blur);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
}
/* Mobile CTA: a floating glass pill instead of a full-width strip. */
.mcta-bar {
  inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.55) var(--hn-glass-fill);
  border: 1px solid var(--hn-glass-line);
  -webkit-backdrop-filter: var(--hn-glass-blur);
  backdrop-filter: var(--hn-glass-blur);
  box-shadow: var(--hn-rim), 0 16px 40px -16px rgba(0, 0, 0, 0.9);
  transform: translateY(calc(100% + 24px));
}
.mcta-bar.show { transform: none; }
.mcta-bar .btn { border-radius: 999px; }

@media (prefers-reduced-transparency: reduce) {
  .btn-ghost, .nav.scrolled .nav-inner, .nav.scrolled, .mcta-bar {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: #141414;
  }
}

/* ---------------------------------------------------------------- devices - */
/* Graphite titanium (Opal's devices), not the blue-grey: neutral metal that
   catches the room's cold light on two corners. */
.phone {
  background:
    linear-gradient(145deg,
      #6b6b6f 0%, #3a3a3d 7%, #1f1f21 20%, #161618 40%,
      #3b3b3f 52%, #141416 66%, #1d1d1f 84%, #58585c 95%, #77777b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 2.5px #0a0a0a,
    inset 0 2px 1px rgba(255, 255, 255, 0.22),
    0 40px 80px -36px rgba(0, 0, 0, 0.95),
    0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.iphone::before,
.ui-frame::before,
.phone::before {
  background-image:
    linear-gradient(180deg,
      transparent 0 15.5%, #4a4a4e 15.5% 19.5%,
      transparent 19.5% 24%, #4a4a4e 24% 32%,
      transparent 32% 34%, #4a4a4e 34% 42%,
      transparent 42% 100%),
    linear-gradient(180deg,
      transparent 0 27%, #4a4a4e 27% 40%, transparent 40% 100%);
}
/* Glare across the glass. */
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.015) 58%, transparent 64%);
}
/* The app's own primary inside the mockups matches the app: lit. */
.ph-cta {
  background: var(--hn-lit-grad);
  color: var(--hn-lit-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 14px -8px rgba(255, 122, 26, 0.6);
}

/* --------------------------------------------------------------- the pill - */
/* Announcement chip over the hero headline: hairline, grey type, one dot. */
.hn-announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 32px);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #A1A1A1;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.hn-announce-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hn-announce-arrow { color: #6B6B6B; transition: transform 0.35s var(--ease-expo); }
@media (hover: hover) and (pointer: fine) {
  .hn-announce:hover { border-color: rgba(255, 255, 255, 0.2); color: #F5F5F4; }
  .hn-announce:hover .hn-announce-arrow { transform: translateX(3px); }
}

/* ------------------------------------------------------------- hairlines -- */
/* Surfaces are almost not there: a 1px line and a highlight on the top edge. */
.feature-ic,
.fgrid-ic {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Our card in the comparison: hairline, with the light catching an orange
   top edge — the only card that gets one. */
.handoff-hall {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(70% 50% at 70% 0%, rgb(var(--accent-rgb) / 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgb(var(--accent-rgb) / 0.35);
}
.bridge-pill { border-color: rgb(var(--accent-rgb) / 0.3); background: #070504; color: #FF9A4D; }
.handoff-pills.ours .handoff-ic { color: var(--accent); background: rgb(var(--accent-rgb) / 0.08); }
.faq-item[open] .faq-icon {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0A0A0A;
}
@media (min-width: 921px) {
  .nav.scrolled .nav-inner {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }
}

/* ----------------------------------------------------------------- final -- */
/* The one lit object: the 3D monogram floats over the closing question. */
.final {
  background:
    radial-gradient(56% 46% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 72%),
    transparent;
}
.final-crest {
  width: clamp(200px, 22vw, 300px);
  height: clamp(200px, 22vw, 300px);
  margin-bottom: clamp(4px, 1vw, 16px);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.final-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}

/* Reduced transparency: drop the grain so text keeps full contrast. */
@media (prefers-reduced-transparency: reduce) {
  body::after { display: none; }
}

/* App mockups carry the same cropped mark, scaled to sit like the app's own. */
.ph-head-logo img,
.bridge-logo img,
.handoff-badge-logo img { object-fit: contain; transform: scale(0.82); }

/* --------------------------------------------------------- kit screens -- */
/* The phones show the app in the Hall Noir Kit look: one 750x1624 render per
   screen and language, iOS status bar included, from
   FANTASY HALL/marketing/kit/landing-screens.mjs. The page language picks the
   image; the other one is lazy and hidden, so it never downloads. */
.phone-screen.is-kit,
.ui-screen.is-kit {
  aspect-ratio: 750 / 1624;
  background: #000;
}
.is-kit .ph-shot { height: 100%; object-fit: cover; object-position: top center; }
html:not([lang="es"]) .is-kit [data-lang-only="es"],
html[lang="es"] .is-kit [data-lang-only="en"] { display: none; }
/* The far phones were hidden in Spanish because their captures were English. */
html[lang="es"] .phone-far { display: block; }
