/* Safr homepage. Loaded only by index.html, on top of styles.css.
   Aesthetic: calm dawn. Warm, editorial, unhurried. The reader is often anxious,
   so nothing here shouts. Display face is Fraunces, body stays on brand Nunito. */

:root {
  --cream: #FFF9F6;
  --blush: #FFE3EB;
  --blush-deep: #FFD0DE;
  --dawn-a: #FFE9EF;
  --dawn-b: #FFF4EC;
  --dawn-c: #F3F0FF;
  --ink-soft: #4A4A6A;
  --sage: #2E9E8F;
  --sage-bg: #E6FBF8;
  --amber: #B4791F;
  --amber-bg: #FFF6E4;
  --rule: #F0E4E8;
}

/* ---------- Page atmosphere ---------- */
body.home {
  background: var(--cream);
  position: relative;
}
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, var(--dawn-a) 0%, rgba(255, 233, 239, 0) 62%),
    radial-gradient(900px 560px at 92% 4%, var(--dawn-b) 0%, rgba(255, 244, 236, 0) 60%),
    radial-gradient(1000px 700px at 60% 100%, var(--dawn-c) 0%, rgba(243, 240, 255, 0) 55%);
}
/* Fine grain so the large flat areas have some tooth. */
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
body.home main,
body.home header.site,
body.home footer.site { position: relative; z-index: 1; }

body.home header.site { background: rgba(255, 249, 246, .82); }

.display {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--surface); color: var(--text); padding: 12px 18px;
  border-radius: 0 0 12px 0; font-weight: 800; box-shadow: var(--shadow);
}
.skip-link:focus { left: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 12.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--pink-deep); background: #fff;
  padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
  flex: 0 0 auto;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.04;
  margin: 0 0 22px;
  letter-spacing: -0.028em;
  font-weight: 600;
}
.hero h1 .accent {
  color: var(--pink-mid);
  font-style: italic;
  font-weight: 500;
}
.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 560px;
  line-height: 1.62;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--blush-deep);
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 500px;
  line-height: 1.55;
}
.hero-note strong { color: var(--text); }

/* Illustrative test-timing card */
.timing-card {
  background: var(--surface);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(199, 21, 133, .10), 0 2px 6px rgba(26, 26, 46, .04);
  border: 1px solid var(--rule);
  padding: 28px 26px 26px;
  max-width: 380px;
  width: 100%;
  margin-left: auto;
}
.timing-card .tc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 22px;
}
.timing-card .tc-title { font-size: 17px; font-weight: 800; margin: 0; }
.timing-card .tc-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3); background: var(--bg); padding: 4px 9px; border-radius: 6px;
  white-space: nowrap;
}
.tc-track { position: relative; margin: 0 0 34px; }
.tc-bar {
  height: 10px; border-radius: 999px; overflow: hidden; display: flex;
  background: var(--border);
}
.tc-bar span { display: block; height: 100%; }
.tc-seg-early { width: 58%; background: repeating-linear-gradient(115deg, #FFD9E2 0 6px, #FFE7EE 6px 12px); }
.tc-seg-soon  { width: 14%; background: var(--blush-deep); }
.tc-seg-ready { width: 28%; background: var(--sage); }
.tc-marker {
  position: absolute; top: -7px; left: 42%;
  width: 2px; height: 24px; background: var(--text); border-radius: 2px;
}
.tc-marker::before {
  content: ""; position: absolute; top: -5px; left: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text); border: 2px solid var(--surface);
}
.tc-marker .tc-today {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.tc-legend { display: grid; gap: 11px; margin: 0 0 22px; padding: 0; list-style: none; }
.tc-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.tc-legend .sw {
  width: 22px; height: 10px; border-radius: 999px; flex: 0 0 auto;
}
.tc-legend .sw-early { background: repeating-linear-gradient(115deg, #FFD9E2 0 6px, #FFE7EE 6px 12px); }
.tc-legend .sw-ready { background: var(--sage); }
.tc-legend b { color: var(--text); font-weight: 800; }
.tc-foot {
  margin: 0; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--text-3); line-height: 1.5;
}

/* ---------- Section furniture ---------- */
section.block { padding: 72px 0; }
/* styles.css centers these for learn/ and tools/. The homepage is left aligned editorial. */
.section-head { max-width: 660px; margin: 0 0 46px; text-align: left; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pink-deep); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; margin: 0 0 14px;
  letter-spacing: -0.02em; line-height: 1.15;
}
.section-head p { font-size: 17.5px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- The moment: numbered narrative ---------- */
.moment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.moment .beat {
  padding: 30px 28px 30px 0;
  border-top: 2px solid var(--blush-deep);
  margin-right: 28px;
}
.moment .beat:last-child { margin-right: 0; padding-right: 0; }
.moment .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 40px; font-weight: 400; font-style: italic;
  color: var(--pink); line-height: 1; display: block; margin-bottom: 14px;
}
.moment h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.moment p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; }

/* ---------- Tracking grid ---------- */
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.track {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.track:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(26, 26, 46, .08); }
.track .ic {
  width: 42px; height: 42px; border-radius: 13px; background: var(--blush);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin-bottom: 16px;
}
.track h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 800; }
.track p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.58; }
.track.wide { grid-column: span 2; }
.track .pill {
  display: inline-block; margin-top: 14px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--sage);
  background: var(--sage-bg); padding: 5px 11px; border-radius: 999px;
}

