/* ==========================================================================
   SCRAPIO — Smart Scrap, Better Value
   ========================================================================== */

:root {
  --green-900: #0a3d24;
  --green-800: #0b5a33;
  --green-700: #0e6e3e;
  --green-600: #12824a;
  --green-500: #1a9a58;
  --green-400: #2fbf71;
  --green-200: #bfe3cd;
  --green-100: #dff2e6;
  --green-50: #f0f8f3;
  --navy-800: #0c2a4d;
  --navy-700: #123a66;
  --navy-100: #e3ecf6;

  --ink: #0e1b2b;
  --ink-2: #3b4a5c;
  --muted: #6b7a8c;
  --line: #e2e8ee;
  --bg-soft: #f5faf7;
  --danger: #d92d20;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 43, .06), 0 2px 8px -2px rgba(14, 27, 43, .06);
  --shadow: 0 2px 4px rgba(14, 27, 43, .04), 0 18px 40px -18px rgba(14, 27, 43, .22);
  --shadow-lg: 0 30px 60px -24px rgba(14, 27, 43, .35);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(26, 154, 88, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.text-green { color: var(--green-400); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green-700); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1.5px solid transparent; transition: background .2s, color .2s, box-shadow .2s, transform .2s, border-color .2s; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; }
.btn .i { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .i-go { transform: translateX(4px); }
.btn:hover .i-back { transform: translateX(-4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 110, 62, .7); }
.btn-primary:hover { background: var(--green-800); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 8px 18px -8px rgba(12, 42, 77, .7); }
.btn-navy:hover { background: #081f3a; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: #fff; }
.btn-outline:hover { background: var(--green-50); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-50); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem .9rem; font-size: .82rem; border-radius: 8px; }
.btn[disabled] { opacity: .75; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; flex: none; }
.logo-word { display: flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.01em; color: var(--ink); }
.logo-a { width: 1.05em; height: 1.05em; color: var(--green-600); stroke-width: 2.7; margin: 0 .01em; }
.logo-tag { font-size: .63rem; font-weight: 600; color: var(--ink-2); margin-top: 4px; letter-spacing: .01em; padding-left: 2px; }
.logo-light .logo-word { color: #fff; }
.logo-light .logo-a { color: var(--green-400); }
.logo-light .logo-tag { color: rgba(255, 255, 255, .65); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(14, 27, 43, .35); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.nav { display: flex; gap: .15rem; margin: 0 auto; }
.nav a { position: relative; padding: .5rem .8rem; font-weight: 500; font-size: .94rem; color: var(--ink-2); border-radius: 8px; transition: color .2s; }
.nav a:hover { color: var(--green-700); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -4px; height: 2px; border-radius: 2px; background: var(--green-600); }
.header-actions { display: flex; gap: .75rem; align-items: center; }
.header-actions .btn { padding: .62rem 1.3rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; align-items: center; justify-content: center; }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; padding: 1rem 20px 2rem; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1.05rem; }
.mobile-menu .btn { margin-top: .9rem; }

@media (max-width: 1024px) {
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1025px) { .mobile-menu { display: none; } }

/* ---------- Scene backgrounds ---------- */
.scene { position: relative; color: #fff; background-color: #10231f; background-image:
    linear-gradient(90deg, rgba(6, 22, 18, .94) 0%, rgba(6, 22, 18, .8) 36%, rgba(6, 22, 18, .3) 70%, rgba(6, 22, 18, .12) 100%),
    linear-gradient(0deg, rgba(6, 22, 18, .7) 0%, rgba(6, 22, 18, 0) 40%),
    url("../assets/realistic-scrap-bg.jpg");
  background-size: cover; background-position: center; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: #0d201b; padding: 150px 0 150px; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; transform-origin: 72% 20%; }
.hero-layer { position: absolute; top: -20px; left: -40px; width: calc(100% + 80px); height: calc(100% + 60px); max-width: none; object-fit: cover; object-position: 50% 0; will-change: transform; user-select: none; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(5, 20, 16, .9) 0%, rgba(5, 20, 16, .7) 32%, rgba(5, 20, 16, .22) 58%, rgba(5, 20, 16, .06) 100%),
    linear-gradient(0deg, rgba(5, 20, 16, .75) 0%, rgba(5, 20, 16, 0) 32%),
    linear-gradient(180deg, rgba(5, 20, 16, .3) 0%, rgba(5, 20, 16, 0) 22%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-tagline { display: inline-block; margin-top: 2rem; font-family: var(--font-script); font-size: 1.7rem; line-height: 1; color: #e6f7ec; transform: rotate(-2deg); text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.hero-tagline svg { width: 72%; margin-top: 6px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.28fr; gap: 3.5rem; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 99px; background: rgba(47, 191, 113, .14); border: 1px solid rgba(47, 191, 113, .35); color: #bff0d3; font-size: .82rem; font-weight: 500; margin-bottom: 1.4rem; }
.hero-pill .i { width: 16px; height: 16px; color: var(--green-400); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 700; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .88); margin-top: 1.4rem; max-width: 31rem; }
.trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.8rem; margin-top: 2.2rem; }
.trust li { display: flex; align-items: center; gap: .7rem; font-size: .92rem; line-height: 1.3; font-weight: 500; }
.trust-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-600); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 5px rgba(47, 191, 113, .16); }
.trust-icon .i { width: 22px; height: 22px; }
.hero-actions-mobile { display: none; }

.hero-cards > *, .hero-grid > *, .split > * { min-width: 0; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.role-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; padding: 1.7rem 1.6rem; color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.role-card.tilting { transition: transform .12s linear, box-shadow .3s; }
.role-card:hover { --lift: -6px; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .55); }
.role-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .6), transparent 45%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s; }
.role-card:hover::after { opacity: 1; }
.role-card.seller { background: linear-gradient(180deg, rgba(230, 245, 235, .93) 0%, rgba(255, 255, 255, .95) 48%); }
.role-card.buyer { background: linear-gradient(180deg, rgba(230, 238, 248, .93) 0%, rgba(255, 255, 255, .95) 48%); }
.role-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.role-illus { width: 112px; height: 66px; margin-bottom: 1.1rem; }
.role-card h3 { font-size: 1.32rem; font-weight: 600; }
.role-card h3 strong { display: block; color: var(--green-700); font-weight: 700; }
.role-card.buyer h3 strong { color: var(--navy-800); }
.role-card > p { color: var(--ink-2); font-size: .9rem; margin: .7rem 0 1.4rem; line-height: 1.55; }
.checklist { display: grid; gap: .6rem; margin-top: 1.4rem; font-size: .88rem; color: var(--ink-2); }
.checklist li { display: flex; gap: .6rem; align-items: center; }
.check-dot { width: 19px; height: 19px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; flex: none; }
.check-dot .i { width: 11px; height: 11px; stroke-width: 3.5; }
.buyer .check-dot { background: var(--navy-800); }


