/* ============================================================================
   CAUDAL (pidecaudal.com) · Hydrodynamic Dossier Stylesheet
   Tokens & Geometry locked to DESIGN.md ("Hidrodinámica Insular")
   ========================================================================== */

:root {
  --sc-canvas:      #14171F;
  --sc-surface:     #1A1E29;
  --sc-card:        #222736;
  --sc-ink:         #F8FAFC;
  --sc-ink-soft:    #94A3B8;
  --sc-accent:      #0066FF;
  --sc-accent-deep: #0052CC;
  --sc-accent-ink:  #FFFFFF;
  --sc-aqua:        #00E5FF;
  --sc-aqua-light:  #005F73;

  --caudal-ok:      #34D399;
  --caudal-ok-ink:  #047857;
  --caudal-warn:    #FBBF24;
  --caudal-warn-ink:#B45309;
  --caudal-err:     #F87171;

  --sc-font-display: "Geist", system-ui, -apple-system, sans-serif;
  --sc-font-text:    "Geist", system-ui, -apple-system, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;
  --font-driver:     "Manrope", "Geist", system-ui, sans-serif;

  --sc-r-sm:   10px;
  --sc-r-md:   14px;
  --sc-r-lg:   22px;
  --sc-r-sheet:28px;
  --sc-r-pill: 999px;

  --caudal-shadow: 0 6px 16px rgba(15, 23, 42, 0.34),
                   0 20px 44px -12px rgba(8, 13, 26, 0.52);
  --caudal-shadow-blue: 0 6px 18px rgba(0, 102, 255, 0.28);
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

.sc-nums {
  font-variant-numeric: tabular-nums;
}

/* Explicit light section override (DESIGN.md + taste.md) */
.caudal-light {
  --sc-surface:  #F1F5F9;
  --sc-ink:      #14171F;
  --sc-ink-soft: #475569;
  background-color: #F8FAFC;
  color: #14171F;
}

/* ============================================================ TOP HEADER == */
.caudal-bar {
  position: fixed;
  top: 0.85rem;
  left: var(--sc-gutter);
  right: var(--sc-gutter);
  z-index: var(--sc-z-chrome);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 0.9rem;
  background: rgba(20, 23, 31, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(248, 250, 252, 0.10);
  border-radius: var(--sc-r-pill);
  box-shadow: 0 6px 20px rgba(10, 14, 23, 0.32);
}

.caudal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #F8FAFC;
}

.caudal-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.caudal-brand__name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: #F8FAFC;
}

.caudal-brand__loc {
  font-size: 0.78rem;
  color: #94A3B8;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(248, 250, 252, 0.14);
}

.caudal-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.caudal-bar__status {
  font-family: var(--sc-font-mono);
  font-size: 0.75rem;
  color: #00E5FF;
  letter-spacing: 0.02em;
}

/* Primary action button (ONLY #0066FF / #0052CC with #FFFFFF ink) */
.caudal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: var(--sc-r-md);
  background: #0066FF;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--caudal-shadow-blue);
  transition: background-color 180ms var(--sc-ease-out), transform 140ms var(--sc-ease-out);
}

.caudal-cta:hover {
  background: #0052CC;
}

.caudal-cta:active {
  transform: scale(0.985);
}

.caudal-cta--sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  border-radius: var(--sc-r-pill);
  font-size: 0.85rem;
}

.caudal-cta--full {
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
}

