/* TV Mount SA — Logo A, Midnight Signal palette, Sora + Inter.
   Tokens follow Designer Dan’s approved brand board (P1 + T1). */

:root {
  --color-midnight: #0B1220;
  --color-cyan: #22D3EE;       /* fills and buttons on dark only */
  --color-deep: #0E7490;       /* text on light */
  --color-cloud: #F2F6F9;
  --color-slate: #5B6275;      /* parent token; board also lists #556275 */
  --color-white: #FFFFFF;
  --color-ink-soft: #DCE5F0;   /* hero subhead, from the mockup */
  --color-ink-muted: #9FB0C5;  /* hero supporting line, from the mockup */
  --color-chip-label: #C7D2E0;
  --color-line: rgba(255, 255, 255, 0.28);
  --color-line-soft: rgba(255, 255, 255, 0.12);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-photo: 32px;
  --header-h: 80px;
  --space: 20px;
  --max: 1280px; /* 1440 artboard minus 80px side margins */
  --tap: 56px;
  --btn-h: 64px;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-midnight);
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  background: var(--color-midnight);
  color: var(--color-white);
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--color-cyan); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-white); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--color-cyan);
  color: var(--color-midnight);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(calc(100% - 2 * var(--space)), var(--max));
  margin-inline: auto;
}

/* Header — mockup is 112px / 72px; 80px mobile keeps a 56px target with room */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-midnight);
  border-bottom: 1px solid var(--color-line-soft);
}

.header-inner {
  width: min(calc(100% - 2 * var(--space)), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  margin-right: auto;
  text-decoration: none;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--color-chip-label);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  min-height: var(--tap);
  min-width: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.nav-links a:hover { color: var(--color-white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  min-height: var(--btn-h);
  min-width: var(--tap);
  padding: 0 44px;
  border-radius: var(--radius-pill);
  background: var(--color-cyan);
  color: var(--color-midnight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { color: var(--color-midnight); filter: brightness(1.05); }
.btn:active { filter: brightness(0.96); }

/* Header pill stays at least 56px; 64px on desktop to match primary buttons */
.btn-header {
  height: var(--tap);
  min-height: var(--tap);
  padding: 0 22px;
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 12px 0 64px;
}

.hero-glow {
  display: none;
}

.hero-inner {
  width: min(calc(100% - 2 * var(--space)), var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Mobile: photo first, then type — matches hero-mobile-390 */
.hero-photo {
  order: -1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 16px;
}

/* Hide the city eyebrow on mobile to match the 390 mockup (photo, then H1) */
@media (max-width: 859px) {
  .eyebrow { display: none; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink-soft);
}

.chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-height: var(--tap);
  padding: 12px 20px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  text-decoration: none;
}

.chip:hover {
  color: var(--color-white);
  border-color: color-mix(in srgb, var(--color-cyan) 55%, var(--color-line));
  background: color-mix(in srgb, var(--color-cyan) 10%, transparent);
}

.chip b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-white);
}

.chip span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-chip-label);
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.hero-cta .btn { width: 100%; }

.pay-note {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #C7D0DA;
  text-align: center;
}

/* Sections */
.section { padding: 80px 0; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--color-slate);
  margin-bottom: 40px;
  max-width: 44ch;
}

.lead-on-dark { color: var(--color-ink-muted); }

.section-cloud {
  background: var(--color-cloud);
  color: var(--color-midnight);
}

.section-cloud h2 { color: var(--color-midnight); }

.section-midnight {
  background: var(--color-midnight);
  color: var(--color-white);
  border-top: 1px solid var(--color-line-soft);
}

/* Pricing cards */
.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.price-card {
  display: block;
  background: var(--color-white);
  color: var(--color-midnight);
  border-radius: 28px;
  padding: 32px 28px 36px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.06);
  min-height: var(--tap);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.price-card:hover {
  color: var(--color-midnight);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.1);
  border-color: color-mix(in srgb, var(--color-cyan) 50%, transparent);
}

.price-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-deep);
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--color-midnight);
}

.price-note {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-slate);
  max-width: 28ch;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin-top: 36px;
}

.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.step p {
  margin-top: 8px;
  color: var(--color-ink-muted);
  font-size: 1.05rem;
}

/* Booking tabs */
.section-booking { padding-top: 24px; }

/* Keep the Book now heading clear of the sticky header on #booking jumps.
   Header is 80px below 860px and 112px at 860px+; 24px extra breathing room. */
