/* Harbor landing — palette from docs/03-design/style-guide.md (Day register),
   hero/dusk art regenerated from the shipped hull renders (Assets.xcassets). */
:root {
  --sky-top: #8FCEE2;
  --sky-horizon: #F2EBDA;
  --sea-base: #1FA6A0;
  --sea-hi: #7FE0CE;
  --accent: #E85D7A;
  --ink: #15414B;
  --ink-soft: #4A6B72;
  --paper: #FBFDFB;
  --card: #FFFFFF;
  --cream: #F7F2E7;
  --night: #16304A;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; }
section { padding: 5.5rem 1.5rem; }
.section-lede { text-align: center; color: var(--ink-soft); max-width: 38rem; margin: 0.8rem auto 3rem; font-size: 1.05rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 253, 251, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 65, 75, 0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 9px; }
.nav-cta {
  font-size: 0.9rem; font-weight: 800; color: #fff; text-decoration: none;
  background: var(--accent); padding: 0.45rem 1.1rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(232, 93, 122, 0.35);
}

/* Waitlist form (shared) */
.waitlist { margin-top: 2rem; max-width: 460px; }
.field-row {
  display: flex; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px; padding: 0.35rem;
  box-shadow: 0 12px 32px rgba(18, 64, 90, 0.18);
}
.waitlist input[type="email"] {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 700 1rem 'Nunito', sans-serif; color: var(--ink); padding: 0.55rem 0.9rem;
}
.waitlist input[type="email"]::placeholder { color: #8FA8AE; font-weight: 600; }
.waitlist button {
  border: 0; cursor: pointer; white-space: nowrap;
  font: 800 0.98rem 'Nunito', sans-serif; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 0.55rem 1.3rem;
  transition: transform 0.15s ease;
}
.waitlist button:hover { transform: translateY(-1px); }
.waitlist button:disabled { opacity: 0.6; cursor: default; transform: none; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-note { margin-top: 0.7rem; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
/* display:flex below would otherwise defeat the hidden attribute. */
[hidden] { display: none !important; }
.crew-count {
  margin-top: 0.6rem; font-size: 0.88rem; font-weight: 800; color: var(--sea-base);
  display: flex; align-items: center; gap: 0.45rem;
}
.crew-count::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--sea-base); box-shadow: 0 0 0 3px rgba(31, 166, 160, 0.2);
}
.form-msg { margin-top: 0.5rem; font-size: 0.95rem; font-weight: 800; color: var(--ink); min-height: 1.4em; }

/* Hero — regenerated sea art (boat left, island right); copy sits right */
.hero {
  position: relative;
  background: url('assets/gen-hero.png') center / cover no-repeat, linear-gradient(180deg, var(--sky-top), var(--sea-base));
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 5rem 1.5rem 6rem;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero-copy {
  max-width: 34rem;
  background: rgba(251, 253, 251, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 24px 60px rgba(18, 64, 90, 0.12);
}
.kicker {
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 4.8rem); font-weight: 900;
  color: var(--ink); margin-top: 0.6rem;
}
.hero .lede {
  margin-top: 1.2rem; font-size: 1.18rem; font-weight: 700;
  color: var(--ink-soft);
}

/* Hero device — the live session video, sitting beside the copy */
.hero-device { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.phone-lg { width: min(300px, 72vw); }
.phone-lg video {
  display: block; width: 100%; border-radius: 26px;
  aspect-ratio: 1178 / 2556; object-fit: cover; background: #2E5F7A;
  transition: opacity 0.12s linear;
}
/* Someone who asked the OS for less motion should not get a looping video. */
@media (prefers-reduced-motion: reduce) {
  .phone-lg video { display: none; }
  .phone-lg { background: url('assets/hero-sail-poster.jpg') center / cover no-repeat; border-radius: 34px; aspect-ratio: 1178 / 2556; }
}
.device-note {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(251, 253, 251, 0.7);
  padding: 0.3rem 0.9rem; border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Session — real app screenshots in phone frames */
.session { background: linear-gradient(180deg, var(--paper), #EAF6F0); }
.shots-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
  align-items: start;
}
.phone {
  border-radius: 34px; padding: 8px;
  background: #fff;
  border: 1px solid rgba(21, 65, 75, 0.1);
  box-shadow: 0 18px 44px rgba(21, 65, 75, 0.16);
}
.phone img { border-radius: 26px; aspect-ratio: 1178 / 2556; object-fit: cover; }
.shot figcaption { padding: 1rem 0.4rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.shot figcaption strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 0.2rem; }

/* Ambient trio */
.ambient-grid {
  max-width: 1000px; margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.amb {
  background: var(--card); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: 0 6px 24px rgba(21, 65, 75, 0.07);
  border-top: 4px solid var(--sea-hi);
}
.amb h3 { margin-bottom: 0.4rem; }
.amb p { color: var(--ink-soft); font-size: 0.98rem; }

/* Fleet — the five shipped hull renders (cream studio background) */
.fleet-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem;
}
.fleet-grid figure { border-radius: var(--radius); overflow: hidden; background: var(--cream); box-shadow: 0 6px 24px rgba(21, 65, 75, 0.08); }
.fleet-grid img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.fleet-grid figcaption { display: flex; flex-direction: column; padding: 0.7rem 0.9rem 0.9rem; background: var(--card); }
.fleet-grid figcaption span { color: var(--sea-base); font-weight: 800; font-size: 0.88rem; }

/* Dusk — full-bleed regenerated night scene (shipped cruise ship) */
.dusk {
  background: url('assets/gen-dusk.png') center 35% / cover no-repeat, var(--night);
  min-height: 76vh;
  display: flex; align-items: flex-end;
  padding: 5rem 1.5rem 4rem;
}
.dusk-copy { max-width: 1100px; margin: 0 auto; width: 100%; }
.dusk h2 { text-align: left; color: #FFE7B0; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55); }
.dusk p {
  margin-top: 0.8rem; max-width: 36rem; font-size: 1.08rem; font-weight: 600;
  color: #EDF2F7; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* Pricing */
.pricing-grid {
  max-width: 1000px; margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch;
}
.price-card {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 6px 24px rgba(21, 65, 75, 0.07);
  border: 2px solid transparent;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 36px rgba(232, 93, 122, 0.18); }
.price { font-size: 1.8rem; font-weight: 800; color: var(--sea-base); margin: 0.5rem 0 1rem; }
.price-card.featured .price { color: var(--accent); }
.price span { font-size: 1rem; color: var(--ink-soft); font-weight: 700; }
.price-card ul { list-style: none; }
.price-card li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; color: var(--ink-soft); }
.price-card li::before { content: "⚓"; position: absolute; left: 0; font-size: 0.85rem; color: var(--sea-hi); }
.pricing-note { text-align: center; margin-top: 2rem; font-weight: 800; color: var(--ink); }

/* Final */
.final {
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-horizon) 60%, var(--sea-hi) 100%);
  padding-bottom: 6.5rem;
}
.final img { margin: 0 auto 1.2rem; border-radius: 18px; box-shadow: 0 10px 30px rgba(21, 65, 75, 0.2); }
.final > p { color: var(--ink-soft); margin-top: 0.5rem; font-weight: 600; }
.final .waitlist { margin: 2rem auto 0; }
.final .crew-count { justify-content: center; }

footer { text-align: center; padding: 2rem 1.5rem; color: var(--ink-soft); font-size: 0.9rem; background: var(--sea-hi); }

/* Responsive */
@media (max-width: 1020px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .fleet-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .ambient-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .hero { min-height: auto; align-items: flex-start; padding-top: 3rem;
    background-position: 22% bottom; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-copy { text-align: center; padding: 1.5rem 1.3rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero .lede { font-size: 1.02rem; margin-top: 0.9rem; }
  .waitlist { margin-top: 1.4rem; }
  .phone-lg { width: min(250px, 62vw); }
  .hero h1 { color: var(--ink); }
  .waitlist { margin-inline: auto; }
  .dusk { min-height: 58vh; }
  .field-row { flex-direction: column; border-radius: 20px; padding: 0.5rem; }
  .waitlist button { padding: 0.7rem 1.3rem; }
}
@media (max-width: 560px) {
  .shots-grid { grid-template-columns: 1fr; max-width: 320px; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}
