/* Cosmetic Checker — marketing + legal site. Cream + forest/olive, mirroring the
   Free Up Storage layout. Dependency-free, responsive, light/dark aware. */
:root {
  --cream: #f4eee4;
  --paper: #fbf8f2;
  --card: #ffffff;
  --ink: #23221e;
  --ink-soft: #5c574e;
  --ink-faint: #8c8579;
  --line: #e6ddce;
  --green: #47583b;
  --green-deep: #384629;
  --green-soft: #dce1cf;
  --accent: #7e8f63;
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(35, 34, 30, 0.04), 0 8px 24px rgba(35, 34, 30, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 238, 228, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--green);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .06s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; opacity: .94; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 12px; font-weight: 700; color: var(--green);
  background: var(--green-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(42px, 8vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 22px; font-weight: 800; }
.hero p.lead { max-width: 620px; margin: 0 auto 30px; font-size: 18px; color: var(--ink-soft); }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stat row */
.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 54px; }
.stat { text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--green); }
.stat .lbl { font-size: 14px; color: var(--ink-soft); }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Feature cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.step .n {
  width: 34px; height: 34px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.price {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; position: relative;
}
.price.best { border-color: var(--green); box-shadow: var(--shadow); }
.price .tier { font-weight: 700; font-size: 17px; }
.price .amt { font-size: 38px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.02em; }
.price .per { color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; font-weight: 800; }
.cta-band p { color: var(--ink-soft); margin: 0 0 24px; font-size: 17px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--paper); padding: 34px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .copy { color: var(--ink-faint); font-size: 14px; }
.foot .links { display: flex; gap: 20px; }
.foot .links a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }

/* Legal / doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 38px; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc a { font-weight: 600; }
.callout {
  background: var(--green-soft); border: 1px solid #cfd6bd; border-radius: 12px;
  padding: 18px 20px; margin: 22px 0; color: var(--green-deep);
}
.callout strong { color: var(--green-deep); }
.back { display: inline-block; margin-bottom: 24px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }

@media (max-width: 760px) {
  .grid3, .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats { gap: 28px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1c1b18; --paper: #232219; --card: #2a2820; --ink: #f1ece1;
    --ink-soft: #b9b2a4; --ink-faint: #8b8479; --line: #37352c;
    --green: #aab791; --green-deep: #cdd6b6; --green-soft: #333a28; --accent: #aab791;
  }
  .btn-primary { color: #1c1b18; }
  .badge { color: #1c1b18; }
  header.site { background: rgba(28,27,24,0.85); }
}
