/* ---------- HERO ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--space-4) var(--space-5);
    background: linear-gradient(180deg, #eef6f5 0%, var(--white) 70%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(55% 60% at 88% 18%, rgb(15 110 115 / 18%), transparent 70%),
        radial-gradient(45% 50% at 12% 95%, rgb(255 217 176 / 55%), transparent 70%),
        radial-gradient(30% 35% at 60% 60%, rgb(42 157 152 / 10%), transparent 70%);
    animation: drift 18s ease-in-out infinite alternate;
}

/* Grain: one 200px SVG tile. Remove this rule first if the hero stutters on a cheap phone. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
    to { transform: translate3d(2%, 1.5%, 0) scale(1.03); }
}

.hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); line-height: 1.05; }

.hero-ask { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-grid { display: grid; gap: var(--space-4); margin-top: var(--space-4); align-items: start; }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }

.hero-panel {
    padding: 26px 28px 28px;
    border: 1px solid transparent;
    border-radius: var(--r-panel);
    background:
        linear-gradient(rgb(255 255 255 / 72%), rgb(255 255 255 / 72%)) padding-box,
        linear-gradient(135deg, rgb(15 110 115 / 45%), rgb(255 217 176 / 70%)) border-box;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--shadow-card);
}

.hero-panel h2 {
    margin-bottom: var(--space-2);
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--brand-strong);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.checklist li { position: relative; display: grid; gap: 2px; padding-left: 36px; }

.checklist li::before, .checklist li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.checklist li::before { background: var(--grad-brand); }

.checklist li::after { background: var(--icon-check) center / 58% no-repeat; }

.checklist strong { font-weight: 600; color: var(--ink); }

.checklist span { font-size: 15px; color: var(--text); }

.hero h1, .hero .lead, .hero-actions, .hero-panel { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lead { animation-delay: 0.08s; }
.hero-actions { animation-delay: 0.16s; }
.hero-panel { animation-delay: 0.28s; }

@media (min-width: 880px) {
    .hero { padding-block: var(--space-5) var(--space-6); }
    .hero-ask { display: block; }
    .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); }
}

/* ---------- STEPS ---------- */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }

.steps-grid li { position: relative; padding-top: 22px; }

.steps-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
    opacity: 0.9;
}

.step-n {
    display: block;
    margin-bottom: 14px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.steps-grid h3 { margin-bottom: 8px; }

.steps-grid p { color: var(--text); }

@media (max-width: 719px) {
    .steps-grid { gap: var(--space-3); }
    .steps-grid li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding-top: 0; }
    .steps-grid li::before { display: none; }
    .step-n { grid-row: 1 / span 2; margin: 0; }
    .steps-grid h3, .steps-grid p { grid-column: 2; }
}

@media (min-width: 720px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
    .steps-grid li::before { right: calc(-1 * var(--space-3)); }
    .steps-grid li:last-child::before { right: 0; }
}

/* ---------- AFTER SIGNING ---------- */
.after-grid { display: grid; gap: var(--space-4); }

.after-copy h2 { margin-bottom: var(--space-3); }

.after-copy p { font-size: 1.0625rem; color: var(--text); max-width: 52ch; }

.after-copy p + p { margin-top: 14px; }

.timeline {
    list-style: none;
    margin: 0;
    padding: 28px 28px 28px 30px;
    border-radius: var(--r-panel);
    background: linear-gradient(160deg, var(--brand-tint) 0%, var(--white) 100%);
    counter-reset: stage;
}

.timeline li {
    position: relative;
    padding: 0 0 22px 46px;
    counter-increment: stage;
    color: var(--text-strong);
}

.timeline li::before {
    content: counter(stage);
    position: absolute;
    left: 0;
    top: -3px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-brand);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.timeline li::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 31px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-tint-2) 100%);
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li:last-child::after { display: none; }

@media (min-width: 880px) {
    .after-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
}

/* ---------- BAND ---------- */
.band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--space-5);
    background: var(--grad-brand);
    color: #fff;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(50% 80% at 90% 10%, rgb(255 217 176 / 22%), transparent 70%);
}

.band h2 { margin-bottom: 12px; color: #fff; }

.band p { font-size: 1.0625rem; color: rgb(255 255 255 / 88%); }

/* ---------- COST ---------- */
.section.cost h2 { margin-bottom: var(--space-2); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--brand); }

.cost p {
    position: relative;
    padding-left: 22px;
    font-size: clamp(1.5rem, 3.2vw, 2.125rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 26ch;
}

.cost p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 4px;
    background: var(--grad-brand);
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--space-3); }

.faq-list { display: grid; gap: 10px; }

.faq-list details { padding: 4px 20px; border-radius: var(--r-tile); background: var(--surface); transition: background-color 0.15s ease; }

.faq-list details[open] { background: var(--brand-tint); }

.faq-list summary {
    position: relative;
    padding: 16px 44px 16px 0;
    font-size: 1.0625rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    transform: translateY(-50%);
}

.faq-list summary::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::before { transform: translateY(-30%) rotate(-135deg); }

.faq-list details p { padding-bottom: 20px; color: var(--text); max-width: 60ch; }

@media (min-width: 880px) {
    .faq-grid { grid-template-columns: 4fr 8fr; gap: var(--space-5); align-items: start; }
    .faq-head { position: sticky; top: 88px; }
}

/* ---------- FINAL CTA ---------- */
.cta-block {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: var(--space-3);
    padding: clamp(32px, 6vw, 64px);
    border-radius: var(--r-panel);
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-strong) 55%, #11747a 100%);
    color: #fff;
}

.cta-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(40% 60% at 95% 0%, rgb(255 217 176 / 28%), transparent 70%);
}

.cta-block h2 { max-width: 20ch; color: #fff; }

.cta-block .btn-primary { justify-self: start; background: #fff; color: var(--brand-strong); box-shadow: 0 12px 32px -12px rgb(0 0 0 / 40%); }

.cta-contact { color: rgb(255 255 255 / 85%); }

.cta-contact a { color: #fff; text-underline-offset: 3px; }

@media (min-width: 880px) {
    .cta-block { grid-template-columns: 1fr auto; column-gap: var(--space-5); align-items: center; }
    .cta-block .btn-primary { grid-column: 2; grid-row: 1 / span 2; }
    .cta-contact { grid-column: 1; }
}

/* ---------- SCROLL REVEAL ---------- */
@supports (animation-timeline: view()) {
    .steps-grid > li, .after-copy, .timeline, .cost p, .faq-list details, .cta-block {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

    .steps-grid > li:nth-child(2) { animation-range: entry 5% entry 40%; }
    .steps-grid > li:nth-child(3) { animation-range: entry 10% entry 45%; }
    .steps-grid > li:nth-child(4) { animation-range: entry 15% entry 50%; }
}
