/* Eggspecting — marketing site styles.
   Palette mirrors the app's free "Peach" theme (Shared/DesignSystem/AppTheme.swift).
   Typography uses the system rounded face (SF Pro Rounded on Apple devices) to match
   the in-app Theme.Font.*.rounded design. No third-party fonts/trackers — privacy-first. */

:root {
  color-scheme: light;
  /* Sea-spray theme — light & airy. A soft sea-green leads; a warm coral
     (drawn from the app's own accent) is kept for small ties to the product. */
  --bg-primary: #EDF6F1;       /* pale sea-spray mist */
  --bg-secondary: #FFFFFF;
  --bg-tint: #F5FBF8;
  --card: #FFFFFF;
  --accent: #2E9C84;           /* sea green — primary */
  --accent-strong: #207D69;
  --accent-soft: #D9EFE7;      /* sea foam */
  --sage: #7FB6A1;
  --warm: #E8836B;             /* app coral, used sparingly */
  --warm-soft: #FBE6DD;
  --sand: #F1EADF;
  --text-primary: #21392F;     /* deep sea-green ink */
  --text-secondary: #5E776C;
  --hairline: #DCEAE2;
  /* Buddy tones (used by the decorative SVG fallback) */
  --pet-body: #9CCBBA;
  --pet-body-dark: #7FB1A2;
  --pet-belly: #FFFFFF;
  --pet-cheek: #F2B8A8;

  --maxw: 1100px;
  --radius-card: 24px;
  --radius-chip: 999px;
  --shadow-soft: 0 1px 2px rgba(33, 57, 47, 0.04), 0 12px 32px rgba(33, 57, 47, 0.07);
  --shadow-lift: 0 2px 4px rgba(33, 57, 47, 0.05), 0 26px 60px rgba(46, 156, 132, 0.16);

  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
          system-ui, -apple-system, "Segoe UI", "Nunito", "Quicksand", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-chip);
  font-weight: 600; font-size: 1.02rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 18px rgba(32,125,105,0.26); }
.btn-primary:hover { background: #1a6a57; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--bg-secondary); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.18rem; color: var(--text-primary); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow-soft); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
/* Keep the primary nav pill's label white (beat .nav-links a specificity) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(900px 480px at 8% 18%, color-mix(in srgb, var(--sage) 26%, transparent) 0%, transparent 58%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-grid > *, .features > *, .promise-grid > *, .pro-card > * { min-width: 0; }
img, svg { max-width: 100%; }
img { height: auto; }   /* keep aspect ratio when width is responsive */
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-secondary); border: 1px solid var(--hairline);
  color: var(--text-secondary); font-weight: 600; font-size: 0.86rem;
  padding: 7px 14px; border-radius: var(--radius-chip); box-shadow: var(--shadow-soft);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

