/* ============================================================
   Tideline landing page — tokens lifted from the app design system
   ============================================================ */
:root {
  --cream: #f8e9d2;
  --cream-2: #f0dcbf;
  --cream-3: #ead2b2;
  --card: #fffdf9;
  --track: #ece1cb;
  --muted-fill: #f1e8d7;

  --navy: #1f2d52;
  --slate: #33405f;
  --slate-2: #525d78;
  --muted: #7e879f;
  --faint: #9aa2b6;

  --blue: #3950e0;
  --blue-bg: #e9edfc;
  --lime: #d3e64a;
  --lime-shadow: rgba(150, 168, 40, .45);
  --green: #5f7d63;
  --green-2: #7e9c84;
  --green-bg: #e6efe6;

  --menstrual: #c98b86;
  --follicular: #8faf8c;
  --ovulatory: #cfa85f;
  --luteal: #ad96b8;
  --luteal-text: #7d6589;
  --luteal-bg: #ece4f0;

  --hairline: rgba(56, 50, 43, .07);

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, .section-title { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h1 em, .section-title em { font-style: italic; color: var(--green); }
.section-title { font-size: clamp(27px, 3.6vw, 38px); margin-bottom: 14px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--luteal-text); margin-bottom: 12px;
}
.lede, .section-lede { font-size: 16.5px; color: var(--slate-2); max-width: 560px; }
.section-lede.center { margin: 0 auto; }
.fine-print { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 233, 210, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .22s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(60, 50, 40, .09); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo {
  font-family: var(--serif); font-size: 23px; color: var(--navy); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.logo-dot {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  background: conic-gradient(var(--menstrual) 0 18%, var(--follicular) 18% 46%, var(--ovulatory) 46% 57%, var(--luteal) 57% 100%);
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14px; font-weight: 600; color: var(--slate-2); text-decoration: none;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--navy); color: var(--card) !important;
  padding: 8px 18px; border-radius: 999px;
  transition: transform .13s ease, background .18s ease;
}
.nav-cta:hover { background: var(--blue); }
.nav-cta:active { transform: scale(.94); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f7ead5 0%, var(--cream-2) 55%, var(--cream-3) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 76px; padding-bottom: 90px;
}
.hero-copy .lede { margin: 20px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--navy); color: var(--card); text-decoration: none;
  padding: 12px 24px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(31, 45, 82, .28);
  transition: transform .13s ease, box-shadow .2s ease;
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31, 45, 82, .34); }
.appstore-badge:active { transform: scale(.96); }
.appstore-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 17px; }
.appstore-badge small { font-size: 10.5px; font-weight: 500; opacity: .8; }

.ghost-link { font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; }
.ghost-link:hover { text-decoration: underline; }

/* ---------- Phone mockup ---------- */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: 12% 8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211, 230, 74, .38), transparent 70%);
  filter: blur(8px);
}
.phone {
  position: relative; z-index: 1;
  width: 290px; border-radius: 46px; padding: 12px;
  background: #22262e;
  box-shadow: 0 30px 70px rgba(60, 50, 40, .26);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #22262e; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  background: var(--cream); border-radius: 36px; overflow: hidden;
  padding: 44px 18px 24px;
}
.ps-header { display: flex; justify-content: space-between; align-items: flex-start; }
.ps-greeting { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.ps-date { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.ps-unit-pill {
  display: flex; background: var(--muted-fill); border-radius: 999px; padding: 3px;
  font-size: 10px; font-weight: 700; color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.ps-unit-pill span { padding: 3px 9px; border-radius: 999px; }
.ps-unit-pill .on { background: var(--card); color: var(--navy); }

.ps-ring-wrap { position: relative; width: 150px; margin: 18px auto 14px; }
.ps-ring { display: block; width: 100%; }
.ps-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.ps-ring-label { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--faint); }
.ps-ring-day { font-family: var(--serif); font-size: 36px; color: var(--navy); line-height: 1.05; }
.ps-ring-phase { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--luteal-text); }

.ps-delta-label { text-align: center; font-size: 10.5px; color: var(--muted); }
.ps-delta {
  text-align: center; font-family: var(--serif); font-size: 42px; color: var(--green); line-height: 1.1;
}
.ps-delta small { font-size: 18px; color: var(--green-2); }
.ps-card {
  background: var(--blue-bg); border-radius: 16px; padding: 12px 14px; margin-top: 14px;
}
.ps-card p { font-family: var(--serif); font-size: 13.5px; color: var(--slate); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--card); }
.section .section-lede { margin-bottom: 8px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.feature-card {
  background: var(--card); border-radius: 20px; padding: 26px 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 26px rgba(60, 50, 40, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(60, 50, 40, .12); }
.feature-card h3 { font-size: 16.5px; color: var(--navy); margin: 14px 0 7px; }
.feature-card p { font-size: 13.5px; color: var(--slate-2); }

.fc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tint-purple { background: var(--luteal-bg); color: var(--luteal-text); }
.tint-blue { background: var(--blue-bg); color: var(--blue); }
.tint-green { background: var(--green-bg); color: var(--green); }
.tint-amber { background: #f6ecd6; color: var(--ovulatory); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step { text-align: center; padding: 0 8px; }
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--lime); color: var(--navy);
  font-family: var(--serif); font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px var(--lime-shadow);
}
.step h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--slate-2); }