/* ============================================== SIGNATURE: LIVE HYDROMETER == */
.hydrometer {
  position: fixed;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  width: 4.9rem;
  padding: 0.8rem 0.55rem;
  background: rgba(20, 23, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: var(--sc-r-lg);
  box-shadow: var(--caudal-shadow);
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hydrometer__head {
  text-align: center;
  line-height: 1.15;
}

.hydrometer__pct {
  display: block;
  font-family: var(--sc-font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #00E5FF;
}

.hydrometer__state {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sc-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.hydrometer__tube {
  position: relative;
  width: 12px;
  height: 132px;
  border-radius: var(--sc-r-pill);
  background: #0E1118;
  border: 1px solid rgba(248, 250, 252, 0.14);
  overflow: visible;
}

.hydrometer__fill {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 0%;
  max-height: calc(100% - 2px);
  border-radius: var(--sc-r-pill);
  background: linear-gradient(180deg, #00E5FF 0%, #0066FF 100%);
  transition: height 90ms linear;
}

.hydrometer__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 4px auto 4px -2.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hydrometer__ticks li {
  font-family: var(--sc-font-mono);
  font-size: 0.56rem;
  color: rgba(248, 250, 252, 0.48);
  text-align: right;
  width: 2.2rem;
  transition: color 180ms ease;
}

.hydrometer__ticks li.is-lit {
  color: #00E5FF;
  font-weight: 600;
}

.hydrometer__valves {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: 100%;
}

.hydrometer__valve {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94A3B8;
  padding: 0.22rem 0.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.64rem;
  font-weight: 500;
  transition: color 160ms ease, background-color 160ms ease;
}

.hydrometer__valve:hover {
  color: #F8FAFC;
  background: rgba(248, 250, 252, 0.07);
}

.hydrometer__valve.is-active {
  color: #F8FAFC;
  background: rgba(0, 102, 255, 0.24);
}

.hydrometer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
  flex-shrink: 0;
}

.hydrometer__valve.is-active .hydrometer__dot {
  background: #00E5FF;
}

/* =================================================== ACT 1: LAYERED HERO == */
.hero-stage {
  background: #14171F;
}

.hero-plane {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.hero-plane--sky {
  top: -60px;
  height: calc(100% + 120px);
  z-index: 0;
}

.hero-plane--wall {
  top: -50px;
  height: calc(100% + 100px);
  z-index: 1;
  clip-path: polygon(0 0, 66% 0, 59% 30%, 100% 30%, 100% 100%, 0 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    96deg,
    rgba(20, 23, 31, 0.94) 0%,
    rgba(20, 23, 31, 0.88) 42%,
    rgba(20, 23, 31, 0.34) 58%,
    transparent 74%
  );
}

.hero-copy {
  inset-inline: auto;
  left: var(--sc-gutter);
  max-width: min(33rem, 42vw);
  z-index: 3;
}

.hero-copy--primary {
  top: clamp(5.6rem, 13vh, 8.2rem);
  bottom: auto;
}

.hero-title {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.85rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #F8FAFC;
  max-width: 15ch;
}

.hero-lede {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.14rem);
  line-height: 1.52;
  color: #CBD5E1;
  max-width: 40ch;
}

.hero-cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-meta {
  font-family: var(--sc-font-mono);
  font-size: 0.8rem;
  color: #00E5FF;
}

.hero-copy--telemetry {
  top: auto;
  bottom: clamp(16rem, 36vh, 21rem);
  width: fit-content;
  max-width: calc(100vw - 2 * var(--sc-gutter));
  z-index: 6;
}

.hero-telemetry {
  display: inline-block;
  margin: 0;
  padding: 0.44rem 0.85rem;
  border-radius: var(--sc-r-pill);
  background-color: #14171F;
  border: 1px solid rgba(248, 250, 252, 0.16);
  font-family: var(--sc-font-mono);
  font-size: 0.76rem;
  color: #00E5FF;
}

.hero-copy--turn {
  top: clamp(6.4rem, 15vh, 9.2rem);
  bottom: auto;
}

.hero-turn-title {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
  color: #F8FAFC;
  max-width: 16ch;
}

.hero-copy--foot {
  top: auto;
  bottom: clamp(13.5rem, 30vh, 18rem);
  width: fit-content;
  max-width: calc(100vw - 2 * var(--sc-gutter));
  z-index: 6;
}

.hero-plane--tank {
  bottom: -95px;
  top: auto;
  height: calc(100% + 95px);
  z-index: 4;
  object-position: center bottom;
}

.hero-floor-seal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, #14171F 92%);
}

/* =================================================== ACT 2: FRICTION FLOW == */
.friction-section {
  background: #14171F;
  border-top: 1px solid rgba(248, 250, 252, 0.06);
}

.friction-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-right: clamp(1.25rem, 6vw, 7rem);
}

.friction-lead h2 {
  color: #F8FAFC;
  font-weight: 700;
  max-width: 15ch;
}

.friction-intro {
  margin-top: 1.15rem;
  color: #94A3B8;
  max-width: 38ch;
}

.friction-list {
  display: flex;
  flex-direction: column;
}

.friction-row {
  padding: 1.45rem 0;
  border-top: 1px solid rgba(248, 250, 252, 0.11);
}

.friction-row:last-child {
  border-bottom: 1px solid rgba(248, 250, 252, 0.11);
}

.friction-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.friction-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: -0.015em;
}

.friction-badge {
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  padding: 0.24rem 0.65rem;
  border-radius: var(--sc-r-pill);
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.26);
  white-space: nowrap;
}