.hero h1 { font-size: clamp(2rem, 6vw, 4rem); margin: 22px 0 0; overflow-wrap: break-word; }
.hero-br { display: none; }
@media (max-width: 520px) { .hero-br { display: inline; } }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: clamp(1.1rem, 2.1vw, 1.32rem); color: var(--text-secondary); margin: 20px 0 0; max-width: 30ch; }
@media (max-width: 880px) { .hero .lede { margin-left: auto; margin-right: auto; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
@media (max-width: 880px) { .cta-row { justify-content: center; } }

/* Official "Download on the App Store" badge */
.appstore-badge { display: inline-block; line-height: 0; transition: transform .15s ease, box-shadow .2s ease; border-radius: 9px; }
.appstore-badge img { height: 52px; width: auto; display: block; border-radius: 9px; }
.appstore-badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(33,57,47,0.18); }
.soon-note { font-size: 0.84rem; color: var(--text-secondary); font-weight: 600; }

.trust-line { margin-top: 22px; color: var(--text-secondary); font-size: 0.95rem; display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 880px) { .trust-line { justify-content: center; } }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { width: 16px; height: 16px; color: var(--sage); }

/* ---------- Device frame (real screenshots) ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: -1; filter: blur(8px);
}
.device {
  width: 286px; max-width: 80vw; background: #0f1714;
  border-radius: 44px; padding: 10px; box-shadow: var(--shadow-lift);
}
.device img { display: block; width: 100%; border-radius: 34px; }

.hero-float {
  position: absolute; right: -6px; top: 30px; background: var(--card);
  border: 1px solid var(--hairline); border-radius: 16px; padding: 11px 15px;
  box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.92rem;
}
.hero-float .em { font-size: 1.15rem; }
.hero-float small { display: block; color: var(--text-secondary); font-weight: 600; font-size: 0.74rem; }
@media (max-width: 880px) { .hero-float { display: none; } }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; margin-top: 8px;
}
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.shot { text-align: center; }
.shot img {
  width: 100%; max-width: 240px; border-radius: 22px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--hairline);
  transition: transform .2s ease, box-shadow .25s ease;
}
.shot:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shot h3 { font-size: 1.02rem; margin: 16px 0 4px; }
.shot p { margin: 0 auto; max-width: 26ch; color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 0; }
.section-head p { color: var(--text-secondary); font-size: 1.1rem; margin: 16px 0 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); margin-bottom: 16px;
}
.feature .ic svg { width: 26px; height: 26px; color: var(--accent); }
.feature h3 { font-size: 1.18rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 1rem; }

/* Promise / kindness band */
.band { background: var(--bg-tint); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.kindness-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .kindness-grid { grid-template-columns: 1fr; gap: 30px; } }
.kindness-grid > * { min-width: 0; }
.promise-stack { display: flex; flex-direction: column; gap: 18px; }
.kindness-shot { display: flex; justify-content: center; }
.kindness-shot .device { width: 250px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 800px) { .promise-grid { grid-template-columns: 1fr; } }
.promise {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 24px; box-shadow: var(--shadow-soft);
}
.promise h3 { font-size: 1.16rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.promise h3 svg { width: 22px; height: 22px; color: var(--sage); flex: none; }
.promise p { margin: 0; color: var(--text-secondary); font-size: 1rem; }

/* Privacy band */
.privacy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 36px; margin-top: 10px; }
@media (max-width: 700px) { .privacy-list { grid-template-columns: 1fr; } }
.privacy-list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: #fff;
  display: grid; place-items: center; margin-top: 2px;
}
.privacy-list .check svg { width: 15px; height: 15px; }
.privacy-list b { display: block; }
.privacy-list span { color: var(--text-secondary); font-size: 0.96rem; }

/* Pro */
.pro-card {
  background: linear-gradient(160deg, var(--card) 0%, var(--accent-soft) 140%);
  border: 1px solid var(--hairline); border-radius: 28px; padding: 40px;
  box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
@media (max-width: 800px) { .pro-card { grid-template-columns: 1fr; gap: 24px; padding: 30px; } }
.pro-card h3 { font-size: 1.7rem; margin: 6px 0 14px; }
.pro-perks { margin: 0; padding: 0; }
.pro-perks li { list-style: none; padding: 9px 0; border-bottom: 1px dashed var(--hairline); color: var(--text-secondary); display: flex; gap: 10px; }
.pro-perks li:last-child { border-bottom: 0; }
.pro-perks svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.pricebox { text-align: center; background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-soft); }
.pricebox .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.pricebox .amt small { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.pricebox .alt { color: var(--text-secondary); margin-top: 4px; }
.pricebox .trial { margin-top: 14px; display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; padding: 7px 16px; border-radius: 999px; font-size: 0.92rem; }
.pricebox .free-note { margin-top: 16px; font-size: 0.86rem; color: var(--text-secondary); }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.final p { color: var(--text-secondary); font-size: 1.15rem; max-width: 50ch; margin: 16px auto 28px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-secondary); border-top: 1px solid var(--hairline); padding: 48px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.foot-brand img { width: 34px; height: 34px; border-radius: 10px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-secondary); font-weight: 600; }
.foot-links a:hover { color: var(--text-primary); }
.disclaimer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-secondary); font-size: 0.86rem; max-width: 70ch; }
.copyright { margin-top: 16px; color: var(--text-secondary); font-size: 0.86rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.legal .updated { color: var(--text-secondary); margin-top: 6px; font-size: 0.96rem; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 10px; }
.legal h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-primary); font-size: 1.02rem; }
.legal p { margin: 12px 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal .callout {
  background: var(--accent-soft); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 18px 22px; margin: 22px 0; color: var(--text-primary);
}
.legal a { font-weight: 600; }
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; }
