/* ==========================================================================
   BIMM Design System & Stylesheet — Micro-story Master Specification
   Header + Hero Only
   Fixed Right Stage (Single Active Frame) + Static Left Editorial Message
   ========================================================================== */

/* --------------------------------------------------------------------------
   Core Variables & Tokens (Section 7)
   -------------------------------------------------------------------------- */
:root {
  --white: #FFFFFF;
  --ink: #1A170D;
  --body: #5F5C55;
  --gold: #BCA360;
  --gold-hover: #A89151;
  --gold-dark: #6B5D36;
  --gold-label: #A68B45;
  --warm-light: #F5F1E8;
  --line: rgba(26, 23, 13, 0.10);
  --header-border: rgba(26, 23, 13, 0.07);

  --font-stack: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 1440px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

/* Accessibility: Visible Focus States (Section 35) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-label);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header (Section 10)
   -------------------------------------------------------------------------- */
.header {
  width: 100%;
  height: 80px;
  background-color: var(--white);
  border-bottom: 1px solid var(--header-border);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  width: 190px;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.15s ease;
}

.nav-link:hover {
  opacity: 0.72;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 21px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-header-cta:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Hero Section Layout (Section 11)
   -------------------------------------------------------------------------- */
.hero {
  width: 100%;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: var(--max-width);
  min-height: 588px;
  margin: 0 auto;
  padding: 44px 48px 34px;
  display: grid;
  grid-template-columns: minmax(500px, 520px) minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  position: relative;
}

/* --------------------------------------------------------------------------
   Hero Left: Editorial Message (Section 12 - Completely Static)
   -------------------------------------------------------------------------- */
.hero-content {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.hero-h1 {
  font-size: 54px;
  line-height: 1.01;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  max-width: 540px;
}

.hero-h1 span {
  display: block;
  white-space: nowrap;
}

.hero-body {
  margin-top: 24px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--body);
}

/* Compact CTA & Economic Signal (Section 12.4, 12.5, 12.6) */
.hero-cta-area {
  margin-top: 27px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-cta-primary {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--gold);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  border-radius: 13px;
  padding: 15px 23px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-hero-cta:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.cta-arrow {
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
}

.hero-support {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--body);
}

.hero-economic {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  max-width: 190px;
  /* Strictly no vertical divider, no card (Section 12.6) */
}

/* --------------------------------------------------------------------------
   Hero Right: Fixed Visual Stage (Section 13)
   One stable stage on white background. No card, no borders, no layout shifts.
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 710px;
  height: 420px;
  overflow: visible;
  justify-self: start;
}

/* --------------------------------------------------------------------------
   Stage Frames & Transition Logic
   Default / CSS fallback: CONNECT is visible, others hidden.
   Continuous 4-state loop on desktop: PREPARE -> CONNECT -> DELIVER -> BRAND -> PREPARE
   Overlapping cinematic crossfade (900ms, cubic-bezier(0.22, 1, 0.36, 1)).
   -------------------------------------------------------------------------- */
.stage-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Active / Static Default Frame State */
.stage-frame.frame-active,
.stage-frame.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}

/* Outgoing Frame State (Visible and overlapping during transition) */
.stage-frame.is-leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
}

/* Incoming starting state before reflow */
.stage-frame.is-entering {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Unified Vertical Scene Composition
   Each frame is ONE centered vertical composition: TITLE then IMAGE.
   Optical center at ~46% down the 420px stage.
   -------------------------------------------------------------------------- */
.frame-composition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-bottom: 24px; /* Optical center ~46% down stage */
}

/* --------------------------------------------------------------------------
   Scene Titles (PREPARE / CONNECT / DELIVER)
   Centered directly above their own image, sharing the same vertical axis.
   20–28px gap between title and visible artwork.
   -------------------------------------------------------------------------- */
.stage-label {
  display: block;
  text-align: center;
  margin: 0 auto 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-label);
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  z-index: 10;
  opacity: 0;
  transform: translateX(8px);
  will-change: opacity, transform;
}

.stage-label--prepare {
  font-size: 28px;
}

.stage-label--connect {
  font-size: 29px;
}

.stage-label--deliver {
  font-size: 28px;
}

/* Default / non-animated active label */
.stage-frame.frame-active .stage-label {
  opacity: 1;
  transform: none;
}

