/* Ski Intelligence: homepage and privacy page.

   The approved Option A concept was drawn on a fixed 1,100px canvas. This
   stylesheet rebuilds it as an ordinary responsive page: a normal 16px root,
   one container and gutter system, fluid type and spacing tokens, and a few
   layout breakpoints (30em, 48em, 52em, 60em) written in em so browser text
   settings move them too. Nothing here scales the page as a whole. */

/* ---------- Tokens ---------- */

:root {
  --ink: #26263a;
  --ink-soft: #5f5f71;
  --ink-raised: #34344c;
  --teal: #4f9d97;
  --teal-ink: #3a7771;
  --teal-pale: #9fcac5;
  --line: #d8d6e4;
  --line-warm: #e6e4dc;
  --sand: #f7f6f1;
  --mist: #eef6f5;
  --question: #ecebf2;
  --error: #984032;
  --success: #286860;
  --focus: var(--teal);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale: fluid between a 390px phone and the 1,152px content width. */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --text-h2: clamp(2rem, 1.45rem + 2.1vw, 2.875rem);
  --text-h2-large: clamp(2.25rem, 1.55rem + 2.6vw, 3.25rem);

  /* Layout and rhythm. */
  --content: 72rem;
  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 3.5rem);
  --section-space: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --column-gap: clamp(2rem, 4vw, 4.5rem);
  --card-gap: clamp(0.75rem, 1.6vw, 1.5rem);
  --header-height: 5rem;
  --radius: 0.5rem;

  --alpine-photo: url(/assets/alpine-morning.jpg);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }

a:focus-visible,
button:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

[id] { scroll-margin-top: 1.5rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1.125rem;
  background: #fff;
  color: var(--ink);
  border-radius: 0.375rem;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Shared components ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark { width: 1.55em; height: auto; flex-shrink: 0; }
.brand-light { font-weight: 500; }
.brand-dot { color: var(--teal); }
.brand-small { font-size: 1.0625rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--ink-raised); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--mist); }
.button-arrow { font-size: 0.875em; }

.kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.section { padding-block: var(--section-space); }
.section-mist { background: var(--mist); }
.section-sand { background: var(--sand); }

.section-title {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.section-title-large { font-size: var(--text-h2-large); }
.kicker + .section-title { margin-top: 1rem; }

.section-copy {
  max-width: 34rem;
  font-size: var(--text-lead);
  line-height: 1.7;
  color: var(--ink-soft);
}
.section-title + .section-copy { margin-top: 1.25rem; }

.small-note {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Header ---------- */

/* The header sits over the hero photograph, so the page keeps one banner
   landmark while the hero itself is the first section of <main>. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  color: #fff;
  --focus: var(--teal-pale);
}
.site-header .brand-dot { color: var(--teal-pale); }

.site-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

.site-nav-link {
  display: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding-block: 0.5rem;
}
.site-nav-link:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Phones get a shorter label and no arrow so the brand and CTA share one row
   down to 360px. The label and its optional suffix share one inline span so
   the button's flex gap only separates the label from the arrow. */
.nav-cta { min-height: 2.75rem; padding: 0.625rem 0.875rem; font-size: var(--text-sm); gap: 0.625rem; }
.nav-cta-extra,
.nav-cta .button-arrow { display: none; }

/* ---------- Hero ---------- */

.hero {
  --focus: var(--teal-pale);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  color: #fff;
  background-color: #25384b;
  background-image:
    linear-gradient(180deg, rgba(24, 34, 48, 0.4), rgba(24, 34, 48, 0.5) 45%, rgba(24, 34, 48, 0.75)),
    var(--alpine-photo);
  background-size: cover;
  background-position: 60% 0;
}

.hero-inner {
  flex: 1;
  display: grid;
  gap: 2.5rem;
  align-content: end;
  padding-block: clamp(2rem, 5vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
}

/* The headline is sized from its own column so the two approved lines always
   fit, whether the hero is stacked or split into two columns. */
.hero-copy { container-type: inline-size; }
.hero .kicker { color: #d2eeeb; }

.hero-title {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.75rem, 2.2rem + 4.2vw, 5.25rem);
  font-size: clamp(2.75rem, min(15cqi, 2.2rem + 4.2vw), 5.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: initial;
}

.hero-intro {
  max-width: 27rem;
  margin-bottom: 1.75rem;
  font-size: var(--text-lead);
  line-height: 1.65;
  color: #e6edf1;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.125rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--text-sm);
  color: #e6edf1;
}
.hero-facts li { display: flex; align-items: center; gap: 0.625rem; }
.hero-facts li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--teal-pale);
  flex-shrink: 0;
}

/* Illustrative concierge card. */
.demo {
  --focus: var(--teal);
  max-width: 34rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 1.25rem 3.75rem rgba(24, 39, 56, 0.27);
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.demo-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.demo-question {
  margin: 0 0 1.25rem clamp(1rem, 4vw, 2rem);
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem 0.75rem 0 0.75rem;
  background: var(--question);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
}

.demo-answer { font-size: var(--text-base); line-height: 1.7; }

.demo-plan {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 1.25rem 0 1.125rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--mist);
}
.demo-plan-icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; color: var(--teal-ink); }
.demo-plan b { display: block; font-size: 0.9375rem; }
.demo-plan span { display: block; font-size: var(--text-sm); color: var(--ink-soft); }

.demo-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--teal-ink);
}
.demo-source svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.demo .small-note { margin-top: 0.75rem; }