.friction-row p {
  margin: 0.6rem 0 0;
  color: #94A3B8;
  font-size: 0.98rem;
  line-height: 1.56;
  max-width: 54ch;
}

/* ============================================= ACT 3: ARRIVAL SCRUB PEAK == */
.arrival-stage {
  background: #101520;
}

.arrival-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    94deg,
    rgba(20, 23, 31, 0.96) 0%,
    rgba(20, 23, 31, 0.90) 41%,
    rgba(20, 23, 31, 0.28) 56%,
    transparent 72%
  );
}

.arrival-copy {
  inset-inline: auto;
  left: var(--sc-gutter);
  max-width: min(33rem, 42vw);
}

.arrival-copy--headline {
  top: clamp(5.6rem, 12vh, 7.8rem);
  bottom: auto;
}

.arrival-title {
  font-size: clamp(2rem, 1.4rem + 2.3vw, 3.35rem);
  font-weight: 700;
  line-height: 1.04;
  color: #F8FAFC;
  max-width: 15ch;
}

.arrival-body {
  margin: 0.95rem 0 0;
  color: #CBD5E1;
  font-size: 1.03rem;
  line-height: 1.52;
  max-width: 39ch;
}

.arrival-copy--capacities {
  top: auto;
  bottom: clamp(4.2rem, 10vh, 6.8rem);
  color: #F8FAFC;
}

.capacity-strip {
  padding: 1.15rem 1.25rem;
  background-color: #14171F;
  color: #F8FAFC;
  border: 1px solid rgba(248, 250, 252, 0.14);
  border-radius: var(--sc-r-lg);
  box-shadow: var(--caudal-shadow);
}

.capacity-strip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.capacity-strip__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F8FAFC;
}

.capacity-strip__tag {
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  color: #00E5FF;
}

.capacity-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.capacity-pills li {
  padding: 0.42rem 0.75rem;
  border-radius: var(--sc-r-md);
  background: #222736;
  border: 1px solid rgba(248, 250, 252, 0.10);
  font-family: var(--sc-font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: #F8FAFC;
}

.arrival-copy--escrow {
  top: clamp(5.8rem, 13vh, 8.2rem);
  bottom: auto;
  color: #F8FAFC;
}

.escrow-card {
  padding: 1.35rem 1.4rem;
  background-color: #14171F;
  color: #F8FAFC;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--sc-r-lg);
  box-shadow: var(--caudal-shadow);
}

.escrow-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.escrow-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
}

.escrow-timer {
  padding: 0.25rem 0.65rem;
  border-radius: var(--sc-r-pill);
  background: rgba(0, 102, 255, 0.24);
  color: #00E5FF;
  font-family: var(--sc-font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.escrow-card p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.54;
  color: #CBD5E1;
}

.arrival-copy--seal {
  top: auto;
  bottom: clamp(1.9rem, 5vh, 3.2rem);
  width: fit-content;
  max-width: calc(100vw - 2 * var(--sc-gutter));
}

.arrival-seal {
  display: inline-block;
  margin: 0;
  padding: 0.42rem 0.85rem;
  border-radius: var(--sc-r-pill);
  background-color: #14171F;
  border: 1px solid rgba(248, 250, 252, 0.14);
  font-family: var(--sc-font-mono);
  font-size: 0.75rem;
  color: #00E5FF;
}

/* =================================================== ACT 4: DUAL APPS PAN == */
.apps-stage {
  background: #14171F;
  display: flex;
  align-items: center;
}

.apps-progress-cues {
  position: absolute;
  top: 4.8rem;
  left: var(--sc-gutter);
  z-index: 25;
  pointer-events: none;
}

.apps-cue-pill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  padding: 0.32rem 0.78rem;
  border-radius: var(--sc-r-pill);
  background-color: #1A1E29;
  border: 1px solid rgba(248, 250, 252, 0.12);
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  color: #F8FAFC;
}

