/* EduPortal marketing site */
:root {
  --brand: #15803d;
  --brand-dark: #166534;
  --brand-light: #22c55e;
  --brand-soft: #f0fdf4;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(21, 128, 61, .3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 2px; transform-origin: 50% 90%; }
.brand:hover .brand-logo { animation: sway 1s ease-in-out; }
.wordmark span { color: var(--brand-light); }
.site-footer .brand-logo { background: #fff; }
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); text-decoration: none; }
.nav-links .btn, .nav-links .btn[aria-current] { color: #fff; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* Hero */
.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Product mockup (pure HTML/CSS) */
.mockup { background: #fff; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15, 23, 42, .15); border: 1px solid var(--line); overflow: hidden; }
.mockup-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mockup-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mockup-side { background: #0f172a; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mockup-side i { display: block; height: 8px; border-radius: 4px; background: #334155; }
.mockup-side i.on { background: var(--brand); }
.mockup-main { min-width: 0; padding: 18px; display: grid; gap: 14px; align-content: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.stat b { display: block; color: var(--ink); font-size: 1.05rem; }
.stat small { color: var(--muted); font-size: .7rem; }
.tt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tt-grid div { height: 34px; border-radius: 6px; background: var(--bg-alt); }
.tt-grid .c1 { background: #dbeafe; } .tt-grid .c2 { background: #dcfce7; } .tt-grid .c3 { background: #fef3c7; } .tt-grid .c4 { background: #fce7f3; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.card ul li { margin-bottom: 4px; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 18px; font-size: 1.4rem;
}

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7; color: var(--green); font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.panel { background: var(--brand-soft); border-radius: var(--radius); padding: 32px; }
.panel-list { display: grid; gap: 12px; }
.panel-list div { background: #fff; border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .95rem; box-shadow: 0 2px 6px rgba(15, 23, 42, .05); }
.pill { white-space: nowrap; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.green { background: #dcfce7; color: var(--green); }
.pill.amber { background: #fef3c7; color: #b45309; }
.pill.blue { background: #dbeafe; color: #1d4ed8; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 16px;
}

/* Audience tags */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tags span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 500; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--brand) 0%, #14532d 100%); color: #fff; border-radius: 20px; padding: 56px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #dcfce7; font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cbd5e1;
  border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid #bbf7d0; border-color: var(--brand); }
.form-note { font-size: .9rem; color: var(--muted); }
.contact-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-info strong { display: block; color: var(--ink); }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 64px 0 28px; margin-top: 88px; font-size: .95rem; }
.site-footer.flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes cellIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, .45); } 70% { box-shadow: 0 0 0 10px rgba(29, 78, 216, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.1); } }

/* Hero entrance (runs on page load) */
.hero > .container > div:first-child > *, .page-hero .container > * { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero > .container > div:first-child > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .1s; }
.hero > .container > div:first-child > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .2s; }
.hero > .container > div:first-child > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .3s; }
.hero > .container > div:first-child > :nth-child(5) { animation-delay: .4s; }
.hero .mockup { animation: fadeUp 1s .3s cubic-bezier(.2, .7, .2, 1) both, float 6s 1.3s ease-in-out infinite; }
.tt-grid div { animation: cellIn .45s calc(.8s + var(--i, 0) * 50ms) cubic-bezier(.3, 1.4, .5, 1) both; }
.mockup-side i.on { background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand) 100%); background-size: 200% 100%; animation: shine 3s linear infinite; }

