:root {
  --bg: #0b1410;
  --bg-raised: #101d16;
  --surface: #16251c;
  --surface-soft: #1c3023;
  --line: rgba(205, 229, 210, 0.14);
  --text: #f3f5ef;
  --muted: #aab8ac;
  --accent: #79c895;
  --accent-strong: #9be0af;
  --accent-ink: #102016;
  --radius-card: 28px;
  --radius-control: 14px;
  --radius-pill: 999px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 8%, rgba(75, 133, 91, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 48px), var(--max));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand img {
  border-radius: 10px;
}

.site-header nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-header nav a,
footer nav a,
.text-link {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-header nav a:hover,
footer nav a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 750;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-link {
  padding: 9px 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-link:hover {
  color: var(--accent-strong);
}

.header-cta:hover {
  background: rgba(121, 200, 149, 0.1);
}

.header-cta:active,
.store-button:active,
.primary-cta:active {
  transform: translateY(1px) scale(0.99);
}

.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100dvh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 32px;
  padding: 50px 0 66px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9.5ch;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 5.9vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 27rem;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.store-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.store-button {
  min-width: 168px;
  padding: 11px 18px 12px;
  border: 1px solid rgba(155, 224, 175, 0.34);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.store-button:hover {
  background: var(--accent-strong);
}

.store-button-muted {
  background: transparent;
  color: var(--text);
  cursor: not-allowed;
  opacity: 0.72;
}

.store-kicker {
  display: block;
  margin-bottom: -2px;
  font-size: 0.67rem;
  font-weight: 650;
}

.store-button strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.hero-visual {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  min-height: 660px;
  perspective: 1200px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 70px 16px 30px 90px;
  border-radius: 48% 52% 34% 66% / 56% 35% 65% 44%;
  background: linear-gradient(145deg, rgba(79, 136, 95, 0.42), rgba(27, 56, 37, 0.18));
  filter: blur(1px);
}

.phone-shell {
  position: absolute;
  overflow: hidden;
  border: 7px solid #27362c;
  border-radius: 38px;
  background: #f4f6f1;
  box-shadow:
    0 34px 78px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-primary {
  top: 8px;
  right: 36px;
  width: 316px;
  aspect-ratio: 390 / 844;
  transform:
    translate3d(calc(var(--pointer-x) * 10px), calc(var(--pointer-y) * 8px), 0)
    rotate(0.7deg);
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-secondary {
  left: 42px;
  bottom: -150px;
  width: 260px;
  aspect-ratio: 390 / 844;
  transform:
    translate3d(calc(var(--pointer-x) * -8px), calc(var(--pointer-y) * -6px), 0)
    rotate(-2deg);
  opacity: 0.9;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(21, 37, 28, 0.91);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 750;
  backdrop-filter: blur(18px);
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover .floating-note {
  transform: translate3d(calc(var(--pointer-x) * -12px), calc(var(--pointer-y) * -8px), 0);
}

.promise {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 74px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise > p {
  max-width: 19ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.promise-points {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 1.03rem;
}

.promise-points span {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.feature-story,
.family-section,
.closing {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.feature-story {
  padding: 120px 0 54px;
}

.feature-heading {
  max-width: 670px;
  margin-bottom: 54px;
}

.feature-heading h2,
.family-copy h2,
.closing h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.feature-heading p,
.family-copy p,
.closing p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-routine {
  grid-row: span 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 44px 0 0 44px;
  background:
    radial-gradient(circle at 75% 20%, rgba(121, 200, 149, 0.15), transparent 19rem),
    var(--surface);
}

.feature-copy {
  align-self: center;
  padding-bottom: 44px;
}

.feature-copy > img,
.feature-shopping > img {
  margin-bottom: 22px;
}

.feature-screen {
  align-self: end;
  width: 280px;
  max-height: 590px;
  object-fit: cover;
  object-position: top;
  border: 6px solid #2b3930;
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.3);
}

.feature-shopping {
  min-height: 316px;
  padding: 34px;
  background:
    linear-gradient(150deg, rgba(55, 100, 69, 0.32), transparent 65%),
    var(--surface-soft);
}

.feature-tone {
  min-height: 316px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tone-message {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 4px var(--radius-control) var(--radius-control) 4px;
  background: rgba(121, 200, 149, 0.09);
  color: #d8e6d9;
  font-size: 0.94rem;
}

.family-section {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
}

.family-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at center, rgba(121, 200, 149, 0.19), transparent 54%),
    var(--bg-raised);
}

.family-phone {
  width: 252px;
  height: 460px;
  margin-bottom: -96px;
  overflow: hidden;
  border: 6px solid #2b3930;
  border-radius: 32px 32px 0 0;
  background: #f4f6f1;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
  transform: rotate(-3deg);
}

.family-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.family-copy p {
  margin-bottom: 26px;
}

.text-link {
  display: inline-flex;
  color: var(--accent);
  font-weight: 760;
}

.closing {
  margin-bottom: 88px;
  padding: 92px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 50% 0%, rgba(121, 200, 149, 0.17), transparent 22rem),
    var(--surface);
  text-align: center;
}

.closing > img {
  margin-bottom: 24px;
}

.closing h2 {
  max-width: 14ch;
}

.closing p {
  margin-bottom: 28px;
}

.primary-cta {
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-cta:hover {
  background: var(--accent-strong);
}

footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 42px 0 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.footer-brand span {
  font-weight: 850;
  letter-spacing: -0.035em;
}

.footer-brand p,
.copyright {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.copyright {
  grid-column: 1 / -1;
}

.legal-main {
  width: min(calc(100% - 48px), 820px);
  min-height: calc(100dvh - 220px);
  margin: 0 auto;
  padding: 84px 0 120px;
}

.legal-main h1 {
  max-width: none;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.legal-main .intro {
  max-width: 60ch;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 1.12rem;
}

.legal-main article {
  color: #d8e0d9;
}

.legal-main article h2 {
  margin: 46px 0 14px;
  font-size: 1.45rem;
}

.legal-main article p,
.legal-main article li {
  color: var(--muted);
}

.legal-main article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .phone-primary,
  .phone-secondary,
  .floating-note {
    animation: enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .phone-primary {
    animation-delay: 80ms;
  }

  .phone-secondary {
    animation-delay: 150ms;
  }

  .floating-note {
    animation-delay: 260ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      translate: 0 22px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  .reveal-ready {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    will-change: opacity, transform;
    transition:
      opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .feature-grid .feature:nth-child(2) {
    transition-delay: 80ms;
  }

  .feature-grid .feature:nth-child(3) {
    transition-delay: 150ms;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-visual {
    min-height: 660px;
  }

  .phone-primary {
    right: 15%;
  }

  .phone-secondary {
    left: 12%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-routine {
    grid-row: auto;
  }

  .family-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .promise,
  .feature-story,
  .family-section,
  .closing,
  footer,
  .legal-main {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    height: 68px;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .hero {
    gap: 10px;
    padding: 46px 0 42px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .store-actions {
    flex-direction: column;
  }

  .store-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone-primary {
    right: 0;
    width: 245px;
  }

  .phone-secondary {
    left: -8px;
    bottom: -90px;
    width: 195px;
  }

  .floating-note {
    right: 4px;
    bottom: 42px;
  }

  .promise {
    padding: 54px 0;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-story {
    padding-top: 82px;
  }

  .feature-heading {
    margin-bottom: 36px;
  }

  .feature-routine {
    min-height: 640px;
    grid-template-columns: 1fr;
    padding: 30px 24px 0;
  }

  .feature-copy {
    padding-bottom: 0;
  }

  .feature-screen {
    justify-self: center;
    width: 255px;
  }

  .feature-shopping,
  .feature-tone {
    min-height: 280px;
    padding: 28px;
  }

  .family-section {
    padding: 78px 0;
  }

  .family-visual {
    min-height: 330px;
  }

  .family-phone {
    width: 220px;
    height: 390px;
  }

  .closing {
    margin-bottom: 60px;
    padding: 70px 24px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
