/* Homepage only. Loads after site.css, which holds the tokens, header, footer, buttons, FAQ and CTA. */

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { grid-template-columns: 1fr minmax(0, 520px); gap: 64px; align-items: start; }
.hero h1 { max-width: none; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-copy { padding-top: 24px; }
.hero-sub { margin-top: 22px; font: 600 1.35rem/1.35 var(--head); color: var(--pine); letter-spacing: -.01em; max-width: 30ch; }
.hero-lead { margin-top: 18px; max-width: 54ch; color: var(--text-2); }

/* The case file: one surrogacy journey, with what the system did at each milestone. */
.case { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 30px 60px -40px rgba(18, 48, 44, .5); }
.case-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.case-head b { font: 600 1.05rem var(--head); color: var(--pine); }
.case-head span { font-size: .9rem; color: var(--text-2); white-space: nowrap; }
.journey { position: relative; padding: 22px 24px 10px; }
.journey::before { content: ""; position: absolute; z-index: 0; left: 35px; top: 34px; bottom: 58px; width: 2px; background: var(--rule); }
.journey::after { content: ""; position: absolute; z-index: 0; left: 35px; top: 34px; height: var(--done-h, 76%); width: 2px; background: var(--pine); transform-origin: top; }
.stage { position: relative; z-index: 1; display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 18px; }
.dot { position: relative; z-index: 1; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--pine); background: var(--pine); }
.dot::after { content: ""; position: absolute; inset: 5px 4px 6px 5px; border: solid var(--on-pine); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(.7); }
.stage.now .dot { background: var(--sheet); }
.stage.now .dot::after { inset: 5px; border: 0; border-radius: 50%; background: var(--folder); transform: none; }
.stage.next .dot { background: var(--sheet); border-color: var(--rule); }
.stage.next .dot::after { display: none; }
.stage h3 { font-size: 1.02rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.stage h3 small { font: 400 .85rem var(--body); color: var(--text-2); letter-spacing: 0; }
.stage.next h3 { color: var(--text-2); }
.did { margin-top: 4px; font-size: .95rem; color: var(--text); }
.did mark { color: inherit; padding: 1px 3px; margin: 0 -3px; border-radius: 3px; background: linear-gradient(var(--folder-soft), var(--folder-soft)) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.case-foot { padding: 14px 24px; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--text-2); }

/* Sequence: the line draws down, each milestone checks off, then its work gets highlighted. */
.motion .journey::after { animation: draw 2.4s cubic-bezier(.5, 0, .3, 1) .3s both; }
.motion .stage { animation: rise .45s ease-out both; animation-delay: calc(.25s + var(--i) * .42s); }
.motion .stage .dot { animation: check .3s ease-out both; animation-delay: calc(.45s + var(--i) * .42s); }
.motion .did mark { animation: sweep .5s ease-out both; animation-delay: calc(.6s + var(--i) * .42s); }
/* Hold the sequence until the case file is on screen (on phones it starts below the fold). */
.motion .case:not(.play) .journey::after, .motion .case:not(.play) .stage, .motion .case:not(.play) .dot, .motion .case:not(.play) mark { animation-play-state: paused; }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes check { from { background: var(--sheet); border-color: var(--rule); } }
@keyframes sweep { from { background-size: 0 100%; } }

/* Section intros */
.intro { max-width: 720px; margin-bottom: 48px; }
.intro p { margin-top: 16px; color: var(--text-2); max-width: 60ch; }
.on-pine .intro p { color: var(--on-pine-2); }

/* Three core modules, each a full-width row; the rest is an index. */
.modules { border-top: 2px solid var(--pine); }
.module { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.module h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.module h3 + p { margin-top: 10px; color: var(--text-2); max-width: 36ch; }
.module ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; align-content: start; }
.module li, .os-card li { padding-left: 18px; position: relative; font-size: 1.02rem; }
.module li::before, .os-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--folder); border-radius: 2px; }
.also { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.also h3 { font-size: 1.15rem; }
.also dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.also dt { font-weight: 600; color: var(--pine); }
.also dd { margin: 2px 0 0; color: var(--text-2); font-size: 1rem; }

/* Three jobs */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); }
.jobs li { padding: 4px 32px 8px; border-left: 1px solid var(--rule-dark); }
.jobs li:first-child { padding-left: 0; border-left: 0; }
.jobs p { margin-top: 10px; color: var(--on-pine-2); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.svc-list { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 24px; border-bottom: 1px solid var(--rule); }
.svc:last-child { border-bottom: 0; }
.svc .tag { align-self: center; }
.svc p { grid-column: 1 / -1; color: var(--text-2); font-size: 1rem; }
.svc a { grid-column: 1 / -1; font-size: .98rem; justify-self: start; }
.os-card { display: flex; flex-direction: column; padding: 32px; border-radius: 14px; background: var(--pine); color: var(--on-pine); }
.os-card h3 { font-size: 1.8rem; font-weight: 700; color: var(--on-pine); margin-top: 14px; }
.os-card p { margin-top: 12px; color: var(--on-pine-2); max-width: 46ch; }
.os-card ul { margin-top: 22px; display: grid; gap: 8px; }
.os-card .actions { margin-top: auto; padding-top: 28px; }
.os-card .btn { background: var(--folder); border-color: var(--folder); color: var(--pine); }
.os-card .btn:hover { background: #edc46d; }
.phone-note { margin-top: 24px; color: var(--text-2); font-size: 1rem; }

/* Proof */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.proof p { color: var(--text-2); }
.proof .links { margin-top: 18px; display: flex; gap: 24px; flex-wrap: wrap; }

/* Planned + FAQ */
.split { grid-template-columns: 1fr 1.3fr; }
.split .muted { margin-top: 14px; }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rows li:first-child { border-top: 1px solid var(--rule); }
.rows b { display: block; color: var(--pine); }
.rows span { color: var(--text-2); font-size: 1rem; }

@media (max-width: 980px) {
  .hero-grid, .services, .proof, .split, .also { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-top: 0; }
  .module { grid-template-columns: 1fr; gap: 18px; }
  .jobs { grid-template-columns: 1fr; gap: 28px; }
  .jobs li, .jobs li:first-child { padding: 0 0 0 20px; border-left: 2px solid var(--folder); }
  .hero { padding: 48px 0 72px; }
}
@media (max-width: 600px) {
  .module ul, .also dl { grid-template-columns: 1fr; }
  .case-head, .journey, .case-foot { padding-left: 18px; padding-right: 18px; }
  .journey::before, .journey::after { left: 29px; }
  .os-card { padding: 24px; }
}
