:root {
  --paper: #f5eddb;
  --paper-elevated: #faf5e8;
  --text-primary: #181a22;
  --text-secondary: #6a7282;
  --accent: #ff9f25;
  --accent-deep: #e88518;
  --card: rgba(255, 255, 255, 0.92);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-apple-watch: "SF Compact Rounded", "SF Pro Rounded", ui-rounded, "Segoe UI Rounded", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-apple-watch);
  background: var(--paper);
  color: var(--text-primary);
}

a {
  color: inherit;
}

.page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.glow.top-right {
  width: 450px;
  height: 450px;
  top: -150px;
  right: -120px;
}

.glow.bottom-left {
  width: 320px;
  height: 320px;
  bottom: -130px;
  left: -110px;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 3vw, 44px);
  align-items: center;
  padding: clamp(24px, 4.2vh, 54px) 0 clamp(8px, 2vh, 20px);
  flex: 1;
}

.headline {
  margin: 0 0 16px;
  font-size: clamp(40px, 6.1vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.headline .accent {
  color: var(--accent);
}

.subhead {
  margin: 0;
  font-size: clamp(20px, 2vw, 40px);
  line-height: 1.42;
  color: var(--text-secondary);
  font-weight: 600;
}

.subhead .accent {
  color: var(--accent-deep);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 159, 37, 0.35);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(232, 133, 24, 0.28);
}

.hero-download {
  min-height: 78px;
  padding: 0 30px;
  font-size: 18px;
}

.phone-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #ffab3f, #f79323);
  padding: clamp(22px, 2.2vw, 30px);
  box-shadow: 0 22px 48px rgba(188, 111, 22, 0.33);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-frame-cross {
  position: absolute;
  top: clamp(22px, 2.2vw, 30px);
  right: clamp(22px, 2.2vw, 30px);
  width: 20px;
  height: 28px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 2;
}

.phone-frame-cross::before,
.phone-frame-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.phone-frame-cross::before {
  top: 8px;
  left: 0;
  width: 20px;
  height: 3px;
}

.phone-frame-cross::after {
  top: 0;
  left: 8px;
  width: 3px;
  height: 28px;
}

.phone-carousel {
  width: 100%;
  max-width: clamp(250px, 24vw, 300px);
  aspect-ratio: 390 / 844;
  position: relative;
}

.phone-screen-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 26px 34px rgba(0, 0, 0, 0.27);
  display: block;
}

.phone-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 26px 34px rgba(0, 0, 0, 0.27);
  opacity: 0;
  transform: scale(0.986);
  animation: heroScreenCycle 15s infinite;
}

.phone-screen-1 {
  animation-delay: 0s;
}

.phone-screen-2 {
  animation-delay: 5s;
}

.phone-screen-3 {
  animation-delay: 10s;
}

.phone-sequence {
  margin: 0;
  color: rgba(24, 26, 34, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

@keyframes heroScreenCycle {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  26% {
    opacity: 1;
    transform: scale(1);
  }
  33% {
    opacity: 0;
    transform: scale(0.986);
  }
  100% {
    opacity: 0;
    transform: scale(0.986);
  }
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.meta .card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.meta .label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta .value {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.legal-footer {
  text-align: center;
  color: var(--text-secondary);
  padding: 8px 0 20px;
  font-weight: 600;
}

.legal-footer nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-footer p {
  margin: 10px 0 0;
}

.legal-footer a {
  text-decoration: none;
  color: var(--text-secondary);
}

.legal-footer a:hover {
  color: var(--text-primary);
}

.legal-page {
  padding: 38px 0 70px;
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 26px 26px 30px;
}

.legal-shell h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal-shell .effective {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-shell h2 {
  margin: 24px 0 8px;
  font-size: 22px;
}

.legal-shell p,
.legal-shell li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
}

.legal-shell ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 46px;
  }

  .phone-frame {
    max-width: 430px;
    margin: 0 auto;
  }

  .hero-download {
    width: 100%;
    min-height: 74px;
  }

}

@media (min-width: 941px) and (max-height: 980px) {
  .hero {
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 8px;
  }

  .headline {
    font-size: clamp(36px, 5.2vw, 62px);
  }

  .subhead {
    font-size: clamp(19px, 1.8vw, 34px);
  }

  .cta-row {
    margin-top: 20px;
  }

  .phone-frame {
    padding: 20px;
  }

  .phone-carousel {
    max-width: 260px;
  }

  .legal-footer {
    padding-top: 6px;
    padding-bottom: 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-screen {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .phone-screen-1 {
    opacity: 1;
  }
}
