/* ==========================================================
   MLM DEMO — mlmdemo.online
   Palette taken from the brand logo: navy, leaf green, orange
   ========================================================== */

:root {
  --navy:        #0B2A6B;
  --navy-deep:   #061738;
  --navy-soft:   #12399A;
  --green:       #3FAE29;
  --green-light: #6DC93F;
  --orange:      #F58220;
  --paper:       #F1F5FC;
  --white:       #FFFFFF;
  --ink:         #0D1830;
  --muted:       #5C6B8A;
  --line:        #DCE5F4;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 10px rgba(11, 42, 107, .06);
  --shadow:      0 10px 30px rgba(11, 42, 107, .09);
  --shadow-lg:   0 24px 60px rgba(11, 42, 107, .16);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--navy-deep);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 82px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow: node + line (genealogy motif) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(63,174,41,.18);
}
.eyebrow::after {
  content: ''; width: 34px; height: 1px; background: var(--line);
}
.eyebrow--orange { color: var(--orange); }
.eyebrow--orange::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(245,130,32,.18); }
.eyebrow--light { color: var(--green-light); }
.eyebrow--light::after { background: rgba(255,255,255,.25); }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 66ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: 13px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--navy   { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(11,42,107,.25); }
.btn--navy:hover { background: var(--navy-soft); color: #fff; }
.btn--green  { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(63,174,41,.28); }
.btn--green:hover { background: var(--green-light); color: #fff; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245,130,32,.28); }
.btn--orange:hover { background: #ff9540; color: #fff; }
.btn--ghost  { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--light  { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--navy); }
.btn--sm { padding: 9px 16px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 78px;
}
.logo img { height: 50px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--navy); letter-spacing: -.02em;
}
.logo-text span { color: var(--green); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 9px 14px; border-radius: 8px;
}
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav a.active::after {
  content: ''; display: block; height: 2px; border-radius: 2px;
  background: var(--green); margin-top: 4px;
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 9px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 88% -8%, rgba(63,174,41,.16), transparent 60%),
    radial-gradient(760px 380px at 8% 8%, rgba(18,57,154,.16), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding: 74px 0 84px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-stats {
  display: flex; gap: 34px; flex-wrap: wrap; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats b {
  display: block; font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 800; color: var(--navy);
}
.hero-stats span { font-size: .84rem; color: var(--muted); }

/* Genealogy tree signature */
.tree-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px 20px; box-shadow: var(--shadow-lg);
}
.tree-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.tree-card svg { width: 100%; height: auto; }
.tree-node circle { transition: all .3s ease; }
.tree-node.on circle { filter: drop-shadow(0 0 6px rgba(63,174,41,.55)); }
.tree-link { stroke: var(--line); stroke-width: 2; fill: none; transition: stroke .4s ease; }
.tree-link.on { stroke: var(--green); }
.tree-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px;
  font-size: .78rem; color: var(--muted);
}
.tree-legend i {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px;
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--navy-deep); color: #fff; padding: 16px 0;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; overflow: hidden;
}
.strip-track { display: flex; gap: 44px; white-space: nowrap; animation: slide 34s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 12px; opacity: .82; }
.strip-track span::before { content: '●'; color: var(--green-light); font-size: .6rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Demo cards ---------- */
.demo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px;
}
.demo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.demo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #C9D8F0; }
.demo-card-top {
  padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.demo-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; font-family: var(--font-mono); font-size: .68rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.badge-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; color: var(--green);
}
.badge-live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 1.9s infinite;
}
.badge-soon { color: var(--orange); }
.badge-soon::before { background: var(--orange); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,174,41,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(63,174,41,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,174,41,0); }
}
.demo-card h3 { padding: 14px 20px 0; margin: 0; }
.demo-card h3 a { color: var(--navy-deep); }
.demo-card h3 a:hover { color: var(--green); }
.demo-card .demo-desc {
  padding: 6px 20px 0; color: var(--muted); font-size: .93rem; margin: 0;
}
.demo-features { list-style: none; margin: 16px 0 0; padding: 0 20px; }
.demo-features li {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem;
}
.demo-features li:last-child { border-bottom: 0; }
.demo-features li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy-soft); flex: none;
}
.demo-card-foot { margin-top: auto; padding: 18px 20px 20px; }