.apps-rail {
  align-items: stretch;
  gap: 2.75rem;
  padding: 5.5rem 9rem 2.5rem var(--sc-gutter);
  width: max-content;
}

.rail-plate {
  flex: 0 0 auto;
  border-radius: var(--sc-r-lg);
}

.rail-plate--intro {
  width: 32rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  padding-right: 1.5rem;
}

.rail-plate--intro h2 {
  font-weight: 700;
  color: #F8FAFC;
}

.rail-points {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rail-points li {
  padding-left: 1rem;
  border-left: 2px solid #0066FF;
  font-size: 0.92rem;
  line-height: 1.48;
  color: #CBD5E1;
}

.rail-points strong {
  color: #F8FAFC;
}

.rail-plate--mockup {
  width: 30.5rem;
  background: #1A1E29;
  border: 1px solid rgba(248, 250, 252, 0.08);
  padding: 1.25rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.mockup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mockup-meta__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #F8FAFC;
}

.mockup-meta__sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #94A3B8;
}

.mockup-badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--sc-r-pill);
  background: rgba(0, 102, 255, 0.20);
  color: #00E5FF;
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Faithful Mobile App Mockup Shell (DESIGN.md) */
.phone-frame {
  position: relative;
  background: #14171F;
  border-radius: 30px;
  border: 3px solid #2B3245;
  overflow: hidden;
  box-shadow: var(--caudal-shadow);
  color: #14171F;
}

.phone-frame--driver {
  font-family: var(--font-driver);
}

.phone-notch {
  width: 76px;
  height: 16px;
  margin: 0.45rem auto 0;
  border-radius: var(--sc-r-pill);
  background: #0A0C12;
}

.phone-header {
  padding: 0.65rem 1.05rem 1rem;
  background: #14171F;
  color: #F8FAFC;
}

.phone-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.phone-header__greeting {
  font-size: 0.74rem;
  color: #94A3B8;
}

.phone-status-chip {
  padding: 0.18rem 0.55rem;
  border-radius: var(--sc-r-pill);
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.phone-status-chip--aqua {
  background: rgba(0, 229, 255, 0.14);
  color: #00E5FF;
}

.phone-header__title {
  margin: 0.25rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #F8FAFC;
}

.phone-sheet {
  background: #F8FAFC;
  color: #14171F;
  border-radius: 24px 24px 0 0;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ui-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 0.72rem 0.82rem;
}

.ui-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ui-card__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #14171F;
}

.ui-card__meta {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  line-height: 1.38;
  color: #475569;
}

.ui-pill-ok {
  padding: 0.16rem 0.5rem;
  border-radius: var(--sc-r-pill);
  background: rgba(4, 120, 87, 0.11);
  color: #047857;
  font-size: 0.68rem;
  font-weight: 700;
}

.ui-pill-warn {
  padding: 0.16rem 0.5rem;
  border-radius: var(--sc-r-pill);
  background: rgba(180, 83, 9, 0.12);
  color: #B45309;
  font-size: 0.68rem;
  font-weight: 700;
}

.ui-pill-primary {
  padding: 0.16rem 0.52rem;
  border-radius: var(--sc-r-pill);
  background: #0066FF;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
}

.ui-cap-selector {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.ui-cap-selector span {
  text-align: center;
  padding: 0.34rem 0.15rem;
  border-radius: 10px;
  background: #F1F5F9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
}

.ui-cap-selector span.is-selected {
  background: #0066FF;
  color: #FFFFFF;
}

.ui-pin-card {
  background: #14171F;
  color: #F8FAFC;
  border-radius: 18px;
  padding: 0.72rem 0.85rem;
}

.ui-pin-card__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94A3B8;
}