#booking {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: var(--tap);
  padding: 12px 22px;
  border-radius: 18px;
  border: 1.5px solid var(--color-line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
}

.tab .tab-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.tab .tab-price {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.tab:hover { border-color: color-mix(in srgb, var(--color-cyan) 50%, var(--color-line-soft)); }

.tab.is-active {
  border-color: var(--color-cyan);
  background: color-mix(in srgb, var(--color-cyan) 12%, transparent);
}

.cal-shell {
  background: #0B1220;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 320px;
  width: 100%;
}

#cal-embed,
#cal-embed iframe,
.cal-inline {
  width: 100%;
  max-width: none;
  display: block;
}

#cal-embed iframe {
  min-height: 720px;
  height: 720px;
  border: 0;
  background: #0B1220;
}

.cal-inline {
  min-height: 720px;
  overflow: auto;
  background: #0B1220;
}

.cal-inline[hidden] { display: none; }

#cal-placeholder {
  padding: 48px 28px;
  text-align: center;
}

#cal-placeholder p {
  color: var(--color-ink-muted);
  max-width: 32ch;
  margin: 8px auto 0;
}

#cal-placeholder strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  margin-top: 16px;
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-line-soft);
  padding: 36px 0 48px;
  background: var(--color-midnight);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.footer-logo {
  height: 32px;
  width: auto;
}

@media (max-width: 899px) {
  .cal-inline { min-height: 1080px; }
  #cal-embed iframe { min-height: 1080px; height: 1080px; }
}

/* Desktop / large tablet */
@media (min-width: 720px) {
  :root { --space: 32px; }

  .nav-links { display: flex; }

  .btn-header {
    height: var(--btn-h);
    min-height: var(--btn-h);
    padding: 0 28px;
    font-size: 16px;
  }

  .chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .chip { padding: 16px 28px; }
  .chip b { font-size: 34px; }
  .chip span { font-size: 19px; }

  .price-cards { grid-template-columns: 1fr 1fr; gap: 24px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .tabs { grid-template-columns: 1fr 1fr; }

  .section { padding: 104px 0; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-cta {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .hero-cta .btn { width: auto; }
  .pay-note { text-align: left; font-size: 16px; color: #C7D0DA; }
}

/* Match the 1440 hero mockup from 860px up (photo on the right) */
@media (min-width: 860px) {
  :root { --header-h: 112px; --space: 48px; }

  .logo img { height: 46px; }

  .eyebrow {
    display: block;
    font-size: 15px;
    margin-bottom: 28px;
  }

  .hero {
    padding: 16px 0 72px;
    min-height: calc(900px - 112px);
  }

  .hero-glow {
    display: block;
    position: absolute;
    right: -200px;
    top: -260px;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34, 211, 238, 0.20), rgba(34, 211, 238, 0));
    pointer-events: none;
    z-index: 0;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 700px) minmax(320px, 560px);
    justify-content: space-between;
    align-items: start;
    gap: 24px;
    padding-top: 16px;
  }

  .hero-photo {
    order: 0;
    width: 100%;
    max-width: 560px;
    justify-self: end;
    border-radius: var(--radius-photo);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    aspect-ratio: auto;
  }

  .hero-photo img {
    height: 700px;
    max-height: 70vh;
    min-height: 480px;
  }

  .hero-copy {
    width: 100%;
    max-width: 700px;
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 88px;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  .lede {
    margin-top: 30px;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-ink-soft);
  }

  .chips { margin-top: 44px; }
  .hero-cta { margin-top: 44px; }
}

/* 1280-wide: lock the copy column at 700px so the 88px H1 stays two lines; photo shrinks. */
@media (min-width: 1200px) {
  :root { --space: 40px; }

  .hero-inner {
    grid-template-columns: 700px minmax(0, 1fr);
    gap: 20px;
  }

  .hero-photo img {
    height: 700px;
    max-height: none;
    min-height: 0;
  }
}

/* Exact 1440 mockup margins and photo size */
@media (min-width: 1440px) {
  :root { --space: 80px; }

  .hero-inner {
    grid-template-columns: 700px 560px;
    gap: 20px;
  }
}

@media (max-width: 419px) {
  :root { --space: 16px; }
  .header-inner { gap: 10px; }
}

@media (max-width: 379px) {
  .hero h1 { font-size: 42px; }
}