/* ---------- Premium ---------- */
.premium-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.premium-copy .section-lede { margin-bottom: 26px; }
.btn-lime {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 6px 16px var(--lime-shadow);
  transition: transform .13s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.btn-lime:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 22px var(--lime-shadow); }
.btn-lime:active { transform: scale(.94); }

.premium-list {
  list-style: none; background: var(--card); border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 34px rgba(60, 50, 40, .1);
  padding: 10px 0;
}
.premium-list li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 15px 24px; border-bottom: 1px solid var(--hairline);
}
.premium-list li:last-child { border-bottom: 0; }
.premium-list strong { font-size: 14.5px; color: var(--navy); }
.premium-list span { font-size: 13px; color: var(--muted); }

/* ---------- Privacy band ---------- */
.privacy-band { background: var(--green-bg); }
.privacy-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.privacy-inner .section-title, .policy-hero h1 { color: #3f5a44; }
.privacy-inner .section-lede { margin: 0 auto 22px; color: var(--green); }
.privacy-lock {
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 15px;
  background: var(--card); font-size: 23px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(95, 125, 99, .2);
}

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.final-cta .section-title { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--faint); padding: 44px 0 26px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.site-footer .logo { color: var(--card); }
.footer-tag { font-size: 12.5px; margin-top: 8px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #b1b8c8; font-size: 13.5px; text-decoration: none; }
.footer-nav a:hover { color: var(--card); }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-legal p { font-size: 11.5px; color: #7e879f; }

/* ---------- Privacy policy page ---------- */
.policy { padding: 72px 0 96px; }
.policy-inner { max-width: 700px; }
.policy-hero {
  background: var(--green-bg); border-radius: 22px; padding: 34px 32px;
  border: 1px solid rgba(95, 125, 99, .22); margin-bottom: 40px;
}
.policy-hero .privacy-lock { margin: 0 0 18px; }
.policy-hero h1 { font-size: clamp(27px, 4vw, 36px); margin-bottom: 12px; }
.policy-hero p { font-size: 14.5px; color: var(--green); }
.policy-date { margin-top: 14px; font-size: 12px !important; color: var(--green-2) !important; font-weight: 600; }

.policy-section { margin-bottom: 36px; }
.policy-section h2 {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 12px;
}
.policy-section p, .policy-section li { font-size: 14.5px; color: var(--slate-2); }
.policy-section p + p { margin-top: 10px; }
.policy-section ul { list-style: none; }
.policy-section li {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 13px 18px; margin-bottom: 8px;
}
.policy-section li strong { color: var(--navy); }
.policy-section a { color: var(--blue); }
.policy-section p:first-of-type { margin-bottom: 12px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding-top: 56px; padding-bottom: 64px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 20px 40px rgba(60, 50, 40, .15);
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 14px 24px; }
  .nav-cta { border-radius: 0; background: none; color: var(--blue) !important; }
  .footer-inner { flex-direction: column; }
}