.ui-pin-card__hint {
  color: #00E5FF;
  font-weight: 600;
}

.ui-pin-digits {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.ui-pin-digits span {
  text-align: center;
  padding: 0.32rem 0;
  border-radius: 10px;
  background: #222736;
  font-family: var(--sc-font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #00E5FF;
}

.ui-liquid-tabbar {
  margin-top: 0.15rem;
  background: #14171F;
  border-radius: var(--sc-r-pill);
  padding: 0.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 0.7rem;
  color: #94A3B8;
}

.ui-liquid-tabbar .is-active {
  background: #0066FF;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.28rem 0;
  border-radius: var(--sc-r-pill);
}

.ui-liquid-tabbar span:not(.is-active) {
  padding: 0.28rem 0;
}

.ui-driver-pin {
  margin-top: 0.48rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.38rem;
}

.ui-driver-pin span {
  text-align: center;
  padding: 0.28rem 0;
  border-radius: 10px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  font-family: var(--sc-font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: #14171F;
}

.ui-primary-btn {
  margin-top: 0.52rem;
  padding: 0.48rem;
  border-radius: 12px;
  background: #0066FF;
  color: #FFFFFF;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.ui-wallet-card {
  background: #14171F;
  color: #F8FAFC;
  border-radius: 18px;
  padding: 0.68rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.74rem;
}

.ui-wallet-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #CBD5E1;
}

.ui-wallet-plus {
  color: #34D399;
}

.ui-wallet-minus {
  color: #00E5FF;
}

.rail-plate--guarantees {
  width: 30rem;
  background: #1A1E29;
  border: 1px solid rgba(248, 250, 252, 0.08);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.rail-guarantees__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #F8FAFC;
}

.guarantee-block h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #F8FAFC;
}

.guarantee-block p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94A3B8;
}

/* ========================================== ACT 5: AGÜITA LIGHT SECTION == */
.aguita-stage {
  background-color: #F8FAFC;
  color: #14171F;
  display: flex;
  align-items: center;
}

.aguita-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-right: clamp(1.25rem, 6vw, 6.5rem);
  padding-top: 2.5rem;
}

.aguita-copy-col {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.aguita-cue-main {
  background-color: #F8FAFC;
  color: #14171F;
}

.aguita-title {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: #14171F;
  max-width: 16ch;
}

.aguita-body {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.58;
  color: #334155;
  max-width: 46ch;
}

.aguita-body strong {
  color: #14171F;
}

.jug-sizes {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jug-sizes li {
  padding: 0.42rem 0.85rem;
  border-radius: var(--sc-r-pill);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  font-family: var(--sc-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #005F73;
}

.aguita-mascot-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background-color: #FFFFFF;
  color: #14171F;
  border: 1px solid #E2E8F0;
  border-radius: var(--sc-r-lg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.aguita-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #14171F;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(20, 23, 31, 0.22);
}

.aguita-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.aguita-mascot-card__text h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #14171F;
}

.aguita-mascot-card__text p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.46;
  color: #475569;
}

.aguita-media {
  margin: 0;
  border-radius: var(--sc-r-sheet);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.aguita-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: right center;
}

/* ========================================== ACT 6: WAITLIST & COLOPHON == */
.close-section {
  background: #14171F;
  color: #F8FAFC;
  min-height: 100svh;
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-right: clamp(1.25rem, 6vw, 6.5rem);
}

.close-pitch__status {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--sc-r-pill);
  background: rgba(0, 102, 255, 0.20);
  color: #00E5FF;
  font-family: var(--sc-font-mono);
  font-size: 0.76rem;
}

.close-title {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: #F8FAFC;
  max-width: 15ch;
}

.close-lede {
  margin-top: 1.1rem;
  color: #CBD5E1;
  max-width: 44ch;
}

.close-facts {
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.close-facts div {
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.10);
}

.close-facts dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: #F8FAFC;
}