/* Soft moving background shapes behind the hero */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero::before, .hero::after, .page-hero::before {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: 0; pointer-events: none;
  animation: blob 14s ease-in-out infinite;
}
.hero::before { width: 380px; height: 380px; background: #bbf7d0; top: -120px; right: 5%; }
.hero::after { width: 300px; height: 300px; background: #dcfce7; bottom: -140px; left: -60px; animation-delay: -7s; }
.page-hero::before { width: 360px; height: 360px; background: #bbf7d0; top: -160px; left: 60%; }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* Scroll reveal: elements start hidden only when JS is running */
.js .section-head, .js .card, .js .split > *, .js .step, .js .tags span, .js .faq details, .js .cta, .js .table-wrap {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .split > :last-child { transform: translateX(40px); }
.js .split.reverse > :last-child { transform: translateX(-40px); }
.js .tags span { transform: scale(.85); }
.js .in { opacity: 1 !important; transform: none !important; }
.js .card.in:hover { transform: translateY(-4px) !important; }

/* Panel rows slide in one by one once their panel is visible */
.js .panel-list div { opacity: 0; transform: translateX(24px); transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.25s + var(--i, 0) * 140ms); }
.js .panel.in .panel-list div { opacity: 1; transform: none; }

/* Small hover touches */
.card .icon { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.card:hover .icon { transform: scale(1.12) rotate(-6deg); }
.tags span { transition: border-color .2s, color .2s, background .2s; }
.tags span:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn-primary:hover::after { transform: translateX(120%); }
.pill.pulse { animation: pulse 2s infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .section-head, .js .card, .js .split > *, .js .step, .js .tags span, .js .faq details, .js .cta, .js .table-wrap, .js .panel-list div { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-3, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .cta { padding: 40px 24px; }
  .mockup-body { grid-template-columns: 56px 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { display: none; }
  .panel { padding: 20px; }
}

/* Demo form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 500; animation: fadeUp .4s both; }
.form-status.ok { background: #dcfce7; color: #166534; }
.form-status.err { background: #fee2e2; color: #991b1b; }
button[disabled] { opacity: .7; cursor: wait; }
.form { position: relative; }

/* Top contact bar */
.topbar { background: #14532d; color: #dcfce7; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-contact, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { color: #dcfce7; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar svg { width: 15px; height: 15px; fill: #86efac; flex-shrink: 0; }
@media (max-width: 960px) { .topbar-hide-md { display: none !important; } .topbar-inner { justify-content: center; } }
@media (max-width: 600px) {
  .topbar-hide-sm { display: none !important; }
  .topbar-contact { gap: 16px; }
}

/* ---------- Visual upgrade ---------- */
.hero > .container > div:first-child > :nth-child(6) { animation-delay: .5s; }

/* Rotating word */
.rotate-line { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: -6px 0 14px; }
.rotator {
  display: inline-block; background: linear-gradient(90deg, var(--brand), var(--brand-light)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; transition: opacity .35s, transform .35s; border-right: 3px solid var(--brand-light); padding-right: 4px;
}
.rotator.out { opacity: 0; transform: translateY(-8px); }

/* Hero visual + floating badges */
.hero { padding-bottom: 120px; }
.hero-visual { position: relative; }
.float-badge {
  position: absolute; z-index: 2; background: #fff; border-radius: 12px; padding: 10px 14px 10px 32px; box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
  font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.3; animation: fadeUp .8s both, float 5s ease-in-out infinite;
}
.float-badge small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.fb-dot { position: absolute; left: 12px; top: 15px; width: 10px; height: 10px; border-radius: 50%; }
.fb-dot.green { background: var(--brand-light); box-shadow: 0 0 0 4px #dcfce7; }
.fb-dot.blue { background: #3b82f6; box-shadow: 0 0 0 4px #dbeafe; }
.fb-1 { left: -34px; bottom: 34px; animation-delay: 1.1s, 1.9s; }
.fb-2 { right: -22px; top: -26px; animation-delay: 1.4s, 0s; }

/* Wave divider into the facts band */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: #14532d; z-index: 1; }

/* Facts band */
.stats-band { background: linear-gradient(135deg, #14532d 0%, #166534 60%, #15803d 100%); color: #dcfce7; padding: 44px 0 54px; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item b { display: block; font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.stat-item > span { font-size: .95rem; }
.stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, .15); }

/* Icons */
.icon svg { width: 24px; height: 24px; }
.grid-3 > .card:nth-child(6n+1) .icon { background: #dcfce7; color: #15803d; }
.grid-3 > .card:nth-child(6n+2) .icon { background: #dbeafe; color: #1d4ed8; }
.grid-3 > .card:nth-child(6n+3) .icon { background: #fef3c7; color: #b45309; }
.grid-3 > .card:nth-child(6n+4) .icon { background: #fce7f3; color: #be185d; }
.grid-3 > .card:nth-child(6n+5) .icon { background: #ede9fe; color: #6d28d9; }
.grid-3 > .card:nth-child(6n+6) .icon { background: #cffafe; color: #0e7490; }

/* Card accent bar on hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover::before { transform: scaleX(1); }

/* Dotted pattern on alternate sections */
.section.alt { background-color: var(--bg-alt); background-image: radial-gradient(#d1fae5 1.2px, transparent 1.2px); background-size: 24px 24px; }

/* Product tour tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; transition: all .2s;
}
.tabs button:hover { border-color: var(--brand); color: var(--brand); }
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(21, 128, 61, .25); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; animation: fadeUp .5s both; }
.tab-panel[hidden] { display: none; }
.tp-text h3 { font-size: 1.6rem; }
.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px rgba(15, 23, 42, .1); padding: 20px; display: grid; gap: 12px; }
.ui-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ui-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; transition: background .2s; }
.ui-row:hover { background: var(--bg-alt); }
.ui-row b { display: block; color: var(--ink); font-size: .95rem; }
.ui-row small, .ui-note { color: var(--muted); font-size: .8rem; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.ui-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.ui-steps span { font-size: .72rem; text-align: center; padding-top: 10px; border-top: 4px solid var(--line); color: var(--muted); }
.ui-steps span.done { border-color: var(--brand-light); color: var(--brand); font-weight: 600; }
.ui-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ui-week .d { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.ui-week i { font-style: normal; min-height: 52px; border-radius: 8px; background: var(--bg-alt); font-size: .72rem; padding: 6px; line-height: 1.3; }
.ui-week i small { font-size: .65rem; opacity: .75; }
.ev.e1 { background: #dcfce7; color: #166534; } .ev.e2 { background: #dbeafe; color: #1d4ed8; }
.ev.e3 { background: #fef3c7; color: #92400e; } .ev.e4 { background: #fce7f3; color: #9d174d; }
.toggle { width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle.on { background: var(--brand-light); } .toggle.on::after { left: 21px; }
.ui-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ui-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.ui-chart { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; height: 200px; align-items: end; padding-top: 10px; }
.ui-chart div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.ui-chart span { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand-light), var(--brand)); animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
.ui-chart span.f { background: #fca5a5; }
.ui-chart small { font-size: .75rem; color: var(--muted); font-weight: 600; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ui-video { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-video span { aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(135deg, #1e293b, #334155); position: relative; }
.ui-video span::after { content: ""; position: absolute; left: 50%; top: 45%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #475569; }
.ui-video span:first-child { outline: 3px solid var(--brand-light); }

/* CTA pattern */
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.5px); background-size: 22px 22px; pointer-events: none; }
.cta > * { position: relative; }

/* Floating WhatsApp + back to top */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); animation: waPulse 2.5s infinite; transition: transform .2s;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { text-decoration: none; transform: scale(1.06); }
.wa-tip {
  position: absolute; right: 70px; white-space: nowrap; background: #0f172a; color: #fff; font-size: .85rem; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top {
  position: fixed; right: 30px; bottom: 94px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--brand); box-shadow: 0 6px 18px rgba(15, 23, 42, .15); display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal for new blocks */
.js .stat-item, .js .tabs { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }

@media (max-width: 960px) {
  .tab-panel { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat-item:nth-child(3) { border-left: 0; }
  .fb-1 { left: 8px; } .fb-2 { right: 8px; }
}
@media (max-width: 760px) {
  .rotate-line { font-size: 1.1rem; }
  .float-badge { display: none; }
  .hero { padding-bottom: 90px; }
  .wave { height: 40px; }
  .stat-item b { font-size: 2rem; }
  .ui-week i { min-height: 44px; font-size: .62rem; padding: 4px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .to-top { right: 21px; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stat-item, .js .tabs { opacity: 1; transform: none; }
}