/* ---------- Purpose and capabilities ---------- */

.intro { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.intro-inner { display: grid; gap: 1.25rem; }

.capabilities { padding-bottom: var(--section-space); }
.capability-grid { display: grid; gap: var(--card-gap); }

.capability {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  column-gap: 1.25rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-radius: var(--radius);
  background: var(--sand);
}
.capability svg { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--teal-ink); }
.capability h3 {
  margin-bottom: 0.5rem;
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.capability p { font-size: var(--text-base); line-height: 1.7; color: var(--ink-soft); }

/* ---------- Trust ---------- */

.trust-inner { display: grid; gap: 2.25rem; align-items: center; }

.source-list { display: grid; gap: 0.625rem; margin-bottom: 0.875rem; }
.source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #dfe8e5;
  border-radius: 0.375rem;
  background: #fff;
  font-weight: 500;
}
.source-row small { font-size: var(--text-xs); color: var(--ink-soft); }

/* ---------- Roadmap ---------- */

.phases { display: grid; gap: 0.5rem; margin-top: clamp(2rem, 4vw, 3rem); }

.phase {
  padding: 1.5rem clamp(0rem, 2vw, 1.5rem) 1.25rem;
  border-top: 1px solid var(--line);
}
.phase-now { border-top: 2px solid var(--teal); }
.phase-label {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.phase-now .phase-label { color: var(--teal-ink); }
.phase h3 {
  margin-bottom: 0.5rem;
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.phase p:last-child { line-height: 1.7; color: var(--ink-soft); }

/* ---------- Closing call to action ---------- */

.cta {
  --focus: var(--teal-pale);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 3.5vw, 5rem);
  background: var(--ink);
  color: #fff;
}
.cta-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; gap: 1.75rem; justify-items: start; }
.cta h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 1.4rem + 2.3vw, 2.875rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.cta p { max-width: 34rem; font-size: var(--text-lead); line-height: 1.65; color: #d8d6e4; }

/* ---------- Pilot enquiry ---------- */

.pilot-inner { display: grid; gap: 2.5rem; }
.pilot-next { max-width: 34rem; margin-top: 1.25rem; line-height: 1.7; color: var(--ink-soft); }

.pilot-form { min-width: 0; }
.form-grid { display: grid; column-gap: 1.25rem; }

.pilot-form label {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.pilot-form input,
.pilot-form textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #c9c7d6;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 400;
}
.pilot-form textarea { min-height: 8rem; resize: vertical; }
.pilot-form input:focus,
.pilot-form textarea:focus {
  outline: 0.125rem solid var(--teal-ink);
  outline-offset: 0.125rem;
  border-color: var(--teal-ink);
}
.optional { font-weight: 400; color: var(--ink-soft); }

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form-privacy { margin: 1rem 0 1.25rem; font-size: var(--text-sm); color: var(--ink-soft); }
.form-privacy a,
.form-status a,
.privacy-page a:not(.text-link) {
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

.form-submit { width: 100%; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.form-status:empty { margin-top: 0; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--success); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-warm); padding-block: 1.75rem; }
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.site-footer-links a { padding-block: 0.25rem; text-decoration: underline; text-underline-offset: 0.1875rem; }

/* ---------- Privacy page ---------- */

.privacy-page { max-width: 46rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.privacy-page .kicker { margin-top: 2.5rem; }
.privacy-page h1 { margin-bottom: 1.75rem; }
.privacy-page p:not(.kicker) { margin-block: 1.25rem; font-size: var(--text-lead); line-height: 1.75; color: #55556a; }
.privacy-page p.small-note { font-size: var(--text-xs); }

/* ---------- 30em (480px) and up: full navigation label ---------- */

@media (min-width: 30em) {
  .nav-cta-extra,
  .nav-cta .button-arrow { display: inline; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-submit { width: auto; }
}

/* ---------- 48em (768px) and up: tablet ---------- */

@media (min-width: 48em) {
  .nav-cta { min-height: 3rem; padding: 0.75rem 1.25rem; font-size: 0.9375rem; gap: 0.875rem; }

  .intro-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--column-gap); align-items: start; }
  .intro-inner .section-copy { padding-top: 0.5rem; }

  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--column-gap); }
}

/* ---------- 52em (832px) and up: room for the text navigation ---------- */

@media (min-width: 52em) {
  .site-nav-link { display: inline-block; }
}

/* ---------- 60em (960px) and up: desktop composition ---------- */

@media (min-width: 60em) {
  .hero {
    min-height: clamp(42rem, 92vh, 52rem);
    min-height: clamp(42rem, 92svh, 52rem);
    background-image:
      linear-gradient(180deg, rgba(25, 34, 45, 0.4), rgba(24, 34, 48, 0.3) 30%, rgba(24, 34, 48, 0.78)),
      var(--alpine-photo);
    background-position: center;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--column-gap);
    align-items: end;
  }
  .demo { justify-self: end; max-width: 31rem; }

  .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capability { display: block; }
  .capability svg { margin-bottom: 1.5rem; }

  .trust-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--column-gap); }

  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }

  .pilot-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--column-gap); }
}

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