.close-facts dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94A3B8;
}

.close-mail {
  font-family: var(--sc-font-mono);
  color: #00E5FF;
  text-decoration: none;
}

.close-mail:hover {
  text-decoration: underline;
}

/* Dual Waitlist Panel */
.waitlist-panel {
  background: #1A1E29;
  border: 1px solid rgba(248, 250, 252, 0.10);
  border-radius: var(--sc-r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--caudal-shadow);
}

.waitlist-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.32rem;
  background: #14171F;
  border-radius: var(--sc-r-md);
  margin-bottom: 1.35rem;
}

.waitlist-tab {
  appearance: none;
  border: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  color: #94A3B8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.waitlist-tab.is-active {
  background: #0066FF;
  color: #FFFFFF;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-row--split > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.waitlist-form label,
.segmented-fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
}

.label-opt {
  font-weight: 400;
  color: #94A3B8;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="tel"],
.waitlist-form input[type="email"],
.waitlist-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--sc-r-md);
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: #14171F;
  color: #F8FAFC;
  font-size: 0.95rem;
}

.waitlist-form input::placeholder {
  color: #64748B;
}

.waitlist-form input:user-invalid {
  border-color: var(--caudal-err);
}

.role-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.role-fieldset[hidden] {
  display: none !important;
}

.segmented-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.segmented-pills {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.seg-pill {
  position: relative;
  cursor: pointer;
}

.seg-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem;
  border-radius: 12px;
  background: #14171F;
  border: 1px solid rgba(248, 250, 252, 0.12);
  font-size: 0.86rem;
  font-weight: 600;
  color: #CBD5E1;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.seg-pill input:checked + span {
  background: rgba(0, 102, 255, 0.22);
  border-color: #0066FF;
  color: #FFFFFF;
}

.jug-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--sc-r-md);
  background: rgba(20, 23, 31, 0.72);
  border: 1px solid rgba(248, 250, 252, 0.08);
  cursor: pointer;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
  color: #CBD5E1 !important;
}

.jug-check input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.jug-check strong {
  color: #F8FAFC;
}

.waitlist-feedback {
  padding: 0.85rem 1rem;
  border-radius: var(--sc-r-md);
  font-size: 0.9rem;
  line-height: 1.45;
}

.waitlist-feedback--ok {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #A7F3D0;
}

.waitlist-feedback--error {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #FECACA;
}

/* Footer & Pulse Studio Colophon */
.caudal-footer {
  padding-top: 1.6rem;
  padding-right: clamp(1.25rem, 6vw, 6.5rem);
  border-top: 1px solid rgba(248, 250, 252, 0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: #94A3B8;
}

.caudal-footer__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.caudal-footer__left img {
  border-radius: 6px;
}

.caudal-footer__left a {
  color: #F8FAFC;
  text-decoration: none;
}

.caudal-footer__left a:hover {
  text-decoration: underline;
}

.pulse-colophon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--sc-r-pill);
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.10);
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.82rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.pulse-colophon:hover {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(248, 250, 252, 0.22);
}

.pulse-colophon img {
  height: 20px;
  width: auto;
}

