/* YouGreen — design tokens follow the homepage mockup (fresh green + gold + red CTA) */
:root {
  --g900: #0b3d18; --g800: #0f4d1f; --g700: #166b2c; --g600: #1f8a37; --g500: #2ea043; --g400: #5cbf4a; --g200: #cdeab9; --g100: #e8f5dc; --g50: #f4faef;
  --gold: #c99a1c; --gold2: #f1c94b; --red: #e0262b; --red2: #c81e22; --line: #06c755;
  --ink: #17261b; --ink2: #3f5245; --muted: #6b7c70; --border: #dfe9da; --bg: #f6f9f3; --white: #fff;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 4px 18px rgba(16, 61, 24, .08); --shadow-lg: 0 12px 40px rgba(16, 61, 24, .16);
  --head: 'Kanit', system-ui, sans-serif; --body: 'Sarabun', 'Kanit', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--g700); text-decoration: none; }
a:hover { color: var(--g600); }
h1, h2, h3, h4, h5 { font-family: var(--head); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; color: var(--g900); }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); } h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); } h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .xs { font-size: .78rem; }
.center { text-align: center; } .right { text-align: right; }
.mt0 { margin-top: 0 } .mt1 { margin-top: 8px } .mt2 { margin-top: 16px } .mt3 { margin-top: 24px } .mt4 { margin-top: 40px }
.mb0 { margin-bottom: 0 } .mb1 { margin-bottom: 8px } .mb2 { margin-bottom: 16px } .mb3 { margin-bottom: 24px }
.flex { display: flex; gap: 12px; align-items: center; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.gold-text { color: var(--gold); } .green-text { color: var(--g600); } .red-text { color: var(--red); }
[data-lucide] { width: 1.15em; height: 1.15em; stroke-width: 2; vertical-align: -0.18em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 500 1rem var(--head); cursor: pointer; transition: .18s; text-align: center; line-height: 1.2; background: var(--g100); color: var(--g800); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--g500), var(--g700)); color: #fff; box-shadow: 0 4px 14px rgba(31, 138, 55, .3); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-red { background: linear-gradient(180deg, #f2393e, var(--red2)); color: #fff; box-shadow: 0 4px 14px rgba(224, 38, 43, .3); }
.btn-red:hover { color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2a00; }
.btn-line { background: var(--line); color: #fff; } .btn-line:hover { color: #fff; filter: brightness(1.05); }
.btn-outline { background: #fff; border-color: var(--g500); color: var(--g700); }
.btn-ghost { background: transparent; color: var(--g700); }
.btn-danger { background: #fff; border-color: #f3c3c4; color: var(--red2); }
.btn-sm { padding: 7px 14px; font-size: .88rem; } .btn-lg { padding: 15px 28px; font-size: 1.1rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--g800); }
.icon-btn:hover { background: var(--g100); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar { background: var(--g800); color: #dff0d4; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.topbar a { color: #fff; }
.header-row { display: flex; align-items: center; gap: 18px; height: 76px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--ink); font: 500 .97rem var(--head); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { background: var(--g100); color: var(--g700); }
.nav a.active { background: linear-gradient(180deg, var(--g500), var(--g700)); color: #fff; }
.nav .dd { position: relative; }
.nav .dd-menu { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; }
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { display: block; }
.nav .dd-menu a { display: flex; border-radius: 10px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.account-link { display: flex; align-items: center; gap: 8px; font: 500 .85rem/1.2 var(--head); color: var(--ink); padding: 6px 10px; border-radius: 12px; }
.account-link:hover { background: var(--g100); }
.cart-link { position: relative; }
.cart-badge { position: absolute; top: 1px; right: 0; background: var(--red); color: #fff; font: 600 .7rem/18px var(--head); min-width: 18px; height: 18px; border-radius: 9px; text-align: center; padding: 0 4px; }
.burger { display: none; }
.search-pop { border-top: 1px solid var(--border); padding: 12px 0; background: #fff; }
.mobile-nav { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .4); display: none; }
.mobile-nav.open { display: block; }
.mobile-nav .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 85vw); background: #fff; padding: 20px; overflow: auto; }
.mobile-nav a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; color: var(--ink); font-family: var(--head); }
.mobile-nav a:hover { background: var(--g100); }

/* ---------- Flash ---------- */
.flash { margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.flash.success { background: #e5f6dc; color: #155a24; border: 1px solid #bfe3a9; }
.flash.error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f8c4c4; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(30px); opacity: 0; background: var(--g800); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 200; transition: .25s; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--g800); }
.slides { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; position: relative; aspect-ratio: 1080 / 340; max-height: 560px; }
.slide-link img { width: 100%; height: 100%; object-fit: cover; }
.slide .cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 7%; background: linear-gradient(90deg, rgba(8, 45, 18, .85) 0%, rgba(8, 45, 18, .55) 45%, transparent 75%); color: #fff; }
.slide .cap h2 { color: #fff; font-size: clamp(1.4rem, 3.6vw, 3rem); max-width: 620px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.slide .cap p { font-size: clamp(.95rem, 1.6vw, 1.25rem); max-width: 560px; color: #e6f5dc; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); color: var(--g800); }
.hero-nav.prev { left: 16px; } .hero-nav.next { right: 16px; }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.dots button.on { background: var(--g500); }

/* ---------- Feature bar ---------- */
.features { background: #fff; border-bottom: 1px solid var(--border); }
.features .container { display: grid; grid-template-columns: repeat(5, 1fr); }
.feature { display: flex; gap: 12px; align-items: center; padding: 18px 14px; border-right: 1px solid var(--border); }
.feature:last-child { border: 0; }
.feature .ic { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(180deg, var(--g500), var(--g700)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.feature .ic [data-lucide] { width: 26px; height: 26px; }
.feature b { display: block; font: 500 .98rem var(--head); color: var(--g900); }
.feature span { font-size: .85rem; color: var(--g600); }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section.alt { background: #fff; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0; }
.sec-title .leaf { color: var(--g500); width: 30px; height: 30px; }
.sec-link { font: 500 .92rem var(--head); color: var(--ink2); display: inline-flex; gap: 4px; align-items: center; }
.page-head { background: linear-gradient(135deg, var(--g800), var(--g600)); color: #fff; padding: 38px 0 34px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #d8eecb; margin: 6px 0 0; }
.crumbs { font-size: .85rem; color: #bfe0ad; margin-bottom: 6px; } .crumbs a { color: #e9f7df; }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-pad { padding: 22px; }
.card h3 { margin-top: 0; }
.cat-card { border-radius: var(--radius); overflow: hidden; display: block; text-align: center; transition: .2s; border: 1px solid rgba(0, 0, 0, .04); box-shadow: var(--shadow); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card img { width: 100%; aspect-ratio: 2 / 1.05; object-fit: cover; }
.cat-card b { display: block; padding: 10px 8px 12px; font: 600 1.02rem var(--head); color: var(--g900); }

.p-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: .2s; position: relative; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-card .thumb { aspect-ratio: 1; background: var(--g50); display: block; overflow: hidden; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.p-card:hover .thumb img { transform: scale(1.05); }
.p-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.p-card .name { font: 600 1rem/1.35 var(--head); color: var(--g900); margin: 0 0 2px; }
.p-card .sub { font-size: .84rem; color: var(--muted); margin: 0 0 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-card .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font: 700 1.3rem/1 var(--head); color: var(--red); }
.price-old { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.price-label { font-size: .72rem; color: var(--g600); font-family: var(--head); }
.add-btn { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(180deg, var(--g500), var(--g700)); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.add-btn:hover { filter: brightness(1.1); }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font: 500 .74rem var(--head); padding: 3px 10px; border-radius: 999px; z-index: 1; }
.pv-tag { position: absolute; top: 10px; right: 10px; background: var(--gold2); color: #3a2a00; font: 600 .72rem var(--head); padding: 3px 9px; border-radius: 999px; z-index: 1; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: .9rem; }

/* Agent banner */
.agent-banner { background: linear-gradient(100deg, #0f4d1f 0%, #1f8a37 55%, #5cbf4a 100%); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 330px 1fr; align-items: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; }
.agent-banner > img { height: 100%; object-fit: cover; }
.agent-banner .in { padding: 26px 30px; }
.agent-banner h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 2rem); margin: 0; }
.agent-banner h2 em { font-style: normal; color: var(--gold2); }
.perks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0; background: rgba(255, 255, 255, .95); border-radius: 16px; padding: 12px; color: var(--g900); }
.perk { text-align: center; font: 500 .82rem/1.3 var(--head); padding: 4px; }
.perk [data-lucide] { width: 28px; height: 28px; color: var(--g600); display: block; margin: 0 auto 6px; }

/* Articles */
.a-row { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 10px; box-shadow: var(--shadow); color: inherit; transition: .2s; }
.a-row:hover { box-shadow: var(--shadow-lg); color: inherit; }
.a-row img { width: 130px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.a-row h4 { font-size: 1rem; margin: 2px 0 6px; }
.meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.meta span { display: inline-flex; gap: 4px; align-items: center; }
.a-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; color: inherit; transition: .2s; }
.a-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.a-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.a-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tag { display: inline-block; background: var(--g100); color: var(--g700); font: 500 .76rem var(--head); padding: 3px 10px; border-radius: 999px; }

/* Testimonials + results */
.testi { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.testi img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--g200); flex-shrink: 0; }
.avatar-fallback { width: 64px; height: 64px; border-radius: 50%; background: var(--g100); color: var(--g700); display: grid; place-items: center; font: 600 1.4rem var(--head); flex-shrink: 0; }
.testi q { display: block; font-size: .95rem; color: var(--ink2); quotes: '“' '”'; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.result { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 3 / 4; box-shadow: var(--shadow); cursor: zoom-in; background: var(--g100); }
.result img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.result:hover img { transform: scale(1.06); }
.result .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(5, 35, 12, .85)); color: #fff; }
.result .cap b { display: block; font: 600 .95rem var(--head); }
.result .cap span { font-size: .8rem; color: #cfe9c0; }
.real-badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--g700); font: 600 .72rem var(--head); padding: 3px 9px; border-radius: 999px; display: flex; gap: 4px; align-items: center; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 12px; }
.lightbox .lb-cap { color: #fff; margin-top: 12px; text-align: center; font-family: var(--head); }
.lightbox .close { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255, 255, 255, .15); }

/* ---------- Footer ---------- */
.cta-strip { background: linear-gradient(100deg, var(--g800), var(--g600)); color: #fff; padding: 22px 0; position: relative; overflow: hidden; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-strip .brand { font: 700 1.6rem var(--head); color: #fff; }
.cta-strip .brand small { display: block; font: 400 .95rem var(--body); color: #d5ecc7; }
.pill-contact { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--g900); padding: 10px 22px; border-radius: 999px; font: 600 1.15rem var(--head); }
.pill-contact.line { background: var(--line); color: #fff; }
.site-footer { background: var(--g900); color: #c8dcc0; padding: 44px 0 20px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #c8dcc0; } .site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 16px; font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .lbl { display: block; font: 500 .92rem var(--head); color: var(--g900); margin-bottom: 6px; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--g500); box-shadow: 0 0 0 4px rgba(46, 160, 67, .14); }
textarea { resize: vertical; min-height: 90px; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
input[type=color] { width: 60px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--g600); }
.input-group { display: flex; gap: 8px; } .input-group input { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 1.5px dashed var(--border); border-radius: 14px; padding: 16px; margin: 0 0 16px; }
legend { font: 600 1rem var(--head); color: var(--g800); padding: 0 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { background: var(--g50); text-align: left; font: 500 .85rem var(--head); color: var(--g800); padding: 11px 12px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 11px 12px; border-bottom: 1px solid #edf2ea; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfdf9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table img.t { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 500 .76rem var(--head); white-space: nowrap; }
.badge.green { background: #dff3d4; color: #166b2c; } .badge.amber { background: #fff1d6; color: #9a5b00; } .badge.blue { background: #dbeafe; color: #1e40af; }
.badge.violet { background: #ede9fe; color: #5b21b6; } .badge.red { background: #fde2e2; color: #9b1c1c; } .badge.gray { background: #eef1ec; color: #4b5a4f; } .badge.gold { background: #fdf0c4; color: #7a5800; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; }
.gallery-main { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 78px; height: 78px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex-shrink: 0; background: #fff; }
.gallery-thumbs button.on { border-color: var(--g500); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-box { background: var(--g50); border: 1px solid var(--g200); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-box .lbl2 { font: 500 .82rem var(--head); color: var(--muted); }
.price-box .big { font: 700 1.8rem var(--head); color: var(--red); line-height: 1.1; }
.price-box .mem { font: 700 1.8rem var(--head); color: var(--g700); line-height: 1.1; }
.qty { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--g700); }
.qty input { width: 54px; border: 0; text-align: center; padding: 10px 0; border-radius: 0; }
.qty input:focus { box-shadow: none; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; padding: 12px 18px; font: 500 1rem var(--head); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs .on { color: var(--g700); border-color: var(--g500); }
.tab-pane { display: none; padding: 22px 0; } .tab-pane.on { display: block; }
.prose { font-size: 1.04rem; line-height: 1.85; color: var(--ink2); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; } .prose li { margin-bottom: .3em; }
.prose img { border-radius: 14px; margin: 1em 0; }
.video { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; } .video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Sidebar layout (filters / member / admin) ---------- */
.with-side { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.side-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.side-box h4 { font-size: 1rem; margin-bottom: 10px; }
.cat-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; color: var(--ink2); }
.cat-list a:hover, .cat-list a.on { background: var(--g100); color: var(--g700); font-weight: 600; }

.app { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 77px); }
.app-side { background: #fff; border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 77px; height: calc(100vh - 77px); overflow-y: auto; }
.app-side .who { display: flex; gap: 10px; align-items: center; padding: 8px 10px 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.app-side .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--g500), var(--g800)); color: #fff; display: grid; place-items: center; font: 600 1.1rem var(--head); flex-shrink: 0; }
.app-side .who b { display: block; font: 600 .95rem/1.3 var(--head); }
.app-side nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink2); font: 500 .94rem var(--head); }
.app-side nav a:hover { background: var(--g50); color: var(--g700); }
.app-side nav a.on { background: var(--g100); color: var(--g800); }
.app-side nav .sep { font: 500 .72rem var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 14px 12px 4px; }
.app-side .count { margin-left: auto; background: var(--red); color: #fff; font-size: .72rem; padding: 0 7px; border-radius: 9px; line-height: 18px; }
.app-main { padding: 26px 30px 60px; min-width: 0; }
.app-main > h1 { font-size: 1.6rem; }
.app.admin .app-side { background: var(--g900); border-color: var(--g900); }
.app.admin .app-side nav a { color: #c5dbbd; } .app.admin .app-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app.admin .app-side nav a.on { background: var(--g600); color: #fff; }
.app.admin .app-side .who { border-color: rgba(255, 255, 255, .1); color: #fff; } .app.admin .app-side .who b { color: #fff; }
.app.admin .app-side nav .sep { color: #7fa577; }
.side-toggle { display: none; }

.stat { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .k { font: 500 .85rem var(--head); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.stat .v { font: 700 1.65rem/1.2 var(--head); color: var(--g900); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat .ic { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--g100); color: var(--g700); }
.stat.dark { background: linear-gradient(135deg, var(--g800), var(--g600)); color: #fff; border: 0; }
.stat.dark .k { color: #cfe9c0; } .stat.dark .v { color: #fff; } .stat.dark .ic { background: rgba(255, 255, 255, .15); color: #fff; }
.stat.goldy { background: linear-gradient(135deg, #2b2306, #6d5410); color: #fff; border: 0; }
.stat.goldy .k { color: #f2dc95; } .stat.goldy .v { color: var(--gold2); } .stat.goldy .ic { background: rgba(255, 255, 255, .12); color: var(--gold2); }

.copy-box { display: flex; gap: 8px; background: var(--g50); border: 1.5px dashed var(--g400); border-radius: 12px; padding: 6px 6px 6px 14px; align-items: center; }
.copy-box input { border: 0; background: transparent; padding: 6px 0; font-size: .92rem; }
.copy-box input:focus { box-shadow: none; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 10px 0 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); gap: 4px; }
.bars .bar i { display: block; width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--g400), var(--g700)); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* Org chart */
.orgchart { overflow-x: auto; padding: 10px 0 20px; }
.orgchart ul { padding-top: 22px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.orgchart li { list-style: none; text-align: center; position: relative; padding: 22px 6px 0; }
.orgchart li::before, .orgchart li::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 2px solid var(--g200); width: 50%; height: 22px; }
.orgchart li::after { right: auto; left: 50%; border-left: 2px solid var(--g200); }
.orgchart li:only-child::after, .orgchart li:only-child::before { display: none; }
.orgchart li:only-child { padding-top: 0; }
.orgchart li:first-child::before, .orgchart li:last-child::after { border: 0 none; }
.orgchart li:last-child::before { border-right: 2px solid var(--g200); border-radius: 0 8px 0 0; }
.orgchart li:first-child::after { border-radius: 8px 0 0 0; }
.orgchart ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid var(--g200); height: 22px; }
.orgchart > ul { padding-top: 0; }
.node { display: inline-block; background: #fff; border: 2px solid var(--g200); border-radius: 14px; padding: 8px 12px; min-width: 120px; box-shadow: var(--shadow); cursor: default; }
.node .av { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; color: #fff; font: 600 1rem var(--head); background: var(--g600); }
.node b { display: block; font: 600 .82rem/1.25 var(--head); color: var(--g900); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node span { font-size: .7rem; color: var(--muted); }
.node.root { border-color: var(--gold); background: #fffbea; } .node.root .av { background: var(--gold); }
.node.l1 .av { background: #1f8a37; } .node.l2 .av { background: #2b7bd6; } .node.l3 .av { background: #8b5cf6; } .node.l4 .av { background: #e07b1a; }
.node .more { display: block; font-size: .68rem; color: var(--g600); }
.lv-pill { display: inline-flex; gap: 6px; align-items: center; font: 500 .82rem var(--head); }
.lv-pill i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Marketing plan */
.plan { background: radial-gradient(circle at 20% 0%, #1f6b33 0%, #0c3a19 55%, #072a11 100%); color: #fff; border-radius: 22px; padding: 26px; border: 2px solid #b9922b; box-shadow: var(--shadow-lg); }
.plan h2, .plan h3 { color: var(--gold2); }
.plan-box { border: 1.5px solid rgba(241, 201, 75, .55); border-radius: 16px; padding: 16px 18px; margin-top: 16px; background: rgba(255, 255, 255, .03); }
.plan-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.plan-row:last-child { border: 0; }
.plan-row .hex { width: 40px; height: 40px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2a1f00; display: grid; place-items: center; font: 700 1.2rem var(--head); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.plan-row .pct { font: 700 1.5rem var(--head); color: var(--gold2); text-align: right; }
.plan-row .amt { font: 600 1.15rem var(--head); text-align: right; min-width: 110px; }
.plan-total { margin-top: 18px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2a1f00; border-radius: 999px; padding: 12px 20px; text-align: center; font: 700 1.15rem var(--head); }
.plan input[type=number] { background: rgba(255, 255, 255, .95); }

/* YG coin */
.yg-hero { background: radial-gradient(circle at 75% 40%, #1d5c2c 0%, #0a1f10 60%, #050f08 100%); color: #fff; overflow: hidden; }
.yg-hero h1 { color: #fff; } .yg-hero h1 em { font-style: normal; color: var(--gold2); }
.yg-hero p { color: #cfe3c6; }
.coin-img { border-radius: 50%; box-shadow: 0 0 80px rgba(241, 201, 75, .35); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .coin-img { animation: none; } .slides { transition: none; } }
.yg-chip { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #fff6d6, #f7e3a1); color: #6d5000; border-radius: 999px; padding: 3px 10px 3px 4px; font: 600 .85rem var(--head); }
.yg-chip img { width: 22px; height: 22px; border-radius: 50%; }
.step-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.step-card .n { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #2a1f00; display: grid; place-items: center; font: 700 1.2rem var(--head); margin-bottom: 12px; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.flow .f { background: #fff; border: 1.5px solid var(--g200); border-radius: 14px; padding: 12px 16px; text-align: center; font: 500 .92rem var(--head); min-width: 140px; }
.flow .arr { color: var(--g500); }

/* Bank / payment */
.bank { display: flex; gap: 16px; align-items: center; border: 1.5px solid var(--border); border-radius: 16px; padding: 14px; background: #fff; }
.bank .qr { width: 120px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.bank .acc { font: 700 1.35rem var(--head); letter-spacing: .5px; color: var(--g900); }
.bank .bname { display: inline-block; color: #fff; font: 500 .82rem var(--head); padding: 2px 10px; border-radius: 999px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--g600); color: #fff; display: grid; place-items: center; font: 600 .95rem var(--head); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { border-top: 2px dashed var(--border); margin-top: 8px; padding-top: 12px; font: 700 1.25rem var(--head); color: var(--g900); }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty [data-lucide] { width: 64px; height: 64px; color: var(--g200); margin-bottom: 10px; }

details.faq { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; padding: 16px 18px; font: 500 1.02rem var(--head); color: var(--g900); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--g600); line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq .ans { padding: 0 18px 16px; color: var(--ink2); }

.auth-wrap { min-height: calc(100vh - 240px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(160deg, rgba(10, 60, 22, .78), rgba(31, 138, 55, .6)), url('../images/shop/store.jpg') center/cover; color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art h2 { color: #fff; font-size: 2rem; }
.auth-form { padding: 46px clamp(20px, 5vw, 70px); background: #fff; }
.seg { display: flex; background: var(--g50); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.seg a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font: 500 1rem var(--head); color: var(--muted); }
.seg a.on { background: #fff; color: var(--g800); box-shadow: var(--shadow); }
.sponsor-box { display: flex; gap: 12px; align-items: center; background: #fffbea; border: 1.5px solid #f1dd9b; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }

.notice { border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.notice.info { background: #eef7ff; border: 1px solid #cfe5fb; color: #1e3a5f; }
.notice.warn { background: #fff7e6; border: 1px solid #fde3a7; color: #6b4a00; }
.notice.ok { background: var(--g100); border: 1px solid var(--g200); color: var(--g800); }

.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.img-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 4px; }
.img-pick button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #fff; }
.img-pick button.on { border-color: var(--g500); }
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-edit { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs-edit .te { position: relative; width: 110px; }
.thumbs-edit .te img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.thumbs-edit .te .acts { display: flex; gap: 4px; margin-top: 4px; }
.thumbs-edit .te .acts button { flex: 1; padding: 3px; font-size: .72rem; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; background: #fff; border-radius: 14px; border: 1px solid var(--border); padding: 10px; }
.compare figcaption { font: 500 .9rem var(--head); margin-bottom: 8px; }
.compare img { width: 100%; border-radius: 10px; max-height: 480px; object-fit: contain; background: #f2f2f2; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; } .burger { display: inline-grid; }
  .g6 { grid-template-columns: repeat(3, 1fr); } .g5 { grid-template-columns: repeat(3, 1fr); }
  .features .container { grid-template-columns: repeat(3, 1fr); } .feature:nth-child(3) { border-right: 0; }
  .agent-banner { grid-template-columns: 1fr; } .agent-banner > img { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); }
  .pd, .with-side, .auth-wrap { grid-template-columns: 1fr; }
  .side-box { position: static; } .auth-art { display: none; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; z-index: 90; left: 0; top: 0; height: 100vh; width: 270px; transform: translateX(-100%); transition: .25s; box-shadow: var(--shadow-lg); }
  .app-side.open { transform: none; }
  .side-toggle { display: inline-flex; margin-bottom: 14px; }
  .app-main { padding: 18px 16px 50px; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g2, .g3, .form-grid { grid-template-columns: 1fr; } .g4, .g5, .g6 { grid-template-columns: repeat(2, 1fr); }
  .features .container { grid-template-columns: 1fr 1fr; } .feature { border-right: 0; padding: 12px 6px; } .feature .ic { width: 40px; height: 40px; }
  .topbar .hide-sm, .account-link .txt { display: none; }
  .logo img { height: 46px; } .header-row { height: 66px; gap: 8px; }
  .hero-nav { display: none; }
  .slide { aspect-ratio: 4 / 3; } .slide.has-text .cap { background: linear-gradient(0deg, rgba(8, 45, 18, .9), rgba(8, 45, 18, .3)); justify-content: flex-end; padding-bottom: 36px; }
  .foot-grid { grid-template-columns: 1fr; }
  .a-row img { width: 96px; height: 80px; }
  .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; }
  .cart-item .ci-qty, .cart-item .ci-total { grid-column: 2; }
  .plan { padding: 16px; } .plan-row { grid-template-columns: auto 1fr auto; } .plan-row .pct { display: none; }
  .bank { flex-direction: column; text-align: center; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 32px 0; }
  .price-box .big, .price-box .mem { font-size: 1.4rem; }
}
@media print { .site-header, .site-footer, .cta-strip, .app-side, .no-print { display: none !important; } body { background: #fff; } }

/* ===== v2: layout matched to the homepage mockup ===== */
.header-row { height: 84px; }
.logo img { height: 70px; width: auto; }
.section.tight { padding: 26px 0; }
.sec-title .leaf2, .leaf2 { display: inline-block; width: 34px; height: 22px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M2 20C4 9 12 3 24 2c-2 10-9 17-22 18z' fill='%232ea043'/%3E%3Cpath d='M14 21c3-7 9-11 18-12-2 7-8 11-18 12z' fill='%2363c34f'/%3E%3C/svg%3E") no-repeat center/contain; }

/* Hero */
.slide { aspect-ratio: 1080 / 340; max-height: 600px; }
.slide-link { display: block; width: 100%; height: 100%; }
.slide.is-brand { aspect-ratio: 3 / 1; }
.slide.is-brand .slide-link img { object-position: left center; }
.brand-cap { position: absolute; top: 0; bottom: 0; right: 3.5%; width: 36%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .55vw; pointer-events: none; }
.brand-logo { width: 78%; filter: drop-shadow(0 4px 10px rgba(255,255,255,.7)); margin-bottom: .3vw; }
.brush { position: relative; padding: .35vw 2.2vw; transform: rotate(-3deg); }
.brush::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d4a1c, #17672a 60%, #0d4a1c); border-radius: 4px 18px 4px 18px; clip-path: polygon(2% 8%, 100% 0, 97% 92%, 0 100%); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.brush span { position: relative; font: 700 clamp(1rem, 2.6vw, 2.6rem)/1.15 var(--head); color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.35); white-space: nowrap; }
.brush.b2::before { background: linear-gradient(90deg, #1e7d33, #2ea043 60%, #1e7d33); }
.brush.b2 span { color: #fffbe0; font-size: clamp(1.1rem, 2.9vw, 2.9rem); }
.checks { list-style: none; margin: .6vw 0 0; padding: 0; display: grid; gap: .5vw; width: 82%; }
.checks li { display: flex; align-items: center; gap: .8vw; background: rgba(255,255,255,.93); border-radius: 999px; padding: .35vw 1.2vw .35vw .35vw; font: 600 clamp(.75rem, 1.45vw, 1.45rem) var(--head); color: var(--g900); box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.checks li [data-lucide] { width: 2.1vw; height: 2.1vw; min-width: 20px; min-height: 20px; border-radius: 50%; background: var(--g600); color: #fff; padding: .35vw; stroke-width: 3.5; }
.dots button.on { background: var(--g500); border-color: #fff; }

/* Features bar */
.features { box-shadow: 0 6px 16px rgba(16,61,24,.07); position: relative; z-index: 2; }

/* Category cards: image top, label on pastel */
.cat-card { border: 1px solid rgba(0,0,0,.05); }
.cat-card b { font-size: 1.08rem; }

/* Agent strip (full width like the mockup) */
.agent-strip { position: relative; display: grid; grid-template-columns: minmax(200px, 22%) 1fr auto minmax(120px, 13%); align-items: center; gap: 22px;
  background: linear-gradient(90deg, rgba(10,70,26,.92), rgba(30,125,51,.82) 50%, rgba(92,191,74,.75)), url('../images/ui/hero-bg.jpg') center/cover; min-height: 200px; overflow: hidden; margin: 10px 0; }
.agent-strip .as-laptop { height: 100%; width: 100%; object-fit: cover; align-self: stretch; -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.agent-strip .as-woman { align-self: end; height: 200px; width: 100%; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }
.agent-strip h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 2.1rem); margin: 0 0 12px; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.agent-strip h2 em { font-style: italic; color: #fff; }
.agent-strip .perks { margin: 0; max-width: 640px; }
.agent-strip .as-btn { box-shadow: 0 6px 18px rgba(200,30,34,.45); border: 2px solid #fff; }

/* Two-column rows */
.home-row { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 26px; }
.compact .p-card .body { padding: 10px 10px 12px; }
.compact .p-card .name { font-size: .92rem; }
.compact .p-card .sub { font-size: .76rem; margin-bottom: 6px; -webkit-line-clamp: 1; }
.compact .price { font-size: 1.12rem; }
.compact .add-btn { width: 34px; height: 34px; border-radius: 10px; }
.compact .ribbon, .compact .pv-tag { font-size: .66rem; padding: 2px 7px; }
.results-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; }
.results-mini a { display: block; text-align: center; color: var(--ink2); }
.results-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.results-mini span { display: block; font: 500 .74rem/1.25 var(--head); margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Footer band */
.foot-band { background: linear-gradient(100deg, rgba(10,70,26,.95), rgba(31,138,55,.88)), url('../images/ui/hero-bg.jpg') center 70%/cover; padding: 22px 0; }
.foot-band .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.fb-brand b { display: block; font: italic 700 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--head); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.fb-brand span { color: #e3f3d8; font: italic 500 1rem var(--head); }
.pill-contact { padding: 12px 26px; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.line-ic { background: #fff; color: var(--line); font: 800 .72rem var(--head); border-radius: 8px; padding: 4px 6px; }
.site-footer { padding: 16px 0; }
.foot-slim { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; }

@media (max-width: 1100px) {
  .home-row { grid-template-columns: 1fr; }
  .agent-strip { grid-template-columns: 1fr auto; padding: 20px; }
  .agent-strip .as-laptop, .agent-strip .as-woman { display: none; }
}
@media (max-width: 700px) {
  .slide.is-brand { aspect-ratio: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #e9f6df, #fff); }
  .slide.is-brand .slide-link { aspect-ratio: 16 / 10; }
  .slide.is-brand .slide-link img { object-position: 12% center; }
  .brand-cap { position: static; width: 100%; padding: 14px 16px 34px; gap: 8px; }
  .brand-logo { width: 62%; }
  .brush { padding: 4px 18px; } .checks { gap: 6px; width: 100%; }
  .checks li { padding: 5px 14px 5px 5px; gap: 10px; }
  .g5 { grid-template-columns: repeat(2, 1fr); }
  .agent-strip { grid-template-columns: 1fr; text-align: center; }
  .results-mini { grid-template-columns: repeat(2, 1fr); }
  .pill-contact { font-size: 1.05rem; padding: 10px 18px; }
}
/* fit the brand column inside the 3:1 hero */
.brand-cap { gap: .45vw; padding: 1.2vw 0; }
.brand-logo { width: auto; max-width: 66%; max-height: 34%; margin-bottom: 0; }
.brush span { font-size: clamp(1rem, 2.15vw, 2.3rem); }
.brush.b2 span { font-size: clamp(1.1rem, 2.45vw, 2.6rem); }
.checks { margin-top: .4vw; gap: .4vw; width: 78%; }
.checks li { font-size: clamp(.75rem, 1.2vw, 1.3rem); padding: .25vw 1vw .25vw .25vw; }
.checks li [data-lucide] { width: 1.7vw; height: 1.7vw; padding: .28vw; }
@media (max-width: 700px) { .brand-logo { max-height: none; max-width: 62%; } }
/* AI images (made with ChatGPT) */
.agent-strip { grid-template-columns: 22% minmax(0, 1fr) auto 17%; min-height: 0; aspect-ratio: 2172 / 600; max-height: 420px;
  background: radial-gradient(ellipse 34% 70% at 50% 50%, rgba(8,60,22,.62), rgba(8,60,22,0) 100%), url('../images/ui/agent-ai.jpg') center/cover; }
.agent-strip h2 { text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.foot-band { background: linear-gradient(100deg, rgba(10,70,26,.93), rgba(31,138,55,.82)), url('../images/ui/hero-ai.jpg') center 60%/cover; }
.cat-card img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 1100px) {
  .agent-strip { aspect-ratio: auto; grid-template-columns: 1fr auto; background: linear-gradient(rgba(8,60,22,.72), rgba(8,60,22,.72)), url('../images/ui/agent-ai.jpg') center/cover; }
  .agent-strip .as-space { display: none; }
}
@media (max-width: 700px) { .agent-strip { grid-template-columns: 1fr; } }
.agent-strip { width: 100%; max-height: none; aspect-ratio: 2172 / 560; }
.foot-band { background: linear-gradient(100deg, rgba(10,70,26,.9), rgba(31,138,55,.78)), url('../images/ui/agent-ai.jpg') center 55%/cover; }

/* ===== Mobile & tablet (kept last so it overrides the desktop rules above) ===== */
html, body { overflow-x: hidden; }
.app-backdrop { display: none; }
.float-line { display: none; }
@media (max-width: 1100px) {
  .agent-strip { aspect-ratio: auto; min-height: 0; grid-template-columns: 1fr auto; padding: 28px 24px;
    background: linear-gradient(rgba(8,60,22,.7), rgba(8,60,22,.7)), url('../images/ui/agent-ai.jpg') 30% center/cover; }
  .agent-strip .as-space { display: none; }
}
@media (max-width: 900px) {
  .app-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 85; }
  .app-side { z-index: 95; }
}
@media (max-width: 700px) {
  .header-row { height: 64px; }
  .logo img { height: 50px; }
  .header-actions { gap: 0; }
  .icon-btn { width: 44px; height: 44px; }
  /* hero: picture on top, crisp text block below */
  .slide.is-brand { aspect-ratio: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #eaf6e0, #fff); }
  .slide.is-brand .slide-link { aspect-ratio: 16 / 9; height: auto; }
  .slide.is-brand .slide-link img { object-position: 8% center; }
  .slide.has-text, .slide.is-text, .slide.is-image { aspect-ratio: 16 / 10; }
  .slide.is-text .cap { background: linear-gradient(0deg, rgba(8,45,18,.9), rgba(8,45,18,.25)); justify-content: flex-end; padding: 0 18px 34px; }
  .slide.is-text .cap .btn { display: none; }
  .brand-cap { position: static; width: 100%; padding: 14px 16px 36px; gap: 8px; }
  .brand-logo { width: 58%; max-width: 260px; max-height: none; }
  .brush { padding: 4px 18px; }
  .brush span { font-size: 1.25rem; } .brush.b2 span { font-size: 1.4rem; }
  .checks { width: 100%; max-width: 360px; gap: 6px; margin-top: 4px; }
  .checks li { font-size: .98rem; padding: 6px 14px 6px 6px; gap: 10px; }
  .checks li [data-lucide] { width: 26px; height: 26px; padding: 5px; }
  .dots { bottom: 10px; } .dots button { width: 12px; height: 12px; }
  /* sections */
  .features .container { grid-template-columns: 1fr 1fr; }
  .feature:last-child { grid-column: 1 / -1; justify-content: center; }
  .g6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card b { font-size: .95rem; padding: 8px 6px 10px; }
  .sec-title { font-size: 1.2rem; } .sec-title .leaf2 { width: 26px; height: 18px; }
  .agent-strip { grid-template-columns: 1fr; text-align: center; padding: 26px 16px; gap: 14px; }
  .agent-strip h2 { font-size: 1.3rem; }
  .agent-strip .perks { grid-template-columns: repeat(3, 1fr); padding: 10px 6px; }
  .agent-strip .as-btn { justify-self: center; }
  .g5.compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g5.compact > :nth-child(5) { display: none; }
  .home-row { gap: 10px; }
  .testi { padding: 14px; } .testi img, .testi .avatar-fallback { width: 52px; height: 52px; }
  .results-mini { grid-template-columns: repeat(2, 1fr); }
  .foot-band .container { flex-direction: column; text-align: center; }
  .foot-band .flex { justify-content: center; }
  .foot-slim { flex-direction: column; text-align: center; align-items: center; padding-bottom: 70px; }
  .foot-slim nav { justify-content: center; }
  /* forms / tables / app */
  .with-side { grid-template-columns: 1fr !important; }
  .card-pad { padding: 16px; }
  .table th, .table td { padding: 9px 8px; }
  .input-group { flex-wrap: wrap; } .input-group > * { flex: 1 1 auto; }
  .app-main > h1, .app-main h1 { font-size: 1.35rem; }
  .stat .v { font-size: 1.35rem; }
  .bank { flex-direction: column; text-align: center; }
  .copy-box { flex-wrap: wrap; } .copy-box input { min-width: 0; flex: 1 1 100%; }
  .orgchart { -webkit-overflow-scrolling: touch; }
  .node { min-width: 96px; padding: 6px 8px; }
  .pd { gap: 18px; }
  .price-box { grid-template-columns: 1fr 1fr; }
  /* floating LINE button for quick contact */
  .float-line { display: flex; position: fixed; right: 14px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
    background: var(--line); color: #fff; align-items: center; justify-content: center; font: 800 .8rem var(--head); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
  .float-line:hover { color: #fff; }
}
@media (max-width: 380px) { .perks, .agent-strip .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .slide, .slide.is-brand { max-height: none; }
  .brand-logo { width: 46%; }
  .brand-cap { padding-bottom: 40px; }
  .feature { gap: 8px; } .feature .ic { width: 38px; height: 38px; } .feature .ic [data-lucide] { width: 20px; height: 20px; }
  .feature b { font-size: .88rem; } .feature span { font-size: .76rem; }
}
.crumbs.on-light, .crumbs.on-light a { color: var(--muted); }
.crumbs.on-light a:hover { color: var(--g700); }
@media (max-width: 700px) { .dots button { border-color: var(--g500); background: #fff; } .dots button.on { background: var(--g600); } }
.stat .k { padding-right: 48px; }
@media (max-width: 700px) { .stat { padding: 14px; } .stat .ic { width: 34px; height: 34px; right: 10px; top: 10px; } .stat .k { padding-right: 38px; font-size: .8rem; } }
/* Static hero (no slider): keep the whole brand column inside the picture */
.hero .slides { transform: none !important; }
.brand-cap { top: 4%; bottom: 4%; right: 3%; width: 37%; justify-content: center; overflow: visible; }
.brand-logo { max-width: 72%; max-height: 38%; object-fit: contain; }
@media (max-width: 700px) { .brand-logo { width: 64%; max-width: 280px; max-height: none; } }
@media (max-width: 700px) {
  .brand-cap { position: static; width: 100%; top: auto; bottom: auto; right: auto; padding: 14px 16px 26px; align-items: center; }
  .brush { transform: rotate(-2deg); }
}
/* Hero brand column sized from the viewport width so nothing overlaps (hero height = 1/3 of width) */
@media (min-width: 701px) {
  .brand-cap { top: 3%; bottom: 3%; gap: .45vw; }
  .brand-cap > * { flex-shrink: 0; }
  .brand-logo { height: 12.5vw; width: auto; max-width: none; max-height: none; margin-bottom: .5vw; position: relative; z-index: 2; }
  .brush { padding: .2vw 2vw; }
  .brush span { font-size: 2vw; }
  .brush.b2 span { font-size: 2.3vw; }
  .checks { gap: .4vw; margin-top: .3vw; width: 80%; }
  .checks li { font-size: 1.1vw; padding: .2vw .9vw .2vw .2vw; gap: .7vw; }
  .checks li [data-lucide] { width: 1.6vw; height: 1.6vw; min-width: 0; min-height: 0; padding: .25vw; }
}
.slide .brand-logo { object-fit: contain; }

/* ---------- Gems menu + mission story ---------- */
.mobile-nav .mnav-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px 44px; }
.mobile-nav .mnav-sub a { padding: 6px 12px; border-radius: 999px; background: var(--g50); font-size: .9rem; }
.logo, .header-actions, .account-link { flex-shrink: 0; }
.account-link .txt { white-space: nowrap; }
@media (max-width: 1500px) { .nav a { padding: 9px 9px; font-size: .92rem; gap: 4px; } .header-row { gap: 10px; } }
@media (max-width: 1440px) { .account-link .txt { display: none; } }
@media (max-width: 1240px) { .nav { display: none; } .burger { display: inline-grid; } .header-actions { margin-left: auto; } }
.story-quote { max-width: 760px; margin: 18px auto 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--g50); border-radius: 0 14px 14px 0;
  font: 500 1.12rem/1.6 var(--head); color: var(--g900); }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar .num { font: 700 .85rem var(--head); color: var(--gold); letter-spacing: .04em; }
.pillar h3 { margin: 0; }
.pillar ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink); line-height: 1.6; }
.pillar ul b { color: var(--g800); }
.story-close { max-width: 820px; margin: 28px auto 0; text-align: center; line-height: 1.75; }
.story-close .motto { display: inline-block; margin-top: 10px; font: 600 1.15rem var(--head); color: var(--g700); }
