/* Onboard website. Colours from design/tokens.json (house style). */
:root {
  --navy: #0a1a2f;
  --navy-2: #0f243f;
  --navy-3: #13304f;
  --ink: #06121f;
  --brass: #c9a86a;
  --brass-2: #e4cf9f;
  --paper: #f4eee3;
  --paper-dim: #d8cfbe;
  --mist: rgba(244, 238, 227, .62);
  --line: rgba(201, 168, 106, .28);
  --line-soft: rgba(201, 168, 106, .22);
  --line-row: rgba(201, 168, 106, .1);
  --card: rgba(255, 255, 255, .035);
  --glass: rgba(10, 26, 47, .85);
  --border-cta: rgba(201, 168, 106, .4);
  --border-on: rgba(201, 168, 106, .6);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font: 300 17px/1.6 var(--font-sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-2); margin-bottom: 14px;
}
.rule {
  height: 1px; margin: 22px 0 28px;
  background: linear-gradient(90deg, var(--brass) 0%, rgba(201, 168, 106, 0) 65%);
}

/* Buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; border-radius: 999px; border: 1px solid var(--border-cta);
  color: var(--brass); text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cta:hover { border-color: var(--border-on); background: rgba(201, 168, 106, .08); }
.cta-fill { background: var(--brass); border-color: var(--brass); color: var(--navy); font-weight: 500; }
.cta-fill:hover { background: var(--brass-2); border-color: var(--brass-2); }
.cta-small { min-height: 40px; padding: 0 18px; font-size: 11px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(10, 26, 47, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-row);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand-icon { width: 26px; height: 26px; color: var(--brass); }
.wordmark { font-family: var(--font-display); font-size: 24px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--paper-dim); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--paper); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 26, 47, .55) 0%, rgba(10, 26, 47, 0) 22%),
    linear-gradient(0deg, var(--navy) 0%, rgba(10, 26, 47, .92) 30%, rgba(10, 26, 47, .25) 62%, rgba(10, 26, 47, 0) 80%);
}
.hero-copy { position: relative; padding: 140px 0 72px; }
.hero h1 { max-width: 15em; }
.lede { max-width: 36em; margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--paper-dim); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.facts {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line-row); }
.facts .k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-2); }
.facts .v { font-weight: 400; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.intro { max-width: 44em; color: var(--paper-dim); font-size: 19px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.three article { padding: 26px 24px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); }
.three article p:not(.eyebrow) { color: var(--mist); font-size: 16px; }
.three .eyebrow { margin-bottom: 8px; }

.shot { margin: 0; }
.shot img, .device img {
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.shot.wide { margin-top: 8px; }
.shot figcaption, .device figcaption { margin-top: 14px; color: var(--mist); font-size: 15px; }
.shot figcaption b { color: var(--paper); font-weight: 500; }

.device.ipad { margin: 56px auto 0; max-width: 760px; }
.device.ipad img { border: 10px solid #111a26; border-radius: 28px; outline: 1px solid var(--line); }
.device figcaption { text-align: center; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 36px 0 44px; }
.feature-row p { color: var(--mist); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
#hospitality .three { margin-bottom: 20px; }
.wine-pair { margin-top: 40px; }
.note { margin-top: 36px; color: var(--mist); font-size: 14px; letter-spacing: .04em; }
.note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--brass); transform: translateY(-2px); }

/* TV band */
.band {
  margin-top: clamp(72px, 10vw, 128px); padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(180deg, var(--navy-2), var(--navy-3));
  border-block: 1px solid var(--line-soft);
}
.band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.band h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 18px; }
.band p:not(.eyebrow) { color: var(--paper-dim); }

/* Crew points */
.points { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 32px; }
.points li { border-top: 1px solid var(--line); padding-top: 18px; }
.points h3 { font-size: 20px; }
.points p { color: var(--mist); font-size: 16px; }

/* How it works */
.flow { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: f; }
.flow li {
  position: relative; padding: 22px 22px 22px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); display: flex; flex-direction: column; gap: 6px;
}
.flow li + li::before {
  content: "→"; position: absolute; left: -28px; top: 50%; transform: translateY(-50%);
  color: var(--brass); font-size: 20px;
}
.flow b { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.flow span { color: var(--mist); font-size: 15px; }

.spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-row); }
.spec dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-2); padding-top: 4px; }
.spec dd { margin: 0; color: var(--paper-dim); font-size: 16px; }

/* Packages */
.tiers { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; margin-top: 40px; align-items: start; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tier { padding: 26px 24px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); }
.tier .eyebrow { margin-bottom: 8px; }
.tier p:not(.eyebrow) { color: var(--mist); font-size: 16px; }
.tier-wide { grid-column: 1 / -1; }
.tier-base { border-color: var(--line); background: linear-gradient(180deg, var(--navy-2), var(--navy)); padding: 32px 30px; }
.tier-base h3 { font-size: 30px; }
.tier-base .tier-lede { color: var(--paper-dim); margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--paper-dim); font-size: 16px; }
.ticks li::before { content: "✓"; flex: none; color: var(--brass); }
.trial { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--border-cta); border-radius: 14px; color: var(--paper-dim); }
.trial b { color: var(--brass-2); font-weight: 500; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.price { padding: 24px 26px; }
.price + .price { border-left: 1px solid var(--line-soft); }
.price .eyebrow { margin-bottom: 10px; }
.amount { font-family: var(--font-display); font-size: 38px; line-height: 1.1; color: var(--paper); font-variant-numeric: tabular-nums; }
.amount span { font-family: var(--font-sans); font-size: 14px; letter-spacing: .02em; color: var(--mist); margin-left: 4px; }
.per { margin-top: 8px; color: var(--mist); font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; padding-bottom: clamp(72px, 10vw, 128px); }
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.included li { display: flex; gap: 14px; align-items: baseline; color: var(--paper-dim); }
.included li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); transform: translateY(-2px); }
.contact-card {
  padding: 34px 32px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}
.contact-lede { color: var(--paper-dim); margin-bottom: 26px; }
.small { margin-top: 14px; font-size: 14px; color: var(--mist); }

.foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  padding: 28px 0 40px; border-top: 1px solid var(--line-row); color: var(--mist); font-size: 14px;
}
.foot .wordmark { font-size: 20px; }

/* Narrow screens */
@media (max-width: 900px) {
  .nav { display: none; }
  .cta-small { margin-left: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-row); }
  .three, .points, .tiers { grid-template-columns: 1fr; }
  .addons, .prices { grid-template-columns: 1fr; }
  .price + .price { border-left: 0; border-top: 1px solid var(--line-soft); }
  .feature-row, .pair, .band-inner, .spec, .contact { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li + li::before { content: "↓"; left: 50%; top: -24px; transform: translateX(-50%); }
  .hero { min-height: 88svh; }
  .hero-img { object-position: 35% 30%; }
  .device.ipad img { border-width: 6px; border-radius: 18px; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 21px; }
  .cta-small { padding: 0 14px; letter-spacing: .1em; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .actions .cta { width: 100%; }
}
/* Scroll reveal: only when the script has run (html.js) and motion is welcome; otherwise everything stays visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .shot.reveal img, .js .device.reveal img { transform: scale(1.03); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
  .js .shot.reveal.in img, .js .device.reveal.in img { transform: none; }
  .js .rule.reveal { transform: scaleX(0); transform-origin: left; }
  .js .rule.reveal.in { transform: none; }
  /* hero on load */
  .js .hero-copy > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .36s; }
  .js .hero-img { animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes settle { from { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
