/* ============================================================
   MENHIR — STYLESHEET
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Palette */
  --c-bg:           #fffbfa;
  --c-bg-warm:      #f2ede3;
  --c-dark:         #1C2B4A;
  --c-dark-mid:     #243047;
  --c-stone:        #8b7355;
  --c-stone-light:  #c4a882;
  --c-stone-pale:   #e8dfd0;
  --c-text:         #1e2b3a;
  --c-muted:        #72808c;
  --c-border:       rgba(139, 115, 85, 0.18);
  --c-white:        #ffffff;

  /* Glass */
  --glass-bg:       rgba(250, 249, 246, 0.70);
  --glass-border:   rgba(255, 255, 255, 0.55);
  --glass-blur:     blur(18px);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 2.5rem;
  --sp-3xl: 4rem;

  /* Layout */
  --max-w:     1140px;
  --nav-h:     72px;
  --banner-stack-h: 0px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(24, 34, 52, 0.06);
  --sh-md: 0 4px 24px rgba(24, 34, 52, 0.10);
  --sh-lg: 0 12px 48px rgba(24, 34, 52, 0.14);
  --sh-xl: 0 24px 80px rgba(24, 34, 52, 0.20);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 260ms ease;
  --t-slow: 480ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* Ensure the HTML `hidden` attribute always wins over display rules */
[hidden] { display: none !important; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-base),
              box-shadow var(--t-base), opacity var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--c-stone-light);
  outline-offset: 3px;
}

/* Primary: dark fill */
.btn--primary {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
}
.btn--primary:hover {
  background: var(--c-dark-mid);
  border-color: var(--c-dark-mid);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn--primary:active {
  transform: translateY(0);
}

/* Outline: transparent fill */
.btn--outline {
  background: transparent;
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.btn--outline:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* Ghost: for dark/image backgrounds */
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.60);
}

/* Full-width variant */
.btn--full {
  width: 100%;
}

/* ============================================================
   GLASS CARD UTILITY
   ============================================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ============================================================
   SITE BANNERS (APPLE-STYLE GLASS)
   ============================================================ */

.site-banners {
  position: relative;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.5rem var(--sp-md) 0.2rem;
}

.site-banner {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    0 10px 26px rgba(24, 34, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  color: rgba(24, 34, 52, 0.92);
}

.site-banner__icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.site-banner__copy {
  display: inline-block;
}

.site-banner--info {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(115deg, rgba(95, 140, 205, 0.16) 0%, rgba(95, 140, 205, 0.08) 100%);
}

.site-banner--warning {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(115deg, rgba(214, 149, 44, 0.18) 0%, rgba(214, 149, 44, 0.09) 100%);
}

.site-banner--success {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(115deg, rgba(54, 156, 116, 0.16) 0%, rgba(54, 156, 116, 0.08) 100%);
}

.site-banner--critical {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%),
    linear-gradient(115deg, rgba(196, 78, 78, 0.2) 0%, rgba(196, 78, 78, 0.1) 100%);
}

/* ============================================================
   SCROLL-TRIGGERED FADE-IN
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered grid children */
.features__grid .feature-card:nth-child(2).fade-in  { transition-delay: 0.13s; }
.features__grid .feature-card:nth-child(3).fade-in  { transition-delay: 0.26s; }
.audience__grid .audience-card:nth-child(2).fade-in { transition-delay: 0.13s; }
.audience__grid .audience-card:nth-child(3).fade-in { transition-delay: 0.26s; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--t-base), backdrop-filter var(--t-base),
              box-shadow var(--t-base);
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: var(--sp-lg);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-white);
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.nav.scrolled .nav__logo { color: var(--c-dark); }

.nav__logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-inline-start: auto;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--t-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: currentColor;
  transition: right var(--t-base);
}

.nav__links a:hover::after { right: 0; }

.nav__links a:hover { color: var(--c-white); }
.nav.scrolled .nav__links a { color: var(--c-muted); }
.nav.scrolled .nav__links a:hover { color: var(--c-dark); }

/* Login button */
.nav__login {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
}
.nav__login:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.70);
}
.nav.scrolled .nav__login {
  color: var(--c-dark);
  border-color: var(--c-dark);
}
.nav.scrolled .nav__login:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xs);
  color: var(--c-white);
  border-radius: var(--r-sm);
  margin-inline-start: auto;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__hamburger:hover { background: rgba(255, 255, 255, 0.12); }
.nav.scrolled .nav__hamburger { color: var(--c-dark); }
.nav.scrolled .nav__hamburger:hover { background: var(--c-stone-pale); }
.nav__hamburger svg { width: 22px; height: 22px; }

/* Mobile dropdown */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(250, 249, 246, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  font-size: 1rem;
  font-weight: 450;
  color: var(--c-dark);
  padding: 0.875rem var(--sp-lg);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.nav__mobile a:hover { background: var(--c-stone-pale); }
/* Primary CTA in drawer: .nav__mobile a wins specificity over .btn--primary alone,
   so we must set light text or it becomes dark-on-dark (invisible). */
.nav__mobile .btn--primary {
  margin: var(--sp-md) var(--sp-lg);
  width: calc(100% - var(--sp-lg) * 2);
  justify-content: center;
  border: none;
  color: var(--c-white);
}
.nav__mobile a.btn--primary:hover {
  background: var(--c-dark-mid);
  color: var(--c-white);
}

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

.hero {
  position: relative;
  margin-top: calc(-1 * (var(--nav-h) + var(--banner-stack-h)));
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image — dual layers for crossfading time-of-day swaps */
.hero__bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero__bg--layer {
  opacity: 0;
  transition: opacity 2s ease;
}

.hero__bg--layer.is-active {
  opacity: 1;
}

/* Moon phase — multiply shade over baked-in night moon (visible on bg-night) */
.hero__moon {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  mix-blend-mode: multiply;
  border-radius: 50%;
}

html.moon-phase.bg-night .hero__moon {
  opacity: 1;
  visibility: visible;
}

.hero__moon.is-placing {
  pointer-events: none; /* host handles drag — canvas is visual only */
  cursor: grab;
  z-index: 8;
  outline: 2px solid #ff4d4d;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  mix-blend-mode: normal;
}

.hero.is-moon-placing .hero__bg-stack {
  z-index: 20;
  cursor: crosshair;
  pointer-events: auto;
}

.hero.is-moon-placing .hero__overlay,
.hero.is-moon-placing .hero__content,
.hero.is-moon-placing .hero__scroll-hint,
.hero.is-moon-placing .hero__sun,
.hero.is-moon-placing .hero__sunbeams,
.hero.is-moon-placing .hero__shooting-stars {
  pointer-events: none;
}

.hero.is-moon-placing .hero__moon.is-placing.is-dragging,
.hero.is-moon-placing .hero__bg-stack.is-dragging {
  cursor: grabbing;
}

.moon-place-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(18, 24, 32, 0.94);
  border: 1px solid #334155;
  color: #f4f7fb;
  font: 13px/1.45 "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.moon-place-panel h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.moon-place-panel p {
  margin: 0 0 10px;
  color: #9aa7b8;
  font-size: 12px;
}

.moon-place-panel .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.moon-place-panel label {
  display: grid;
  gap: 4px;
  color: #9aa7b8;
  font-size: 11px;
  flex: 1;
  min-width: 140px;
}

.moon-place-panel input[type="range"] {
  width: 100%;
}

.moon-place-panel button,
.moon-place-panel select {
  appearance: none;
  border: 1px solid #3b4a5f;
  background: #243041;
  color: #f4f7fb;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.moon-place-panel button.primary {
  background: #6ea8fe;
  border-color: #6ea8fe;
  color: #0b1220;
  font-weight: 600;
}

.moon-place-panel textarea {
  width: 100%;
  min-height: 96px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #3b4a5f;
  background: #0f1520;
  color: #d7e3f4;
  padding: 8px;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.moon-place-panel .status {
  margin-top: 6px;
  color: #9aa7b8;
  font-size: 11px;
}

.bg-dawn .hero__bg {
  background-position: center calc(30% - 50px);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg--layer {
    transition: none;
  }
}

/* Rising sun god-rays — right-hand peaks */
.hero__sunbeams {
  --sun-x: 88%;
  --sun-y: 58%;
  --sun-ray-opacity: 0.9;
  --sun-glow-opacity: 1;
  --sun-ray-warmth: 255, 210, 150;
  --sun-glow-warmth: 255, 190, 110;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 30%, rgba(0, 0, 0, 0.55) 42%, transparent 54%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 48%, #000 100%);
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 30%, rgba(0, 0, 0, 0.55) 42%, transparent 54%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 48%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__sunbeams-glow,
.hero__sunbeams-rays {
  position: absolute;
  inset: 0;
}

.hero__sunbeams-glow {
  background: radial-gradient(
    circle at var(--sun-x) var(--sun-y),
    rgba(var(--sun-glow-warmth), 0.78) 0%,
    rgba(var(--sun-glow-warmth), 0.35) 18%,
    rgba(var(--sun-glow-warmth), 0.13) 34%,
    transparent 58%
  );
  opacity: var(--sun-glow-opacity);
  filter: blur(10px);
  transform: scale(1.08);
  animation: heroSunGlow 16s ease-in-out infinite alternate;
  will-change: transform, opacity, filter;
}

.hero__sunbeams-rays {
  background: repeating-conic-gradient(
    from 212deg at var(--sun-x) var(--sun-y),
    transparent 0deg 7deg,
    rgba(var(--sun-ray-warmth), 0.2) 7deg 8.4deg,
    transparent 8.4deg 15deg
  );
  opacity: var(--sun-ray-opacity);
  filter: blur(14px);
  transform-origin: var(--sun-x) var(--sun-y);
  animation: heroSunRays 20s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero__sunbeams-rays::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: repeating-conic-gradient(
    from 198deg at var(--sun-x) var(--sun-y),
    transparent 0deg 12deg,
    rgba(var(--sun-ray-warmth), 0.11) 12deg 13.2deg,
    transparent 13.2deg 24deg
  );
  filter: blur(20px);
  transform-origin: var(--sun-x) var(--sun-y);
  animation: heroSunRaysDrift 28s ease-in-out infinite alternate-reverse;
  will-change: transform, opacity;
}

@keyframes heroSunGlow {
  0% {
    opacity: calc(var(--sun-glow-opacity) * 0.74);
    transform: scale(1) translateY(0.6%);
    filter: blur(9px);
  }
  55% {
    opacity: calc(var(--sun-glow-opacity) * 1.06);
    filter: blur(13px);
  }
  100% {
    opacity: var(--sun-glow-opacity);
    transform: scale(1.14) translateY(-0.7%);
    filter: blur(11px);
  }
}

@keyframes heroSunRays {
  0% {
    opacity: calc(var(--sun-ray-opacity) * 0.62);
    transform: rotate(-2.8deg) scale(0.97);
  }
  100% {
    opacity: var(--sun-ray-opacity);
    transform: rotate(3.2deg) scale(1.05);
  }
}

@keyframes heroSunRaysDrift {
  0% {
    opacity: 0.53;
    transform: rotate(-1.6deg) scale(1.02);
  }
  100% {
    opacity: 0.9;
    transform: rotate(2.4deg) scale(1.08);
  }
}

/* Hero sun — follows a quadratic Bézier across the sky by local time.
   Occlusion uses hero-sky-*.webp as a cover-aligned mask (no visible fg layer). */
.hero__sun {
  --day-sun-bloom-size: min(15vw, 140px);
  --day-sun-intensity: 0.68;
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.2s ease;
  /* Size/position set in JS to match wallpaper cover crop (Safari-safe). */
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center 30%;
  mask-position: center 30%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero__sun.is-hidden {
  opacity: 0;
}

.hero__sun-body {
  position: absolute;
  left: 6%;
  top: 48%;
  width: var(--day-sun-bloom-size);
  height: var(--day-sun-bloom-size);
  transform: translate3d(-50%, -50%, 0);
  opacity: var(--day-sun-intensity);
  isolation: isolate;
  will-change: left, top, transform;
  pointer-events: none;
}

.hero__sun.is-ready .hero__sun-body {
  transition: left 2s ease, top 2s ease;
}

.hero__sun-atmosphere,
.hero__sun-corona,
.hero__sun-disc {
  position: absolute;
  border-radius: 50%;
}

.hero__sun-atmosphere {
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(255, 252, 248, 0.4) 0%,
    rgba(255, 248, 238, 0.2) 24%,
    rgba(255, 242, 228, 0.08) 44%,
    rgba(235, 244, 255, 0.035) 58%,
    transparent 72%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: heroDaySunAtmosphere 18s ease-in-out infinite alternate;
  will-change: opacity;
}

.hero__sun-corona {
  inset: 18%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 253, 247, 0.28) 38%,
    rgba(255, 246, 232, 0.1) 62%,
    transparent 82%
  );
  filter: blur(3px);
  mix-blend-mode: screen;
}

.hero__sun-disc {
  inset: 36%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 254, 251, 0.9) 28%,
      rgba(255, 250, 242, 0.84) 52%,
      rgba(255, 243, 228, 0.76) 72%,
      rgba(255, 232, 200, 0.66) 86%,
      rgba(245, 212, 168, 0.56) 94%,
      rgba(232, 192, 144, 0.48) 100%
    );
  box-shadow:
    inset 0 0 2px 0 rgba(255, 255, 255, 0.7),
    0 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 12px 4px rgba(255, 252, 245, 0.24);
  filter: blur(0.6px) saturate(1.02);
}