/* Credential blocks */
.cred {
  display: flex; align-items: center; gap: 13px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.cred-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.cred-icon--member { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.cred-icon--admin  { background: linear-gradient(135deg, var(--orange), #FFA65C); }
.cred-body { min-width: 0; flex: 1; }
.cred-label {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.cred-value {
  font-family: var(--font-mono); font-size: .86rem; font-weight: 600;
  color: var(--navy-deep); word-break: break-all;
}
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; font-size: .78rem; font-weight: 600; color: var(--navy);
  cursor: pointer; font-family: var(--font-body); transition: all .16s ease;
}
.copy-btn:hover { border-color: var(--navy); }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Feature / value cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}
.card-icon--green  { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.card-icon--orange { background: linear-gradient(135deg, var(--orange), #FFA65C); }

/* Numbered process — the order genuinely matters here */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step b {
  font-family: var(--font-mono); font-size: .78rem; color: var(--green);
  letter-spacing: .12em;
}
.step h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--wide { grid-template-columns: 1.15fr .85fr; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative; padding: 0 0 14px 32px; color: var(--muted);
}
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(63,174,41,.12); color: var(--green);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.tick-list li b { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, #14459B 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 54px 46px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,174,41,.34), transparent 68%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 60ch; position: relative; }
.cta-band .btn-row { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.info-card .card-icon { margin-bottom: 0; flex: none; }
.info-card h3 { font-size: 1rem; margin-bottom: 3px; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.info-card a { font-weight: 600; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .84rem; font-weight: 600; color: var(--navy-deep);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: .95rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #FBFCFF; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-soft); background: #fff; outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .93rem; }
.alert--ok   { background: rgba(63,174,41,.1);  color: #1F6B12; border: 1px solid rgba(63,174,41,.3); }
.alert--err  { background: rgba(245,130,32,.1); color: #9A4A00; border: 1px solid rgba(245,130,32,.3); }

.map-embed {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-top: 28px; line-height: 0; background: #fff;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 830px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600;
  color: var(--navy-deep); list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 1.35rem; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Page header ---------- */
.page-head {
  background:
    radial-gradient(760px 320px at 82% 0%, rgba(63,174,41,.16), transparent 62%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 62px 0 56px;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: rgba(255,255,255,.78); max-width: 62ch; margin: 0; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--green-light); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: .88rem; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: var(--font-body); transition: all .16s ease;
}
.filter-btn:hover { border-color: var(--navy-soft); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Demo detail ---------- */
.demo-detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.detail-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.detail-panel h3 { font-size: 1.05rem; }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 28px; background: #fff;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; background: #fff; }
.spec-table th, .spec-table td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .93rem;
}
.spec-table th { width: 210px; color: var(--navy-deep); font-weight: 600; }
.spec-table td { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 66px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px;
}
.site-footer h4 {
  color: #fff; font-family: var(--font-display); font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px;
}
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--green-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: .93rem; }
.footer-logo img { height: 54px; background: #fff; border-radius: 10px; padding: 7px 10px; }
.footer-about { font-size: .93rem; margin-top: 18px; max-width: 40ch; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 13px; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem;
}
.footer-keywords {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  font-size: .78rem; color: rgba(255,255,255,.42); line-height: 1.9;
}
.footer-keywords a { color: rgba(255,255,255,.42); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 95;
  display: inline-flex; align-items: center; gap: 11px;
  background: #25D366; color: #fff; padding: 13px 20px 13px 15px;
  border-radius: 999px; font-weight: 600; font-size: .93rem;
  box-shadow: 0 12px 30px rgba(37,211,102,.42);
  transition: transform .18s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); color: #fff; }
.wa-float svg { flex: none; }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(37,211,102,.5); animation: ring 2.4s infinite;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: .9; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--paper); }
.admin-bar {
  background: var(--navy-deep); color: #fff; padding: 14px 0;
}
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-bar a { color: rgba(255,255,255,.8); font-size: .92rem; margin-left: 18px; }
.admin-bar a:hover { color: var(--green-light); }
.admin-brand { font-family: var(--font-display); font-weight: 700; color: #fff; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.login-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.admin-table th { background: var(--paper); font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.admin-table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.pill--on  { background: rgba(63,174,41,.14); color: #216B12; }
.pill--off { background: rgba(92,107,138,.14); color: var(--muted); }
.fieldset {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 22px;
}
.fieldset legend {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  padding: 0 10px; font-size: .95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .split--wide, .contact-grid, .demo-detail { grid-template-columns: 1fr; gap: 34px; }
  .detail-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; inset: 78px 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; padding: 14px 20px 22px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 10px; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .cta-band { padding: 38px 26px; }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Plan cards (MLM plans hub) ---------- */
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #C9D8F0; color: var(--ink); }
.plan-card-svg {
  background: linear-gradient(180deg, #FAFCFF, var(--paper));
  border-bottom: 1px solid var(--line); padding: 10px 12px 0;
}
.plan-card-svg svg { width: 100%; height: auto; display: block; }
.plan-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.plan-card-body h3 { margin-bottom: .35em; }
.plan-card-body p { color: var(--muted); font-size: .93rem; margin: 0 0 16px; }
.plan-card-link {
  margin-top: auto; font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.plan-card:hover .plan-card-link { color: var(--navy); }

/* Plan structure diagram inside the tree card */
.plan-svg { width: 100%; height: auto; display: block; }

/* Card used as a link (related plans) */
a.card { color: var(--ink); }
a.card:hover { color: var(--ink); }
a.card h3 { color: var(--navy-deep); }
a.card:hover h3 { color: var(--green); }

/* ---------- Plan chips (homepage index) ---------- */
.plan-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.plan-chip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: block; color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.plan-chip:hover {
  transform: translateY(-3px); border-color: var(--green);
  box-shadow: var(--shadow-sm); color: var(--ink);
}
.plan-chip b {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1rem; color: var(--navy-deep); margin-bottom: 4px;
}
.plan-chip b::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
}
.plan-chip span { color: var(--muted); font-size: .88rem; }