/* ---------- Free tools strip ---------- */
.tools-band {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 26px;
  padding: 44px 44px 40px; box-shadow: var(--shadow);
}
.tools-band .th { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.tools-band h2 { font-size: 28px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.tools-band .th p { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 520px; }
.tool-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-link {
  display: block; padding: 20px; border-radius: 16px; background: var(--bg);
  border: 1px solid transparent; color: var(--text); transition: border-color .16s ease, background .16s ease;
}
.tool-link:hover { text-decoration: none; background: #fff; border-color: var(--blush-deep); }
.tool-link .tl-name { display: block; font-weight: 800; font-size: 15.5px; margin-bottom: 5px; }
.tool-link .tl-sub { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.tool-link .tl-go { display: block; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--pink-mid); }

/* ---------- Privacy ---------- */
.data-callout {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 26px; box-shadow: var(--shadow); padding: 48px;
}
.data-callout h2 { font-size: 30px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.data-callout .sub { color: var(--ink-soft); font-size: 17px; margin: 0 0 32px; }
.data-callout .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.data-item { display: flex; gap: 14px; align-items: flex-start; }
.data-item .dot {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  background: var(--sage-bg); color: var(--sage);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.data-item h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; }
.data-item p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Closing CTA ---------- */
.closer {
  text-align: center; padding: 76px 0 20px;
}
.closer h2 {
  font-size: clamp(28px, 3.8vw, 42px); font-weight: 600; margin: 0 0 16px;
  letter-spacing: -0.025em; line-height: 1.15;
}
.closer p { color: var(--ink-soft); font-size: 17.5px; margin: 0 auto 28px; max-width: 520px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--amber-bg); border: 1px solid #F4E2B8; border-radius: 18px;
  padding: 24px 28px; color: #6B5514; font-size: 14.5px; line-height: 1.62;
}
.disclaimer strong { color: #55420C; }
.disclaimer p { margin: 0 0 10px; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- Entrance, subtle and once ----------
   fill-mode is `backwards`, never `both`: the element holds opacity 0 only during its
   delay, then falls back to its normal visible style. With `both` a failed animation
   would strand the whole page at opacity 0. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.22, .68, .32, 1) backwards; }
  .reveal-1 { animation-delay: .04s; }
  .reveal-2 { animation-delay: .12s; }
  .reveal-3 { animation-delay: .2s; }
  .reveal-4 { animation-delay: .3s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { padding: 52px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .timing-card { margin: 0 auto; }
  .moment { grid-template-columns: 1fr; }
  .moment .beat { margin-right: 0; padding: 24px 0; }
  .track-grid { grid-template-columns: 1fr 1fr; }
  .track.wide { grid-column: span 2; }
  .tool-links { grid-template-columns: 1fr 1fr; }
  .data-callout .grid { grid-template-columns: 1fr 1fr; }
  .tools-band { padding: 32px 26px 30px; }
  .data-callout { padding: 32px 26px; }
}

@media (max-width: 620px) {
  section.block { padding: 52px 0; }
  .track-grid { grid-template-columns: 1fr; }
  .track.wide { grid-column: span 1; }
  .tool-links { grid-template-columns: 1fr; }
  .data-callout .grid { grid-template-columns: 1fr; }
  .hero p.lead { font-size: 17.5px; }
  .hero-cta .btn { width: 100%; }
  .closer { padding: 56px 0 12px; }
}
