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

:root {
  --bg-white: #ffffff;
  --ink: #263238;
  --ink-subtle: rgba(38, 50, 56, 0.45);
  --accent: #00897b;
  --shadow: 0 clamp(12px, 2vw, 20px) clamp(28px, 4vw, 48px) rgba(38, 50, 56, 0.12);
  --page-pad-x: clamp(16px, 4vw, 40px);
  --page-pad-top: calc(clamp(40px, 7vh, 56px) + env(safe-area-inset-top));
  --page-pad-bottom: calc(clamp(12px, 2vh, 20px) + env(safe-area-inset-bottom));
  --footer-height: calc(44px + env(safe-area-inset-bottom));
  --stage-height: clamp(480px, min(58dvh, 58svh), 1020px);
  --iphone-w: clamp(180px, 33vmin, 390px);
  --iphone-render-w: min(var(--iphone-w), calc(var(--stage-height) * 1411 / 2840));
  --row-gap: clamp(32px, 6vw, 72px);
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-white);
  color: var(--ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wordmark {
  position: fixed;
  top: calc(28px + env(safe-area-inset-top));
  left: calc(32px + env(safe-area-inset-left));
  z-index: 20;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2c2824;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: #5c4f42;
  outline: none;
}

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.landing__hero-wrap {
  --hero-progress: 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  padding:
    var(--page-pad-top)
    var(--page-pad-x)
    calc(var(--footer-height) + 12px);
  opacity: calc(1 - var(--hero-progress) * 0.55);
  transform: translate3d(0, calc(var(--hero-progress) * -24px), 0);
  will-change: transform, opacity;
}

.landing__hero {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 640px;
  padding-bottom: 0;
}

.landing__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.landing__logo-word {
  font-family: Pacifico, cursive;
  font-size: clamp(2.5rem, 7vmin, 4.25rem);
  font-weight: 400;
  line-height: 1;
  color: #b8860b;
}

.landing__logo-tagline {
  font-family: Roboto, sans-serif;
  font-size: clamp(0.7rem, 1.9vmin, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(38, 50, 56, 0.62);
  white-space: nowrap;
}

.landing__intro {
  max-width: 36ch;
  margin-top: clamp(10px, 2vh, 16px);
  font-size: clamp(0.875rem, 2.2vmin, 1rem);
  line-height: 1.5;
  color: rgba(38, 50, 56, 0.72);
}

.landing__panel {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(920px, 100%);
  pointer-events: none;
}

.landing__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--row-gap);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  pointer-events: auto;
  transform: translateX(var(--row-shift, 0px));
}

.landing__waves {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: clamp(420px, 62vh, 760px);
  z-index: 0;
  overflow: visible;
  pointer-events: none;
  will-change: transform;
}

.landing__waves-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 115%;
  will-change: transform;
}

.landing__waves-inner img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}

.landing__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--row-gap);
  width: auto;
  max-width: 100%;
}

.landing__device-col {
  flex: 0 0 var(--iphone-render-w);
  width: var(--iphone-render-w);
  max-width: var(--iphone-render-w);
}

.landing__stores-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: clamp(150px, 18vw, 220px);
}

.landing__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: calc(var(--iphone-render-w) * 2840 / 1411);
  max-height: var(--stage-height);
  perspective: 1400px;
  perspective-origin: 50% 42%;
  will-change: transform;
}

.device {
  position: relative;
  margin: 0;
  flex-shrink: 0;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 48px rgba(38, 50, 56, 0.16)) drop-shadow(0 10px 20px rgba(38, 50, 56, 0.1));
}

.device--iphone {
  width: 100%;
  --tilt-y: 11deg;
  --tilt-x: 4deg;
  --device-shift: 0px;
  transform:
    translate3d(0, var(--device-shift), 0)
    rotateY(var(--tilt-y))
    rotateX(var(--tilt-x));
  transform-origin: 50% 58%;
  transform-style: preserve-3d;
  will-change: transform;
}

