/* ============================================================
   RESET & CUSTOM PROPERTIES
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Dark mode tokens */
:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --max-w: 860px;

  /* Color tokens */
  --orange:        #FF7F40;
  --orange-pale:   rgba(255, 127, 64, 0.13);
  --orange-border: rgba(255, 127, 64, 0.24);

  --text-primary:   #FFFFFF;
  --text-secondary: #8E8E93;
  --text-tertiary:  #636366;

  --bg-primary:  #000000;
  --bg-alt:      #1C1C1E;
  --bg-warm:     #1A1007;
  --bg-card:     #2C2C2E;

  --border:      rgba(255, 255, 255, 0.1);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);

  --btn-bg:       #FFFFFF;
  --btn-bg-hover: #E5E5EA;
  --btn-color:    #1C1C1E;

  --hero-grad-top:    #120A04;
  --hero-grad-bottom: #000000;
  --hero-glow:        rgba(255, 127, 64, 0.11);
}

/* Light mode tokens */
/* To disable automatic light mode, change "(prefers-color-scheme: light)" to "not all" */
@media (prefers-color-scheme: light) {
/* @media not all { */
  :root {
    --orange:        #FF7F40;
    --orange-pale:   #FFF2EB;
    --orange-border: rgba(255, 127, 64, 0.2);

    --text-primary:   #1C1C1E;
    --text-secondary: #6C6C70;
    --text-tertiary:  #AEAEB2;

    --bg-primary:  #FFFFFF;
    --bg-alt:      #F2F2F7;
    --bg-warm:     #FFF5EF;
    --bg-card:     #FFFFFF;

    --border:      rgba(0, 0, 0, 0.08);
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg:   0 16px 48px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.06);

    /* Button — inverted on orange sections, so kept as variables */
    --btn-bg:      #1C1C1E;
    --btn-bg-hover: #2C2C2E;
    --btn-color:   #FFFFFF;

    /* Hero gradient colors — overridden in dark mode */
    --hero-grad-top:    #FFF8F2;
    --hero-grad-bottom: #FFFFFF;
    --hero-glow:        rgba(255, 127, 64, 0.07);
  }
}

/* ============================================================
   BASE
============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.appname {
  color: var(--text-primary);
  font-weight: bold;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Subtle warm tint — used for How It Works */
.section-warm {
  background: var(--bg-warm);
}

/* Bold orange section — used for Final CTA */
.section-orange {
  background: radial-gradient(ellipse at center, var(--hero-glow) 0%, transparent 68%);
}

.text-center {
  text-align: center;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Override typography inside orange section */
.section-orange .section-title {
  color: var(--text-primary);
}

.section-orange .section-body {
  color: var(--text-primary);
}

/* ============================================================
   BUTTON
============================================================ */
.cta-badge, .appstore-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 30px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.12);
  transition: background 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

/* Button on orange section — always white pill with dark text */
.section-orange .btn-primary {
  background: #FFFFFF;
  color: #1C1C1E;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.section-orange .btn-primary:hover {
  background: #F5F5F5;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.btn-apple-logo {
  font-size: 20px;
  line-height: 1;
  margin-top: -1px;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: 80px 24px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--hero-grad-top) 0%, var(--hero-grad-bottom) 55%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--hero-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(34px, 6.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.trust-line {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* Hero screenshots */
.hero-screens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-top: 64px;
}

.hero-screen {
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.18)) drop-shadow(0 4px 12px rgba(0,0,0,0.10));
  flex-shrink: 0;
}

.hero-screen.center {
  width: 210px;
  position: relative;
  z-index: 2;
}

.hero-screen.side {
  width: 186px;
  opacity: 0.6;
  transform: translateY(24px);
}

/* ============================================================
   PROBLEM / SOLUTION
============================================================ */
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.split-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.split-card.accent-card {
  border-color: var(--orange-border);
  background: var(--orange-pale);
}

.split-card.accent-card h3 {
  color: var(--orange);
}

.card-emoji {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1;
}

.split-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.split-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  text-align: left;
}

.step {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   FEATURES
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
  text-align: left;
}

.feature {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.14s ease;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.feature-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   SCREENSHOTS
============================================================ */
.screenshots-section {
  overflow-x: clip;
}

.screenshots-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 56px 24px 88px;
  margin-top: 0;
}

.screenshots-row::-webkit-scrollbar {
  display: none;
}

.screenshots-row img {
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.18)) drop-shadow(0 4px 12px rgba(0,0,0,0.10));
  width: 240px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

/* ============================================================
   PRIVACY
============================================================ */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.privacy-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.privacy-icon {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1;
}

.privacy-card h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.privacy-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 10px;
}

.footer-links a {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.footer-note {
  font-size: 11px;
  color: var(--text-secondary);
}

.footer-note a {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 599px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 64px 20px 0;
  }

  .hero-screens {
    margin-top: 48px;
    gap: 10px;
  }

  .hero-screen.center {
    width: 170px;
  }

  .hero-screen.side {
    width: 148px;
    transform: translateY(18px);
  }

  .split-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .screenshots-row img {
    width: 200px;
  }

}

/* RESPONSIVE — TABLET */
@media (min-width: 600px) and (max-width: 799px) {
  .split-cards {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* RESPONSIVE — DESKTOP: center when space allows, scroll when not */
@media (min-width: 800px) {
  .screenshots-row {
    justify-content: center;
    padding: 56px 0 88px;
  }

  .screenshots-row img {
    width: 220px;
  }
}
