/* Homepage sections. Hero layout is in critical.css; this adds its entrance and the sections below. */

/* ---------- Hero entrance: short, staged, one-shot. Content is visible without it. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-hero] { animation: hero-rise .9s var(--ease-out) both; }
  .js .hero [data-hero='1'] { animation-delay: .05s; }
  .js .hero [data-hero='2'] { animation-delay: .15s; }
  .js .hero [data-hero='3'] { animation-delay: .3s; }
  .js .hero [data-hero='4'] { animation-delay: .42s; }
  .js .hero [data-hero='5'] { animation-delay: .52s; }
  .js .hero [data-hero='6'] { animation: hero-card 1s .7s var(--ease-out) both; }
  .js .hero [data-hero-photo] img { animation: hero-settle 2.2s var(--ease-out) both; transform-origin: 50% 85%; }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes hero-card { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes hero-settle { from { transform: scale(1.045); filter: saturate(.85) brightness(1.04); } to { transform: none; filter: none; } }
}
.hero h1 .line + .line { color: var(--green); }
@media (min-width: 48rem) {
  .hero__photo { overflow: hidden; }
}

/* ---------- Continue strip ---------- */
.continue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 8px; padding-block: 16px; }
.continue p { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.continue p svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.continue[hidden] { display: none; }

/* ---------- Answer band ---------- */
.answer-band__grid { display: grid; gap: 32px; }
@media (min-width: 60rem) { .answer-band__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.answer-band__lead h2 { font-size: var(--step-3); }
.answer-band__lead p { margin-top: 14px; font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.answer-band__lead .link-arrow { margin-top: 10px; }
.answer-band__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.answer-band__facts li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.answer-band__facts li:first-child { border-top: 1px solid var(--line); }
.answer-band__facts strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.answer-band__facts svg { flex: none; width: 26px; height: 26px; color: var(--green-3); margin-top: 1px; }

/* ---------- Starting paths ---------- */
.paths { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .paths { grid-template-columns: repeat(4, 1fr); } }
.path { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--ink); text-decoration: none; transition: border-color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.path:hover { border-color: var(--green-3); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.path__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green-tint); color: var(--green); transition: background-color .3s, color .3s; }
.path:hover .path__mark { background: var(--green); color: var(--paper); }
.path__mark svg { width: 23px; height: 23px; }
.path__title { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.2; }
.path__text { color: var(--ink-2); }
.path__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 650; min-height: 32px; }
.path__cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.path:hover .path__cta svg { transform: translateX(4px); }
[dir='rtl'] .path__cta svg { transform: scaleX(-1); }
.will-reveal.path, .will-reveal[style*='--i'] { transition-delay: calc(var(--i, 0) * 70ms) !important; }

/* ---------- Rule sheet band ---------- */
.sheet-band { display: grid; gap: 40px; align-items: center; }
@media (min-width: 60rem) { .sheet-band { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.sheet-band__copy h2 { font-size: var(--step-3); }
.sheet-band__copy > p { margin-top: 14px; color: var(--ink-2); font-size: var(--step-1); max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; width: 20px; height: 20px; color: var(--green-3); margin-top: 3px; }
.sheet-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 26px; }
.sheet-band__sheet { position: relative; }
.sheet-band__sheet::before { content: ''; position: absolute; inset: 18px -10px -14px 22px; border-radius: var(--radius-l); background: var(--paper-3); transform: rotate(2.2deg); z-index: -1; }
.sheet-band__sheet .rulesheet { transform: rotate(-.8deg); transition: transform .6s var(--ease-out); }
.sheet-band__sheet:hover .rulesheet { transform: rotate(0); }
@media (prefers-reduced-motion: reduce) { .sheet-band__sheet .rulesheet { transform: none; } }

/* ---------- Journey ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: j; }
@media (min-width: 60rem) { .journey { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.journey li { position: relative; padding: 20px 20px 20px 64px; border-top: 1px solid var(--line); }
@media (min-width: 60rem) { .journey li { padding: 64px 22px 8px 0; border-top: 0; } .journey li::before { content: ''; position: absolute; top: 21px; inset-inline: 46px 0; height: 1px; background: linear-gradient(to right, var(--line-2), var(--line)); } .journey li:last-child::before { display: none; } }
[dir='rtl'] .journey li { padding: 20px 64px 20px 20px; }
@media (min-width: 60rem) { [dir='rtl'] .journey li { padding: 64px 0 8px 22px; } }
.journey__n { position: absolute; inset-inline-start: 0; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--green); color: var(--green); font-family: var(--font-display); font-size: 1.15rem; }
@media (min-width: 60rem) { .journey__n { top: 0; } }
.journey li:last-child .journey__n { background: var(--green); color: var(--paper); }
.journey h3 { font-size: 1.3rem; }
.journey h3 a { color: var(--ink); text-decoration: none; }
.journey h3 a:hover { color: var(--green); text-decoration: underline; }
.journey p { margin-top: 6px; color: var(--ink-2); font-size: .98rem; max-width: 30ch; }

/* ---------- Compare ---------- */
.compare table.data th[scope='row'] { width: 18%; font-weight: 700; color: var(--ink-2); background: var(--paper); }
.compare table.data thead th { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.compare table.data thead th:nth-child(2) { color: var(--green); }
.compare table.data td { min-width: 180px; }
@media (max-width: 47.99rem) {
  .compare { border: 0; background: none; overflow: visible; }
  .compare table.data, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; min-width: 0; }
  .compare thead { display: none; }
  .compare tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .compare table.data th[scope='row'] { width: auto; padding: 0 0 6px; border: 0; background: none; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
  .compare table.data td { padding: 6px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  .compare td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--green-3); }
}
.compare__more { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 16px; }

/* ---------- Tools band ---------- */
.tools-band__grid { display: grid; gap: 16px; }
@media (min-width: 60rem) { .tools-band__grid { grid-template-columns: 1.15fr 1.15fr .9fr; } }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .25s; }
.tool-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-2); }
.tool-card:last-child { background: var(--green); border-color: var(--green); color: #fff; }
.tool-card:last-child h3 { color: #fff; }
.tool-card:last-child p { color: #d6e3d9; }
.tool-card:last-child .link-arrow { color: var(--gold-soft); margin-top: auto; }
.tool-card__label { font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.tool-card:last-child .tool-card__label { color: var(--gold-soft); }
.tool-card h3 { font-size: 1.45rem; }
.tool-card p { color: var(--ink-2); }
.tool-card__note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; font-size: .88rem; color: var(--ink-2); }
.mini-cal { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mini-cal li { display: grid; gap: 4px; justify-items: center; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--line); font-size: .7rem; text-align: center; }
.mini-cal span { color: inherit; font-weight: 600; }
.mini-cal b { font-weight: 700; font-size: .68rem; line-height: 1.1; }
.s-followed { background: var(--green-tint); border-color: #c4d4c6 !important; color: var(--green); }
.s-allowed { background: var(--gold-soft); border-color: #e3cf9e !important; color: var(--gold-ink); }
.s-offplan { background: var(--clay-tint); border-color: #e6c3b3 !important; color: var(--clay); }
.s-paused { background: var(--slate-tint); color: var(--slate); }
.s-unlogged { background: #fff; border-style: dashed !important; color: var(--ink-3); }
.mini-pause { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.mini-pause li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .95rem; }
.st { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st--alt { background: var(--green-tint); color: var(--green); }
.st--consider { background: var(--gold-soft); color: var(--gold-ink); }
.st--no { background: var(--slate-tint); color: var(--slate); }

/* ---------- Guide list ---------- */
.guide-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .25s, padding .35s var(--ease-out); }
@media (min-width: 48rem) { .guide-list a { grid-template-columns: minmax(240px, 1fr) 1.4fr auto; } }
.guide-list a:hover { background: var(--card); padding-inline: 16px; }
.guide-list__title { font-family: var(--font-display); font-size: 1.3rem; }
.guide-list__why { color: var(--ink-2); grid-column: 1; }
@media (min-width: 48rem) { .guide-list__why { grid-column: 2; } }
.guide-list .arrow { width: 22px; height: 22px; color: var(--green-3); grid-row: 1 / span 2; grid-column: 2; transition: transform .3s var(--ease-out); }
@media (min-width: 48rem) { .guide-list .arrow { grid-row: auto; grid-column: 3; } }
.guide-list a:hover .arrow { transform: translateX(4px); }
[dir='rtl'] .guide-list .arrow { transform: scaleX(-1); }

/* ---------- Field guide ---------- */
.field__acc summary { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(56px, 9vw, 120px) 0; text-align: center; background: linear-gradient(to bottom, var(--paper), #e9efe2); }
.closing::after { content: ''; display: block; height: clamp(40px, 6vw, 80px); background: radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); }
.closing__inner h2 { font-size: var(--step-4); }
.closing__inner p { margin: 14px auto 0; max-width: 52ch; color: var(--ink-2); font-size: var(--step-1); }
.closing + .site-footer { margin-top: 0; }

/* ---------- Motion moments (home.ts adds the *-ready classes only when motion is allowed) ---------- */
.words-ready .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.35em); }
.words-in .w { opacity: 1; filter: none; transform: none; transition: opacity .7s var(--ease-out) var(--d), filter .8s var(--ease-out) var(--d), transform .8s var(--ease-out) var(--d); }
.sheet-ready .rulesheet { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(.97); }
.sheet-ready::before { opacity: 0; transform: rotate(6deg) translateY(30px); }
.sheet-ready .rulesheet__seal { opacity: 0; transform: scale(1.8) rotate(-20deg); }
.sheet-in .rulesheet { opacity: 1; transform: rotate(-.8deg); transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out); }
.sheet-in::before { opacity: 1; transform: rotate(2.2deg); transition: opacity .8s .15s var(--ease-out), transform 1.1s .15s var(--ease-out); }
.sheet-in .rulesheet__seal { opacity: 1; transform: none; transition: opacity .25s 1s, transform .5s 1s cubic-bezier(.34, 1.56, .64, 1); }
.cal-ready li { opacity: .35; transform: scale(.92); }
.cal-ready li b { opacity: 0; }
.cal-in li { opacity: 1; transform: none; transition: opacity .4s var(--ease-out), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.cal-in li b { opacity: 1; transition: opacity .3s; }
.cal-in li:nth-child(1), .cal-in li:nth-child(1) b { transition-delay: .1s; }
.cal-in li:nth-child(2), .cal-in li:nth-child(2) b { transition-delay: .28s; }
.cal-in li:nth-child(3), .cal-in li:nth-child(3) b { transition-delay: .46s; }
.cal-in li:nth-child(4), .cal-in li:nth-child(4) b { transition-delay: .64s; }
.cal-in li:nth-child(5), .cal-in li:nth-child(5) b { transition-delay: .82s; }
.cal-in li:nth-child(6), .cal-in li:nth-child(6) b { transition-delay: 1s; }
.cal-in li:nth-child(7), .cal-in li:nth-child(7) b { transition-delay: 1.18s; }
@media (min-width: 60rem) {
  .journey-ready li::before { transform: scaleX(0); transform-origin: left; }
  [dir='rtl'] .journey-ready li::before { transform-origin: right; }
  .journey-ready .journey__n { transform: scale(.6); opacity: 0; }
  .journey-in li::before { transform: none; transition: transform .9s var(--ease-out); }
  .journey-in .journey__n { transform: none; opacity: 1; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
  .journey-in li:nth-child(2)::before, .journey-in li:nth-child(2) .journey__n { transition-delay: .25s; }
  .journey-in li:nth-child(3)::before, .journey-in li:nth-child(3) .journey__n { transition-delay: .5s; }
  .journey-in li:nth-child(4)::before, .journey-in li:nth-child(4) .journey__n { transition-delay: .75s; }
  .journey-in li:nth-child(5) .journey__n { transition-delay: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  .words-ready .w, .sheet-ready .rulesheet, .sheet-ready::before, .sheet-ready .rulesheet__seal, .cal-ready li, .cal-ready li b, .journey-ready .journey__n { opacity: 1 !important; filter: none !important; transform: none !important; }
}