.device__motion {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  animation: device-life 5.2s ease-in-out infinite;
}

@keyframes device-life {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }
  15% {
    transform: translate3d(0, -10px, 0) rotateZ(1.4deg);
  }
  35% {
    transform: translate3d(0, -20px, 0) rotateZ(0deg);
  }
  55% {
    transform: translate3d(0, -12px, 0) rotateZ(-1.6deg);
  }
  75% {
    transform: translate3d(0, -5px, 0) rotateZ(0.9deg);
  }
}

.device--iphone .device__screen {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  left: 6.024%;
  top: 2.676%;
  width: 88.02%;
  height: 94.648%;
  border-radius: calc(var(--iphone-render-w) * 48 / 1411);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.device__shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.device__shot.is-active {
  opacity: 1;
}

.device__frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: translateZ(2px);
}

.landing__stores {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: clamp(8px, 1.5vh, 12px);
  justify-content: center;
  width: 100%;
}

.store-link {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  width: 100%;
  padding: clamp(8px, 1.5vh, 10px) clamp(12px, 2vw, 16px);
  border-radius: 12px;
  border: 1.5px solid rgba(38, 50, 56, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(38, 50, 56, 0.06);
  transition: border-color 160ms ease, transform 160ms ease;
}

.store-link:hover,
.store-link:focus-visible {
  border-color: rgba(0, 137, 123, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.store-link__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 4vw, 28px);
  height: clamp(24px, 4vw, 28px);
}

.store-link__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.store-link__icon--play svg {
  width: 92%;
  height: 92%;
}

.store-link__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.store-link__label {
  font-size: clamp(0.62rem, 1.6vw, 0.68rem);
  color: var(--ink-subtle);
}

.store-link__brand {
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
}

.landing__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding:
    10px var(--page-pad-x)
    calc(10px + env(safe-area-inset-bottom));
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(38, 50, 56, 0.08);
}

.landing__footer a {
  color: var(--ink-subtle);
  text-decoration: none;
}

.landing__footer a:hover,
.landing__footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.landing__footer-sep {
  color: rgba(38, 50, 56, 0.2);
}

.scroll-hint {
  position: fixed;
  bottom: calc(var(--footer-height) + clamp(16px, 3vh, 28px));
  left: 50%;
  z-index: 29;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 22px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(0, 137, 123, 0.28);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(38, 50, 56, 0.12);
  transform: translateX(-50%);
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 200ms ease;
  animation: scroll-bob 2.4s ease-in-out infinite;
}

.scroll-hint.is-hidden {
  pointer-events: none;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
  color: var(--accent);
  border-color: rgba(0, 137, 123, 0.5);
  box-shadow: 0 10px 32px rgba(0, 137, 123, 0.18);
  outline: none;
}

.scroll-hint__icon {
  width: 22px;
  height: 22px;
  opacity: 1;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }

  .landing__hero-wrap {
    opacity: 1;
    transform: none;
  }

  .wave-layer,
  .landing__stage,
  .landing__waves,
  .landing__waves-inner {
    transform: none !important;
  }

  .device--iphone {
    transform: none;
  }

  .device__motion {
    animation: none;
  }
}

@media (max-width: 720px) {
  .wordmark {
    top: calc(20px + env(safe-area-inset-top));
    left: calc(20px + env(safe-area-inset-left));
    font-size: 1rem;
  }
}

/* Tablet portrait and narrow windows */
@media (max-width: 768px) {
  :root {
    --stage-height: clamp(420px, 52dvh, 840px);
    --iphone-w: clamp(165px, 42vw, 330px);
    --row-gap: clamp(24px, 5vw, 40px);
  }
}

/* Small phones */
@media (max-width: 420px) {
  :root {
    --stage-height: clamp(360px, 48dvh, 720px);
    --iphone-w: clamp(140px, 40vw, 260px);
    --row-gap: clamp(20px, 4vw, 28px);
  }

  .landing__stores-col {
    min-width: clamp(120px, 28vw, 160px);
  }
}

