/* RankTop design layer. Loaded after app.css: it restyles the same markup (depth, gradients, motion)
   and adds the landing page, dashboard and sign-in pieces. Motion respects prefers-reduced-motion. */

:root {
  --g950: #0b3a1e;
  --g900: #14532d;
  --g800: #1b5e20;
  --g700: #2e7d32;
  --g100: #dcefe0;
  --o600: #e56f00;
  --o500: #f57c00;
  --o400: #ff9800;
  --o300: #ffb25c;
  --ink: #14231a;
  --shadow-sm: 0 1px 2px rgba(16, 40, 24, .06), 0 2px 8px rgba(16, 40, 24, .05);
  --shadow-md: 0 2px 4px rgba(16, 40, 24, .05), 0 12px 28px rgba(20, 83, 45, .10);
  --shadow-lg: 0 4px 8px rgba(16, 40, 24, .06), 0 28px 60px rgba(20, 83, 45, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 6% -8%, rgba(245, 124, 0, .11), transparent 60%),
    radial-gradient(820px 560px at 100% 0%, rgba(20, 83, 45, .11), transparent 60%),
    var(--cream);
}
h1, h2, h3 { letter-spacing: -.01em; }
::selection { background: var(--o300); color: #1b1200; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, #17603a 0%, #0f4526 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 28px rgba(8, 40, 22, .22);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 36px rgba(8, 40, 22, .38); }
.brand-mark {
  background: linear-gradient(145deg, #ffb25c, #f57c00 55%, #e56f00);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px rgba(245, 124, 0, .5);
  font-weight: 800;
}
.brand { letter-spacing: -.01em; }
.links a { position: relative; padding: 4px 1px; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--o400); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.links a:hover, .link-btn:hover { text-decoration: none; }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }
.links a.active { font-weight: 700; }
.langs a { transition: background .2s, color .2s, transform .2s; }
.langs a:hover { background: rgba(255, 255, 255, .18); }

/* ---------- buttons ---------- */
.btn {
  border-width: 1.5px;
  border-radius: 12px;
  padding: 10px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 83, 45, .22); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 5px 15px; border-radius: 10px; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-primary { background: linear-gradient(180deg, #1d6b3b, #14532d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 16px rgba(20, 83, 45, .28); }
.btn-primary:hover { background: linear-gradient(180deg, #227a44, #17603a); }
.btn-accent { background: linear-gradient(180deg, #ffa13a, #f57c00); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 22px rgba(245, 124, 0, .38); }
.btn-accent:hover { background: linear-gradient(180deg, #ffad55, #ff8a14); box-shadow: 0 12px 28px rgba(245, 124, 0, .5); }
.btn-ghost { background: rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-light:hover { background: rgba(255, 255, 255, .22); }
.btn-danger:hover { box-shadow: none; }

/* ---------- surfaces ---------- */
.card, .kpi, .plan-card, .feature, .order-card, .add-box, .kw-list, .table-scroll, .faq details, .chip {
  border-color: rgba(20, 83, 45, .10);
  box-shadow: var(--shadow-sm);
}
.card, .plan-card, .feature, .kw-list, .table-scroll, .add-box { border-radius: var(--radius); }
.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.chart-card { box-shadow: var(--shadow-md); }
input, select, textarea { border-radius: 12px; border-color: #d3cfc2; transition: border-color .2s, box-shadow .2s; background-color: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--g800); outline: 0; box-shadow: 0 0 0 4px rgba(46, 125, 50, .16); }
.notice { border-radius: 12px; border: 1px solid rgba(20, 83, 45, .15); }
.alert { border-radius: 12px; }
.badge { background: linear-gradient(180deg, #ffa13a, #f57c00); box-shadow: 0 2px 6px rgba(245, 124, 0, .4); }

/* section titles get a small accent */
.section-head h2, .list-title { position: relative; padding-left: 14px; }
.section-head h2::before, .list-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--o400), var(--o600)); }

/* ---------- rank pills, KPIs, keyword rows ---------- */
.pill { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .06); }
.pill.t3 { background: linear-gradient(180deg, #1d6b3b, #14532d); box-shadow: 0 4px 12px rgba(20, 83, 45, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.pill.t10 { background: linear-gradient(180deg, #e4f3e6, #cfe8d3); }
.pill.t30 { background: linear-gradient(180deg, #ffeccf, #ffdba6); }
.kpi { position: relative; overflow: hidden; border-radius: 14px; padding: 12px 14px; background: linear-gradient(180deg, #fff, #fbfaf6); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--g700), var(--o400)); opacity: .85; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kpi strong { font-size: 1.7rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kw { transition: background .2s, transform .2s var(--ease); }
.kw:hover { background: linear-gradient(90deg, #fff7ec, #fff); }
.kw-list { box-shadow: var(--shadow-md); }
.kw-rank .pill { transition: transform .25s var(--ease); }
.kw:hover .kw-rank .pill { transform: scale(1.08); }
.tabs a { transition: color .2s, border-color .2s; }
.range a, .admin-nav a { transition: background .2s, color .2s, border-color .2s; }
.range a:hover { border-color: var(--g800); color: var(--g900); }
.cmp td, .cmp th { transition: background .2s; }
.cmp tbody tr:hover td { background: #fbf7ee; }
.cmp td.best { background: #eaf5ec; }
.plan-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: var(--shadow-sm); }
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card.current { box-shadow: 0 0 0 2px var(--g700), var(--shadow-md); }
.add-box { box-shadow: var(--shadow-sm); }
.add-box > summary::after { background: linear-gradient(180deg, #ffa13a, #f57c00); box-shadow: 0 3px 8px rgba(245, 124, 0, .45); transition: transform .3s var(--ease); }
.add-box[open] > summary::after { transform: rotate(180deg); }
progress { height: 10px; border-radius: 8px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--g700), var(--o400)); }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--g700), var(--o400)); }

/* ---------- dashboard ---------- */
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hero h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); background: linear-gradient(90deg, var(--g900), var(--g700) 60%, var(--o500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-hero p { margin: 4px 0 0; }
.plan-strip { background: linear-gradient(135deg, #fff, #f4faf5); box-shadow: var(--shadow-md); }

.quick { position: relative; overflow: hidden; margin-bottom: 20px; padding: 22px; color: #fff; border: 0; background: linear-gradient(135deg, #14532d 0%, #0b3a1e 70%); box-shadow: var(--shadow-lg); }
.quick::after { content: ""; position: absolute; right: -80px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 124, 0, .45), transparent 70%); pointer-events: none; }
.quick h2 { margin: 0 0 4px; color: #fff; font-size: 1.25rem; }
.quick p { margin: 0 0 14px; color: #d3e8d7; }
.quick-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-bottom: 16px; }
.quick-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--o400), #ffd08a); box-shadow: 0 0 14px rgba(255, 178, 92, .7); transition: width 1s var(--ease); }
.quick-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; position: relative; z-index: 1; }
.quick-steps a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); transition: transform .2s var(--ease), background .2s; }
.quick-steps a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .17); }
.quick-steps .no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; background: linear-gradient(180deg, #ffa13a, #f57c00); box-shadow: 0 3px 10px rgba(245, 124, 0, .5); }
.quick-steps .done .no { background: linear-gradient(180deg, #4caf50, #2e7d32); }
.quick-steps .done .label { text-decoration: line-through; opacity: .7; }
.quick-steps .go { margin-left: auto; opacity: .7; }

.project-card { position: relative; padding: 20px; overflow: hidden; }
.project-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--g700), var(--o400)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(245, 124, 0, .45); }
.project-card:hover::after { transform: scaleX(1); }
.pc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pc-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(145deg, var(--g700), var(--g900)); box-shadow: 0 6px 14px rgba(20, 83, 45, .35); }
.pc-top h3 { margin: 0; font-size: 1.1rem; }
.pc-top p { margin: 0; font-size: .85rem; }
.pc-arrow { margin-left: auto; font-size: 1.3rem; color: var(--o500); transition: transform .25s var(--ease); }
.project-card:hover .pc-arrow { transform: translateX(6px); }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.pc-stats span { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 12px; background: #f6f3ea; font-size: .72rem; color: var(--muted); }
.pc-stats b { font-size: 1.25rem; line-height: 1.15; color: var(--g900); font-variant-numeric: tabular-nums; }
.pc-stats .u b { color: #1b7a2f; } .pc-stats .d b { color: #b3261e; }
.pc-foot { margin: 0; font-size: .85rem; }

/* ---------- project page guide ---------- */
.guide { position: relative; overflow: hidden; margin: 0 0 16px; padding: 22px; border: 0; color: #fff; background: linear-gradient(135deg, #14532d, #0b3a1e); box-shadow: var(--shadow-lg); }
.guide::after { content: ""; position: absolute; right: -60px; bottom: -100px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 124, 0, .4), transparent 70%); pointer-events: none; }
.guide h2 { margin: 0 0 4px; color: #fff; }
.guide > p { margin: 0 0 16px; color: #d3e8d7; }
.guide ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; position: relative; z-index: 1; counter-reset: g; }
.guide li { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); counter-increment: g; transition: transform .25s var(--ease), background .25s; }
.guide li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .15); }
.guide li::before { content: counter(g); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; font-weight: 800; background: linear-gradient(180deg, #ffa13a, #f57c00); box-shadow: 0 4px 12px rgba(245, 124, 0, .5); }
.guide li h3 { margin: 0 0 4px; color: #fff; font-size: 1rem; }
.guide li p { margin: 0 0 10px; color: #d3e8d7; font-size: .92rem; }
.guide .btn { margin: 0; }

/* ---------- sign in / register ---------- */
.auth-split { display: grid; max-width: 920px; margin: 8px auto 24px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(20, 83, 45, .1); }
@media (min-width: 800px) { .auth-split { grid-template-columns: 1fr 1fr; min-height: 520px; } }
.auth-panel { position: relative; overflow: hidden; padding: 34px 30px; color: #fff; background: linear-gradient(145deg, #17603a, #0b3a1e); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-panel::before, .auth-panel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-panel::before { right: -110px; top: -120px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(245, 124, 0, .5), transparent 70%); }
.auth-panel::after { left: -120px; bottom: -160px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.auth-panel > * { position: relative; z-index: 1; }
.auth-panel h2 { margin: 0; color: #fff; font-size: 1.6rem; line-height: 1.2; }
.auth-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-panel li { display: flex; gap: 10px; align-items: flex-start; color: #e1efe4; }
.auth-panel li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--o500); color: #fff; font-size: .8rem; font-weight: 800; }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 84px; margin-top: 6px; }
.mini-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #ffb25c, #f57c00); box-shadow: 0 6px 14px rgba(245, 124, 0, .4); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.mini-bars i:nth-child(1) { height: 30%; animation-delay: .1s; } .mini-bars i:nth-child(2) { height: 46%; animation-delay: .2s; }
.mini-bars i:nth-child(3) { height: 40%; animation-delay: .3s; } .mini-bars i:nth-child(4) { height: 64%; animation-delay: .4s; }
.mini-bars i:nth-child(5) { height: 78%; animation-delay: .5s; } .mini-bars i:nth-child(6) { height: 100%; animation-delay: .6s; }
.auth-split .auth-card { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 34px 30px; align-self: center; width: 100%; }

/* ---------- landing page ---------- */
.lp-hero { display: grid; gap: 34px; align-items: center; padding: 18px 0 34px; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1.02fr 1fr; padding: 34px 0 54px; } }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--g900); background: rgba(255, 255, 255, .8); border: 1px solid rgba(20, 83, 45, .15); box-shadow: var(--shadow-sm); }
.lp-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2fb344; box-shadow: 0 0 0 0 rgba(47, 179, 68, .6); animation: pulse 2s infinite; }
.lp-hero h1 { margin: 16px 0 14px; font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; color: var(--g950); }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--o500), #ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { margin: 0 0 24px; max-width: 540px; font-size: 1.12rem; color: #3b4a40; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.lp-cta .btn { margin: 0; }
.lp-hero .btn-ghost { border-color: rgba(20, 83, 45, .35); }
.lp-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #3b4a40; font-size: .93rem; }
.lp-trust li::before { content: "✓"; margin-right: 6px; color: var(--g700); font-weight: 800; }

/* the 3D stage: a dashboard window and the real extension popup */
.lp-stage { position: relative; min-height: 470px; perspective: 1500px; --rx: 0deg; --ry: 0deg; }
.lp-glow { position: absolute; inset: 8% 6% 4%; border-radius: 40px; background: radial-gradient(circle at 30% 30%, rgba(245, 124, 0, .35), transparent 60%), radial-gradient(circle at 80% 70%, rgba(20, 83, 45, .35), transparent 60%); filter: blur(34px); }
.lp-win, .lp-popup { position: absolute; background: #fff; border-radius: 18px; border: 1px solid rgba(20, 83, 45, .12); transition: transform .25s ease-out; transform-style: preserve-3d; }
.lp-win { left: 0; top: 44px; width: 80%; box-shadow: 26px 40px 80px rgba(8, 40, 22, .38), 0 2px 6px rgba(8, 40, 22, .1); transform: rotateY(calc(-14deg + var(--ry))) rotateX(calc(6deg + var(--rx))); animation: floaty 7s ease-in-out infinite; }
.lp-win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #ece9df; border-radius: 18px 18px 0 0; font-size: .82rem; font-weight: 600; color: #55604f; }
.lp-win-bar .dots i { width: 9px; height: 9px; }
.lp-win-bar .dots i:nth-child(1) { background: #f06b5f; } .lp-win-bar .dots i:nth-child(2) { background: #f3be4e; } .lp-win-bar .dots i:nth-child(3) { background: #5fc65f; }
.lp-win-bar .badge { margin-left: auto; }
.lp-win-body { padding: 14px; }
.lp-win .kpis { margin-bottom: 8px; }
.lp-win .kpi { padding: 8px 10px; }
.lp-win .kpi strong { font-size: 1.25rem; }
.lp-win .bars { margin: 2px 0 0; max-width: 100%; }
.lp-popup { right: 0; top: 0; width: 46%; min-width: 232px; overflow: hidden; box-shadow: 18px 34px 70px rgba(8, 40, 22, .45), 0 2px 6px rgba(8, 40, 22, .12); transform: translateZ(90px) rotateY(calc(-9deg + var(--ry))) rotateX(calc(3deg + var(--rx))); animation: floaty 6s ease-in-out -2s infinite; background: #fffaf3; }
.lp-pop-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; font-weight: 700; background: linear-gradient(180deg, #17603a, #0f4526); }
.lp-pop-head .brand-mark { width: 24px; height: 24px; font-size: .8rem; border-radius: 7px; }
.lp-pop-body { padding: 12px; }
.lp-check { position: relative; display: grid; place-items: center; height: 40px; margin-bottom: 8px; border-radius: 11px; color: #fff; font-weight: 700; font-size: .92rem; background: linear-gradient(180deg, #1d6b3b, #14532d); box-shadow: 0 6px 14px rgba(20, 83, 45, .35); animation: press 10s infinite; }
.lp-check span { position: absolute; animation-duration: 10s; animation-iteration-count: infinite; }
.lp-check .idle { animation-name: showIdle; } .lp-check .busy { animation-name: showBusy; }
.lp-prog { height: 7px; margin-bottom: 8px; border-radius: 99px; background: #ece9df; overflow: hidden; }
.lp-prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--o400), #ffd08a); animation: fill 10s infinite; }
.lp-rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lp-rows li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; font-size: .78rem; border-bottom: 1px solid var(--border); opacity: 0; animation: rowIn 10s infinite both; }
.lp-rows li:last-child { border-bottom: 0; }
.lp-rows li:nth-child(1) { animation-delay: 0s; } .lp-rows li:nth-child(2) { animation-delay: .25s; }
.lp-rows li:nth-child(3) { animation-delay: .5s; } .lp-rows li:nth-child(4) { animation-delay: .75s; }
.lp-rows .pill { min-width: 38px; padding: 1px 8px; font-size: .78rem; }
.lp-rows .kw-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chip { position: absolute; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 14px; font-weight: 800; color: var(--g900); background: #fff; border: 1px solid rgba(20, 83, 45, .12); box-shadow: var(--shadow-lg); transform: translateZ(140px); }
.lp-chip.c1 { left: 6%; bottom: 8%; animation: floaty 5s ease-in-out -1s infinite; }
.lp-chip.c2 { right: 3%; bottom: 14%; color: #fff; background: linear-gradient(180deg, #ffa13a, #f57c00); animation: floaty 6.5s ease-in-out -3s infinite; }
@media (max-width: 899px) {
  .lp-stage { min-height: 430px; }
  .lp-win { width: 86%; transform: rotateY(-8deg) rotateX(4deg); }
  .lp-popup { transform: translateZ(40px) rotateY(-5deg); min-width: 210px; }
  .lp-chip { transform: none; }
}

.lp-section { margin: 0 0 56px; }
.lp-section > h2 { margin: 0 0 6px; text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--g950); }
.lp-section > .sub { margin: 0 auto 28px; max-width: 620px; text-align: center; color: var(--muted); }

.lp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 56px; padding: 22px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #14532d, #0b3a1e); box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .lp-stats { grid-template-columns: repeat(4, 1fr); } }
.lp-stats div { text-align: center; padding: 6px; }
.lp-stats b { display: block; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #ffd08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats span { color: #cfe3d2; font-size: .92rem; }

.lp-how { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: how; }
.lp-step { position: relative; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(20, 83, 45, .1); box-shadow: var(--shadow-md); counter-increment: how; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lp-step:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: var(--shadow-lg); }
.lp-step::before { content: counter(how); position: absolute; right: 14px; top: 8px; font-size: 3.4rem; font-weight: 900; line-height: 1; color: rgba(245, 124, 0, .16); }
.lp-step h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.lp-step p { margin: 0; color: var(--muted); font-size: .94rem; }
.ill { position: relative; height: 112px; padding: 12px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #f4faf5, #eaf3ec); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ill-input { padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid #cfd8cf; font-size: .82rem; font-weight: 600; color: var(--g900); }
.ill-input .type { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--o500); animation: typing 5s steps(13) infinite; }
.ill-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ill-chips i { font-style: normal; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--g900); background: #d6ebd9; animation: pop 5s infinite both; }
.ill-chips i:nth-child(2) { animation-delay: .25s; } .ill-chips i:nth-child(3) { animation-delay: .5s; }
.ill-row { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; font-weight: 600; color: var(--g900); }
.ill-switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #c9c5ba; animation: switchBg 5s infinite; }
.ill-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); animation: switchKnob 5s infinite; }
.ill-btn { align-self: flex-start; padding: 5px 12px; border-radius: 9px; font-size: .75rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #ffa13a, #f57c00); animation: press 5s infinite; }
.ill-token { padding: 6px 10px; border-radius: 9px; border: 2px dashed var(--o500); background: #fff8e8; font: 700 .76rem ui-monospace, Consolas, monospace; color: #7a4a00; }
.ill-prog { height: 8px; border-radius: 99px; background: #dfe7df; overflow: hidden; }
.ill-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--o400), #ffd08a); animation: fill 4s infinite; }
.ill-go { align-self: center; padding: 7px 22px; border-radius: 10px; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(180deg, #1d6b3b, #14532d); box-shadow: 0 5px 12px rgba(20, 83, 45, .3); animation: press 4s infinite; }
.ill-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.ill-bars i { flex: 1; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, #4caf50, #14532d); transform-origin: bottom; animation: rise 4s var(--ease) infinite; }
.ill-bars i:nth-child(1) { height: 30%; } .ill-bars i:nth-child(2) { height: 48%; animation-delay: .12s; } .ill-bars i:nth-child(3) { height: 40%; animation-delay: .24s; }
.ill-bars i:nth-child(4) { height: 70%; animation-delay: .36s; } .ill-bars i:nth-child(5) { height: 100%; animation-delay: .48s; background: linear-gradient(180deg, #ffa13a, #f57c00); }
.ill-pills { display: flex; gap: 6px; }
.ill-pills .pill { min-width: 0; padding: 0 9px; font-size: .72rem; }
.lp-more { margin: 22px 0 0; text-align: center; }

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lp-features .feature { padding: 22px; border-radius: 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.lp-features .feature:hover { transform: translateY(-8px) rotateX(3deg); box-shadow: var(--shadow-lg); border-color: rgba(245, 124, 0, .4); }
.lp-features .feature-icon { width: 50px; height: 50px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--g700), var(--g900)); box-shadow: 0 8px 18px rgba(20, 83, 45, .35); transition: transform .4s var(--ease); }
.lp-features .feature:hover .feature-icon { transform: rotate(-8deg) scale(1.12); }

.pricing { margin-bottom: 56px; }
.pricing > h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--g950); }
.plan-card { border-radius: 20px; padding: 22px; }
.plan-price { font-size: 1.9rem; letter-spacing: -.02em; }
.plan-card .btn { margin-top: 4px; }

.faq { margin-bottom: 56px; }
.faq > h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--g950); }
.faq details { box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: rgba(245, 124, 0, .4); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #ffa13a, #f57c00); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }

.cta-band { position: relative; overflow: hidden; padding: 46px 24px; border-radius: 26px; background: linear-gradient(135deg, #17603a, #0b3a1e); box-shadow: var(--shadow-lg); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { right: -90px; top: -110px; width: 330px; height: 330px; background: radial-gradient(circle, rgba(245, 124, 0, .55), transparent 70%); animation: floaty 9s ease-in-out infinite; }
.cta-band::after { left: -100px; bottom: -140px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); animation: floaty 11s ease-in-out -4s infinite; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }

/* ---------- other pages ---------- */
.steps li { margin: 8px 0; }
ol.steps { counter-reset: st; list-style: none; padding-left: 0; }
ol.steps > li { position: relative; padding-left: 38px; counter-increment: st; }
ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .85rem; font-weight: 800; color: #fff; background: linear-gradient(180deg, #ffa13a, #f57c00); box-shadow: 0 3px 8px rgba(245, 124, 0, .4); }
.site-footer { background: linear-gradient(180deg, #0f4526, #0b3a1e); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .foot-links { display: flex; gap: 16px; }

/* ---------- motion ---------- */
@keyframes grow { from { transform: scaleY(0); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
@keyframes rise { 0% { transform: scaleY(.1); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 179, 68, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(47, 179, 68, 0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes press { 0%, 8%, 100% { transform: scale(1); } 4% { transform: scale(.95); } }
@keyframes showIdle { 0%, 10% { opacity: 1; } 12%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes showBusy { 0%, 10% { opacity: 0; } 12%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes fill { 0%, 10% { width: 0; } 45% { width: 100%; } 92% { width: 100%; } 100% { width: 0; } }
@keyframes rowIn { 0%, 44% { opacity: 0; transform: translateY(10px); } 50%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes typing { 0% { width: 0; } 50%, 100% { width: 13ch; } }
@keyframes pop { 0%, 40% { opacity: 0; transform: scale(.6); } 55%, 100% { opacity: 1; transform: scale(1); } }
@keyframes switchBg { 0%, 30% { background: #c9c5ba; } 45%, 100% { background: #2fb344; } }
@keyframes switchKnob { 0%, 30% { left: 3px; } 45%, 100% { left: 19px; } }
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .chart { animation: wipe 1.3s var(--ease) both; }
  .bars .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s var(--ease) both; }
  .lp-win .bars .bar { animation-duration: 1.1s; animation-delay: calc(var(--i) * 45ms + .3s); }
  /* sections slide in as they scroll into view (browsers without scroll-driven animations just show them) */
  @supports (animation-timeline: view()) {
    .lp-section, .lp-stats, .pricing, .faq, .cta-band, .quick, .guide, .project-card, .plan-card, .lp-step, .lp-features .feature {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lp-rows li { opacity: 1 !important; }
  .lp-check .busy { opacity: 0; }
}
@media print { .lp-stage, .quick, .guide { display: none !important; } *, *::before, *::after { animation: none !important; } }

/* ---------- gift plan ---------- */
.badge.gift { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; background: linear-gradient(180deg, #ffd27a, #f0a21c); color: #4a2d00; box-shadow: 0 2px 8px rgba(240, 162, 28, .55); }
.badge .icon { width: 13px; height: 13px; }
.gift { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; padding: 20px 22px; border-radius: 20px; color: #3b2a07; background: linear-gradient(135deg, #fff7e3, #ffe6b3 70%); border: 1px solid #f1c46b; box-shadow: var(--shadow-md), 0 0 0 4px rgba(245, 124, 0, .08); }
.gift::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: sheen 6s ease-in-out infinite; pointer-events: none; }
.gift-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #ffa13a, #e56f00); box-shadow: 0 8px 18px rgba(245, 124, 0, .45); animation: wobble 4s ease-in-out infinite; transform-origin: 50% 90%; }
.gift-icon .icon { width: 28px; height: 28px; }
.gift-body { position: relative; z-index: 1; min-width: 0; }
.gift-text { margin: 0 0 8px; font-weight: 600; line-height: 1.5; }
.gift-how { margin: 12px 0 4px; }
.gift-list { margin: 0 0 8px; padding-left: 20px; }
.gift-list li { margin: 3px 0; }
.gift-keep { margin: 10px 0 8px; color: #6a4a10; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-actions .btn { margin: 0; }
.gift.soon { background: linear-gradient(135deg, #fff1e0, #ffd2a8 75%); border-color: #f2a15c; }
.gift.ended { background: linear-gradient(135deg, #f6f3ea, #ece7d9); border-color: #d6cfbb; color: #3a3a2e; box-shadow: var(--shadow-sm); }
.gift.ended .gift-icon { background: linear-gradient(145deg, #9aa597, #6f7d6e); box-shadow: 0 6px 14px rgba(60, 80, 60, .3); animation: none; }
.gift.ended::after { display: none; }
@keyframes sheen { 0%, 55% { left: -40%; } 100% { left: 130%; } }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-9deg); } 82% { transform: rotate(8deg); } 88% { transform: rotate(-5deg); } 94% { transform: rotate(3deg); } }
@media (max-width: 520px) { .gift { flex-direction: column; } }
