/* Morston — marketing page
   Quiet air. Coastal light. One idea at a time. */

:root {
  --ink: #0c2438;
  --ink-soft: #4a6578;
  --accent: #2f8fd8;
  --accent-deep: #1a6fb3;
  --sail: #d63a3a;
  --tide: #f07a2a;
  --paper: #eaf4fc;
  --paper-deep: #d7e9f7;
  --white: #ffffff;
  --line: rgba(12, 36, 56, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Satoshi", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 50% -8%, #cfe6f8 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 40%, rgba(47, 143, 216, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f4f9fd 50%, var(--paper-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}

/* ——— Top bar ——— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(234, 244, 252, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(234, 244, 252, 0.88);
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.top-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.top-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
  padding: 8px 4px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 48, 0.18) 0%, rgba(8, 28, 48, 0.22) 35%, rgba(8, 28, 48, 0.72) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  padding: 120px 24px 72px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(4, 20, 36, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: heroIn 1s var(--ease) 0.12s forwards;
}

.brand {
  margin: 0;
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--white);
  text-shadow: 0 8px 40px rgba(4, 20, 36, 0.35);
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 1s var(--ease) 0.28s forwards;
}

.lede {
  margin: 22px auto 0;
  max-width: 24em;
  font-size: clamp(1.12rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 1s var(--ease) 0.42s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 1s var(--ease) 0.56s forwards;
}

.store-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.badge-store {
  display: inline-block;
  padding: 13px;
  padding-bottom: 4px;
  line-height: 0;
}

.badge-store img {
  display: block;
  width: 150px;
  height: 50px;
}

.free-note {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}

.free-note-ink {
  color: var(--ink-soft);
  opacity: 0.75;
}

.btn-quiet {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-quiet:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(0, -1.2%, 0);
  }
}

/* ——— Shared type ——— */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
}

.section-body {
  margin: 18px auto 0;
  max-width: 28em;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ——— Promise ——— */
.promise {
  padding: 110px clamp(24px, 6vw, 80px) 40px;
  text-align: center;
}

.promise .section-body {
  margin-left: auto;
  margin-right: auto;
}

/* ——— Beats ——— */
.beats {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 72px);
  padding: 56px clamp(28px, 8vw, 120px) 100px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 860px) {
  .beats {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.beat-mark {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.beat h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.beat p {
  margin: 0 auto;
  max-width: 18em;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ——— Feature rows ——— */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px clamp(24px, 6vw, 100px) 80px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    padding-bottom: 120px;
  }

  .feature-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .feature-flip .feature-copy {
    order: 2;
  }

  .feature-flip .feature-visual {
    order: 1;
  }

  .feature-copy {
    text-align: left;
  }

  .feature-copy .section-body {
    margin-left: 0;
  }
}

.feature-copy {
  text-align: center;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

/* Real product screens in iPhone 17 Pro Max frame (shadow baked into PNG) */
.phone {
  width: min(320px, 72vw);
  height: auto;
}

.devices-duo {
  width: min(480px, 88vw);
  height: auto;
}

.widget {
  width: min(260px, 64vw);
  height: auto;
  border-radius: 32px;
  filter: drop-shadow(0 24px 48px rgba(12, 36, 56, 0.2));
}

/* ——— Watch ——— */
.watch-band {
  padding: 80px clamp(24px, 6vw, 100px) 100px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(47, 143, 216, 0.08) 0%, transparent 60%);
}

.watch-band .section-body {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.watch-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
}

.watch {
  width: min(200px, 42vw);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(12, 36, 56, 0.2));
}

.watch-hero {
  width: min(420px, 86vw);
  height: auto;
  filter: drop-shadow(0 28px 56px rgba(12, 36, 56, 0.16));
}

/* ——— Harbours ——— */
.harbours {
  padding: 40px clamp(24px, 6vw, 100px) 100px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.harbours .section-body {
  margin-left: auto;
  margin-right: auto;
}

.harbour-list {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  max-width: 36em;
}

.harbour-list li {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ——— Close ——— */
.close {
  text-align: center;
  padding: 40px 24px 100px;
}

.close-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(26, 111, 179, 0.22);
}

.brand-close {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--ink);
  text-shadow: none;
  animation: none;
  opacity: 1;
  transform: none;
}

.lede-close {
  margin: 14px auto 32px;
  color: var(--ink-soft);
  animation: none;
  opacity: 1;
  transform: none;
}

/* ——— Footer ——— */
.foot {
  padding: 40px 24px 56px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot a {
  font-weight: 500;
  color: var(--ink);
}

.foot a:hover {
  color: var(--accent-deep);
}

.foot-note {
  margin: 14px auto 0;
  max-width: 36em;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.85;
}

.foot-legal {
  margin: 28px auto 0;
  max-width: 36rem;
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0.85;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

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

  .hero-media img,
  .hero-icon,
  .brand,
  .lede,
  .hero-actions,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