/* Animated active label: staggered in by 120ms */
.hero-stage--animated .stage-frame.is-active .stage-label {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
              transform 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

/* Animated leaving label: fades out immediately (0ms delay) */
.hero-stage--animated .stage-frame.is-leaving .stage-label {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 750ms cubic-bezier(0.22, 1, 0.36, 1) 0ms,
              transform 750ms cubic-bezier(0.22, 1, 0.36, 1) 0ms;
}

/* In entering state (before transition starts) */
.hero-stage--animated .stage-frame.is-entering .stage-label {
  opacity: 0;
  transform: translateX(8px);
  transition: none !important;
}

/* Dissolve mode: no horizontal translation on label */
.hero-stage--animated .stage-frame.is-dissolve .stage-label,
.hero-stage--animated .stage-frame.is-active.is-dissolve .stage-label,
.hero-stage--animated .stage-frame.is-leaving.is-dissolve .stage-label,
.hero-stage--animated .stage-frame.is-entering.is-dissolve .stage-label {
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Stage Visual Centering Wrapper & Artwork Motion
   Holds image on the exact same vertical centerline as the title.
   - Outgoing: 100–150ms delay, opacity 1 -> 0, translateX 0 -> -10px, scale 1 -> 0.995
   - Incoming: 0ms delay, opacity 0 -> 1, translateX 10px -> 0, scale 1.005 -> 1
   -------------------------------------------------------------------------- */
.stage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: translateX(10px) scale(1.005);
  will-change: opacity, transform;
}

/* Default / non-animated active visual */
.stage-frame.frame-active .stage-visual {
  opacity: 1;
  transform: none;
}

/* Animated active visual: starts fading in immediately (0ms) */
.hero-stage--animated .stage-frame.is-active .stage-visual {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms;
}

/* Animated leaving visual: starts fading ~120ms after label starts fading */
.hero-stage--animated .stage-frame.is-leaving .stage-visual {
  opacity: 0;
  transform: translateX(-10px) scale(0.995);
  transition: opacity 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
              transform 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

/* In entering state (before transition starts) */
.hero-stage--animated .stage-frame.is-entering .stage-visual {
  opacity: 0;
  transform: translateX(10px) scale(1.005);
  transition: none !important;
}

/* Dissolve mode (DELIVER -> BRAND and BRAND -> PREPARE): pure dissolve, no translateX */
.hero-stage--animated .stage-frame.is-entering.is-dissolve .stage-visual {
  opacity: 0;
  transform: scale(1.004);
  transition: none !important;
}

.hero-stage--animated .stage-frame.is-active.is-dissolve .stage-visual {
  opacity: 1;
  transform: scale(1);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms;
}

.hero-stage--animated .stage-frame.is-leaving.is-dissolve .stage-visual {
  opacity: 0;
  transform: scale(0.996);
  transition: opacity 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
              transform 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.stage-image {
  object-fit: contain;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Frame 1: PREPARE (Medium Scale: ~72–78% usable stage area, visually centered)
   -------------------------------------------------------------------------- */
.image-prepare {
  height: 305px;
  max-height: 310px;
  max-width: 82%;
  width: auto;
}

/* --------------------------------------------------------------------------
   Frame 2: CONNECT (Largest, dominant visual anchor: ~88–94% usable width/area)
   -------------------------------------------------------------------------- */
.image-connect {
  width: 580px;
  max-width: 92%;
  max-height: 320px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Frame 3: DELIVER (Visual reference baseline: ~65–72% usable area, clean & compact)
   -------------------------------------------------------------------------- */
.image-deliver {
  height: 295px;
  max-height: 305px;
  max-width: 75%;
  width: auto;
}

/* --------------------------------------------------------------------------
   Frame 4: BRAND PAYOFF (Section 18)
   Clear visual payoff: logo scaled up by 25–35% (290–320px), tagline 22–24px.
   Shares the exact same optical center (~46% down stage).
   -------------------------------------------------------------------------- */
.frame-brand .brand-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-bottom: 24px; /* Optical center ~46% */
  text-align: center;
  opacity: 0;
  transform: scale(1.003);
  will-change: opacity, transform;
}

/* Default / non-animated active brand content */
.stage-frame.frame-active .brand-content {
  opacity: 1;
  transform: none;
}

/* Animated active brand content: gentle fade in, no horizontal swipe */
.hero-stage--animated .stage-frame.frame-brand.is-active .brand-content {
  opacity: 1;
  transform: scale(1);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms;
}

/* Animated leaving brand content: gentle fade down, no horizontal swipe */
.hero-stage--animated .stage-frame.frame-brand.is-leaving .brand-content {
  opacity: 0;
  transform: scale(0.997);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 0ms;
}

/* In entering state */
.hero-stage--animated .stage-frame.frame-brand.is-entering .brand-content {
  opacity: 0;
  transform: scale(1.003);
  transition: none !important;
}

.brand-logo {
  width: 310px;
  max-width: 85%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.brand-tagline {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-top: 22px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Shared Section Utilities & Typography (Sections 5, 6, 7, 20)
   -------------------------------------------------------------------------- */
.site-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  line-height: 1;
}

.section-h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-ingress {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   Seksjon 1: For restauranten (Section 9)
   Asymmetric two-column (58% text / 42% image), warm background.
   Includes top-placed video preview before the restaurant content.
   -------------------------------------------------------------------------- */
.section-restaurant {
  background-color: var(--warm-light);
  padding: 60px 0 90px;
}

/* Video Preview at top of For restauranten */
.restaurant-video-wrapper {
  max-width: 940px;
  width: 100%;
  margin: 0 auto 76px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.restaurant-content {
  max-width: 100%;
}

.eyebrow-restaurant {
  margin-bottom: 16px;
}

.h2-restaurant {
  font-size: 45px;
  max-width: 540px;
  margin-bottom: 24px;
}

.ingress-restaurant {
  max-width: 560px;
  margin-bottom: 44px;
}

/* Three Vertical Economic Rows (Section 9) */
.restaurant-economics {
  display: flex;
  flex-direction: column;
  margin-bottom: 38px;
}

.economic-row {
  display: grid;
  grid-template-columns: minmax(280px, max-content) 1fr;
  column-gap: 32px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(26, 23, 13, 0.10);
}

.economic-row:last-child {
  border-bottom: none;
}

.economic-stat {
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.economic-stat--60 {
  font-size: 43px;
}

.economic-stat--commission {
  font-size: 39px;
  letter-spacing: -0.015em;
}

.economic-stat--nobuds {
  font-size: 31px;
  letter-spacing: -0.01em;
}

.economic-label {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--body);
}

.restaurant-conclusion {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.restaurant-media {
  width: 100%;
}

.restaurant-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Seksjon 2: Slik fungerer BIMM (Section 10)
   White background, 3 steps with directional arrows, centered car image.
   -------------------------------------------------------------------------- */
.section-how {
  background-color: var(--white);
  padding: 90px 0;
}

.how-header {
  margin-bottom: 48px;
}

.eyebrow-how {
  margin-bottom: 16px;
}

.h2-how {
  font-size: 45px;
  max-width: 700px;
  margin-bottom: 24px;
}

.h2-how span {
  display: block;
}

.ingress-how {
  max-width: 680px;
}

/* Video Preview */
.how-video-wrapper {
  max-width: 940px;
  width: 100%;
  margin: 0 auto 76px;
}

.how-video-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background-color: #0A0A0A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  pointer-events: none;
}

.how-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A170D;
  transition: transform 180ms ease, background-color 180ms ease;
  z-index: 2;
  padding: 0;
}

.how-video-preview-container:hover .how-play-button,
.how-play-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
  background-color: rgba(255, 255, 255, 0.98);
}

.how-play-button:focus-visible {
  outline: 2px solid var(--gold-label);
  outline-offset: 4px;
}

.how-play-button svg {
  width: 26px;
  height: 26px;
  fill: #1A170D;
  transform: translateX(2px);
}

.how-video-label {
  font-size: 14.5px;
  font-weight: 500;
  color: #5F5C55;
  text-align: center;
  margin-top: 14px;
}

/* Three Steps Grid with arrows */
.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto 52px;
}

.how-step {
  flex: 1;
  min-width: 0;
}

.step-label {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-label);
  line-height: 1;
  margin-bottom: 14px;
}

.step-label--connect {
  font-weight: 700;
}

.step-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.step-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  flex-shrink: 0;
  user-select: none;
  padding: 0 4px;
}

.step-arrow-line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: #BCA360;
}

.step-arrow-head {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1px solid #BCA360;
  border-right: 1px solid #BCA360;
  transform: rotate(45deg);
  margin-left: -2px;
  font-size: 0;
  line-height: 0;
}

.how-media {
  max-width: 960px;
  margin: 0 auto 38px;
}

.how-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: contain;
  margin: 0 auto;
}