.hero__sun-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 58%,
    rgba(220, 170, 110, 0.05) 78%,
    rgba(200, 140, 80, 0.1) 92%,
    rgba(180, 120, 60, 0.14) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.65;
}

@keyframes heroDaySunAtmosphere {
  0% {
    opacity: 0.84;
    transform: scale(0.99);
  }
  100% {
    opacity: 0.96;
    transform: scale(1.02);
  }
}

.hero__sun-play-label {
  position: absolute;
  top: calc(var(--nav-h) + var(--banner-stack-h) + 0.75rem);
  right: 1rem;
  z-index: 6;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(24, 34, 52, 0.55);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.hero__moon-play-label {
  position: absolute;
  top: calc(var(--nav-h) + var(--banner-stack-h) + 0.75rem);
  right: 1rem;
  z-index: 30;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(24, 34, 52, 0.6);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.bg-dawn .hero__sun,
.bg-day .hero__sun,
.bg-dusk .hero__sun {
  display: block;
}

.bg-dawn .hero__sunbeams,
.bg-day .hero__sunbeams,
.bg-dusk .hero__sunbeams {
  display: none;
}

/* Per time-of-day tuning */
.bg-dawn .hero__sunbeams {
  --sun-x: 86%;
  --sun-y: 56%;
  --sun-ray-opacity: 0.73;
  --sun-glow-opacity: 0.9;
  --sun-ray-warmth: 255, 205, 165;
  --sun-glow-warmth: 255, 175, 120;
}

.bg-day .hero__sunbeams {
  --sun-x: 90%;
  --sun-y: 54%;
  --sun-ray-opacity: 0.43;
  --sun-glow-opacity: 0.6;
  --sun-ray-warmth: 255, 235, 200;
  --sun-glow-warmth: 255, 220, 170;
}

.bg-dusk .hero__sunbeams {
  --sun-x: 87%;
  --sun-y: 57%;
  --sun-ray-opacity: 1;
  --sun-glow-opacity: 1;
  --sun-ray-warmth: 255, 165, 95;
  --sun-glow-warmth: 255, 130, 70;
}

.bg-night .hero__sunbeams {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__sunbeams-glow,
  .hero__sunbeams-rays,
  .hero__sunbeams-rays::before,
  .hero__sun-atmosphere {
    animation: none;
  }

  .hero__sun.is-ready .hero__sun-body {
    transition: none;
  }
}

/* Dark gradient overlay — below sun/fg so the disc stays legible in sky */
.hero__overlay {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(24, 34, 52, 0.75) 0%,
    rgba(24, 34, 52, 0.55) 55%,
    rgba(24, 34, 52, 0.38) 100%
  );
}

.hero__shooting-stars {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 40%,
    transparent 50%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 40%,
    transparent 50%
  );
}

.hero__shooting-star {
  position: absolute;
  height: 1px;
  border-radius: 999px;
  opacity: 0;
  transform-origin: 100% 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0.27) 86%,
    rgba(255, 255, 255, 0.63) 100%
  );
  box-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.12);
  animation: heroShootingStar var(--shoot-duration, 1.4s) ease-in forwards;
  will-change: transform, opacity;
}

@keyframes heroShootingStar {
  0% {
    opacity: 0;
    transform: translate(-100%, -50%) rotate(var(--shoot-angle, 75deg))
      translate3d(0, 0, 0) scaleX(0.35);
  }
  18% {
    opacity: 0.63;
  }
  72% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate(-100%, -50%) rotate(var(--shoot-angle, 75deg))
      translate3d(var(--shoot-distance, 280px), 0, 0) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__shooting-stars {
    display: none;
  }
}

/* Content */
.hero__content {
  position: relative;
  z-index: 6;
  padding-block: calc(var(--nav-h) + var(--banner-stack-h) + var(--sp-2xl) - 175px) var(--sp-3xl);
}

.hero__text {
  max-width: 680px;
  opacity: 0;
  transform: translateY(32px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.075;
  letter-spacing: -0.035em;
  color: var(--c-white);
  margin-bottom: var(--sp-md);
}

.hero__subheadline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 350;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.80);
  max-width: 540px;
  margin-bottom: var(--sp-xl);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: rgba(255, 255, 255, 0.45);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero__scroll-hint svg { width: 24px; height: 24px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.80; }
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding-block: var(--sp-3xl);
  background: var(--c-bg);
  scroll-margin-top: calc((var(--nav-h) + 40px) / 2);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.feature-card {
  /* Solid card surface, matching .how-step — the old .glass treatment was
     cream-on-cream against --c-bg, so the card boundary vanished and the
     equal-height grid read as stray text in whitespace at wide viewports. */
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--c-dark);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--c-white);
  flex-shrink: 0;
}
.feature-card__icon svg { width: 21px; height: 21px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--c-dark);
  margin-bottom: var(--sp-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.72;
}

/* ============================================================
   PRODUCT PREVIEW
   ============================================================ */

.product {
  padding-block: var(--sp-3xl);
  background: var(--c-bg-warm);
}

.product__copy {
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
  text-align: center;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.72;
}

/* Perspective wrapper for 3-D tilt */
.product__frame {
  perspective: 1400px;
}

/* Browser chrome mockup */
.browser-frame {
  max-width: 920px;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transform: rotateX(3.5deg) rotateY(-1deg) scale(0.98);
  transform-origin: center top;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.browser-frame:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  box-shadow: 0 32px 96px rgba(24, 34, 52, 0.22);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ececec;
  border-bottom: 1px solid #ddd;
}

