@font-face {
  font-family: "Nunito Local";
  src: url("/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Local";
  src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --body-font: "Avenir Next", system-ui, sans-serif;
  --display-font: "Nunito Local", "Avenir Next", system-ui, sans-serif;
  --bg: #FDF8F0;
  --bg-warm: #F8EFE0;
  --ink: #2A2018;
  --ink-soft: #5C4F3E;
  --muted: #8A7D6B;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-solid: #FFFFFF;
  --line: rgba(170, 140, 90, 0.12);
  --accent: #D4636B;
  --accent-soft: rgba(212, 99, 107, 0.10);
  --accent-strong: #B84850;
  --warm: #F2A062;
  --shadow-sm: 0 2px 8px rgba(42, 32, 24, 0.06);
  --shadow-md: 0 8px 32px rgba(42, 32, 24, 0.08);
  --shadow-lg: 0 24px 64px rgba(42, 32, 24, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.site-nav a,
.stat strong,
.stat span,
.store-link,
.science-number,
.faq-item summary,
.legal-card strong,
.back-link,
.eyebrow,
.app-kicker {
  font-family: var(--display-font);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.shell {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  padding: 16px 0;
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  text-decoration: none;
}

.site-logo {
  height: 80px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ─── Hero ─── */

.hero {
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-phones {
  flex: 0 0 440px;
  height: 520px;
  position: relative;
}

.phone {
  position: absolute;
  width: 200px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 300ms ease;
  background: #1a1a1a;
  padding: 8px;
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.phone img {
  width: 100%;
  display: block;
  border-radius: 24px;
}

.phone-back {
  top: 50px;
  left: 0;
  transform: rotate(-10deg);
  z-index: 1;
}

.phone-mid {
  top: 0;
  left: 120px;
  transform: rotate(0deg);
  z-index: 2;
}

.phone-front {
  top: 40px;
  left: 240px;
  transform: rotate(8deg);
  z-index: 3;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Sections ─── */

section {
  margin-bottom: 64px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ─── App Grid ─── */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-icon-shell {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-copy {
  min-width: 0;
  flex: 1;
}

.app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.store-link:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.store-link.pending {
  background: var(--bg-warm);
  color: var(--muted);
}

.store-link.pending:hover {
  background: var(--bg-warm);
}

/* ─── Features ─── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card h3 svg {
  flex-shrink: 0;
  color: var(--accent);
}

.feature-highlight {
  background: linear-gradient(135deg, var(--accent-soft), rgba(242, 160, 98, 0.08));
  border-color: rgba(212, 99, 107, 0.2);
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Science ─── */

.science-section {
  background: var(--panel-solid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  margin-bottom: 0;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.science-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.science-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.science-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.science-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.science-app {
  color: var(--accent-strong) !important;
  font-weight: 600;
  font-size: 0.88rem !important;
  font-style: italic;
}

/* ─── Testimonials ─── */

.testimonials-section {
  padding: 64px 0;
}

.testimonial-carousel {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.stars {
  color: var(--warm);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 14px;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* ─── FAQ ─── */

.faq-section {
  margin-bottom: 64px;
}

.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ─── Legal ─── */

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.legal-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.legal-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.legal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ─── Footer ─── */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 600;
}

.copyright {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ─── Legal Pages ─── */

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
}

.legal {
  padding: 32px 0 64px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal p {
  max-width: 680px;
}

.legal ul {
  padding-left: 1.2rem;
  max-width: 680px;
}

.legal li + li {
  margin-top: 0.45rem;
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
  .shell {
    width: calc(100vw - 24px);
  }

  .hero {
    padding: 48px 0 40px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 28px;
  }

  .stat strong {
    font-size: 1.6rem;
  }

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

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

  .app-card {
    border-radius: var(--radius-sm);
  }

  .feature-card {
    border-radius: var(--radius-sm);
  }

  section {
    margin-bottom: 40px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-phones {
    flex: none;
    width: 100%;
    height: 320px;
  }

  .phone {
    width: 160px;
  }

  .phone-back { left: 0; top: 30px; }
  .phone-mid { left: 60px; top: 0; }
  .phone-front { left: 120px; top: 20px; }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .site-logo {
    height: 32px;
  }

  .science-section,
  .testimonials-section {
    padding: 40px 0;
  }
}
