/* RankRoots homepage — "roots to rank" design layer (on top of styles.css) */
.home {
  --cream: #fff8ee;
  --leaf: #2f6b4f;
  --leaf-soft: #e3f0e6;
  --night: #0f1a33;
  --glow: rgba(226, 128, 27, .45);
  background: var(--cream);
}
.home h1, .home .h-h2 { font-family: var(--serif); }
.home .h-h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.08; margin-bottom: 28px; max-width: none; }
.home .h-h2 em, .home .h-title em { font-style: italic; color: var(--accent); }
.home .center { text-align: center; }

/* ---------- FOMO bar ---------- */
.fomo-bar { background: var(--night); color: #fff; text-align: center; font-size: .88rem; font-weight: 600; padding: 9px 16px; letter-spacing: .01em; }
.fomo-bar b { color: #ffc98a; }
.fomo-bar .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 8px; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 1.8s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.home .nav { background: rgba(255, 248, 238, .85); }

/* ---------- Buttons ---------- */
.btn--glow { box-shadow: 0 10px 30px -8px var(--glow); }
.btn--glow:hover { box-shadow: 0 14px 34px -8px var(--glow); }

/* ---------- HERO ---------- */
.h-hero { position: relative; overflow: hidden; padding: 40px 0 calc(18.06vw + 24px);
  background:
    radial-gradient(900px 480px at 85% 0%, #ffe0b8 0%, transparent 60%),
    radial-gradient(700px 420px at 0% 10%, #fdeedd 0%, transparent 60%),
    var(--cream); }
@media (min-width: 960px) { .h-hero { padding: 72px 0 calc(18.06vw + 24px); } }
.h-hero__grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .h-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 22px; box-shadow: var(--shadow); }
.h-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.h-title { font-size: clamp(2.6rem, 8.2vw, 5rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 22px; color: var(--ink); }
.h-rank { display: inline-block; background: linear-gradient(100deg, var(--accent) 0%, #f2a541 60%, #c4570f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-rank b { font-weight: 700; }
.h-sub { font-size: 1.12rem; color: var(--muted); max-width: 33em; margin-bottom: 28px; }
.h-sub strong { color: var(--ink); }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-cta--center { justify-content: center; }
@media (max-width: 520px) { .h-cta .btn { width: 100%; } }
.h-micro { margin-top: 12px; font-size: .86rem; color: var(--muted); }

.h-hero__visual { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.h-arch { border-radius: 220px 220px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--leaf-soft); border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(20,33,61,.35); }
.h-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.chip { position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 14px; box-shadow: 0 12px 30px -10px rgba(20,33,61,.3); border: 1px solid rgba(231,221,204,.8); animation: float 6s ease-in-out infinite; }
.chip b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.chip span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.chip--a { top: 12%; left: -8%; border-left: 4px solid var(--accent); }
.chip--b { top: 46%; right: -10%; animation-delay: -2s; border-left: 4px solid var(--leaf); }
.chip--c { bottom: 6%; left: -4%; animation-delay: -4s; border-left: 4px solid var(--ink); }
@media (max-width: 520px) { .chip--a { left: -2%; } .chip--b { right: -2%; } .chip--c { left: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.h-land { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; aspect-ratio: 1440 / 260; z-index: 1; }
.h-road { animation: road 1.2s linear infinite; }
@keyframes road { to { stroke-dashoffset: -28; } }
.h-land--m { display: none; }
@media (max-width: 700px) {
  .h-land--d { display: none; }
  .h-land--m { display: block; height: auto; aspect-ratio: 400 / 230; }
  .h-hero { padding-bottom: calc(57.5vw + 8px); }
}

/* ---------- Proof strip ---------- */
.proof-strip { background: #6fa566; background: linear-gradient(180deg, #6fa566, #5b9353); color: #fff; padding: 22px 0; }
.proof-strip__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; text-align: center; }
@media (min-width: 760px) { .proof-strip__row { grid-template-columns: repeat(5, 1fr); } }
.proof-strip b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.proof-strip span { font-size: .8rem; opacity: .92; font-weight: 600; }
.proof-strip__row > div:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .proof-strip__row > div:last-child { grid-column: auto; } }

/* ---------- Sections ---------- */
.h-sec { padding: 72px 0; position: relative; }
@media (min-width: 960px) { .h-sec { padding: 104px 0; } }
.h-sec--tint { background: #fbf0df; }
.h-sec--dark { background: radial-gradient(800px 400px at 50% 0%, #26365e 0%, transparent 70%), var(--night); color: #dfe5f1; }
.h-sec--dark .h-h2 { color: #fff; }
.home .eyebrow { color: var(--leaf); }

/* ---------- Versus ---------- */
.versus { display: grid; gap: 14px; align-items: stretch; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .versus { grid-template-columns: 1fr auto 1fr; gap: 20px; } }
.vs-card { border-radius: 22px; padding: 26px 26px 22px; }
.vs-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.vs-card li { padding-left: 28px; position: relative; font-weight: 500; }
.vs-label { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 800; margin: 0 0 6px; }
.vs-price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin: 0; line-height: 1.15; }
.vs-card--old { background: #fff; border: 1px dashed #d9cbb3; color: var(--muted); }
.vs-card--old .vs-price { color: #9a8f80; text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(200, 60, 40, .55); }
.vs-card--old li::before { content: "✕"; position: absolute; left: 4px; color: #c2543c; font-weight: 800; }
.vs-card--new { background: linear-gradient(160deg, #14213d, #26365e); color: #e9edf6; box-shadow: 0 24px 50px -20px rgba(20,33,61,.55); }
.vs-card--new .vs-label { color: #ffc98a; }
.vs-card--new .vs-price { color: #fff; }
.vs-card--new li::before { content: "✓"; position: absolute; left: 4px; color: #3ddc84; font-weight: 800; }
.vs-mid { align-self: center; justify-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; box-shadow: 0 10px 24px -8px var(--glow); }

/* ---------- Story road ---------- */
.story2 { display: grid; gap: 40px; }
@media (min-width: 960px) { .story2 { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } .story2__head { position: sticky; top: 100px; } }
.story2__photo { margin: 8px 0 0; position: relative; max-width: 380px; }
.story2__photo img { border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(20,33,61,.45); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story2__photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(20,33,61,.82); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.road { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 22px; }
.road::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--accent) 0 8px, transparent 8px 16px); opacity: .6; }
.road li { position: relative; background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 6px 20px -12px rgba(20,33,61,.35); }
.road li::before { content: ""; position: absolute; left: -28px; top: 20px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.road__tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); margin-bottom: 4px; }
.road p { margin: 0; font-size: 1.02rem; }
.road__win { background: linear-gradient(135deg, #fff3e0, #ffe2bd) !important; border: 2px solid var(--accent); }
.road__win::before { background: var(--accent) !important; box-shadow: 0 0 0 6px rgba(226,128,27,.2); }
.road__win .road__tag { color: var(--accent-ink); }
.story2__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.7rem); color: var(--ink); text-align: center; max-width: 820px; margin-top: 56px; }

/* ---------- Steps ---------- */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps3 li { background: #fff; border-radius: 22px; padding: 26px; border: 1px solid var(--line); position: relative; counter-increment: s; transition: transform .2s, box-shadow .2s; }
.steps3 li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(20,33,61,.35); }
.steps3 li::after { content: "0" counter(s); position: absolute; right: 22px; top: 18px; font-family: var(--serif); font-size: 2.2rem; color: #f1e4cf; font-weight: 700; }
.steps3__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--leaf-soft); margin-bottom: 14px; }
.steps3__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps3 h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps3 p { color: var(--muted); margin: 0; }

/* ---------- Voices ---------- */
.voices { display: grid; gap: 16px; }
@media (min-width: 760px) { .voices { grid-template-columns: repeat(3, 1fr); } }
.voice { background: #fff; border-radius: 20px; padding: 22px; margin: 0; box-shadow: 0 10px 30px -18px rgba(20,33,61,.35); }
.voice blockquote { margin: 0 0 14px; font-size: 1.02rem; }
.voice blockquote::before { content: "“"; font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 0; vertical-align: -.45em; margin-right: 4px; }
.voice figcaption { font-size: .86rem; color: var(--muted); }
.voice figcaption b { color: var(--ink); }

/* ---------- Offer ---------- */
.join__batch { color: #ffc98a; font-weight: 700; margin: -10px 0 28px; }
.offer { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.25fr 1fr; align-items: stretch; } }
.offer__main { background: #fff; color: var(--text); border-radius: 26px; padding: 30px; position: relative; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.offer__badge { position: absolute; top: -14px; left: 26px; margin: 0; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.offer__main h3 { font-family: var(--serif); font-size: 1.7rem; margin: 6px 0 4px; }
.offer__price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--ink); margin: 0; }
.offer__price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; }
.offer__was { font-size: 1.3rem; color: #9a8f80; text-decoration: line-through; margin-right: 10px; }
.offer__eb { color: #c2543c; font-weight: 700; font-size: .92rem; margin: 2px 0 0; }
.offer .ticks { margin: 18px 0 20px; }
.offer__fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.seats { margin: 0 0 18px; }
.seats__bar { height: 10px; background: #f1e4cf; border-radius: 99px; overflow: hidden; }
.seats__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f2a541, var(--accent), #c4570f); border-radius: 99px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.seats p { margin: 8px 0 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
.offer__side { display: grid; gap: 12px; align-content: center; }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; padding: 16px 18px; border-radius: 18px; transition: background .2s, transform .2s; }
.mini:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.mini b { font-size: 1rem; }
.mini span { grid-column: 1; font-size: .88rem; color: #b9c2d6; }
.mini i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 1.3rem; color: #ffc98a; }

/* ---------- Final ---------- */
.h-final { padding: 90px 0 110px; background: radial-gradient(700px 360px at 50% 100%, #ffd8a8 0%, transparent 70%), var(--cream); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; gap: 10px; transform: translateY(140%); transition: transform .3s ease; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { box-shadow: 0 10px 30px -8px var(--glow); }
.sticky-cta__wa { flex: 0 0 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.sticky-cta__wa svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.home .wa-float { display: none; }

/* ---------- Toast & exit modal ---------- */
.toast { position: fixed; left: 16px; bottom: 84px; z-index: 75; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 40px -12px rgba(20,33,61,.4); font-size: .9rem; max-width: 300px; border-left: 4px solid var(--leaf); animation: toastIn .4s ease; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.exit { position: fixed; inset: 0; z-index: 90; background: rgba(15,26,51,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.exit[hidden] { display: none; }
.exit__card { background: var(--cream); border-radius: 24px; padding: 30px; max-width: 400px; text-align: center; position: relative; animation: toastIn .3s ease; }
.exit__card img { border-radius: 50%; margin: 0 auto 10px; border: 3px solid #fff; box-shadow: var(--shadow); }
.exit__card h2 { font-size: 1.6rem; max-width: none; }
.exit__x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal--late { transition-delay: .15s; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .chip, .h-road, .fomo-bar .pulse { animation: none; }
}

/* ---------- Guides strip ---------- */
.h-sec--slim { padding: 56px 0; }
.guides { display: grid; gap: 14px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guides .post-card h3 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 6px; }