.browser-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.browser-frame__dot:nth-child(1) { background: #ff5f57; }
.browser-frame__dot:nth-child(2) { background: #febc2e; }
.browser-frame__dot:nth-child(3) { background: #28c840; }

.browser-frame__url {
  flex: 1;
  min-width: 0;
  margin-inline: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #999;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame__screen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* ============================================================
   PRODUCT MOCK SCREENS — faithful miniatures of app.menhiros.com
   Rebuilt from the real agent-app codebase (menhir-portal):
   navy #1C2B4A sidebar, #F4F4F5 canvas, white cards, real nav,
   real top bar, real status-pill styling, real pipeline colours.
   ============================================================ */

.mh-screen {
  display: flex;
  height: 100%;
  background: #F4F4F5;
  color: #111827;
  font-family: var(--font-body);
  line-height: 1.4;
  text-align: left;
  overflow: hidden;
}
.mh-screen svg { display: block; flex-shrink: 0; }
.mh-ic { width: 11px; height: 11px; flex-shrink: 0; }

/* ---- Sidebar ---- */
.mh-sb { width: 168px; flex-shrink: 0; background: #1C2B4A; display: flex; flex-direction: column; }
.mh-sb-head { display: flex; align-items: center; gap: 6px; padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mh-sb-word { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: #fff; letter-spacing: -0.01em; }
.mh-sb-plan { background: #72808c; color: #fff; font-size: 6.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 999px; padding: 2px 5px; line-height: 1; }
.mh-sb-nav { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; min-height: 0; }
.mh-sb-i { display: flex; align-items: center; gap: 6px; padding: 4.5px 7px; border-left: 2px solid transparent; border-radius: 3px; font-size: 10px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.mh-sb-i.is-on { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; border-left-color: #fff; }
.mh-sb-i .mh-chev { width: 9px; height: 9px; margin-left: auto; opacity: 0.7; }
.mh-sb-set { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 7px; }
.mh-sb-topo { border-top: 0.5px solid rgba(255, 255, 255, 0.08); padding: 7px 11px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mh-sb-topo p { margin: 0; font-size: 8px; font-weight: 500; color: rgba(255, 255, 255, 0.75); line-height: 1.3; }
.mh-sb-topo span { font-size: 7.5px; color: rgba(255, 255, 255, 0.4); }
.mh-sb-sw { width: 22px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); position: relative; flex-shrink: 0; }
.mh-sb-sw::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; top: 2px; left: 2px; }
.mh-sb-foot { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 7px 11px 9px; }
.mh-sb-user { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.mh-sb-av { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); font-size: 6.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mh-sb-user > span:last-child { font-size: 8.5px; color: rgba(255, 255, 255, 0.5); }
.mh-sb-out { display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: rgba(255, 255, 255, 0.4); }
.mh-sb-out .mh-ic { width: 9px; height: 9px; }

/* ---- Content column + top bar ---- */
.mh-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mh-tb { height: 38px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.mh-tb-compose { display: flex; align-items: center; gap: 5px; border: 1px solid #e5e7eb; border-radius: 4px; padding: 4px 8px; font-size: 9.5px; color: #6b7280; white-space: nowrap; }
.mh-tb-compose .mh-ic { width: 9px; height: 9px; }
.mh-tb-search { width: 290px; min-width: 0; height: 26px; background: #f3f4f6; border-radius: 8px; display: flex; align-items: center; gap: 6px; padding: 0 9px; }
.mh-tb-search .mh-ic { width: 10px; height: 10px; color: #9ca3af; }
.mh-tb-search .mh-lbl { flex: 1; min-width: 0; font-size: 9.5px; color: #9ca3af; white-space: nowrap; overflow: hidden; }
.mh-tb-k { font-size: 8px; color: #9ca3af; font-family: ui-monospace, monospace; }
.mh-tb-inbox { position: relative; width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #6b7280; flex-shrink: 0; }
.mh-tb-inbox .mh-ic { width: 13px; height: 13px; }
.mh-tb-badge { position: absolute; top: -2px; right: -3px; background: #ef4444; color: #fff; font-size: 6.5px; font-weight: 600; min-width: 11px; height: 11px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 2px; }
.mh-tb-new { display: flex; align-items: center; gap: 4px; background: #1C2B4A; color: #fff; border-radius: 4px; padding: 4.5px 10px; font-size: 9.5px; font-weight: 500; white-space: nowrap; }
.mh-tb-new .mh-ic { width: 9px; height: 9px; }
.mh-mn { flex: 1; min-height: 0; overflow: hidden; }
.mh-pad { padding: 14px 18px; }

/* ---- Shared primitives ---- */
.mh-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.mh-lab { font-size: 7.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; }
.mh-pill { display: inline-block; font-size: 6.8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 5px; border-radius: 3px; line-height: 1.2; white-space: nowrap; }
.mh-p-open { background: #dcfce7; color: #15803d; }
.mh-p-conf { background: #dbeafe; color: #1d4ed8; }
.mh-p-full { background: #ffedd5; color: #c2410c; }
.mh-p-conf2 { background: #eff6ff; color: #1d4ed8; }
.mh-p-paid { background: #f0fdf4; color: #15803d; }
.mh-p-draft { background: #f3f4f6; color: #6b7280; }
.mh-p-sent { background: #fffbeb; color: #b45309; }

/* ---- Dashboard ---- */
.mh-greet { font-size: 14.5px; font-weight: 600; color: #111827; margin: 0 0 10px; }
.mh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mh-kpis + .mh-kpis { margin-top: 8px; }
.mh-kpi { padding: 8px 11px; }
.mh-kpi .mh-lab { display: block; margin-bottom: 2px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-kpi b { font-size: 15px; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }
.mh-mid { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; margin-top: 12px; }
.mh-panel { padding: 10px 13px; }
.mh-panel-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mh-seg { display: flex; gap: 3px; align-items: center; }
.mh-seg span { font-size: 8px; padding: 2px 7px; border-radius: 999px; color: #9ca3af; white-space: nowrap; }
.mh-seg .is-on { background: #1C2B4A; color: #fff; }
.mh-plink { margin-left: auto; display: flex; align-items: center; gap: 3px; font-size: 8.5px; font-weight: 500; color: #1C2B4A; white-space: nowrap; }
.mh-plink .mh-ic { width: 8px; height: 8px; }
.mh-trow { display: flex; align-items: flex-start; gap: 7px; padding: 6.5px 0; border-top: 1px solid #f3f4f6; }
.mh-trow:first-of-type { border-top: 0; }
.mh-tchk { width: 9px; height: 9px; border: 1px solid #d1d5db; border-radius: 2px; margin-top: 2px; flex-shrink: 0; }
.mh-tmain { flex: 1; min-width: 0; }
.mh-tt { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mh-tt b { font-size: 9.5px; font-weight: 500; color: #1C2B4A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-tbadge { font-size: 6.8px; font-weight: 500; padding: 1.5px 4px; border-radius: 3px; flex-shrink: 0; }
.mh-tbadge--blue { background: #eff6ff; color: #2563eb; }
.mh-tbadge--purple { background: #faf5ff; color: #9333ea; }
.mh-tbadge--gray { background: #f3f4f6; color: #6b7280; }
.mh-tsub { font-size: 8px; color: #9ca3af; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-tdue { font-size: 8.5px; color: #9ca3af; flex-shrink: 0; margin-top: 1px; white-space: nowrap; }
.mh-tdue--red { color: #ef4444; font-weight: 500; }
.mh-drow { padding: 7px 0; border-top: 1px solid #f3f4f6; }
.mh-drow:first-of-type { border-top: 0; }
.mh-drow b { display: block; font-size: 9.5px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-drow .mh-dd { font-size: 8px; color: #9ca3af; }
.mh-dcap { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mh-dcap .mh-lab { font-size: 6.5px; flex-shrink: 0; }
.mh-dbar { flex: 1; min-width: 0; height: 4px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.mh-dbar i { display: block; height: 100%; border-radius: 999px; background: #22c55e; }
.mh-dpct { font-size: 7.5px; color: #4b5563; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mh-rb { margin-top: 10px; }
.mh-rbrow { display: flex; align-items: center; gap: 10px; padding: 6.5px 0; border-top: 1px solid #f3f4f6; }
.mh-rbrow:first-of-type { border-top: 0; }
.mh-rbmain { flex: 1; min-width: 0; }
.mh-rbmain p { margin: 0; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-rbmain b { font-weight: 500; color: #111827; }
.mh-rbmain .mh-rt { color: #6b7280; }
.mh-rbmain .mh-rref { font-size: 8px; color: #9ca3af; }
.mh-rbst { text-align: right; flex-shrink: 0; }
.mh-rbst b { display: block; font-size: 8.5px; font-weight: 500; }
.mh-rbst span { font-size: 8px; color: #9ca3af; }
.mh-st-green { color: #16a34a; }
.mh-st-amber { color: #d97706; }
.mh-st-blue { color: #2563eb; }

/* ---- Traveller record ---- */
.mh-crumb { display: flex; align-items: center; gap: 4px; font-size: 8px; color: #9ca3af; margin-bottom: 6px; }
.mh-crumb .mh-ic { width: 8px; height: 8px; }
.mh-hero { padding: 12px 15px; margin-bottom: 10px; }
.mh-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mh-hero-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mh-hero-av { width: 26px; height: 26px; border-radius: 50%; background: rgba(28, 43, 74, 0.1); color: #1C2B4A; font-size: 9px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-transform: uppercase; flex-shrink: 0; }
.mh-hero-id h3 { margin: 0; font-size: 14px; font-weight: 600; color: #111827; font-family: var(--font-body); }
.mh-hero-meta { font-size: 8.5px; color: #6b7280; margin: 2px 0 0; }
.mh-hero-btns { display: flex; gap: 6px; flex-shrink: 0; }
.mh-btn-ghost { border: 1px solid #e5e7eb; background: #fff; border-radius: 4px; padding: 4px 9px; font-size: 8.5px; font-weight: 500; color: #374151; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.mh-btn-ghost .mh-ic { width: 8px; height: 8px; }
.mh-btn-navy { background: #1C2B4A; color: #fff; border-radius: 4px; padding: 4.5px 10px; font-size: 8.5px; font-weight: 500; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.mh-btn-navy .mh-ic { width: 8px; height: 8px; }
.mh-fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mh-fgrid .mh-lab { display: block; margin-bottom: 2px; font-weight: 500; }
.mh-fgrid p { margin: 0; font-size: 9.5px; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-fgrid p.is-big { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mh-fgrid p.is-mid { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mh-tags { padding: 9px 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-tags h4 { margin: 0 4px 0 0; font-size: 9.5px; font-weight: 600; color: #374151; font-family: var(--font-body); }
.mh-tag { font-size: 8px; font-weight: 500; border-radius: 999px; padding: 2.5px 8px; white-space: nowrap; }
.mh-tag--green { background: #f0fdf4; color: #15803d; }
.mh-tag--amber { background: #fffbeb; color: #b45309; }
.mh-tag--blue { background: #eff6ff; color: #1d4ed8; }
.mh-tag--add { border: 1px dashed #d1d5db; color: #9ca3af; background: #fff; }
.mh-stats { padding: 10px 15px; margin-bottom: 10px; }
.mh-tblcard { overflow: hidden; }
.mh-tblcard-h { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border-bottom: 1px solid #f3f4f6; }
.mh-tblcard-h h4 { margin: 0; font-size: 9.5px; font-weight: 600; color: #374151; font-family: var(--font-body); }
.mh-tinfo { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #d1d5db; color: #9ca3af; font-size: 7px; display: flex; align-items: center; justify-content: center; }
.mh-mtable { width: 100%; border-collapse: collapse; }
.mh-mtable th { text-align: left; font-size: 7px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; padding: 6px 15px; border-bottom: 1px solid #f9fafb; }
.mh-mtable td { font-size: 9px; color: #374151; padding: 6.5px 15px; border-bottom: 1px solid #f9fafb; white-space: nowrap; }
.mh-mtable td.is-ref { color: #1C2B4A; font-weight: 500; }
.mh-mtable tr:last-child td { border-bottom: none; }

/* ---- Itinerary builder ---- */
.mh-ib { display: flex; height: 100%; }
.mh-ib-side { width: 128px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.mh-ib-side-h { padding: 9px 11px; border-bottom: 1px solid #f3f4f6; }
.mh-ib-v { padding: 8px 11px; border-bottom: 1px solid #f9fafb; }
.mh-ib-v.is-on { background: #f9fafb; }
.mh-ib-v-t { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
.mh-ib-v-t b { font-size: 8.5px; font-weight: 500; color: #111827; white-space: nowrap; }
.mh-ib-v p { margin: 0; font-size: 7.5px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-ib-nv { margin-top: auto; padding: 9px 11px; border-top: 1px solid #f3f4f6; }
.mh-ib-nv span { display: block; text-align: center; font-size: 8px; font-weight: 500; color: #1C2B4A; border: 1px solid rgba(28, 43, 74, 0.2); border-radius: 5px; padding: 4px 0; }
.mh-ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mh-ib-top { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 8px 14px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mh-ib-back { font-size: 9px; color: #9ca3af; white-space: nowrap; }
.mh-ib-sep { color: #d1d5db; font-size: 9px; }
.mh-ib-name { font-size: 9.5px; font-weight: 500; color: #111827; white-space: nowrap; }
.mh-ib-cta { margin-left: auto; background: #1C2B4A; color: #fff; font-size: 8.5px; font-weight: 500; border-radius: 5px; padding: 5px 11px; white-space: nowrap; }
.mh-ib-body { flex: 1; overflow: hidden; padding: 11px 15px; display: flex; flex-direction: column; gap: 9px; }
.mh-day { overflow: hidden; }
.mh-day-h { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: rgba(249, 250, 251, 0.7); border-bottom: 1px solid #f3f4f6; }
.mh-day-h b { font-size: 9.5px; font-weight: 600; color: #374151; }
.mh-day-h span { font-size: 7.5px; color: #9ca3af; }
.mh-sect { padding: 5px 12px 1px; }
.mh-sect span { font-size: 7.5px; font-weight: 500; letter-spacing: 0.04em; color: #9ca3af; }
.mh-item { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-bottom: 1px solid #f9fafb; }
.mh-item .mh-ic { width: 10px; height: 10px; color: #94a3b8; }
.mh-item b { flex: 1; min-width: 0; font-size: 9px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-item .mh-sup { font-size: 7.5px; color: #9ca3af; white-space: nowrap; }
.mh-item .mh-tm { font-size: 7.5px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.mh-ibadge { font-size: 7px; font-weight: 500; padding: 1.5px 4.5px; border-radius: 3px; white-space: nowrap; }
.mh-ib-acc { background: #eff6ff; color: #1d4ed8; }
.mh-ib-fly { background: #faf5ff; color: #7e22ce; }
.mh-ib-act { background: #f0fdf4; color: #15803d; }
.mh-ib-tra { background: #fffbeb; color: #b45309; }
.mh-ib-meal { background: #fff7ed; color: #c2410c; }
.mh-additem { padding: 6px 12px; border-top: 1px solid #f9fafb; font-size: 8px; font-weight: 500; color: #1C2B4A; }
.mh-addday { border: 1px dashed #e5e7eb; border-radius: 8px; text-align: center; padding: 7px; font-size: 9px; color: #9ca3af; }

/* ---- Pipeline ---- */
.mh-pl-h h3 { margin: 0; font-size: 14px; font-weight: 600; color: #111827; font-family: var(--font-body); }
.mh-pl-h p { margin: 1px 0 0; font-size: 9px; color: #6b7280; }
.mh-pl-ctl { display: flex; align-items: center; gap: 6px; margin: 9px 0; }
.mh-pl-search { width: 168px; border: 1px solid #e5e7eb; background: #fff; border-radius: 5px; padding: 4px 8px; font-size: 8.5px; color: #c4c8ce; white-space: nowrap; overflow: hidden; }
.mh-pl-stale { border: 1px solid #e5e7eb; background: #fff; border-radius: 5px; padding: 4px 8px; font-size: 8.5px; color: #6b7280; white-space: nowrap; }
.mh-pl-new { margin-left: auto; }
.mh-kb { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: stretch; }
.mh-kcol { background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 6px 6px; padding: 6px; min-height: 322px; display: flex; flex-direction: column; }
.mh-kcol-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.mh-kcol-h b { font-size: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-kcol-h span { font-size: 7.5px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.mh-ktotal { font-size: 8px; font-weight: 500; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.mh-kcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 5px 6px; margin-bottom: 5px; }
.mh-kcard b { display: block; font-size: 8.2px; font-weight: 500; color: #111827; line-height: 1.3; }
.mh-kcard .mh-amt { font-size: 8.2px; font-weight: 600; color: #1C2B4A; font-variant-numeric: tabular-nums; margin: 2px 0 1px; }
.mh-kcard .mh-who { font-size: 7.4px; color: #6b7280; }
.mh-kcard .mh-cls { font-size: 6.8px; color: #9ca3af; margin-top: 2px; }
.mh-kcard.is-stale { border-left: 2px solid #fbbf24; }
.mh-kstale-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 3px; }
.mh-kstale-chip { font-size: 6.5px; font-weight: 500; color: #d97706; background: #fffbeb; border-radius: 2px; padding: 1px 3px; flex-shrink: 0; }
.mh-kconvert { margin-top: 5px; text-align: center; background: #EAF3DE; color: #27500A; font-size: 7.2px; font-weight: 500; border-radius: 5px; padding: 3.5px 0; }
.mh-kcard.is-dead { opacity: 0.6; border-color: #f3f4f6; }
.mh-kcard.is-dead b { text-decoration: line-through; color: #9ca3af; }
.mh-kfoot { margin-top: 8px; background: #fff; border-top: 0.5px solid #e5e7eb; border-radius: 6px; padding: 6px 4px; }
.mh-kfoot-r1 { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px; }
.mh-kfoot-r1 span { font-size: 8px; color: #9ca3af; }
.mh-kfoot-r1 b { font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: #111827; }
.mh-kseg { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: #f3f4f6; margin: 0 4px 6px; }
.mh-kpills { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 4px; }
.mh-kpill { border-radius: 3px; text-align: center; font-size: 7.2px; font-weight: 500; padding: 2.5px 0; font-variant-numeric: tabular-nums; }

/* ---- Mock screens: responsive (mirrors the 4/3 + 1/1 frame ratios) ---- */
@media (max-width: 768px) {
  .mh-sb { width: 44px; }
  .mh-sb-head,
  .mh-sb-topo,
  .mh-sb-foot { display: none; }
  .mh-sb-i { justify-content: center; padding: 8px 0; border-left: none; }
  .mh-sb-i.is-on { border-left: none; }
  .mh-sb-i .mh-lbl,
  .mh-sb-i .mh-chev { display: none; }
  .mh-sb-i .mh-ic { width: 14px; height: 14px; }
  .mh-tb { gap: 6px; padding: 0 10px; }
  .mh-tb-compose .mh-lbl,
  .mh-tb-k { display: none; }
  .mh-tb-search { flex: 1; width: auto; }
  .mh-pad { padding: 12px; }
  .mh-mid { grid-template-columns: 1fr; }
  .mh-kpi b { font-size: 12px; }
  .mh-fgrid { grid-template-columns: repeat(2, 1fr); }
  .mh-ib-side { display: none; }
  .mh-kb { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .mh-kcol { flex: 0 0 auto; width: 6.5rem; min-height: 0; }
  .mh-kpills { display: none; }
}

/* ============================================================
   PHONE MOCK — the app's real mobile presentation, shown inside
   the carousel on phone widths instead of the desktop frame.
   Mirrors menhir-portal's mobile code paths: MobileTopBar,
   2-col KPIs, MobileRecordCard stacks, Versions toggle,
   snap-scroll pipeline with tap-to-Move.
   ============================================================ */

.mh-phone {
  display: none;
  position: relative;
  width: min(360px, 100%);
  margin-inline: auto;
  background: #0d1117;
  border-radius: 46px;
  padding: 10px;
  /* No shadow on the phone itself. ANY shadow of the bezel — box-shadow or
     drop-shadow — traces its rounded silhouette, and against the cream page
     that halo reads as an outline hugging the corners (box-shadow banded the
     top corners; drop-shadow banded the bottom two). Grounding comes from the
     ::before ellipse instead, which never reaches the corner arcs. */
}

/* Soft ground shadow: a blurred ellipse under the device, inset from the sides
   so it stays clear of the corners. z-index:-1 puts it behind the phone's own
   opaque background, so only the part spilling below the device is visible. */
.mh-phone::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 11%;
  right: 11%;
  bottom: -8px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 15, 26, 0.24);
  filter: blur(17px);
  pointer-events: none;
}
.mh-phone__screen {
  position: relative;
  background: #F4F4F5;
  border-radius: 36px;
  height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #111827;
  font-family: var(--font-body);
  line-height: 1.4;
  text-align: left;
}
.mh-phone__island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 88px; height: 23px; border-radius: 999px; background: #0d1117; z-index: 6; }
.mh-phone__home { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 116px; height: 4px; border-radius: 999px; background: rgba(17, 24, 39, 0.85); z-index: 6; }
.mh-phone svg { display: block; flex-shrink: 0; }

/* iOS status bar (sits on the app's white top area) */
.ms-status { height: 40px; flex-shrink: 0; background: #fff; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 2px; }
.ms-status b { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.ms-status-r { display: flex; align-items: center; gap: 5px; color: #111827; }

/* App mobile top bar — hamburger · wordmark · search · square navy + */
.ms-tb { display: flex; align-items: center; gap: 4px; padding: 4px 8px 6px; background: #fff; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.ms-tb-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #6b7280; border-radius: 6px; }
.ms-tb-btn .ms-ic { width: 19px; height: 19px; }
.ms-tb-word { margin-left: 4px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #111827; letter-spacing: -0.01em; }
.ms-tb-sp { flex: 1; }
.ms-tb-new { width: 38px; height: 38px; border-radius: 10px; background: #1C2B4A; color: #fff; display: flex; align-items: center; justify-content: center; }
.ms-tb-new .ms-ic { width: 17px; height: 17px; }

.ms-mn { flex: 1; min-height: 0; overflow: hidden; padding: 14px; }

/* Shared app primitives at mobile scale */
.ms-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.ms-lab { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; }
.ms-pill { display: inline-block; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; padding: 2.5px 7px; border-radius: 3px; line-height: 1.25; white-space: nowrap; }
.ms-p-open { background: #dcfce7; color: #15803d; }
.ms-p-conf { background: #dbeafe; color: #1d4ed8; }
.ms-p-conf2 { background: #eff6ff; color: #1d4ed8; }
.ms-p-paid { background: #f0fdf4; color: #15803d; }
.ms-p-draft { background: #f3f4f6; color: #6b7280; }

/* Dashboard */
.ms-greet { font-size: 18px; font-weight: 600; color: #111827; margin: 0 0 12px; }
.ms-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-kpi { padding: 11px 13px; min-width: 0; }
.ms-kpi .ms-lab { display: block; margin-bottom: 3px; font-weight: 500; }
.ms-kpi b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-panel { padding: 13px 14px; margin-top: 12px; }
.ms-panel-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.ms-seg { display: flex; gap: 4px; align-items: center; }
.ms-seg span { font-size: 10.5px; padding: 2.5px 9px; border-radius: 999px; color: #9ca3af; white-space: nowrap; }
.ms-seg .is-on { background: #1C2B4A; color: #fff; }
.ms-trow { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-top: 1px solid #f3f4f6; }
.ms-trow:first-of-type { border-top: 0; }
.ms-tchk { width: 14px; height: 14px; border: 1px solid #d1d5db; border-radius: 3px; margin-top: 2px; flex-shrink: 0; }
.ms-tmain { flex: 1; min-width: 0; }
.ms-tt { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.ms-tt b { font-size: 13px; font-weight: 500; color: #1C2B4A; line-height: 1.3; }
.ms-tbadge { font-size: 9px; font-weight: 500; padding: 2px 5px; border-radius: 3px; flex-shrink: 0; }
.ms-tbadge--blue { background: #eff6ff; color: #2563eb; }
.ms-tbadge--purple { background: #faf5ff; color: #9333ea; }
.ms-tbadge--gray { background: #f3f4f6; color: #6b7280; }
.ms-tsub { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.ms-tdue { font-size: 11px; color: #9ca3af; flex-shrink: 0; margin-top: 2px; white-space: nowrap; }
.ms-tdue--red { color: #ef4444; font-weight: 500; }
.ms-drow { padding: 9px 0; border-top: 1px solid #f3f4f6; }
.ms-drow:first-of-type { border-top: 0; }
.ms-drow b { display: block; font-size: 13px; font-weight: 500; color: #111827; }
.ms-drow .ms-dd { font-size: 11px; color: #9ca3af; }
.ms-dcap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ms-dcap .ms-lab { font-size: 8.5px; flex-shrink: 0; }
.ms-dbar { flex: 1; min-width: 0; height: 6px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.ms-dbar i { display: block; height: 100%; border-radius: 999px; background: #22c55e; }
.ms-dpct { font-size: 10px; color: #4b5563; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Traveller record */
.ms-crumb { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #9ca3af; margin-bottom: 9px; }
.ms-crumb .ms-ic { width: 11px; height: 11px; }
.ms-hero { padding: 14px 15px; }
.ms-hero-id { display: flex; align-items: center; gap: 11px; }
.ms-hero-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(28, 43, 74, 0.1); color: #1C2B4A; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-hero-id h3 { margin: 0; font-size: 18px; font-weight: 600; font-family: var(--font-body); color: #111827; }
.ms-hero-meta { font-size: 12px; color: #6b7280; margin: 2px 0 0; }
.ms-hero-btns { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.ms-btn-ghost { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: #374151; display: flex; align-items: center; gap: 6px; }
.ms-btn-navy { background: #1C2B4A; color: #fff; border-radius: 6px; padding: 8px 13px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.ms-btn-ghost .ms-ic, .ms-btn-navy .ms-ic { width: 12px; height: 12px; }
.ms-fields { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 10px; }
.ms-field .ms-lab { display: block; margin-bottom: 2px; font-weight: 500; }
.ms-field p { margin: 0; font-size: 13px; color: #111827; }
.ms-tags { padding: 12px 15px; margin-top: 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ms-tags h4 { margin: 0 4px 0 0; font-size: 13px; font-weight: 600; color: #374151; font-family: var(--font-body); }
.ms-tag { font-size: 11px; font-weight: 500; border-radius: 999px; padding: 3.5px 10px; white-space: nowrap; }
.ms-tag--green { background: #f0fdf4; color: #15803d; }
.ms-tag--amber { background: #fffbeb; color: #b45309; }
.ms-tag--add { border: 1px dashed #d1d5db; color: #9ca3af; background: #fff; }
.ms-stats { padding: 12px 15px; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-stats .ms-lab { display: block; margin-bottom: 2px; font-weight: 500; }
.ms-stats p { margin: 0; font-size: 13px; color: #111827; }
.ms-stats p.is-big { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-stats p.is-mid { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-sec-h { margin: 16px 0 9px; font-size: 13px; font-weight: 600; color: #374151; }
.ms-rcard { padding: 14px 15px; }
.ms-rcard + .ms-rcard { margin-top: 10px; }
.ms-rcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ms-rcard-top b { font-size: 13px; font-weight: 500; color: #1C2B4A; }
.ms-rcard dl { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ms-rcard dl > div { display: flex; align-items: baseline; gap: 12px; font-size: 12.5px; }
.ms-rcard dt { color: #9ca3af; flex-shrink: 0; width: 80px; }
.ms-rcard dd { margin: 0; color: #374151; min-width: 0; }

/* Itinerary builder */
.ms-ib-top { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 10px 14px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; flex-shrink: 0; }
.ms-ib-vbtn { border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px 11px; font-size: 11.5px; font-weight: 500; color: #4b5563; }
.ms-ib-name { font-size: 13px; font-weight: 500; color: #111827; }
.ms-ib-cta { width: 100%; text-align: center; background: #1C2B4A; color: #fff; font-size: 13px; font-weight: 500; border-radius: 6px; padding: 11px 0; }
.ms-ib-body { flex: 1; min-height: 0; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.ms-day { overflow: hidden; }
.ms-day-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: rgba(249, 250, 251, 0.7); border-bottom: 1px solid #f3f4f6; }
.ms-day-h b { font-size: 12.5px; font-weight: 600; color: #374151; }
.ms-day-h span { font-size: 10.5px; color: #9ca3af; white-space: nowrap; }
.ms-sect { padding: 7px 14px 2px; }
.ms-sect span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; color: #9ca3af; }
.ms-item { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid #f9fafb; }
.ms-item .ms-ic { width: 14px; height: 14px; color: #94a3b8; }
.ms-item b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-item .ms-tm { font-size: 10.5px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.ms-ibadge { font-size: 9.5px; font-weight: 500; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.ms-ib-acc { background: #eff6ff; color: #1d4ed8; }
.ms-ib-fly { background: #faf5ff; color: #7e22ce; }
.ms-ib-act { background: #f0fdf4; color: #15803d; }
.ms-ib-tra { background: #fffbeb; color: #b45309; }
.ms-ib-meal { background: #fff7ed; color: #c2410c; }
.ms-additem { padding: 9px 14px; border-top: 1px solid #f9fafb; font-size: 11.5px; font-weight: 500; color: #1C2B4A; }
.ms-addday { border: 1px dashed #e5e7eb; border-radius: 8px; text-align: center; padding: 11px; font-size: 12px; color: #9ca3af; }

/* Pipeline */
.ms-pl-h h3 { margin: 0; font-size: 18px; font-weight: 600; font-family: var(--font-body); color: #111827; }
.ms-pl-h p { margin: 1px 0 0; font-size: 12px; color: #6b7280; }
.ms-pl-ctl { display: flex; align-items: center; gap: 8px; margin: 11px 0; flex-wrap: wrap; }
.ms-pl-search { flex: 1; min-width: 130px; border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 7px 10px; font-size: 11.5px; color: #c4c8ce; white-space: nowrap; overflow: hidden; }
.ms-pl-stale { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 7px 10px; font-size: 11.5px; color: #6b7280; white-space: nowrap; }
.ms-kb { display: flex; gap: 10px; align-items: stretch; margin-right: -14px; }
.ms-kcol { flex: 0 0 auto; width: 78%; background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 8px 8px; padding: 10px; display: flex; flex-direction: column; }
.ms-kcol-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.ms-kcol-h b { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; }
.ms-kcol-h span { font-size: 10.5px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.ms-ktotal { font-size: 11.5px; font-weight: 500; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.ms-kcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 11px; margin-bottom: 9px; }
.ms-kcard b { display: block; font-size: 13px; font-weight: 500; color: #111827; line-height: 1.35; }
.ms-kcard .ms-amt { font-size: 13px; font-weight: 600; color: #1C2B4A; font-variant-numeric: tabular-nums; margin: 3px 0 1px; }
.ms-kcard .ms-who { font-size: 11px; color: #6b7280; }
.ms-kcard .ms-cls { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.ms-kmove { margin-top: 9px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(28, 43, 74, 0.2); border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 500; color: #1C2B4A; }
.ms-kmove .ms-ic { width: 13px; height: 13px; }
.ms-kfoot { margin-top: 12px; background: #fff; border-top: 0.5px solid #e5e7eb; border-radius: 8px; padding: 9px 10px; }
.ms-kfoot-r1 { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.ms-kfoot-r1 span { font-size: 11px; color: #9ca3af; }
.ms-kfoot-r1 b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: #111827; }
.ms-kseg { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #f3f4f6; }

/* ============================================================
   ZOOMED-OUT VIEWPORT — used by the traveller-portal slides.
   The portal is a narrow centred column, so at 1:1 only a sliver of the page
   fits the 16:9 frame. This renders a proportionally larger virtual page and
   scales it down (the same effect as a browser zoom-out), so a whole day of
   the itinerary / the whole payment flow is visible at once. Sizes are
   percentages of the frame, so it stays exact at every carousel width.
   ============================================================ */
.mh-zoom {
  --z: 0.63;
  width: calc(100% / var(--z));
  height: calc(100% / var(--z));
  transform: scale(var(--z));
  transform-origin: top left;
  display: flex;
  flex-shrink: 0;
}

/* ============================================================
   TRAVELLER PORTAL MOCK — portal.menhiros.com/{operator}
   Deliberately NOT the agent app's design system: navy shell, #185FA5 tabs,
   rounded navy hero, warm #F7F6F3 body. Mirrors app/(slug-portal)/.
   ============================================================ */
.pt-screen { flex: 1; min-width: 0; background: #f3f4f6; display: flex; flex-direction: column; font-family: var(--font-body); line-height: 1.4; text-align: left; color: #111827; }
.pt-screen svg { display: block; flex-shrink: 0; }
.pt-head { background: #1C2B4A; flex-shrink: 0; }
.pt-head-in { max-width: 672px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pt-logo { width: 26px; height: 26px; border-radius: 5px; background: #E8DFCF; color: #1C2B4A; font-family: var(--font-display); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt-co { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff; white-space: nowrap; }
.pt-out { font-size: 12px; color: #bfdbfe; white-space: nowrap; }
.pt-body { flex: 1; min-height: 0; overflow: hidden; }
.pt-col { max-width: 672px; margin: 0 auto; background: #fff; }
.pt-depname { margin: 0; padding: 15px 16px 11px; font-size: 17px; font-weight: 500; color: #1e3a5f; }
.pt-tabs { display: flex; border-bottom: 1.5px solid #e5e7eb; }
.pt-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1.5px; position: relative; white-space: nowrap; }
.pt-tab.is-on { color: #185FA5; font-weight: 500; border-bottom-color: #185FA5; }
.pt-badge { position: absolute; top: 5px; right: calc(50% - 38px); background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pt-foot { background: #1C2B4A; flex-shrink: 0; text-align: center; padding: 13px 0; }
.pt-foot span { font-size: 12px; color: rgba(191, 219, 254, 0.5); }

/* Itinerary hero */
.pt-hero { background: #1a2332; padding: 20px 16px 28px; border-radius: 0 0 20px 20px; }
.pt-crumb { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.pt-crumb .pt-cur { color: rgba(255,255,255,0.6); }
.pt-eyebrow { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 6px; }
.pt-h1 { font-size: 18px; font-weight: 600; color: #fff; line-height: 1.3; margin: 0 0 6px; }
.pt-dates { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }
.pt-mp { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; margin-top: 16px; }
.pt-mp-lab { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 4px; }
.pt-mp-val { font-size: 13px; color: #fff; margin: 0 0 10px; }
.pt-w3w { display: inline-flex; align-items: center; background: #FEE2E2; border: 0.5px solid #FECACA; border-radius: 20px; padding: 3px 8px; font-size: 11px; font-weight: 500; color: #E11D48; }

/* Itinerary days */
.pt-days { background: #F7F6F3; padding: 20px 16px; }
.pt-dayhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-dayhead--next { margin-top: 20px; }
.pt-daypill { background: #1a2332; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; letter-spacing: 0.04em; }
.pt-daydate { font-size: 11px; color: #6B7280; }
.pt-item { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 8px; overflow: hidden; }
.pt-item-h { padding: 10px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pt-time { font-size: 11px; font-weight: 500; color: #6B7280; flex-shrink: 0; padding-top: 1px; min-width: 32px; }
.pt-item-m { flex: 1; min-width: 0; }
/* Title and supplier are separate lines (spans, so they need an explicit block) */
.pt-item-t { display: block; font-size: 13px; font-weight: 500; color: #111827; margin: 0 0 3px; line-height: 1.4; }
.pt-item-s { display: block; font-size: 11px; color: #9CA3AF; margin: 0; }
.pt-tpill { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0; }
.pt-t-transfer { background: #FEF3C7; color: #92400E; }
.pt-t-activity { background: #D1FAE5; color: #065F46; }
.pt-t-accom { background: #DBEAFE; color: #1E40AF; }
.pt-t-meal { background: #FCE7F3; color: #9D174D; }
.pt-t-flight { background: #EDE9FE; color: #5B21B6; }
.pt-desc { padding: 0 12px 10px; font-size: 11px; color: #6B7280; line-height: 1.6; }
.pt-map { width: 100%; height: 140px; display: block; }
.pt-item-f { padding: 8px 12px; display: flex; align-items: center; gap: 8px; border-top: 0.5px solid #F3F4F6; flex-wrap: wrap; }
.pt-gpx { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: #185FA5; border: 0.5px solid #B5D4F4; border-radius: 6px; padding: 4px 10px; background: #E6F1FB; }

/* Documents page */
.pt-doc { padding: 22px 24px; }
.pt-doc-crumb { font-size: 12px; color: #9ca3af; margin: 0 0 8px; }
.pt-doc-h1 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #111827; margin: 0 0 4px; }
.pt-doc-sum { font-size: 13px; color: #6b7280; margin: 0 0 18px; }
.pt-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding: 18px; margin-bottom: 16px; }
.pt-card-h2 { font-size: 13px; font-weight: 600; color: #111827; margin: 0 0 14px; }
.pt-sum3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.pt-sum3 .pt-l { font-size: 12px; color: #9ca3af; margin: 0 0 2px; }
.pt-sum3 .pt-v { font-size: 16px; font-weight: 600; color: #111827; margin: 0; font-variant-numeric: tabular-nums; }
.pt-ledger { border-top: 1px solid #f3f4f6; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.pt-ledger .pt-m { color: #6b7280; }
.pt-ledger .pt-a { font-weight: 500; color: #111827; }
.pt-req-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pt-req-h > span:first-child { min-width: 0; }
.pt-req-t { display: block; font-size: 14px; font-weight: 600; color: #111827; margin: 0; }
.pt-req-s { display: block; font-size: 12px; color: #9ca3af; margin: 2px 0 0; }
.pt-spill { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 5px; white-space: nowrap; }
.pt-s-pending { background: #fffbeb; color: #b45309; }
.pt-s-accepted { background: #ecfdf5; color: #047857; }
.pt-s-submitted { background: #eff6ff; color: #1d4ed8; }
.pt-overdue { display: flex; align-items: center; gap: 8px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 9px 11px; margin-bottom: 14px; }
.pt-overdue b { font-size: 12.5px; font-weight: 600; color: #b91c1c; display: block; }
.pt-overdue span span { font-size: 11.5px; color: #dc2626; }

/* Bank-transfer "payment card" (real: components/portal/bank-transfer-card.tsx) */
.pt-bank { background: #b0e1db; border-radius: 8px; padding: 14px 16px; position: relative; overflow: hidden; }
.pt-bank__c1 { position: absolute; top: -10px; right: -10px; width: 70px; height: 70px; border-radius: 50%; background: rgba(0,0,0,0.05); }
.pt-bank__c2 { position: absolute; bottom: -8px; right: 20px; width: 55px; height: 55px; border-radius: 50%; background: rgba(0,0,0,0.04); }
.pt-bank-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: relative; }
.pt-bank-co { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #1c2b4a; }
.pt-chip { display: flex; align-items: center; }
.pt-chip i { display: block; width: 16px; height: 11px; border-radius: 2px; background: rgba(28,43,74,0.22); }
.pt-chip i + i { background: rgba(28,43,74,0.1); margin-left: -5px; }
.pt-bank-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 10px; position: relative; }
.pt-bank-g .pt-l { font-size: 8px; color: rgba(28,43,74,0.55); text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 3px; }
.pt-bank-g .pt-v { font-family: ui-monospace, "DM Mono", monospace; font-size: 11px; color: #1c2b4a; font-weight: 500; margin: 0; }
.pt-bank-g .pt-v.is-faint { color: rgba(28,43,74,0.45); }
.pt-bank-f { border-top: 0.5px solid rgba(28,43,74,0.15); padding-top: 8px; position: relative; }
.pt-bank-f p { font-size: 9px; color: rgba(28,43,74,0.45); margin: 0; }
.pt-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.pt-or span { font-size: 11.5px; color: #9ca3af; white-space: nowrap; }
.pt-or i { flex: 1; height: 1px; background: #e5e7eb; display: block; }
.pt-stripe { border: 1px solid #e5e7eb; border-radius: 8px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-stripe .pt-cardno { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; color: #9ca3af; letter-spacing: 0.06em; }
.pt-stripe .pt-exp { font-size: 11px; color: #9ca3af; }
.pt-btn { background: #1C2B4A; color: #fff; border-radius: 8px; padding: 11px 0; text-align: center; font-size: 13.5px; font-weight: 500; }
.pt-hint { font-size: 11.5px; color: #9ca3af; text-align: center; margin: 8px 0 0; }
.pt-done { font-size: 12.5px; color: #059669; margin: 10px 0 0; }
.pt-wait { font-size: 12.5px; color: #6b7280; margin: 10px 0 0; }

/* Waiver signature pad */
.pt-doclink { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #185FA5; margin-bottom: 12px; }
.pt-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.pt-check i { width: 15px; height: 15px; border-radius: 3px; background: #1C2B4A; color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pt-check span { font-size: 12.5px; color: #374151; line-height: 1.45; }
.pt-sigtabs { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 7px; overflow: hidden; margin-bottom: 10px; }
.pt-sigtab { padding: 6px 16px; font-size: 12.5px; color: #6b7280; }
.pt-sigtab.is-on { background: #1C2B4A; color: #fff; font-weight: 500; }
.pt-canvas { border: 1px dashed #d1d5db; border-radius: 8px; background: #fbfbfa; height: 96px; position: relative; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.pt-clear { position: absolute; top: 7px; right: 10px; font-size: 11px; color: #9ca3af; }

/* Portal inside the phone frame — same components, phone-scale */
.mh-phone .pt-screen { background: #fff; }
.mh-phone .pt-head-in { padding: 10px 16px 14px; }
.mh-phone .pt-co { font-size: 16px; }
.mh-phone .pt-depname { font-size: 15px; padding: 12px 14px 9px; }
.mh-phone .pt-tab { font-size: 12px; }
.mh-phone .pt-badge { right: calc(50% - 30px); }
.mh-phone .pt-hero { padding: 16px 14px 22px; }
.mh-phone .pt-crumb { margin-bottom: 14px; }
.mh-phone .pt-h1 { font-size: 17px; }
.mh-phone .pt-dates { font-size: 12px; }
.mh-phone .pt-mp { margin-top: 12px; }
.mh-phone .pt-mp-val { font-size: 12px; }
.mh-phone .pt-days { padding: 16px 14px; }
.mh-phone .pt-doc { padding: 16px 14px; }
.mh-phone .pt-doc-h1 { font-size: 21px; }
.mh-phone .pt-doc-sum { margin-bottom: 14px; }
.mh-phone .pt-card { padding: 14px; margin-bottom: 12px; }
.mh-phone .pt-sum3 { gap: 8px; }
.mh-phone .pt-sum3 .pt-l { font-size: 10px; }
.mh-phone .pt-sum3 .pt-v { font-size: 14px; }
.mh-phone .pt-ledger { font-size: 12px; }
.mh-phone .pt-req-t { font-size: 13px; }
.mh-phone .pt-req-s { font-size: 11px; }

/* ------------------------------------------------------------
   Portal login — the operator's own front door. Mirrors
   components/portal/portal-login-form.tsx: topographic background under a
   cream wash, 380px card with a 48x2 accent bar, fixed 110px brand header,
   magic-link form. No Menhir branding anywhere on this screen.
   ------------------------------------------------------------ */
/* height:100% — the login page owns the whole viewport (no app shell), so it
   must fill the frame rather than sizing to its card. */
.pl-screen { flex: 1; width: 100%; height: 100%; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; background: #F2EEE5; font-family: var(--font-body); text-align: left; }
.pl-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-wash { position: absolute; inset: 0; background: rgba(247, 244, 238, 0.52); }
.pl-card {
  position: relative;
  width: 380px;
  max-width: 100%;
  padding: 40px 44px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E2DFE9;
  box-shadow: 0 1px 2px rgba(26,25,40,0.03), 0 8px 24px rgba(26,25,40,0.09), 0 24px 56px rgba(26,25,40,0.07);
}
.pl-accent { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 48px; height: 2px; background: #1A1928; border-radius: 0 0 2px 2px; }
.pl-head { height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pl-logo { width: 46px; height: 46px; border-radius: 8px; background: #E8DFCF; color: #1A1928; font-family: var(--font-display); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.pl-co { font-weight: 500; font-size: 14px; color: #1A1928; margin: 12px 0 0; text-align: center; }
.pl-kicker { font-weight: 400; font-size: 12px; color: #A8A5B4; letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 0; text-align: center; }
.pl-form { margin-top: 30px; }
.pl-label { display: block; font-weight: 500; font-size: 11px; color: #6B687A; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.pl-input { display: block; width: 100%; padding: 11px 14px; background: #fff; border: 1px solid #E2DFE9; border-radius: 8px; font-size: 14px; color: #B8B4C0; }
.pl-btn { display: block; width: 100%; padding: 13px 0; margin-top: 8px; background: #1A1928; color: #F7F4EE; border-radius: 8px; font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-align: center; }
.pl-note { text-align: center; font-size: 12px; color: #A8A5B4; line-height: 1.6; margin: 16px 0 0; }

/* Login card inside the phone frame */
.mh-phone .pl-screen { padding: 18px; }
.mh-phone .pl-card { padding: 34px 28px; }
.mh-phone .pl-head { height: 96px; }

/* ============================================================
   DEPARTURE OPS MOCK (agent app) — reuses .mh-* shell classes
   ============================================================ */
.dp-hero { padding: 11px 14px; margin-bottom: 10px; }
.dp-crumb { display: flex; align-items: center; gap: 4px; font-size: 8px; color: #9ca3af; margin-bottom: 5px; }
.dp-htop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-h1 { font-size: 14px; font-weight: 600; color: #111827; margin: 0; font-family: var(--font-body); }
.dp-meta { font-size: 8.5px; color: #6b7280; margin: 3px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-w3w { display: inline-flex; background: #FEE2E2; border: 0.5px solid #FECACA; border-radius: 20px; padding: 1px 6px; font-size: 7.5px; font-weight: 500; color: #E11D48; }
.dp-stage { display: flex; margin-top: 9px; gap: 2px; }
.dp-stage span { flex: 1; text-align: center; font-size: 7px; font-weight: 500; padding: 4px 0; background: #f3f4f6; color: #9ca3af; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%); }
.dp-stage span:first-child { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }
.dp-stage span.is-done { background: #e5edf7; color: #1C2B4A; }
.dp-stage span.is-on { background: #1C2B4A; color: #fff; font-weight: 600; }
.dp-tabs { display: flex; gap: 14px; border-bottom: 1px solid #e5e7eb; margin-bottom: 10px; padding: 0 2px; }
.dp-tab { font-size: 9px; color: #6b7280; padding: 6px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.dp-tab.is-on { color: #185FA5; font-weight: 600; border-bottom-color: #185FA5; }
.dp-tab .dp-b { background: #f3f4f6; color: #6b7280; font-size: 7px; border-radius: 3px; padding: 1px 4px; }
.dp-tab .dp-b.is-red { background: #fee2e2; color: #b91c1c; }
.dp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.dp-stat { padding: 9px 11px; }
.dp-stat .mh-lab { display: block; margin-bottom: 2px; }
.dp-stat b { font-size: 19px; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.dp-stat b.is-green { color: #15803d; }
.dp-stat .dp-s { font-size: 7.5px; color: #9ca3af; margin-top: 3px; display: block; }
.dp-stat .dp-s.is-amber { color: #d97706; }
.dp-cap { padding: 10px 13px; margin-bottom: 10px; }
.dp-cap-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-cap-h h3 { font-size: 9.5px; font-weight: 600; color: #374151; margin: 0; font-family: var(--font-body); }
.dp-cap-h span { font-size: 9px; color: #6b7280; font-variant-numeric: tabular-nums; }
.dp-seats { display: flex; gap: 4px; }
.dp-seats i { flex: 1; height: 8px; border-radius: 2px; background: #f3f4f6; display: block; }
.dp-seats i.is-full { background: #22c55e; }
.dp-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.dp-panel { padding: 10px 13px; }
.dp-panel h3 { font-size: 9.5px; font-weight: 600; color: #374151; margin: 0 0 8px; font-family: var(--font-body); }
.dp-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-panel-h h3 { margin: 0; }
.dp-toggle { display: flex; align-items: center; gap: 5px; }
.dp-toggle span { font-size: 7.5px; color: #9ca3af; }
.dp-toggle i { width: 18px; height: 10px; border-radius: 6px; background: #e5e7eb; position: relative; display: block; }
.dp-toggle i::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; top: 1.5px; left: 1.5px; }
.dp-ms { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.dp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dp-ms .dp-t { flex: 1; font-size: 9px; color: #374151; }
.dp-ms .dp-d { font-size: 8px; color: #9ca3af; }
.dp-msb { font-size: 7px; font-weight: 500; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.dp-b-done { background: #f0fdf4; color: #15803d; }
.dp-b-next { background: #eff6ff; color: #1d4ed8; }
.dp-b-over { background: #fef2f2; color: #dc2626; }
.dp-b-fut { background: #f3f4f6; color: #9ca3af; }
.dp-rd { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f9fafb; }
.dp-rd:last-child { border-bottom: 0; }
.dp-rd .dp-t { font-size: 9px; color: #374151; }
.dp-rdp { font-size: 7px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 5px; border-radius: 3px; white-space: nowrap; }
.dp-rd-green { background: #f0fdf4; color: #15803d; }
.dp-rd-amber { background: #fffbeb; color: #b45309; }
.dp-fin { margin-bottom: 9px; }
.dp-fin:last-child { margin-bottom: 0; }
.dp-fin > .mh-lab { display: block; margin-bottom: 4px; }
.dp-finbox { background: #f9fafb; border-radius: 5px; padding: 8px 9px; }
.dp-r { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 0; }
.dp-r .dp-l { font-size: 8px; color: #6b7280; }
.dp-r .dp-v { font-size: 8px; color: #6b7280; font-variant-numeric: tabular-nums; }
.dp-r.is-pri .dp-l { font-size: 9px; font-weight: 600; color: #111827; }
.dp-r.is-pri .dp-v { font-size: 9px; font-weight: 600; color: #111827; }
.dp-r .dp-v.is-green { color: #15803d; }
.dp-r .dp-v.is-red { color: #dc2626; }
.dp-r .dp-v.is-mute { color: #9ca3af; }
.dp-div { border-top: 1px solid #e5e7eb; margin: 4px 0; }

/* Departure ops inside the phone frame */
.mh-phone .dp-hero { padding: 13px 14px; margin-bottom: 11px; }
.mh-phone .dp-crumb { font-size: 11px; margin-bottom: 6px; }
.mh-phone .dp-h1 { font-size: 17px; }
.mh-phone .dp-meta { font-size: 11px; margin-top: 5px; }
.mh-phone .dp-cap { padding: 12px 14px; margin-bottom: 11px; }
.mh-phone .dp-cap-h h3 { font-size: 12px; }
.mh-phone .dp-cap-h span { font-size: 11px; }
.mh-phone .dp-seats { gap: 3px; }
.mh-phone .dp-panel { padding: 12px 14px; }
.mh-phone .dp-panel h3 { font-size: 12px; }
.mh-phone .dp-ms { padding: 7px 0; }
.mh-phone .dp-ms .dp-t { font-size: 12px; }
.mh-phone .dp-msb { font-size: 9px; padding: 2px 6px; }
.mh-phone .ms-kpi b.is-green { color: #15803d; font-size: 17px; }

/* Phone widths: swap the desktop browser frame for the phone mock */
@media (max-width: 640px) {
  .carousel__slide .browser-frame { display: none; }
  .mh-phone { display: block; }
  /* The phone would otherwise sit flush with the viewport's bottom edge, and
     .carousel__viewport has overflow-y: hidden — which clipped the ground
     shadow away and left only the part hugging the corner arcs. This gives it
     room to render below the device. */
  .carousel__slide { padding-bottom: 26px; }
}

/* ============================================================
   CAROUSEL
   ============================================================ */

.carousel {
  position: relative;
  /* Bleed edge-to-edge while keeping controls centred */
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/*
 * CSS Scroll Snap carousel — the most reliable single-slide approach.
 * The viewport scrolls horizontally; each slide snaps into place.
 * JS drives it with scrollTo() so no transform/width guesswork.
 */
.carousel__viewport {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  scroll-behavior: smooth;
}
.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Clip horizontally at the slide's own bounds so a neighbouring slide's
     frame/phone shadow can't bleed across the boundary into this slide
     (visible as a grey band at the right edge of every slide but the last).
     Negative top/bottom keeps vertical shadow overflow untouched. */
  clip-path: inset(-120px 0);
}

/* Browser frame fills the slide; no tilt/shadow from the standalone version */
.carousel__slide .browser-frame {
  max-width: 100%;
  margin-inline: 0;
  transform: none !important;
  box-shadow: var(--sh-xl);
  border-radius: var(--r-md);
}
.carousel__slide .browser-frame:hover {
  transform: none !important;
}
.carousel__slide .browser-frame__screen {
  aspect-ratio: 16 / 9;
}

/* ---- Liquid glass controls (Apple-style) ---- */

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--sp-lg);
}

/*
 * Single unified glass bar: arrows, dots, label all sit
 * inside one frosted capsule — like iOS 26 bottom bars.
 */
.carousel__controls {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 100px;
  box-shadow:
    0 1px 3px rgba(24, 34, 52, 0.06),
    0 4px 14px rgba(24, 34, 52, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 6px 6px;
  width: fit-content;
  margin-inline: auto;
}

/* Prev / Next arrow buttons */
.carousel__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(24, 34, 52, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.18s ease;
  flex-shrink: 0;
}
.carousel__arrow:hover {
  color: var(--c-dark);
  background: rgba(24, 34, 52, 0.07);
}
.carousel__arrow:active {
  transform: scale(0.90);
  background: rgba(24, 34, 52, 0.10);
}
.carousel__arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* Center: dots + label stacked */
.carousel__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-inline: 8px;
}

/* Dot track — sits inside the glass bar, no extra background */
.carousel__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px 4px;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50px;
  background: rgba(24, 34, 52, 0.18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.25s ease,
              border-radius 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.2s ease;
}
.carousel__dot.active {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--c-dark);
}
.carousel__dot:hover:not(.active) {
  background: rgba(24, 34, 52, 0.35);
}

/* Slide label — sits directly below dots inside the glass pill */
.carousel__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(24, 34, 52, 0.42);
  letter-spacing: 0.02em;
  text-align: center;
  min-height: 1em;
  padding-bottom: 2px;
  transition: opacity 0.18s ease;
}
.carousel__label.switching {
  opacity: 0;
}

/* ---- Client profile placeholder ---- */


/* ============================================================
   AUDIENCE / WHO IT'S FOR
   ============================================================ */

.audience {
  padding-block: var(--sp-3xl);
  background: var(--c-bg);
  scroll-margin-top: calc((var(--nav-h) + 40px) / 2);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.audience-card {
  padding: var(--sp-xl);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-stone-light);
}

.audience-card__icon {
  width: 44px;
  height: 44px;
  background: var(--c-stone-pale);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--c-stone);
  flex-shrink: 0;
}
.audience-card__icon svg { width: 20px; height: 20px; }

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-dark);
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.01em;
}

.audience-card p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.72;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  padding-block: var(--sp-3xl);
  background: var(--c-bg);
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.how-step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.how-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1C2B4A;
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: var(--sp-md);
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: var(--sp-sm);
}

.how-step p {
  color: #72808c;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   BUILT FOR (2x2 GRID)
   ============================================================ */

.built-for {
  padding-block: var(--sp-3xl);
  background: var(--c-bg-warm);
}

.built-for__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}

.built-for-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
}

.built-for-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: rgba(28, 43, 74, 0.1);
  color: #1C2B4A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
}

.built-for-card__icon svg {
  width: 20px;
  height: 20px;
}

.built-for-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--c-dark);
}

.built-for-card p {
  color: #72808c;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.pricing {
  padding-block: var(--sp-3xl);
  background: var(--c-bg);
}

.pricing__hero {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.pricing__sub {
  margin-top: var(--sp-sm);
  color: #72808c;
  font-size: 1.02rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

.pricing-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--sh-sm);
}

.pricing-card--featured {
  border-color: #1C2B4A;
  box-shadow: 0 0 0 1px rgba(28, 43, 74, 0.2), var(--sh-md);
}

.pricing-card__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #72808c;
  margin-bottom: var(--sp-sm);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #1C2B4A;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.pricing-card__sub {
  color: #72808c;
  font-size: 0.95rem;
  margin-bottom: var(--sp-md);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--sp-lg);
}

.pricing-features li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--c-text);
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #1C2B4A;
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-faq {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}

.pricing-faq h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--c-dark);
  margin-bottom: var(--sp-md);
}

.pricing-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.pricing-faq__item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1C2B4A;
  margin-bottom: 0.35rem;
}

.pricing-faq__item p {
  color: #72808c;
  line-height: 1.7;
}

/* ============================================================
   REGISTER (dark section)
   ============================================================ */

.register {
  padding-block: var(--sp-3xl);
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 40px;
}

/* Subtle radial glows for atmosphere */
.register::before,
.register::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.register::before {
  width: 700px;
  height: 700px;
  top: -30%;
  right: -15%;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.16) 0%, transparent 70%);
}
/* Centered on the section/footer seam; .footer--glow::before renders the
   matching lower half so the glow continues seamlessly into the footer. */
.register::after {
  width: 500px;
  height: 500px;
  bottom: -250px;
  left: -10%;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.10) 0%, transparent 70%);
}

.register__inner {
  max-width: 660px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.register__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.register__header .section-title { color: var(--c-white); }
.register__header .label         { color: var(--c-stone-light); }

.register__sub {
  margin-top: var(--sp-sm);
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.60);
}

.register__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

/* ============================================================
   FORMS — SHARED
   ============================================================ */

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

/* ---- Register form (dark variant) ---- */

.register__form .form__group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.register__form input,
.register__form select,
.register__form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  color: var(--c-white);
  font-size: 0.9375rem;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}

.register__form input::placeholder,
.register__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.register__form input:focus,
.register__form select:focus,
.register__form textarea:focus {
  border-color: var(--c-stone-light);
  background: rgba(255, 255, 255, 0.11);
}

.register__form input.invalid,
.register__form select.invalid,
.register__form textarea.invalid {
  border-color: #f07070;
}

.register__form select option {
  background: var(--c-dark);
  color: var(--c-white);
}

.select-wrapper {
  position: relative;
}
.select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.45);
}
.select-icon svg { width: 16px; height: 16px; }

/* Form feedback states */
.form__success,
.form__error {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  border-radius: var(--r-sm);
  padding: var(--sp-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__success {
  background: rgba(40, 200, 120, 0.12);
  border: 1px solid rgba(40, 200, 120, 0.30);
  color: #2fd881;
}
.form__success svg { width: 20px; height: 20px; flex-shrink: 0; }

.form__error {
  background: rgba(240, 80, 80, 0.12);
  border: 1px solid rgba(240, 80, 80, 0.28);
  color: #f07070;
}

.form__note {
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.36);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--c-dark);
  /* Slightly tighter block padding so extra gap inside .footer__brand doesn’t grow the footer */
  padding-block: 1.25rem;
}

/* Continues the contact section's bottom glow across the seam (homepage) */
.footer--glow {
  position: relative;
  overflow: hidden;
}
.footer--glow::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  top: -250px;
  left: -10%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.10) 0%, transparent 70%);
}
.footer--glow .container {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--c-white);
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.40);
}

.footer__login {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.70);
  border-color: rgba(255, 255, 255, 0.24);
}
.footer__login:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.50);
}

.footer__bottom {
  padding-top: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.30);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--t-fast);
}

.footer__links a:hover {
  color: var(--c-white);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 960px) {
  :root { --sp-3xl: 2.75rem; }

  .features__grid,
  .audience__grid,
  .how-it-works__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--sp-2xl);
  }

  .built-for__grid {
    grid-template-columns: 1fr;
  }

  .browser-frame {
    transform: none;
  }
  .browser-frame:hover {
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE — SHORT LAPTOP VIEWPORTS
   ============================================================ */

/* Smaller laptops (13" MacBooks, 1440×900 displays) leave the hero too
   little height: the centered content collides with the nav and banner.
   Top-align it below the nav and scale the headline down. Width guard
   keeps mobile untouched; taller screens keep the centered layout. */
@media (min-width: 769px) and (max-height: 850px) {
  .hero {
    align-items: flex-start;
  }

  .hero__content {
    padding-block: calc(var(--nav-h) + var(--banner-stack-h) + var(--sp-xl)) var(--sp-2xl);
  }

  .hero__headline {
    font-size: clamp(2.25rem, 4.8vw, 3.25rem);
  }

  .hero__subheadline {
    margin-bottom: var(--sp-lg);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --sp-3xl: 2rem;
    --sp-2xl: 1.5rem;
  }

  /* Nav */
  .nav__links,
  .nav__login  { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero__sunbeams {
    --sun-x: 78%;
    --sun-y: 52%;
    -webkit-mask-image:
      linear-gradient(to bottom, #000 0%, #000 24%, rgba(0, 0, 0, 0.5) 36%, transparent 48%),
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 18%, #000 40%, #000 100%);
    mask-image:
      linear-gradient(to bottom, #000 0%, #000 24%, rgba(0, 0, 0, 0.5) 36%, transparent 48%),
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 18%, #000 40%, #000 100%);
  }

  .bg-dawn .hero__sunbeams {
    --sun-x: 76%;
    --sun-y: 50%;
  }

  .bg-day .hero__sunbeams {
    --sun-x: 82%;
    --sun-y: 48%;
  }

  .bg-dusk .hero__sunbeams {
    --sun-x: 78%;
    --sun-y: 51%;
  }

  .hero__sun {
    --day-sun-bloom-size: min(22vw, 104px);
    --day-sun-intensity: 0.72;
  }

  /* Lighter sun bloom on mobile / iOS Safari (blur is expensive). */
  .hero__sun-atmosphere {
    filter: none;
    animation: none;
    will-change: auto;
    background: radial-gradient(
      circle,
      rgba(255, 252, 248, 0.35) 0%,
      rgba(255, 248, 238, 0.14) 28%,
      transparent 58%
    );
  }

  .hero__sun-corona {
    filter: none;
  }

  .hero__shooting-stars {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 36%,
      transparent 46%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 36%,
      transparent 46%
    );
  }

  .hero__content {
    padding-block: calc(var(--nav-h) + var(--banner-stack-h) + var(--sp-2xl) - 25px) var(--sp-3xl);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn { justify-content: center; }

  /* Forms */
  .form__row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mockups Scaling - Tablet */
  .carousel__slide .browser-frame__screen,
  .browser-frame__screen {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-md); }

  .register__form { padding: var(--sp-md); }

  .feature-card,
  .audience-card { padding: var(--sp-lg); }

  /* Mockups Scaling - Mobile */
  .carousel__slide .browser-frame__screen,
  .browser-frame__screen {
    aspect-ratio: 1 / 1;
  }
  .browser-frame__bar {
    padding: 6px 10px;
  }
  .browser-frame__dot {
    width: 8px;
    height: 8px;
  }
  .browser-frame__url {
    font-size: 0.6rem;
    padding: 2px 8px;
    margin-inline: 8px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}


/* ============================================================
   SECTOR LANDING PAGES — internal links
   Chips under the audience grid + footer sector row. The pages
   themselves live in /sectors/<slug>/ (see scripts/build-sector-pages.js).
   ============================================================ */
.audience__sectors { margin-top: var(--sp-xl); text-align: center; }
.audience__sectors-label { margin: 0 0 var(--sp-md); font-size: var(--fs-sm); color: var(--c-muted); }
.audience__sectors-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-sm); }
.audience__sectors-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-dark);
  transition: border-color var(--t-base), background var(--t-base), color var(--t-base), transform var(--t-base);
}
.audience__sectors-links a:hover {
  border-color: var(--c-dark);
  background: var(--c-dark);
  color: var(--c-white);
  transform: translateY(-2px);
}

.footer__sectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-sm) var(--sp-lg);
  padding-block: var(--sp-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer__sectors-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone-light);
}
.footer__sectors a { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); }
.footer__sectors a:hover { color: var(--c-white); }


/* ---- Footer, phones only: stacked brand + full-width login, link grids ---- */
@media (max-width: 640px) {
  .footer { padding-block: 2rem 1.5rem; }
  .footer__top { flex-direction: column; align-items: stretch; gap: var(--sp-md); }
  .footer__login { width: 100%; display: flex; justify-content: center; }
  .footer__sectors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xs) var(--sp-md); padding-block: var(--sp-md); }
  .footer__sectors-label { grid-column: 1 / -1; margin-bottom: var(--sp-xs); }
  .footer__sectors a { padding-block: 6px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-md); padding-top: var(--sp-md); }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xs) var(--sp-md); width: 100%; }
  .footer__links a { padding-block: 6px; }
  .footer__copy { padding-top: var(--sp-xs); }
}
