/*
 * NailsGuard landing. Warm red/pink brand to match the app icon (the index-pointing-up
 * emoji on a pink-to-red gradient). Type pairing: Space Grotesk for display, Plus Jakarta
 * Sans for body. Plain CSS, no build step.
 */

:root {
  --bg: #fdf6f6;
  --bg-top: #fffafb;
  --bg-bottom: #fbecee;
  --surface: #ffffff;
  --text: #1b1014;
  --text-muted: #6b5a5f;
  --text-faint: #a3949a;
  --primary: #f43f5e;
  --primary-deep: #e11d48;
  --primary-soft: #ffe4e9;
  --on-primary: #ffffff;
  --accent: #fb7185;
  --accent-soft: #ffd0d8;
  --border: #f1dfe3;
  --dark-card: #1b1014;
  --hero-top: #2a1218;
  --hero-bottom: #160a0d;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.7);
  --on-dark-faint: rgba(255, 255, 255, 0.45);
  --radius: 20px;
  --radius-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family:
    'Plus Jakarta Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-primary);
  border-radius: 999px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), var(--primary-deep));
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
}

.header-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* ---- Hero: light, copy left + app emblem right ---- */

.hero {
  position: relative;
  padding: 40px 0 8px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
}

/* ambient brand blobs (pink + red, like the app icon gradient) */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -180px;
  background: rgba(251, 113, 133, 0.5);
}

.hero::after {
  width: 420px;
  height: 420px;
  top: 160px;
  right: -180px;
  background: rgba(244, 63, 94, 0.32);
}

.hero .tagline-chip {
  display: inline-block;
  background: var(--dark-card);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.05;
  color: var(--text);
  /* Keep "Catch the habit." on one line; the <br> handles the real break. */
  white-space: nowrap;
}

.hero .hl {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--primary-deep));
  color: var(--on-primary);
  border-radius: 18px;
  padding: 0 20px;
  margin-top: 10px;
  box-shadow: 0 12px 36px rgba(244, 63, 94, 0.45);
}

.hero .sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 22px 0 0;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Mac App Store download button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-card);
  color: var(--on-dark);
  border-radius: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(27, 16, 20, 0.25);
}

.store-btn:hover {
  text-decoration: none;
  filter: brightness(1.12);
}

.store-btn-icon {
  font-size: 30px;
  line-height: 1;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-btn-text small {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
}

.store-btn-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.store-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--surface);
}

.privacy-reassure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 22px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

/* App icon emblem (no screenshot yet): the brand gradient + glyph */
.app-emblem {
  width: 260px;
  height: 260px;
  border-radius: 60px;
  background: linear-gradient(155deg, #fb7185 0%, #f43f5e 55%, #e11d48 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 40px 90px rgba(244, 63, 94, 0.4),
    0 24px 50px rgba(27, 16, 20, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-emblem-glyph {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 8px 18px rgba(27, 16, 20, 0.25));
}

/* ---- "It sees -> you get" demo strip ---- */

.demo {
  background: linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  color: var(--on-dark);
}

.demo-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.demo-quote {
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-dark-muted);
  font-style: italic;
}

.demo-arrow {
  font-size: 36px;
  color: var(--accent);
  font-weight: 700;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 16px;
  background: color-mix(in srgb, var(--c) 28%, transparent);
  color: color-mix(in srgb, var(--c) 55%, white);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}

.chip-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---- Value blurbs ---- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.value-card {
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}

.value-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 21px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 15px;
  color: var(--text-muted);
}

.value-pink {
  background: var(--primary-soft);
}

.value-rose {
  background: #ffeef0;
}

.value-dark {
  background: linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
  color: var(--on-dark);
}

.value-dark h3 {
  color: var(--on-dark);
}

.value-dark p {
  color: var(--on-dark-muted);
}

.value-dark .badge {
  background: rgba(255, 255, 255, 0.12);
}

/* ---- How it works ---- */

.how {
  margin-bottom: 56px;
}

.how h2,
.features h2 {
  font-size: 30px;
  margin-bottom: 24px;
  text-align: center;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(27, 16, 20, 0.06);
}

.how-step .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--accent), var(--primary-deep));
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.how-step p {
  font-size: 15px;
  color: var(--text-muted);
}

.how-step strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

/* ---- Feature grid ---- */

.features {
  margin-bottom: 64px;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

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

.feature strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}

.feature p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---- Privacy section ---- */

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

.privacy-inner {
  background: linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
  color: var(--on-dark);
}

.privacy-glyph {
  font-size: 40px;
  line-height: 1;
  display: inline-block;
  margin-bottom: 16px;
}

.privacy-inner h2 {
  font-size: 30px;
  color: var(--on-dark);
  margin-bottom: 14px;
}

.privacy-inner p {
  font-size: 17px;
  color: var(--on-dark-muted);
  max-width: 640px;
  margin: 0 auto 22px;
}

.privacy-link {
  font-weight: 600;
  color: var(--accent);
}

.privacy-link:hover {
  color: #ffffff;
}

/* ---- CTA band ---- */

.cta-band {
  text-align: center;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin-bottom: 64px;
}

.cta-band h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.cta-band p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cta-band .store-row {
  justify-content: center;
  margin-top: 0;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  font-weight: 600;
}

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

/* ---- Legal pages ---- */

.legal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 16px 0 48px;
}

.legal h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 21px;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--text-muted);
}

.legal ul {
  padding-left: 22px;
  margin: 8px 0;
}

.legal strong {
  color: var(--text);
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .values,
  .how-steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    gap: 36px;
    text-align: center;
  }

  /* On phones let the headline wrap rather than overflow. */
  .hero h1 {
    white-space: normal;
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero .sub {
    margin: 22px auto 0;
  }

  .store-row {
    justify-content: center;
  }

  .privacy-reassure {
    justify-content: center;
  }

  .app-emblem {
    width: 200px;
    height: 200px;
    border-radius: 46px;
  }

  .app-emblem-glyph {
    width: 104px;
    height: 104px;
  }

  .demo {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 20px;
  }

  .demo-arrow {
    transform: rotate(90deg);
    justify-self: center;
    line-height: 1;
  }

  .privacy-inner {
    padding: 36px 24px;
  }

  .legal {
    padding: 32px 20px;
  }
}