/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -84px; }
.stats-card { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.5rem 1rem; }
.stat { display: flex; align-items: center; gap: .9rem; padding: .25rem 1.3rem; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat > .i { width: 38px; height: 38px; color: var(--green-700); stroke-width: 1.8; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.stat-highlight { background: var(--green-50); border-radius: 12px; padding: .9rem 1.1rem; margin-left: .5rem; }
.stat-highlight p { font-size: .9rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; }
.stats-band { background: #fff; border-top: 1px solid var(--line); padding: 1.6rem 0; }
.stats-band .stats-card { box-shadow: none; padding: 0; border-radius: 0; background: transparent; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: linear-gradient(180deg, #eef7f1 0%, #f7fbf9 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); }
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1.5px; background: currentColor; opacity: .45; }
.eyebrow.left::before { display: none; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-head h2, .split-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-top: .8rem; font-weight: 700; }
.section-head p { color: var(--ink-2); margin-top: 1rem; font-size: 1.06rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; }
.step-icon { width: 88px; height: 88px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; margin-bottom: 1.4rem; transition: transform .3s, background .3s; }
.step:hover .step-icon { transform: translateY(-4px); background: var(--green-200); }
.step-icon .i { width: 38px; height: 38px; stroke-width: 1.6; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; left: 116px; right: 4px; border-top: 2px dashed #a9d5b9; }
.step h3 { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 600; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: #fff; font-size: .85rem; display: grid; place-items: center; flex: none; }
.step p { color: var(--ink-2); font-size: .94rem; margin-top: .55rem; padding-left: calc(30px + .65rem); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.1rem; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.cat-icon { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.cat-icon .i { width: 28px; height: 28px; stroke-width: 1.7; }
.cat h3 { font-size: 1rem; font-weight: 600; }
.cat p { font-size: .8rem; color: var(--muted); margin-top: .35rem; line-height: 1.45; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.split + .split { margin-top: 110px; }
.split.reverse .split-copy { order: 2; }
.split-copy > p { color: var(--ink-2); font-size: 1.06rem; margin-top: 1rem; }
.benefits { display: grid; gap: 1.2rem; margin: 2rem 0 2.2rem; }
.benefits li { display: flex; gap: 1rem; }
.benefit-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.benefit-icon .i { width: 22px; height: 22px; }
.buyers-row .benefit-icon { background: var(--navy-100); color: var(--navy-800); }
.buyers-row .eyebrow { color: var(--navy-700); }
.benefits h4 { font-size: 1rem; font-weight: 600; }
.benefits p { font-size: .9rem; color: var(--ink-2); margin-top: .15rem; }

.mock-wrap { position: relative; padding: 2rem; border-radius: 24px; background: radial-gradient(circle at 20% 10%, #d4eedd 0, transparent 55%), linear-gradient(135deg, #eaf6ee, #f7fbf8); }
.buyers-row .mock-wrap { background: radial-gradient(circle at 80% 10%, #d6e4f4 0, transparent 55%), linear-gradient(135deg, #e9f0f8, #f7f9fc); }
.mock { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 1.4rem; font-size: .88rem; }
.mock-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mock-head h4 { font-size: 1.08rem; margin-top: .45rem; }
.mock-head p { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: #b42318; background: #fef3f2; padding: .2rem .55rem; border-radius: 99px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f04438; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.timer { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--green-50); color: var(--green-800); padding: .35rem .6rem; border-radius: 8px; font-size: .82rem; }
.timer .i { width: 15px; height: 15px; }
.bid { display: flex; align-items: center; gap: .8rem; padding: .8rem .7rem; border-radius: 10px; margin-top: .6rem; border: 1px solid transparent; }
.bid.best { background: var(--green-50); border-color: var(--green-200); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .78rem; background: #eef1f4; color: var(--ink-2); flex: none; }
.best .avatar { background: var(--green-700); color: #fff; }
.bid-who { flex: 1; min-width: 0; }
.bid-who b { display: block; font-weight: 600; }
.bid-who span { font-size: .75rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; }
.bid-who .i { width: 13px; height: 13px; color: var(--green-600); }
.bid-amt { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-align: right; }
.bid-amt small { font-weight: 500; font-size: .7rem; color: var(--muted); }
.tag-best { display: block; font-family: var(--font); font-size: .66rem; color: var(--green-700); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.mock-float { position: absolute; right: -14px; bottom: -22px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .75rem 1rem; display: flex; align-items: center; gap: .7rem; font-size: .8rem; }
.mock-float b { display: block; font-size: .95rem; font-family: var(--font-display); color: var(--ink); }
.mock-float .round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; }
.mock-float .round .i { width: 18px; height: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0; }
.tile { background: #f6f8fb; border-radius: 10px; padding: .75rem; }
.tile span { font-size: .72rem; color: var(--muted); display: block; }
.tile b { font-family: var(--font-display); font-size: 1.15rem; }
.rows { display: grid; gap: .1rem; }
.row { display: grid; grid-template-columns: 1.6fr 1fr .9fr; gap: .6rem; align-items: center; padding: .65rem .2rem; border-top: 1px solid var(--line); }
.row b { font-weight: 600; display: block; }
.row small { color: var(--muted); font-size: .74rem; }
.row .price { font-weight: 600; text-align: right; }
.chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 600; padding: .2rem .5rem; border-radius: 99px; background: var(--green-50); color: var(--green-700); width: fit-content; }
.chip .i { width: 12px; height: 12px; }
.chip.navy { background: var(--navy-100); color: var(--navy-800); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; margin-bottom: 1.2rem; box-shadow: 0 0 0 6px var(--green-100); }
.feature-icon .i { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; font-weight: 600; }
.feature p { color: var(--ink-2); font-size: .93rem; margin-top: .5rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.plan.featured { border: 2px solid var(--green-600); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 2rem; background: var(--green-700); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 99px; }
.plan h3 { font-size: 1.15rem; font-weight: 600; }
.plan .for { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.plan .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 1.2rem 0 .2rem; letter-spacing: -.02em; }
.plan .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .checklist { margin: 1.2rem 0 1.8rem; flex: 1; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: #fff; border-radius: 16px; padding: 1.8rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: #f5a524; }
.stars .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.quote blockquote { margin: 1rem 0 1.5rem; color: var(--ink-2); font-size: .98rem; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; }
.quote figcaption b { display: block; font-size: .95rem; }
.quote figcaption span { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--green-700); transition: transform .25s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: .95rem; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 24px; padding: 3.5rem; background: radial-gradient(circle at 90% 0%, rgba(47, 191, 113, .35), transparent 50%), linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta p { color: rgba(255, 255, 255, .82); margin-top: .7rem; max-width: 34rem; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-leaf { position: absolute; right: -30px; bottom: -40px; width: 220px; height: 220px; color: rgba(255, 255, 255, .06); stroke-width: 1.2; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1f17; color: rgba(255, 255, 255, .72); padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer-brand p { margin: 1.2rem 0 1.4rem; max-width: 22rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: #fff; transition: background .2s; }
.socials a:hover { background: var(--green-700); }
.socials .i { width: 18px; height: 18px; }
.site-footer h4 { color: #fff; font-size: .98rem; font-weight: 600; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer li + li { margin-top: .6rem; }
.site-footer a:hover { color: var(--green-400); }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; }
.contact-list .i { width: 18px; height: 18px; color: var(--green-400); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 56px; padding: 1.4rem 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }
.footer-bottom nav { display: flex; gap: 1.4rem; }

/* ---------- Page hero (registration) ---------- */
.page-hero { padding: 54px 0 84px; overflow: hidden; }
.page-hero-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
.page-hero .lead { color: rgba(255, 255, 255, .86); margin-top: .8rem; max-width: 30rem; font-size: 1.05rem; }
.mini-features { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 1.5rem; margin-top: 1.8rem; }
.mini-feature .trust-icon { width: 42px; height: 42px; }
.mini-feature b { display: block; font-size: .9rem; margin-top: .7rem; font-weight: 600; }
.mini-feature span { display: block; font-size: .78rem; color: rgba(255, 255, 255, .72); line-height: 1.35; margin-top: .15rem; }
.hero-badge { display: flex; align-items: center; gap: .8rem; background: rgba(11, 90, 51, .88); border: 1px solid rgba(255, 255, 255, .18); padding: .95rem 1.2rem; border-radius: 14px; font-weight: 600; font-size: .92rem; line-height: 1.35; backdrop-filter: blur(6px); flex: none; }
.hero-badge .i { width: 28px; height: 28px; color: var(--green-400); }

/* ---------- Registration ---------- */
.register { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 72px; }
.register-shell { background: #fff; border-radius: 22px 22px 0 0; padding: 2rem 2rem 0; }
.register-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; align-items: start; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb .i { width: 14px; height: 14px; }
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; margin-top: .6rem; }
.page-sub { color: var(--ink-2); margin: .4rem 0 1.5rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.8rem; }
.form-card-head { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.head-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.form-card-head h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.form-card-head p { color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.25rem; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45rem; }
.req { color: var(--danger); }
.input-wrap { position: relative; display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-wrap:hover { border-color: #cdd6df; }
.input-wrap:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(26, 154, 88, .13); }
.input-wrap > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input-wrap input, .input-wrap select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: .82rem .9rem .82rem 2.8rem; font-size: .95rem; border-radius: 10px; }
.input-wrap input::placeholder { color: #98a4b1; }
.input-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.input-wrap select:invalid { color: #98a4b1; }
.input-wrap select option { color: var(--ink); }
.input-wrap > .i.chev { left: auto; right: 14px; }
.phone-prefix { display: flex; align-items: center; gap: .45rem; padding: 0 .8rem 0 2.8rem; border-right: 1.5px solid var(--line); font-weight: 500; font-size: .92rem; flex: none; }
.phone-prefix + input { padding-left: .9rem; }
.flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: #f3f5f8; }
.pw-toggle .i { width: 19px; height: 19px; }
.has-toggle input { padding-right: 3rem; }
.hint { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.error-msg { display: none; font-size: .79rem; color: var(--danger); margin-top: .4rem; }
.field.invalid .input-wrap { border-color: #f04438; }
.field.invalid .input-wrap:focus-within { box-shadow: 0 0 0 4px rgba(240, 68, 56, .12); }
.field.invalid .error-msg { display: block; }
.field.invalid .hint { display: none; }
.field.valid .input-wrap { border-color: #9fd3b4; }

.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.checkbox input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid #b7c3cf; border-radius: 6px; flex: none; margin: 1px 0 0; cursor: pointer; transition: background .15s, border-color .15s; background: #fff center / 14px no-repeat; }
.checkbox input:checked { background-color: var(--green-700); border-color: var(--green-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.field.invalid .checkbox input { border-color: #f04438; }
.link { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--green-900); }
.form-submit { margin-top: 1.4rem; }
.form-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.form-foot .secure { display: inline-flex; align-items: center; gap: .4rem; }
.form-foot .i { width: 15px; height: 15px; }
.form-alert { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .88rem; background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.form-alert.info { background: var(--green-50); color: var(--green-800); border-color: var(--green-200); }

.why-card { position: sticky; top: calc(var(--header-h) + 20px); background: linear-gradient(180deg, #f3faf5, #eaf5ee); border: 1px solid #d6ecdd; border-radius: 16px; padding: 1.8rem; }
.why-card h2 { font-size: 1.45rem; font-weight: 700; }
.why-card > p { color: var(--ink-2); font-size: .92rem; margin-top: .2rem; }
.why-list { display: grid; gap: 1.4rem; margin: 1.6rem 0; }
.why-list li { display: flex; gap: 1rem; }
.why-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--green-700); display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px -8px rgba(14, 110, 62, .5); }
.why-list h3 { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.why-list p { font-size: .85rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.5; }
.green-note { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #d9f0e2, #c4e6d1); border-radius: 14px; padding: 1.3rem; }
.green-note .i { width: 42px; height: 42px; color: var(--green-700); stroke-width: 1.6; }
.green-note b { display: block; color: var(--green-800); font-family: var(--font-display); line-height: 1.3; }
.green-note span { font-size: .82rem; color: var(--ink-2); }
.green-note::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .35); }

/* ---------- Status & auth pages ---------- */
.status-page { background: linear-gradient(180deg, #eaf5ee 0%, #f7fbf9 60%, #fff 100%); padding: 48px 0 64px; }
.status-card { max-width: 1080px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 3rem 2rem; text-align: center; }
.status-illus { width: 220px; margin: 0 auto 1.2rem; }
.status-card h1 { font-size: clamp(1.8rem, 3.6vw, 2.65rem); font-weight: 700; }
.status-card .subhead { color: var(--green-700); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; margin-top: .3rem; }
.status-card .lead { color: var(--ink-2); font-size: 1.1rem; margin: 1rem auto 0; max-width: 36rem; }
.stepper { display: flex; max-width: 580px; margin: 2.6rem auto; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .92rem; font-weight: 500; line-height: 1.3; color: var(--ink); padding: 0 .3rem; }
.stepper li::before { content: ""; position: absolute; top: 23px; right: calc(50% + 32px); left: calc(-50% + 32px); border-top: 2px dashed #c3cdd6; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { border-color: var(--green-500); }
.stepper li.todo { color: var(--muted); }
.stepper-dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .65rem; background: #e8edf2; color: #7b8a9a; }
.stepper-dot .i { width: 22px; height: 22px; }
.done .stepper-dot { background: var(--green-700); color: #fff; }
.current .stepper-dot { background: var(--green-100); color: var(--green-700); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 154, 88, .35); } 70% { box-shadow: 0 0 0 12px rgba(26, 154, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 154, 88, 0); } }
.pill { display: inline-block; background: var(--green-100); color: var(--green-800); font-size: .72rem; padding: .15rem .6rem; border-radius: 99px; margin-top: .45rem; font-weight: 600; }
.info-box { display: flex; align-items: center; gap: 1.3rem; max-width: 690px; margin: 0 auto 2.2rem; text-align: left; background: var(--green-50); border: 1px solid #d6ecdd; border-radius: 14px; padding: 1.2rem 1.5rem; color: var(--ink-2); }
.info-icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green-700); display: grid; place-items: center; flex: none; }
.info-box .divider { width: 1px; align-self: stretch; background: #cfe5d7; }
.info-box b { color: var(--ink); word-break: break-all; }

.auth-card { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.auth-aside { display: flex; flex-direction: column; text-align: center; padding: 2.8rem 2.4rem 1.6rem; border-right: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f3faf5 100%); }
.auth-aside .status-illus { width: 200px; }
.auth-aside h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); color: var(--green-700); font-weight: 700; }
.auth-aside .subhead { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; margin-top: .3rem; font-family: var(--font-display); line-height: 1.25; }
.auth-aside .sep { width: 130px; height: 2px; margin: 1.3rem auto; background: linear-gradient(90deg, transparent, #a9d8bb, transparent); }
.auth-aside p { color: var(--ink-2); font-size: 1.05rem; }
.skyline { margin-top: auto; padding-top: 2rem; }
.skyline-caption { display: flex; align-items: center; gap: 1rem; white-space: nowrap; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-top: .6rem; }
.skyline-caption::before, .skyline-caption::after { content: ""; flex: 1; height: 1px; background: #bfe3cd; }
.auth-form { padding: 3rem 2.8rem; }
.auth-form > h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 700; }
.auth-form > p { color: var(--ink-2); margin: .5rem 0 1.8rem; }
.auth-form .field + .field { margin-top: 1.25rem; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: .55rem; }
.strength span { height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.strength[data-level="1"] span:nth-child(-n+1) { background: #f04438; }
.strength[data-level="2"] span:nth-child(-n+2) { background: #f79009; }
.strength[data-level="3"] span:nth-child(-n+3) { background: #2fbf71; }
.strength[data-level="4"] span { background: var(--green-700); }
.rules { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .55rem; font-size: .77rem; color: var(--muted); }
.rules li { display: inline-flex; align-items: center; gap: .3rem; transition: color .2s; }
.rules .i { width: 13px; height: 13px; stroke-width: 3; }
.rules li.ok { color: var(--green-700); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .88rem; }
.success-panel { text-align: center; padding: 2rem 0; }
.success-panel .round { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.2rem; background: var(--green-700); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--green-100); }
.success-panel .round .i { width: 34px; height: 34px; stroke-width: 2.6; }
.success-panel h2 { font-size: 1.7rem; }
.success-panel p { color: var(--ink-2); margin: .6rem 0 1.6rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 3rem 2.8rem; color: var(--ink-2); }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--ink); }
.legal-updated { color: var(--muted); font-size: .88rem; margin: .4rem 0 1.8rem; }
.legal h2 { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 2rem 0 .6rem; letter-spacing: -.01em; }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .45rem; margin-top: .6rem; }
.legal b { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) { .hero-media { animation: none; } }

@media (max-width: 1100px) {
  .hero { padding-top: 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .hero-copy { max-width: 640px; }
  .stats-card { grid-template-columns: repeat(4, 1fr); }
  .stat-highlight { display: none; }
  .stat:nth-child(4) { border-right: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid { flex-direction: column; align-items: flex-start; }
  .register-grid { grid-template-columns: 1fr; }
  .why-card { position: static; }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .step::after { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .split + .split { margin-top: 80px; }
  .feature-grid, .price-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 2.5rem; }
  .mini-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-aside .skyline { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding: 0 16px; }
  .logo-word { font-size: 1.55rem; }
  .hero { padding: 56px 0 120px; }
  .hero-layer { object-position: 78% 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(5, 20, 16, .55) 0%, rgba(5, 20, 16, .78) 45%, rgba(5, 20, 16, .85) 100%); }
  .hero-tagline { font-size: 1.4rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .trust { gap: 1rem; }
  .stats-card { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; padding: 1.3rem .6rem; }
  .stat { border-right: 0; padding: 0 .7rem; gap: .6rem; }
  .stat > .i { width: 30px; height: 30px; }
  .stat b { font-size: 1.15rem; }
  .stat span { font-size: .76rem; }
  .stats-band .stats-card { padding: 0; }
  .stats-band .stat:last-child { grid-column: 1 / -1; }
  .steps, .feature-grid, .price-grid, .quote-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .mock-wrap { padding: 1rem; }
  .mock-float { right: 8px; bottom: -26px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { display: none; }
  .row { grid-template-columns: 1.4fr 1fr; }
  .row .chip { display: none; }
  .cta { padding: 2rem 1.5rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero { padding: 40px 0 72px; }
  .hero-badge { display: none; }
  .register-shell { padding: 1.4rem 1rem 0; border-radius: 18px 18px 0 0; }
  .form-card { padding: 1.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .why-card { padding: 1.4rem; }
  .status-page { padding: 24px 0 40px; }
  .status-card { padding: 2.2rem 1.2rem; }
  .status-illus { width: 170px; }
  .stepper li { font-size: .8rem; }
  .stepper li::before { right: calc(50% + 26px); left: calc(-50% + 26px); }
  .info-box { flex-direction: column; text-align: center; gap: .8rem; }
  .info-box .divider { display: none; }
  .auth-aside { padding: 2rem 1.2rem; }
  .auth-form { padding: 2rem 1.2rem; }
  .auth-row { flex-direction: column; align-items: flex-start; }
  .legal { padding: 2rem 1.2rem; border-radius: 18px; }
}

/* ==========================================================================
   Motion & interactive features
   ========================================================================== */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(70%); filter: blur(6px); } }
@keyframes wordOut { to { opacity: 0; transform: translateY(-70%); filter: blur(6px); } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(123, 224, 168, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(123, 224, 168, 0); } }
@keyframes bidIn { from { opacity: 0; transform: translateY(-16px) scale(.97); background-color: #c9f0d8; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(260px, 120px) scale(1.2); } }
@keyframes ringOut { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.35); } }
@keyframes spinAngle { to { --angle: 360deg; } }

/* Scroll progress + back to top */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--green-600), var(--green-400), #7be0a8); pointer-events: none; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--green-700); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-700); color: #fff; }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 3; }
.to-top .ring .track { stroke: var(--green-100); }
.to-top .ring .bar { stroke: var(--green-500); stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: 145; }
.to-top > .i { width: 20px; height: 20px; transform: rotate(-90deg); }

/* Hero entrance, rotating word, video zoom */
.js .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-copy > :nth-child(3) { animation-delay: .2s; }
.js .hero-copy > :nth-child(4) { animation-delay: .3s; }
.js .hero-copy > :nth-child(5) { animation-delay: .4s; }
.js .hero-cards .role-card { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .45s backwards; }
.js .hero-cards .role-card.buyer { animation-delay: .6s; }
.hero-video { animation: kenburns 18s ease-in-out infinite alternate; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rotator-word { grid-area: 1 / 1; display: inline-block; background: linear-gradient(90deg, var(--green-400), #b4f5d0, var(--green-400)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
.rotator-word.in { animation: wordIn .6s cubic-bezier(.2, .7, .2, 1) backwards, shimmer 5s linear infinite; }
.rotator-word.out { animation: wordOut .5s cubic-bezier(.6, 0, .8, .4) forwards; }

/* Buttons: shine sweep + magnetic pull */
.btn-primary::after, .btn-navy::after, .btn-light::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-20deg); transition: left .7s ease; pointer-events: none; }
.btn-light::after { background: linear-gradient(100deg, transparent, rgba(14, 110, 62, .14), transparent); }
.btn:hover::after { left: 130%; }
.btn.magnetic { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.btn.magnetic:active { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + 1px)); }

/* Cursor spotlight on cards */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 191, 113, .13), transparent 45%); opacity: 0; transition: opacity .3s; }
.spot:hover::before { opacity: 1; }

/* Animated border on featured plan */
.plan.featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--angle), var(--green-600), #7be0a8, var(--navy-700), var(--green-600)) border-box; animation: spinAngle 6s linear infinite; }

/* Rate ticker */
.ticker-band { padding-top: 44px; }
.ticker-band + .section { padding-top: 76px; }
.ticker-shell { display: flex; align-items: stretch; background: var(--green-900); color: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.ticker-label { flex: none; display: flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem; background: var(--green-700); font-family: var(--font-display); font-weight: 600; font-size: .88rem; white-space: nowrap; position: relative; z-index: 1; box-shadow: 14px 0 20px -8px var(--green-900); }
.ticker-label small { font-family: var(--font); font-weight: 500; font-size: .7rem; opacity: .75; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: .05rem .45rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7be0a8; animation: ping 1.8s infinite; }
.ticker { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
.ticker-item { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; font-size: .88rem; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.ticker-item .i { width: 16px; height: 16px; color: #7be0a8; }
.ticker-item b { color: #fff; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ticker-item small { color: rgba(255, 255, 255, .55); margin-left: -.3rem; }

/* How it works: connectors draw in, icons ping */
.js .step:not(:last-child)::after { transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.65, 0, .35, 1) .4s; }
.js .step.in:not(:last-child)::after { transform: scaleX(1); }
.step-icon { position: relative; }
.step-icon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--green-400); opacity: 0; pointer-events: none; }
.js .step.in .step-icon::after { animation: ringOut 1.4s ease-out .5s; }

/* Live auction demo */
.bid.enter { animation: bidIn .7s cubic-bezier(.2, .8, .2, 1); }
.mock-float { animation: bob 6s ease-in-out infinite; }
.mock-float b, .mock-foot b { font-variant-numeric: tabular-nums; }

/* Scrap value calculator */
.calc { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.calc-inputs { padding: 2.2rem; min-width: 0; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-label { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; padding: 0; }
.calc-label span { width: 26px; height: 26px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.mat { position: relative; cursor: pointer; }
.mat input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mat span { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; text-align: center; padding: .9rem .4rem; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 600; font-size: .84rem; line-height: 1.25; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.mat span .i { width: 26px; height: 26px; color: var(--green-700); stroke-width: 1.8; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.mat small { font-weight: 500; color: var(--muted); font-size: .74rem; }
.mat:hover span { border-color: var(--green-200); transform: translateY(-2px); }
.mat input:checked + span { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 4px rgba(26, 154, 88, .12); }
.mat input:checked + span .i { transform: scale(1.18) rotate(-8deg); }
.mat input:focus-visible + span { outline: 3px solid rgba(26, 154, 88, .45); outline-offset: 2px; }
.calc-qty { margin-top: 2rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; }
.calc input[type="range"] { flex: 1; min-width: 0; height: 8px; margin: 0; border-radius: 99px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--green-600) var(--p, 50%), var(--line) var(--p, 50%)); cursor: pointer; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--green-700); box-shadow: 0 4px 12px -2px rgba(14, 110, 62, .55); transition: transform .15s; }
.calc input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--green-700); box-shadow: 0 4px 12px -2px rgba(14, 110, 62, .55); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.qty-box { flex: none; width: 150px; display: flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 .8rem; transition: border-color .15s, box-shadow .15s; }
.qty-box:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(26, 154, 88, .13); }
.qty-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: .7rem 0; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-box span { color: var(--muted); font-weight: 500; }
.qty-presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.qty-presets button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .35rem .85rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.qty-presets button:hover, .qty-presets button.on { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
.calc-result { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2.2rem; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(47, 191, 113, .42), transparent 55%), linear-gradient(150deg, var(--green-900), var(--green-700)); }
.calc-result > * { position: relative; }
.calc-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #bff0d3; }
.calc-amount { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-top: .4rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-range-text { color: rgba(255, 255, 255, .75); font-size: .9rem; margin-top: .35rem; }
.calc-impact { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.6rem 0; }
.calc-impact div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: .9rem 1rem; }
.calc-impact .i { width: 22px; height: 22px; color: #7be0a8; margin-bottom: .4rem; }
.calc-impact b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc-impact span { display: block; font-size: .78rem; color: rgba(255, 255, 255, .72); line-height: 1.35; }
.calc-result .btn { margin-top: auto; }
.calc-note { font-size: .74rem; color: rgba(255, 255, 255, .6); margin-top: .8rem; text-align: center; }
.calc-result::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .04); pointer-events: none; }

/* CTA glow + spinning icon, FAQ, mobile menu stagger */
.cta::before { content: ""; position: absolute; top: -220px; left: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 224, 168, .3), transparent 62%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.cta > div { position: relative; z-index: 1; }
.cta-leaf { animation: spinSlow 40s linear infinite; }
.faq details[open] > p { animation: fadeDown .35s ease; }
.mobile-menu.open > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.mobile-menu.open > :nth-child(2) { animation-delay: .03s; }
.mobile-menu.open > :nth-child(3) { animation-delay: .06s; }
.mobile-menu.open > :nth-child(4) { animation-delay: .09s; }
.mobile-menu.open > :nth-child(5) { animation-delay: .12s; }
.mobile-menu.open > :nth-child(6) { animation-delay: .15s; }
.mobile-menu.open > :nth-child(n+7) { animation-delay: .2s; }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .ticker-label { padding: .8rem .9rem; }
  .ticker-label small { display: none; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .calc { border-radius: 18px; }
  .calc-inputs, .calc-result { padding: 1.5rem 1.2rem; }
  .qty-row { flex-wrap: wrap; }
  .qty-box { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track, .hero-video, .plan.featured, .cta::before, .cta-leaf, .mock-float { animation: none !important; }
}