.how-conclusion {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Video Modal / Lightbox (Section 2)
   -------------------------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.88);
  cursor: pointer;
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 1400px, calc(88vh * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  max-width: 90vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease;
}

.video-modal.is-open .video-modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 23, 13, 0.6);
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
  z-index: 10;
  padding: 0;
}

.video-modal-close:hover {
  transform: scale(1.08);
  background-color: rgba(26, 23, 13, 0.85);
}

.video-modal-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.video-modal-content {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Seksjon 3: Veien til lansering (Section 11)
   Dark background (#1A170D), large wide car image, horizontal timeline.
   -------------------------------------------------------------------------- */
.section-launch {
  background-color: var(--ink);
  color: var(--white);
  padding: 98px 0;
}

.launch-header {
  margin-bottom: 54px;
}

.eyebrow-launch {
  color: var(--gold);
  margin-bottom: 16px;
}

.h2-launch {
  font-size: 47px;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 24px;
}

.ingress-launch {
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
}

.launch-media {
  max-width: 1100px;
  margin: 0 auto 56px;
}

.launch-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: contain;
  margin: 0 auto;
}

/* Timeline: Horizontal desktop layout */
.launch-timeline {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 14px;
}

.timeline-track {
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.18);
}

.timeline-stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
  z-index: 2;
}

