/* ============================================================
   Look Up : ISS Tracker — landing page
   Built from Figma design (node 790:9143)
   ============================================================ */

:root {
  --bg:        #ffffff;
  --cream:     #ffeabd;          /* hero card */
  --ink:       #1f1a1a;          /* headings */
  --ink-soft:  rgba(0, 0, 0, 0.9);
  --orange:    #ff8000;

  --font-display: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --ink-lede:  #654a11;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;            /* safety net: never scroll/grow horizontally */
}

body {
  margin: 0;
  width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  max-width: 1450px;
  margin: 0 auto;
  padding: clamp(28px, 4.7vw, 68px) clamp(20px, 5vw, 75px) clamp(40px, 6vw, 90px);
}

/* ===================== Header ===================== */

.site-header {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 21px);
  margin-bottom: clamp(22px, 3vw, 43px);
}

.app-icon {
  width: clamp(46px, 4.5vw, 65px);
  height: auto;
  border-radius: 22.3%;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(78, 21, 25, 0.18);
}

.site-header__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.site-header__title {
  font-family: var(--font-display);
  font-weight: 590;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.site-header__subtitle {
  font-family: var(--font-display);
  font-weight: 590;
  font-size: clamp(0.875rem, 1.4vw, 1.275rem);
  letter-spacing: -0.01em;
  color: #888;
  line-height: 1.1;
  white-space: nowrap;
}

/* ===================== Hero card ===================== */

.card {
  position: relative;
  container-type: inline-size;
  background: var(--cream);
  border-radius: clamp(28px, 3.5vw, 50px);
  aspect-ratio: 1440 / 784;
  overflow: hidden;
}

/* Copy column */
.hero__content {
  position: absolute;
  left: 7.36%;
  top: 13.5%;
  width: 47%;
  z-index: 4;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.625rem, 3.6cqw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__lede {
  margin: 1.4cqw 0 0;
  max-width: 30em;
  font-size: clamp(0.875rem, 1.94cqw, 1.75rem);
  line-height: 1.4;
  color: var(--ink-lede);
  opacity: 0.9;
}

.appstore-badge {
  display: inline-block;
  width: clamp(150px, 13.9cqw, 200px);
  margin-top: clamp(28px, 5.5cqw, 79px);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge img { width: 100%; height: auto; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge:active { opacity: 0.85; }
.appstore-badge:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===================== Device cluster ===================== */
/* Stage spans the bounding box of all three devices (910 x 606.75 in the design). */

.stage {
  position: absolute;
  left: 30.14%;
  top: 13.39%;
  width: 63.18%;
  aspect-ratio: 910 / 606.75;
  z-index: 2;
}

.device {
  position: absolute;
  height: auto;
}

.device--widget {
  left: 0;
  top: 44.5%;
  width: 60.99%;
  z-index: 1;
  filter: drop-shadow(0 22px 34px rgba(31, 26, 26, 0.28));
}

.device--phone {
  left: 58.46%;
  top: 0;
  width: 28.13%;
  z-index: 2;
  filter: drop-shadow(0 26px 40px rgba(31, 26, 26, 0.30));
}

.device--watch {
  left: 78.20%;
  top: 48.84%;
  width: 21.77%;
  z-index: 3;
  filter: drop-shadow(0 18px 26px rgba(31, 26, 26, 0.32));
}

/* ===================== Responsive: stack on narrow screens ===================== */

@media (max-width: 880px) {
  .card {
    aspect-ratio: auto;
    padding: clamp(28px, 7vw, 56px) clamp(22px, 6vw, 56px) clamp(34px, 9vw, 60px);
    display: flex;
    flex-direction: column;
    gap: clamp(26px, 6vw, 48px);
  }

  .hero__content {
    position: static;
    width: 100%;
  }
  .hero__title { font-size: clamp(1.625rem, 8vw, 3.25rem); }
  .hero__lede  { font-size: clamp(0.9375rem, 3.4vw, 1.1875rem); max-width: 40em; }
  .appstore-badge {
    width: clamp(160px, 42vw, 200px);
    margin-top: clamp(24px, 6vw, 36px);
  }

  /* Device cluster becomes a self-contained, centered block */
  .stage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .site-header__title    { font-size: clamp(1.125rem, 5.5vw, 1.5rem); }
  .site-header__subtitle { font-size: clamp(0.8125rem, 3.8vw, 1.0625rem); }
}

/* ===================== Footer ===================== */

.site-footer {
  margin-top: clamp(20px, 3vw, 36px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-footer__sep {
  font-size: 0.8125rem;
  opacity: 0.25;
  user-select: none;
}

.site-footer__link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-footer__link:hover { opacity: 0.75; }
.site-footer__link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 3px;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .appstore-badge { transition: none; }
  .site-footer__link { transition: none; }
}
