@import url('./hb-tokens.css');

/* Marketing-only tokens (site layout) */
:root {
  --surface-glass: var(--hb-glass);
  --warn: var(--hb-warn);
  --radius: var(--hb-radius);
  --shadow: var(--hb-shadow);
  --max: 76rem;
  --focus: var(--hb-focus-ring);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--hb-brand);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--hb-brand);
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-wordmark {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-hotel {
  color: var(--hb-navy-600);
}

.logo-bridge {
  color: var(--hb-teal-500);
}

.logo:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.15rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--hb-brand);
}

.site-nav a:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav[data-collapsed="true"] ul {
    display: none;
  }

  .site-nav[data-collapsed="false"] {
    position: absolute;
    right: 1rem;
    top: 3.5rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav[data-collapsed="false"] ul {
    flex-direction: column;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4rem 0 3rem;
  background: var(--hb-navy-800);
}

.hero-parallax-media {
  position: absolute;
  inset: -10% 0 0;
  z-index: 0;
  will-change: transform;
}

.hero-parallax-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(15, 42, 36, 0.97) 0%, rgba(23, 63, 53, 0.92) 50%, rgba(15, 42, 36, 0.88) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-copy-panel {
  background: rgba(15, 42, 36, 0.94);
  border: 1px solid rgba(232, 240, 237, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero .eyebrow {
  color: var(--hb-accent);
}

.hero h1,
.hero .lede {
  color: #fff;
}

.hero .lede {
  opacity: 0.95;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--hb-navy-800);
  color: var(--hb-accent);
}

.hero .btn-primary,
.cta-section .btn-primary {
  background-color: var(--hb-teal-50);
  color: var(--hb-navy-900);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--cream);
  border-color: var(--line);
  color: var(--hb-navy-800);
}

.hero .btn-secondary {
  background: transparent;
  border-color: rgba(232, 240, 237, 0.55);
  color: #fff;
}

.badge-soon {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.ms-store-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.ms-store-cta--center {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  width: 100%;
}

.ms-store-cta--footer {
  margin-bottom: 1.15rem;
}

.ms-store-badge-link {
  display: inline-block;
  border-radius: 4px;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ms-store-badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.ms-store-badge-link:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.ms-store-badge {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

.ms-store-cta--hero .ms-store-badge {
  height: 50px;
}

.ms-store-soon {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hb-navy-600);
}

.hero .ms-store-soon,
.cta-section .ms-store-soon {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .ms-store-soon {
  color: var(--hb-accent);
  opacity: 0.92;
}

.hero-card {
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

section {
  padding: 3.5rem 0;
}

section.alt {
  background: linear-gradient(180deg, var(--hb-accent) 0%, var(--paper) 100%);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--hb-brand);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.05rem;
  color: var(--hb-navy-800);
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.card,
.glass-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
}

.glass-card.is-hovered,
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.photo-band {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .photo-band {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

.photo-band img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.feature-chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--hb-accent);
  color: var(--hb-navy-800);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--hb-accent-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-chips li:hover {
  background: var(--hb-accent-strong);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--hb-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.feature-list {
  columns: 1;
  padding-left: 1.2rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .feature-list {
    columns: 2;
    column-gap: 2rem;
  }
}

.screens {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .screens {
    grid-template-columns: 1fr 1fr;
  }
}

.screens figure {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.screens img {
  width: 100%;
  display: block;
}

.screens figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--cream);
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hb-brand);
}

.price-card .period {
  color: var(--muted);
  font-size: 0.9rem;
}

.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--hb-navy-800);
}

.faq summary:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.legal-page main {
  max-width: 46rem;
  margin: 2rem auto 3rem;
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.draft-banner {
  background: #fff7e9;
  border: 1px solid #e7cfad;
  color: var(--warn);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--hb-navy-800) 0%, var(--hb-brand) 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.cta-section h2,
.cta-section .lede {
  color: #fff;
}

.cta-section .btn-secondary {
  background: transparent;
  border-color: rgba(232, 240, 237, 0.55);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--hb-navy-700);
  padding: 2rem 0 2.5rem;
  font-size: 0.88rem;
  background: var(--hb-navy-800);
  color: var(--hb-slate-100);
}

.site-footer a {
  color: #fff;
}

.site-footer .ms-store-soon {
  color: #fff;
  opacity: 1;
}

.site-footer .legal-entity {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--hb-slate-200);
  opacity: 1;
}