.timeline-stop {
  display: flex;
  flex-direction: column;
}

.timeline-marker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-marker {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--ink);
}

.timeline-year {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.timeline-title {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
}

.timeline-text {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.70);
}

.launch-conclusion-wrapper {
  margin-top: 64px;
  text-align: center;
}

.launch-accent-line {
  width: 48px;
  height: 2px;
  background-color: var(--gold);
  margin: 0 auto 20px;
}

.launch-conclusion {
  font-size: 25px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Seksjon 4: Bli med fra starten + Footer (Sections 12, 13, 14, 15, 16)
   Unified warm background surface (#F5F1E8) for both CTA and Footer.
   -------------------------------------------------------------------------- */
.cta-footer-surface {
  background-color: var(--warm-light);
}

.section-cta {
  padding: 92px 0 65px;
}

.cta-container {
  text-align: center;
}

.eyebrow-cta {
  margin-bottom: 16px;
}

.h2-cta {
  font-size: 45px;
  margin-bottom: 24px;
}

.ingress-cta {
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.cta-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--gold);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  border-radius: 13px;
  padding: 15px 24px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-cta-main:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.cta-secondary-line {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 15px;
  line-height: 1;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(26, 23, 13, 0.10);
}

/* Footer */
.footer {
  padding-top: 42px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 168px;
  height: auto;
  display: block;
}

.footer-tagline {
  font-size: 14.5px;
  color: var(--body);
  margin-top: 14px;
  font-style: normal;
  line-height: 1.4;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-nav-link:hover {
  color: var(--gold-dark);
}

.footer-contact-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 12px;
}

.footer-email {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-email:hover {
  color: var(--gold-dark);
}

.footer-copyright-area {
  padding-top: 20px;
}

.footer-copyright {
  font-size: 12.5px;
  color: rgba(26, 23, 13, 0.55);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Responsive — Tier B: Compact Desktop / Tablet Landscape (900px–1100px)
   Retains two-column composition and eligible animated hero.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .site-container {
    padding: 0 32px;
  }

  .restaurant-video-wrapper {
    max-width: 940px;
    margin: 0 auto 64px;
  }

  .restaurant-grid {
    column-gap: 36px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
  }

  .h2-restaurant,
  .h2-how,
  .h2-launch,
  .h2-cta {
    font-size: 40px;
  }

  .economic-row {
    grid-template-columns: minmax(220px, max-content) 1fr;
    column-gap: 20px;
    padding: 18px 0;
  }

  .economic-stat--60 {
    font-size: 36px;
  }

  .economic-stat--commission {
    font-size: 32px;
  }

  .economic-stat--nobuds {
    font-size: 26px;
  }

  .timeline-stops {
    gap: 28px;
  }

  .timeline-title {
    font-size: 21px;
  }

  .header-container {
    padding: 0 32px;
  }

  .nav-list {
    gap: 24px;
  }

  .hero-container {
    padding: 44px 32px 36px;
    grid-template-columns: 45% 55%;
    column-gap: 24px;
    min-height: 580px;
  }

  .hero-content {
    max-width: 440px;
  }

  .hero-h1 {
    font-size: 46px;
  }

  .hero-body {
    font-size: 17px;
    max-width: 400px;
  }

  .hero-stage {
    max-width: 580px;
    height: 380px;
  }

  .image-prepare {
    max-width: 360px;
    max-height: 300px;
  }

  .image-connect {
    width: 540px;
    max-height: 330px;
  }

  .image-deliver {
    max-width: 270px;
    max-height: 300px;
  }

  .brand-logo {
    width: 220px;
  }

  .brand-tagline {
    font-size: 19px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Common Single-Column & Static CONNECT Rules (<= 899px)
   Applies to Tablet Portrait (768px–899px) and Mobile (<= 767px).
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  /* Header: nav hidden, keeps logo + CTA */
  .header-nav {
    display: none;
  }

  /* Section 1: For restauranten (video sits immediately after hero) */
  .section-restaurant {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .restaurant-video-wrapper {
    width: 100%;
    max-width: none;
    margin: 0 auto 48px;
  }

  /* Restaurant: single column */
  .restaurant-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* How section: vertical process */
  .how-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .how-step {
    width: 100%;
    max-width: 100%;
  }

  /* True vertical connectors between steps */
  .step-arrow {
    transform: none;
    align-self: flex-start;
    width: 24px;
    height: 42px;
    margin: 12px 0 12px 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .step-arrow-line {
    width: 1px;
    height: 26px;
    background-color: #BCA360;
  }

  .step-arrow-head {
    width: 6px;
    height: 6px;
    border: 0;
    border-right: 1px solid #BCA360;
    border-bottom: 1px solid #BCA360;
    transform: rotate(45deg);
    margin: -2px 0 0;
    font-size: 0;
    color: transparent;
    display: block;
  }

  .step-label {
    font-size: 23px;
    margin-bottom: 12px;
  }

  .step-text {
    font-size: 16px;
    line-height: 1.55;
  }

  /* Timeline: vertical */
  .launch-timeline {
    padding-top: 0;
    position: relative;
  }

  .timeline-track {
    top: 6px;
    bottom: 6px;
    left: 5px;
    right: auto;
    width: 1px;
    height: calc(100% - 12px);
  }

  .timeline-stops {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 30px;
  }

  .timeline-marker-wrapper {
    position: relative;
    margin-bottom: 10px;
  }

  .timeline-marker {
    position: absolute;
    left: -30px;
  }

  .timeline-title {
    font-size: 22px;
    line-height: 1.28;
  }

  .timeline-text {
    font-size: 15.5px;
    line-height: 1.55;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tier C: Tablet Portrait (768px–899px)
   Deliberate single-column composition with 32px gutters.
   -------------------------------------------------------------------------- */
@media (max-width: 899px) and (min-width: 768px) {
  .site-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .header {
    height: 72px;
  }

  .header-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .header-logo {
    width: 155px;
  }

  .btn-header-cta {
    min-height: 44px;
  }

  .hero {
    overflow: visible;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 38px 32px 48px;
    gap: 34px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-h1 {
    font-size: 44px;
    line-height: 1.04;
    max-width: 620px;
  }

  .hero-h1 span {
    white-space: normal;
  }

  .hero-body {
    max-width: 620px;
    font-size: 17px;
  }

  .hero-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 380px;
    margin: 0 auto;
    overflow: visible;
  }

  .stage-label {
    font-size: 25px;
    margin: 0 auto 16px;
  }

  .image-prepare {
    max-width: 320px;
    max-height: 270px;
    width: auto;
    height: auto;
  }

  .image-connect {
    width: 100%;
    max-width: 440px;
    max-height: 270px;
    height: auto;
  }

  .image-deliver {
    max-width: 250px;
    max-height: 270px;
    width: auto;
    height: auto;
  }

  .brand-logo {
    width: 240px;
    max-width: 80%;
    height: auto;
  }

  .brand-tagline {
    font-size: 19px;
    margin-top: 14px;
  }

  .frame-composition {
    padding-bottom: 16px;
  }

  .frame-brand .brand-content {
    padding-bottom: 16px;
  }

  .restaurant-video-wrapper {
    width: 100%;
    max-width: 940px;
    margin: 0 auto 48px;
  }

  .restaurant-media {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tier D: Phone (341px–767px)
   Deliberate mobile composition with 20px gutters.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .site-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Header */
  .header {
    height: 72px;
  }

  .header-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-logo {
    width: 150px;
  }

  .btn-header-cta {
    min-height: 44px;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 11px;
  }

  /* Hero */
  .hero {
    overflow: visible;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 32px 20px 40px;
    gap: 32px;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .hero-h1 {
    font-size: clamp(34px, 9.5vw, 40px);
    line-height: 1.05;
    max-width: 100%;
  }

  .hero-h1 span {
    white-space: normal;
  }

  .hero-body {
    margin-top: 18px;
    max-width: 100%;
    font-size: 16.5px;
    line-height: 1.5;
  }

  .hero-cta-area {
    margin-top: 22px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-economic {
    max-width: 100%;
  }

  .hero-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: clamp(290px, 78vw, 330px);
    margin: 0 auto;
    overflow: visible;
  }

  .stage-label {
    font-size: clamp(21px, 5.8vw, 24px);
    margin: 0 auto 12px;
  }

  .image-prepare {
    max-width: 270px;
    max-height: 220px;
    width: auto;
    height: auto;
  }

  .image-connect {
    width: 100%;
    max-width: 350px;
    max-height: 220px;
    height: auto;
  }

  .image-deliver {
    max-width: 210px;
    max-height: 220px;
    width: auto;
    height: auto;
  }

  .brand-logo {
    width: 200px;
    max-width: 75%;
    height: auto;
  }

  .brand-tagline {
    font-size: 16px;
    margin-top: 10px;
  }

  .frame-composition {
    padding-bottom: 12px;
  }

  .frame-brand .brand-content {
    padding-bottom: 12px;
  }

  /* Section 1: For restauranten */
  .section-restaurant {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .restaurant-video-wrapper {
    width: 100%;
    max-width: none;
    margin: 0 auto 48px;
  }

  .how-video-preview-container {
    border-radius: 16px;
  }

  .how-video-preview {
    border-radius: 16px;
  }

  .how-play-button {
    width: 64px;
    height: 64px;
  }

  .how-play-button svg {
    width: 22px;
    height: 22px;
  }

  .restaurant-media {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .restaurant-image {
    border-radius: 16px;
  }

  .h2-restaurant {
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.1;
    margin-bottom: 22px;
  }

  .ingress-restaurant {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 34px;
  }

  .restaurant-economics {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .economic-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(26, 23, 13, 0.10);
  }

  .economic-row:last-child {
    border-bottom: none;
  }

  .economic-stat--60 {
    font-size: 38px;
  }

  .economic-stat--commission {
    font-size: 34px;
  }

  .economic-stat--nobuds {
    font-size: 28px;
  }

  .economic-label {
    max-width: 100%;
  }

  .restaurant-conclusion {
    font-size: 18px;
  }

  /* Section 2: Slik fungerer BIMM */
  .section-how {
    padding: 64px 0;
  }

  .how-header {
    margin-bottom: 38px;
  }

  .h2-how {
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.1;
    margin-bottom: 22px;
  }

  .ingress-how {
    font-size: 16px;
    line-height: 1.55;
  }

  .how-media {
    width: 100%;
    max-width: none;
    margin: 38px auto 30px;
  }

  .how-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
  }

  .how-conclusion {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Section 3: Veien til lansering */
  .section-launch {
    padding: 68px 0;
  }

  .h2-launch {
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.1;
  }

  .launch-image {
    border-radius: 16px;
  }

  .launch-conclusion {
    font-size: 20px;
    line-height: 1.4;
  }

  /* Section 4: Final CTA */
  .section-cta {
    padding: 64px 0 44px;
  }

  .h2-cta {
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.1;
  }

  /* Section 5: Footer */
  .footer {
    padding: 36px 0 26px;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
  }

  .footer-brand {
    margin-bottom: 30px;
  }

  .footer-nav {
    margin-bottom: 30px;
  }

  .footer-contact {
    margin-bottom: 32px;
  }

  /* Video Modal Dialog on Mobile */
  .video-modal-dialog {
    width: min(96vw, calc(90vh * 16 / 9));
    max-height: 90vh;
    max-width: 96vw;
  }

  .video-modal-close {
    top: -42px;
    right: 0;
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Extra Breakpoint for Small Mobile <= 390px (Section 7.4)
   -------------------------------------------------------------------------- */
@media (max-width: 390px) {
  .header-logo {
    width: 138px;
  }

  .btn-header-cta {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tier E: Very Small Phone <= 340px (Sections 5, 6, 7.5, 8.4, 9.1, 10.6, 22, 24)
   -------------------------------------------------------------------------- */
@media (max-width: 340px) {
  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-logo {
    width: 128px;
  }

  .btn-header-cta {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    height: 270px;
  }

  .stage-label {
    font-size: 19px;
    margin: 0 auto 10px;
  }

  .image-prepare {
    max-width: 220px;
    max-height: 175px;
  }

  .image-connect {
    max-width: 288px;
    max-height: 175px;
  }

  .image-deliver {
    max-width: 170px;
    max-height: 175px;
  }

  .brand-logo {
    width: 155px;
  }

  .brand-tagline {
    font-size: 14px;
    margin-top: 8px;
  }

  .economic-stat--60 {
    font-size: 34px;
  }

  .economic-stat--commission {
    font-size: 30px;
  }

  .economic-stat--nobuds {
    font-size: 25px;
  }

  .how-play-button {
    width: 56px;
    height: 56px;
  }

  .drawer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .phone-control-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .phone-country-btn {
    width: 100%;
    min-width: 0;
  }

  .phone-local-input {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Short Viewport / Landscape Video Modal Fix (Section 19)
   -------------------------------------------------------------------------- */
@media (max-height: 560px) {
  .video-modal-dialog {
    width: min(94vw, calc(86vh * 16 / 9));
    max-width: 94vw;
    max-height: 86vh;
  }

  .video-modal-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: rgba(26, 23, 13, 0.72);
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion (Section 25)
   Show CONNECT immediately and permanently. No sequence, no fades, no swipe.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stage-frame {
    display: none !important;
    transition: none !important;
  }

  .stage-frame.frame-connect {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .stage-frame.frame-connect .stage-label,
  .stage-frame.frame-connect .stage-visual {
    opacity: 1 !important;
    transform: none !important;
  }

  .drawer,
  .drawer-overlay {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Interest Form Drawer (Meld interesse) — Shared Right-Side Drawer
   -------------------------------------------------------------------------- */
/* Body & HTML scroll locking */
html.drawer-scroll-locked,
body.drawer-scroll-locked {
  overflow: hidden !important;
}

/* Page Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.46);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Right-Side Drawer Panel */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 92vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--white, #FFFFFF);
  z-index: 2000;
  box-shadow: -8px 0 32px rgba(26, 23, 13, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  padding: 40px;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Close Button (X) */
.drawer-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--ink, #1A170D);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
  z-index: 10;
}

.drawer-close:hover {
  background-color: rgba(26, 23, 13, 0.06);
}

.drawer-close:focus-visible {
  outline: 2px solid var(--gold-label, #A68B45);
  outline-offset: 2px;
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

/* Drawer Typography */
.drawer-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark, #6B5D36);
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1;
}

.drawer-heading {
  font-size: 33px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink, #1A170D);
  margin-bottom: 16px;
}

.drawer-intro {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body, #5F5C55);
  margin-bottom: 34px;
}

/* Form Groups & Labels */
.drawer-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1A170D);
  margin-bottom: 8px;
  display: block;
  line-height: 1.2;
}

/* Input Fields */
.form-input {
  height: 54px;
  width: 100%;
  border: 1px solid rgba(26, 23, 13, 0.16);
  border-radius: 11px;
  background-color: var(--white, #FFFFFF);
  color: var(--ink, #1A170D);
  font-family: inherit;
  font-size: 16px;
  padding: 0 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(26, 23, 13, 0.45);
}

.form-input:focus {
  border-color: var(--gold, #BCA360);
  box-shadow: 0 0 0 3px rgba(188, 163, 96, 0.14);
  outline: none;
}

/* Invalid Input State */
.form-input.has-error {
  border-color: rgba(138, 47, 47, 0.65);
}

.form-input.has-error:focus {
  border-color: rgba(138, 47, 47, 0.85);
  box-shadow: 0 0 0 3px rgba(138, 47, 47, 0.14);
}

/* Validation Error Message */
.form-error {
  font-size: 13px;
  line-height: 1.35;
  color: #8A2F2F;
  margin-top: 7px;
}

/* Honeypot field — completely invisible to real users and assistive technology */
.form-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Phone control wrapper */
.phone-control-wrapper {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
}

/* Country Selector Button */
.phone-country-btn {
  height: 54px;
  min-width: 124px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(26, 23, 13, 0.16);
  border-radius: 11px;
  background-color: var(--white, #FFFFFF);
  color: var(--ink, #1A170D);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.phone-country-btn:hover {
  border-color: rgba(26, 23, 13, 0.32);
}

.phone-country-btn:focus-visible,
.phone-country-btn:focus {
  border-color: var(--gold, #BCA360);
  box-shadow: 0 0 0 3px rgba(188, 163, 96, 0.14);
  outline: none;
}

.phone-country-btn.has-error {
  border-color: rgba(138, 47, 47, 0.65);
}

.phone-country-btn.has-error:focus {
  border-color: rgba(138, 47, 47, 0.85);
  box-shadow: 0 0 0 3px rgba(138, 47, 47, 0.14);
}

.country-flag {
  font-size: 18px;
  line-height: 1;
}

.country-text {
  font-weight: 500;
  color: var(--ink, #1A170D);
}

.country-arrow {
  font-size: 10px;
  color: var(--body, #5F5C55);
  transition: transform 0.18s ease;
}

.phone-country-btn[aria-expanded="true"] .country-arrow {
  transform: rotate(180deg);
}

.phone-local-input {
  flex: 1;
  min-width: 0;
}

/* Country Dropdown Panel */
.country-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  background: #FFFFFF;
  border: 1px solid rgba(26, 23, 13, 0.16);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(26, 23, 13, 0.14);
  z-index: 2010;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.country-dropdown-panel[hidden] {
  display: none;
}

.country-search-box {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(26, 23, 13, 0.08);
  background: #FAFAFA;
}

.country-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(26, 23, 13, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  background: #FFFFFF;
  color: #1A170D;
}

.country-search-input:focus {
  border-color: var(--gold, #BCA360);
  box-shadow: 0 0 0 2px rgba(188, 163, 96, 0.14);
  outline: none;
}

.country-list {
  overflow-y: auto;
  max-height: 220px;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #1A170D;
  transition: background-color 0.12s ease;
  user-select: none;
}

.country-item:hover,
.country-item:focus-visible,
.country-item.is-highlighted {
  background-color: rgba(188, 163, 96, 0.14);
  outline: none;
}

.country-item.is-selected {
  background-color: rgba(188, 163, 96, 0.20);
  font-weight: 600;
}

.country-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.country-item-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.country-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-item-dial {
  font-weight: 600;
  color: #5F5C55;
  font-variant-numeric: tabular-nums;
  margin-left: 12px;
  flex-shrink: 0;
}

.country-divider {
  height: 1px;
  background: rgba(26, 23, 13, 0.08);
  margin: 4px 0;
}

.country-divider-label {
  padding: 6px 14px 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8C8980;
}

.country-no-results {
  padding: 16px;
  text-align: center;
  font-size: 13.5px;
  color: #5F5C55;
}

/* Submit Button */
.form-actions {
  margin-top: 6px;
}

.btn-drawer-submit {
  width: 100%;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold, #BCA360);
  color: var(--ink, #1A170D);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-drawer-submit:hover {
  background-color: var(--gold-hover, #A89151);
  transform: translateY(-1px);
}

.btn-drawer-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none !important;
}

.btn-drawer-submit:focus-visible {
  outline: 2px solid var(--gold-label, #A68B45);
  outline-offset: 3px;
}

/* General Submission Error */
.form-submit-error {
  margin-top: 14px;
  padding: 12px 14px;
  background-color: rgba(138, 47, 47, 0.08);
  border: 1px solid rgba(138, 47, 47, 0.22);
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #8A2F2F;
  text-align: center;
}

.form-submit-error a {
  color: #1A170D;
  font-weight: 600;
  text-decoration: underline;
}

/* Success State View */
.drawer-success {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.drawer-success[hidden] {
  display: none;
}

.drawer-body-wrapper[hidden] {
  display: none;
}

.drawer-success .drawer-heading {
  outline: none;
}

/* Mobile Responsiveness (<= 600px) */
@media (max-width: 600px) {
  .drawer {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
  }

  .drawer-close {
    top: -4px;
    right: -4px;
  }

  .drawer-eyebrow {
    margin-top: 4px;
    margin-bottom: 12px;
  }

  .drawer-heading {
    font-size: 29px;
    margin-bottom: 14px;
  }

  .drawer-intro {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .drawer-success {
    padding-top: 44px;
  }

  .country-dropdown-panel {
    max-height: min(280px, calc(var(--bimm-visual-height, 100dvh) * 0.42));
  }

  .country-list {
    max-height: min(220px, calc(var(--bimm-visual-height, 100dvh) * 0.32));
  }
}