/* ====================================================== RESPONSIVE <= 1080 == */
@media (max-width: 1080px) {
  .hydrometer {
    right: var(--sc-gutter);
    left: var(--sc-gutter);
    top: 4.35rem;
    transform: none;
    width: auto;
    padding: 0.42rem 0.75rem;
    border-radius: var(--sc-r-pill);
    flex-direction: row;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .hydrometer__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .hydrometer__state {
    margin-top: 0;
  }

  .hydrometer__tube {
    flex: 1 1 auto;
    height: 8px;
    width: auto;
  }

  .hydrometer__fill {
    top: 1px;
    bottom: 1px;
    left: 1px;
    right: auto;
    height: auto !important;
    width: var(--hydro-pct-w, 0%);
    max-height: none;
  }

  .hydrometer__ticks,
  .hydrometer__valves {
    display: none;
  }

  .friction-grid,
  .aguita-grid,
  .close-grid,
  .caudal-footer {
    padding-right: var(--sc-gutter);
  }
}

/* ======================================================= MOBILE <= 860px == */
@media (max-width: 860px) {
  .caudal-brand__loc,
  .caudal-bar__status {
    display: none;
  }

  .caudal-bar {
    top: 0.55rem;
    padding: 0.42rem 0.55rem 0.42rem 0.7rem;
  }

  .hydrometer {
    top: 3.65rem;
  }

  /* Hero mobile composition: copy above foreground cutout with crisp dark plate */
  .hero-plane--wall {
    clip-path: polygon(0 0, 58% 0, 50% 24%, 100% 24%, 100% 100%, 0 100%);
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 23, 31, 0.95) 0%,
      rgba(20, 23, 31, 0.90) 58%,
      rgba(20, 23, 31, 0.48) 78%,
      rgba(20, 23, 31, 0.92) 100%
    );
  }

  .hero-copy {
    inset-inline: var(--sc-gutter);
    max-width: none;
    z-index: 6;
  }

  .hero-copy--primary {
    top: 6.3rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.2vw, 2.35rem);
  }

  .hero-lede {
    font-size: 0.95rem;
  }

  .hero-copy--telemetry {
    bottom: 12.5rem;
  }

  .hero-copy--turn {
    top: 6.8rem;
  }

  .hero-copy--foot {
    bottom: 11.2rem;
  }

  .hero-plane--tank {
    height: 62%;
    bottom: -45px;
    z-index: 4;
  }

  .friction-grid,
  .close-grid {
    grid-template-columns: 1fr;
  }

  .arrival-stage video[data-sc-scrub] {
    object-position: 76% center;
  }

  .arrival-stage .sc-stage__poster {
    object-position: 78% center;
  }

  /* Arrival mobile scrim covers top and bottom copy cleanly */
  .arrival-scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 23, 31, 0.95) 0%,
      rgba(20, 23, 31, 0.86) 44%,
      rgba(20, 23, 31, 0.40) 64%,
      rgba(20, 23, 31, 0.95) 100%
    );
  }

  .arrival-copy {
    inset-inline: var(--sc-gutter);
    max-width: none;
  }

  .arrival-copy--headline,
  .arrival-copy--escrow {
    top: 6.3rem;
  }

  .arrival-title {
    font-size: clamp(1.7rem, 6.8vw, 2.2rem);
  }

  .arrival-copy--capacities {
    bottom: 4.5rem;
  }

  .capacity-strip {
    padding: 0.85rem 0.95rem;
  }

  .capacity-pills li {
    padding: 0.32rem 0.58rem;
    font-size: 0.76rem;
  }

  /* Pan rail on mobile */
  .apps-progress-cues {
    top: 6.1rem;
  }

  .apps-rail {
    padding: 8.2rem 2rem 1.5rem var(--sc-gutter);
    gap: 1.15rem;
  }

  .rail-plate--intro,
  .rail-plate--mockup,
  .rail-plate--guarantees {
    width: min(20.5rem, 84vw);
    padding: 0.95rem;
  }

  .phone-header {
    padding: 0.5rem 0.85rem 0.75rem;
  }

  .phone-sheet {
    padding: 0.68rem;
    gap: 0.48rem;
  }

  /* Act 5 Agüita on mobile inside 100svh */
  .aguita-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-top: 5.4rem;
  }

  .aguita-title {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
  }

  .aguita-body {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.44;
  }

  .jug-sizes {
    margin-top: 0.65rem;
  }

  .jug-sizes li {
    padding: 0.28rem 0.65rem;
    font-size: 0.73rem;
  }

  .aguita-mascot-card {
    padding: 0.7rem 0.85rem;
    gap: 0.75rem;
  }

  .aguita-avatar {
    width: 54px;
    height: 54px;
  }

  .aguita-mascot-card__text h3 {
    font-size: 0.9rem;
  }

  .aguita-mascot-card__text p {
    font-size: 0.78rem;
  }

  .aguita-media img {
    aspect-ratio: 16 / 8.5;
  }

  .form-row--split {
    grid-template-columns: 1fr;
  }
}