/* Short windows */
@media (max-height: 640px) {
  :root {
    --stage-height: clamp(220px, 48dvh, 420px);
    --page-pad-top: calc(36px + env(safe-area-inset-top));
    --iphone-w: clamp(144px, 24vmin, 270px);
    --row-gap: clamp(20px, 4vw, 32px);
  }

  .landing__waves {
    height: clamp(360px, 55vh, 640px);
  }

  .landing__hero {
    padding-bottom: 6px;
  }

  .landing__logo-word {
    font-size: clamp(2rem, 7vmin, 2.75rem);
  }
}

/* Wide short layouts (landscape phone) */
@media (max-height: 520px) and (orientation: landscape) {
  .landing__hero-wrap {
    min-height: auto;
  }

  :root {
    --stage-height: clamp(270px, 78vh, 540px);
    --iphone-w: clamp(132px, 21vh, 240px);
    --row-gap: clamp(16px, 3vw, 24px);
  }

  .landing__stores-col {
    min-width: clamp(130px, 16vw, 180px);
  }
}

/* Large screens */
@media (min-width: 1100px) {
  :root {
    --stage-height: min(58dvh, 1020px);
    --iphone-w: 390px;
    --row-gap: 72px;
  }
}

/* ── Scroll content ── */

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: clamp(-48px, -6vh, -24px);
  padding:
    clamp(48px, 8vh, 80px)
    var(--page-pad-x)
    calc(clamp(64px, 10vh, 120px) + var(--footer-height));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.88) 8%,
    rgba(255, 255, 255, 0.97) 16%,
    #ffffff 24%
  );
  border-radius: clamp(20px, 4vw, 32px) clamp(20px, 4vw, 32px) 0 0;
  box-shadow: 0 -12px 48px rgba(38, 50, 56, 0.06);
}

.content__section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) 0;
}

.content__section + .content__section {
  border-top: 1px solid rgba(38, 50, 56, 0.07);
}

.content__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.content__heading {
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(12px, 2vh, 18px);
}

.content__lede {
  font-size: clamp(0.95rem, 2.3vw, 1.1rem);
  line-height: 1.7;
  color: rgba(38, 50, 56, 0.76);
  max-width: 62ch;
}

.content__lede--compact {
  margin-top: -4px;
  margin-bottom: clamp(16px, 2.5vh, 24px);
  font-size: clamp(0.88rem, 2.1vw, 1rem);
  color: rgba(38, 50, 56, 0.62);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.5vw, 18px);
  margin-top: clamp(20px, 3vh, 28px);
}

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

.feature-card {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.08);
  box-shadow: 0 2px 12px rgba(38, 50, 56, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.08);
}

.feature-card__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(0, 137, 123, 0.55);
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: clamp(0.95rem, 2.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: clamp(0.84rem, 2vw, 0.92rem);
  line-height: 1.6;
  color: rgba(38, 50, 56, 0.68);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-top: clamp(8px, 1.5vh, 12px);
}

.calendar-grid li {
  font-size: clamp(0.82rem, 2vw, 0.88rem);
  line-height: 1.35;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 137, 123, 0.06);
  color: rgba(38, 50, 56, 0.82);
  border: 1px solid rgba(0, 137, 123, 0.1);
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(16px, 2.5vh, 24px);
}

.faq-item {
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.07);
  border-left: 3px solid var(--accent);
  box-shadow: 0 1px 8px rgba(38, 50, 56, 0.03);
}

.faq-item dt {
  font-size: clamp(0.92rem, 2.2vw, 1rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-item dd {
  font-size: clamp(0.84rem, 2vw, 0.92rem);
  line-height: 1.65;
  color: rgba(38, 50, 56, 0.7);
  margin: 0;
}

.faq-item dd a {
  color: var(--accent);
  text-decoration: none;
}

.faq-item dd a:hover,
.faq-item dd a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .device--iphone {
    transform: none;
  }

  .device__motion {
    animation: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
