/* The home page (index.html) only: the marketing layout on top of style.css. Light only, the
   app's palette: white ground, grey tiles, one tangerine accent. */

.landing {
  --tile-radius: 28px;
  --space: clamp(48px, 7vw, 88px);
  --phone-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 8px 16px -6px rgba(0, 0, 0, 0.1),
    0 32px 64px -20px rgba(0, 0, 0, 0.28);
  /* The tilted phones never widen the page. */
  overflow-x: clip;
}

.wrap {
  max-width: calc(1280px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: a sticky white bar with a hairline, frosted as the page scrolls under it. */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease-out;
}

.nav-link:hover {
  background: var(--chip);
}

.nav-link:active {
  background: var(--pressed);
}

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .bar .home {
    gap: 8px;
    font-size: 1.25rem;
  }

  .bar .home img {
    width: 28px;
    height: 28px;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 0.875rem;
  }

  .button-small {
    padding: 10px 14px;
    font-size: 0.875rem;
  }
}

/* Sections: one rhythm everywhere; two white sections in a row share a single gap. */
.section {
  padding-block: var(--space);
}

.section + .section,
.hero + .section {
  padding-top: 0;
}

.section-title {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(24px, 3vw, 40px);
}

/* Hero: copy on the left, the phones in a grey tile on the right. */
.hero {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: var(--space);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  font-size: 0.875rem;
  font-weight: 800;
}

.landing h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
}

.mark {
  color: var(--accent-text);
  white-space: nowrap;
}

.landing .lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 32px;
}

.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.landing .badges {
  gap: 12px;
}

.landing .badges a {
  display: block;
  border-radius: 10px;
  transition: transform 150ms var(--ease);
}

.landing .badges a:active {
  transform: scale(0.96);
}

.landing .badges img {
  height: 48px;
}

.landing .badges img.google-play {
  height: 71px;
  margin: -11.5px -10px;
}

/* Both badges stay on one line inside the narrowest tile. */
@media (max-width: 30rem) {
  .landing .badges {
    gap: 10px;
  }

  .landing .badges img {
    height: 44px;
  }

  .landing .badges img.google-play {
    height: 65px;
    margin: -10.5px -9px;
  }
}

/* The secondary call: the app's grey button, the same height as the badges. */
.button-web {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 18px;
  border-radius: 10px;
  background: var(--chip);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease-out, transform 150ms var(--ease);
}

.button-web svg {
  flex: none;
  transition: transform 180ms var(--ease);
}

.button-web:hover {
  background: var(--pressed);
}

.button-web:hover svg {
  transform: translate(2px, -2px);
}

.button-web:active {
  transform: scale(0.96);
}

.button-web:focus-visible {
  outline: 2px solid var(--accent-fill);
  outline-offset: 3px;
}

.fine {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 114, 47, 0.25);
}

/* Phone frames: a thin near-black bezel, concentric corners (outer = screen + bezel). */
.phone {
  --pw: 240px;
  width: var(--pw);
  margin: 0;
  padding: calc(var(--pw) * 0.026);
  border-radius: calc(var(--pw) * 0.156);
  background: #0f0f0f;
  box-shadow: var(--phone-shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2340;
  border-radius: calc(var(--pw) * 0.13);
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
  background: var(--bg);
}

.hero-art {
  --pw: clamp(176px, 18vw, 264px);
  position: relative;
  align-self: stretch;
  min-height: calc(var(--pw) * 2.25);
  border-radius: var(--tile-radius);
  background: var(--tint);
  overflow: hidden;
}

.hero-art .phone {
  --pw: inherit;
  position: absolute;
}

.phone-front {
  z-index: 2;
  left: calc(50% - var(--pw) + var(--pw) * 0.1);
  top: 13%;
  rotate: -2deg;
}

.phone-back {
  left: calc(50% - var(--pw) * 0.1);
  top: 6%;
  rotate: 2.5deg;
}

.tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 24px -8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.tag-near {
  left: calc(50% - var(--pw) - 4px);
  bottom: 14%;
}

.tag-kids {
  right: calc(50% - var(--pw) * 0.1 - var(--pw) * 0.86);
  top: 47%;
  padding-inline: 16px;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

@media (max-width: 30rem) {
  .tag {
    font-size: 0.8125rem;
    padding: 8px 12px 8px 10px;
  }

  .tag-near {
    left: 12px;
  }

  .tag-kids {
    right: 12px;
  }
}

/* Footer: the wordmark, the links and the year on one line; the trademark line below. */
.landing .site-footer {
  margin-top: 0;
  padding: 0 0 32px;
  border-top: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 16px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
}

.footer-inner .home {
  font-size: 1.125rem;
  margin-right: auto;
}

.footer-inner .home img {
  border-radius: 8px;
}

.landing .site-footer .copyright {
  margin: 0;
}

.landing .trademark {
  margin: 8px 0 0;
  max-width: 48rem;
}

/* Page enter: the hero copy rises in, line after line; the phones follow. */
.enter {
  animation: rise 640ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.hero-art .phone,
.hero-art .tag {
  animation: rise 800ms var(--ease) both;
}

.hero-art .phone-front { animation-delay: 160ms; }
.hero-art .phone-back { animation-delay: 280ms; }
.hero-art .tag-near { animation-delay: 520ms; }
.hero-art .tag-kids { animation-delay: 620ms; }

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 12px;
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter,
  .hero-art .phone,
  .hero-art .tag {
    animation: none;
  }

  .nav-link,
  .button-web,
  .button-web svg,
  .landing .badges a {
    transition: none;
  }

  .button-web:active,
  .button-web:hover svg,
  .landing .badges a:active {
    transform: none;
  }
}
