
:root{
  --bg:#FFFFFF;
  --bg2:#F8F9FA;
  --surface:#F8F9FA;
  --surface2:#FFFFFF;
  --text:#1A1A1A;
  --muted:#6C757D;
  --primary:#25D366;
  --accent:#128C7E;
  --border:rgba(18, 140, 126, 0.16);
  --shadow:0 22px 70px rgba(16, 24, 40, 0.10);
  --radius:12px;
  --radius-lg:22px;
  --radius-xl:30px;
  --container:min(1160px, calc(100vw - 32px));
  --transition: all .28s ease;
}

html[data-theme="trust-deep"]{
  --bg:#0F172A;
  --bg2:#111827;
  --surface:#1E293B;
  --surface2:#334155;
  --text:#F8FAFC;
  --muted:#94A3B8;
  --primary:#34D399;
  --accent:#38BDF8;
  --border:rgba(148, 163, 184, 0.14);
  --shadow:0 22px 70px rgba(2, 6, 23, 0.35);
  --radius:12px;
}
html[data-theme="luxe-white-gold"]{
  --bg:#FFFDF7;
  --bg2:#FFFAF0;
  --surface:#FFFFFF;
  --surface2:#FDF6E7;
  --text:#1E1A12;
  --muted:#766C54;
  --primary:#C8A34A;
  --accent:#E5C46A;
  --border:rgba(200, 163, 74, 0.18);
  --shadow:0 24px 70px rgba(69, 53, 17, 0.10);
  --radius:16px;
}
html[data-theme="township-vibe"]{
  --bg:#0B120E;
  --bg2:#07100C;
  --surface:#121D17;
  --surface2:#18261F;
  --text:#F4FFF7;
  --muted:#AAC0B0;
  --primary:#27D07D;
  --accent:#F5A524;
  --border:rgba(39, 208, 125, 0.14);
  --shadow:0 24px 70px rgba(0, 0, 0, 0.34);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 18%, transparent), transparent 28%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  min-height:100vh;
  overflow-x:hidden;
}

h1,h2,h3,h4,.brand-name,.footer-brand,.admin-brand strong{
  font-family:"Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing:-.03em;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
::selection{background:color-mix(in srgb, var(--primary) 30%, transparent)}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size:40px 40px;
  opacity:.10;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.65), transparent 82%);
}

.container{width:var(--container); margin:0 auto}
.section{padding:76px 0}
.section-soft{
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 48%, var(--bg) 52%), color-mix(in srgb, var(--surface) 26%, var(--bg) 74%));
}
.hero{padding-top:34px}
.hero-small{padding-top:30px}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:24px;
  align-items:center;
}
.hero-copy{padding:16px 0}
.hero-title{
  margin:16px 0 14px;
  max-width:12ch;
  font-size:clamp(2.4rem, 6vw, 5.4rem);
  line-height:.94;
}
.hero-lead{
  margin:0;
  max-width:66ch;
  color:var(--muted);
  font-size:1.06rem;
  line-height:1.72;
}
.hero-note{
  margin:14px 0 0;
  color:var(--text);
  font-weight:700;
  font-size:1rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.inline-actions{display:flex; gap:10px; flex-wrap:wrap}

.eyebrow, .kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 65%, transparent);
  color:var(--muted);
  font-size:.92rem;
}
.eyebrow-dot{
  width:10px; height:10px; border-radius:999px;
  background:var(--primary);
  box-shadow:0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent);
}

.topbar{
  position:sticky;
  top:0;
  z-index:90;
  backdrop-filter:blur(20px);
  background:color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom:1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.topbar-inner{
  width:var(--container);
  margin:0 auto;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-mark{
  width:48px; height:48px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 14px 28px rgba(0,0,0,.16);
  background:var(--surface);
  flex:0 0 auto;
}
.brand-mark img{width:100%; height:100%; object-fit:cover}
.brand-copy{display:flex; flex-direction:column; min-width:0}
.brand-name{font-size:1.08rem; font-weight:800; line-height:1.1}
.brand-tagline{
  color:var(--muted);
  font-size:.88rem;
  line-height:1.2;
  margin-top:2px;
  max-width:34ch;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px;
  border:1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius:999px;
  background:color-mix(in srgb, var(--surface) 60%, transparent);
}
.nav-links a{
  padding:10px 13px;
  border-radius:999px;
  color:var(--muted);
  font-weight:700;
  font-size:.94rem;
  white-space:nowrap;
}
.nav-links a.active, .nav-links a:hover{
  color:var(--text);
  background:color-mix(in srgb, var(--surface2) 80%, transparent);
}
.nav-cta{display:flex; align-items:center; gap:10px}
.mobile-hide{display:inline-flex}
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:0 16px 0 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  transition:var(--transition);
}
.theme-toggle:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.toggle-dot{
  width:18px; height:18px; border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow:0 0 0 6px color-mix(in srgb, var(--primary) 14%, transparent);
}
.toggle-label{font-weight:800; font-size:.92rem}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid transparent;
  font-weight:800;
  transition:var(--transition);
  cursor:pointer;
  background:linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--accent) 75%, var(--primary)));
  color:#07110b;
  box-shadow:0 16px 32px color-mix(in srgb, var(--primary) 24%, transparent);
}
.btn:hover{transform:translateY(-1px); box-shadow:0 18px 35px color-mix(in srgb, var(--primary) 28%, transparent)}
.btn.soft{
  background:color-mix(in srgb, var(--surface) 75%, transparent);
  color:var(--text);
  border-color:var(--border);
  box-shadow:none;
}
.btn.soft:hover{background:color-mix(in srgb, var(--surface2) 84%, transparent)}
.btn.ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border);
  box-shadow:none;
}

.menu-toggle{
  display:none;
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-size:1.35rem;
}
.menu-panel{
  display:none;
  width:min(1160px, calc(100vw - 32px));
  margin:0 auto 16px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:22px;
  background:color-mix(in srgb, var(--surface) 75%, transparent);
  box-shadow:var(--shadow);
}
.menu-panel a{
  display:block;
  padding:14px 14px;
  border-radius:14px;
  color:var(--text);
  font-weight:700;
}
.menu-panel a:hover{background:color-mix(in srgb, var(--surface2) 80%, transparent)}

.grid-2,.grid-3,.grid-4,.grid-5{
  display:grid;
  gap:18px;
}
.grid-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.grid-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
.grid-4{grid-template-columns:repeat(4, minmax(0, 1fr))}
.grid-5{grid-template-columns:repeat(5, minmax(0, 1fr))}

.card{
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 76%, transparent), color-mix(in srgb, var(--surface2) 94%, transparent));
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.card.pad{padding:22px}
.feature-card{padding:24px}
.feature-card h3{margin:10px 0 10px; font-size:1.38rem}
.feature-card p{color:var(--muted); line-height:1.7; margin:0}
.value-card{
  padding:26px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--surface2) 94%, transparent));
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  min-height:100%;
}
.value-card h3{margin:0 0 12px; font-size:1.35rem}
.value-card p{margin:0; color:var(--muted); line-height:1.75}

.stat-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px}
.stat-card{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:100%;
}
.stat-number{
  font-family:"Plus Jakarta Sans", Inter, sans-serif;
  font-size:clamp(2rem, 4vw, 3rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.04em;
  color:var(--primary);
}
.stat-card .card-title{margin:0; font-size:1.15rem}
.stat-card .card-text{margin:0; color:var(--muted); line-height:1.7}

.hero-bullets{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.hero-bullet{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:color-mix(in srgb, var(--surface) 78%, transparent);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:.92rem;
  font-weight:700;
}
.hero-bullet b{color:var(--text)}

.whatsapp-icon{width:18px; height:18px; flex:0 0 auto}

.mockup-shell{
  position:relative;
  border-radius:34px;
  overflow:hidden;
  min-height:560px;
  border:1px solid color-mix(in srgb, var(--border) 90%, transparent);
  background:var(--surface);
}
.mockup-shell img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:560px;
}
.mockup-shell::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.34));
}
.mockup-badge{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:20px;
  background:rgba(6,12,8,.72);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  backdrop-filter:blur(14px);
}
.mockup-badge .mini-dot{
  width:14px; height:14px; border-radius:999px;
  background:var(--primary);
  box-shadow:0 0 0 6px color-mix(in srgb, var(--primary) 22%, transparent);
}
.mockup-badge strong{display:block; font-size:1rem}
.mockup-badge small{display:block; color:rgba(255,255,255,.74)}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.pill{
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:color-mix(in srgb, var(--surface) 72%, transparent);
  color:var(--muted);
  font-size:.92rem;
  font-weight:600;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:18px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.55rem, 2.4vw, 2.3rem);
  line-height:1.08;
}
.section-head p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.7;
  max-width:68ch;
}

.check-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:12px;
}
.check-list li{
  position:relative;
  padding-left:28px;
  color:var(--text);
  line-height:1.6;
}
.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--primary);
  font-weight:900;
}

.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.chip{
  padding:12px 16px;
  border-radius:999px;
  background:color-mix(in srgb, var(--surface) 82%, transparent);
  border:1px solid var(--border);
  font-weight:700;
  color:var(--text);
}

.feed-panel{
  padding:18px;
  border-radius:var(--radius-xl);
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 68%, transparent);
  box-shadow:var(--shadow);
}
.feed-title{
  margin:0 0 14px;
  font-family:"Plus Jakarta Sans", Inter, sans-serif;
  font-size:1.1rem;
  font-weight:800;
}
.card-stack{
  display:grid;
  gap:14px;
}
.article-card{
  padding:18px;
  border-radius:20px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface2) 82%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
}
.article-card h3{
  margin:0 0 8px;
  font-size:1.2rem;
}
.article-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.meta-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:.92rem;
  margin-bottom:10px;
}
.article-body{
  margin-top:12px;
  color:var(--text);
  line-height:1.7;
}
.article-media{
  margin-top:14px;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--border);
  background:#000;
}
.article-media video,
.article-media audio{
  width:100%;
  display:block;
}
.article-tag{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:color-mix(in srgb, var(--primary) 15%, transparent);
  color:var(--text);
  font-weight:700;
  font-size:.88rem;
}

.cta-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:28px;
  border-radius:var(--radius-xl);
  border:1px solid var(--border);
  background:linear-gradient(135deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--surface2) 92%, transparent));
  box-shadow:var(--shadow);
}
.cta-panel h2{
  margin:0;
  font-size:clamp(1.6rem, 3vw, 2.5rem);
  line-height:1.08;
}
.cta-panel p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.7;
}
.cta-actions{display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-end}

.footer{
  padding:34px 0 40px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg2) 94%, transparent));
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:24px;
}
.footer-brand{
  font-size:1.15rem;
  font-weight:900;
}
.footer-note, .footer-legal{
  color:var(--muted);
  line-height:1.7;
  margin:10px 0 0;
  max-width:54ch;
}
.footer-links{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 18px;
}
.footer-links a, .footer-copy div{
  color:var(--muted);
  line-height:1.6;
}
.footer-links a:hover{color:var(--text)}
.footer-copy{
  text-align:right;
  display:grid;
  gap:10px;
}

.floating-help{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:120;
  display:flex;
  align-items:center;
  gap:12px;
  max-width:min(360px, calc(100vw - 32px));
  padding:14px 16px;
  border-radius:22px;
  background:color-mix(in srgb, var(--surface) 80%, transparent);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}
.floating-help .bubble{
  width:48px; height:48px;
  display:grid; place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#07110b;
  font-size:1.3rem;
  font-weight:900;
  flex:0 0 auto;
}
.help-copy strong{display:block; font-size:1rem}
.help-copy small{display:block; color:var(--muted); line-height:1.45; margin-top:3px}

/* admin */
.admin-shell{padding:30px 0 56px}
.admin-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.admin-rail{
  position:sticky;
  top:92px;
  display:grid;
  gap:10px;
  padding:16px;
  border-radius:24px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow:var(--shadow);
}
.admin-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 8px 14px;
  border-bottom:1px solid var(--border);
  margin-bottom:4px;
}
.admin-brand img{
  width:48px; height:48px; border-radius:14px; object-fit:cover;
}
.admin-brand strong{display:block; font-size:1.05rem}
.admin-brand span{display:block; color:var(--muted); font-size:.9rem}
.admin-link{
  width:100%;
  text-align:left;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  font-weight:800;
}
.admin-link.active, .admin-link:hover{
  color:var(--text);
  background:color-mix(in srgb, var(--surface2) 74%, transparent);
  border-color:var(--border);
}
.admin-main{min-width:0}
.admin-login{
  padding:28px;
}
.admin-login h1{
  margin:12px 0 10px;
  font-size:clamp(2rem, 4vw, 3rem);
  line-height:1;
}
.admin-login p{color:var(--muted); line-height:1.7}
.admin-note{
  margin-top:16px;
  color:var(--muted);
}
.admin-dashboard{
  display:grid;
  gap:18px;
}
.admin-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.admin-topbar h2{margin:0}
.admin-grid{
  display:grid;
  gap:18px;
}
.admin-section{
  display:none;
}
.admin-section.active{
  display:block;
}
.section-head small{
  color:var(--muted);
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.field{display:grid; gap:8px}
.field.span-2{grid-column:1 / -1}
.field label{
  font-size:.93rem;
  font-weight:800;
  color:var(--text);
}
.input, .textarea, select.input{
  width:100%;
  min-height:48px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--bg) 76%, var(--surface) 24%);
  color:var(--text);
  outline:none;
}
.textarea{min-height:116px; resize:vertical}
.input:focus, .textarea:focus, select.input:focus{
  border-color:color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}
.input.file{
  padding:12px 14px;
  min-height:52px;
}
.color-input{
  padding:8px 10px;
  min-height:52px;
}
.helper-card{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface2) 70%, transparent);
}
.helper-card strong{display:block; margin-bottom:6px}
.helper-card p{margin:0; color:var(--muted); line-height:1.6}
.theme-samples{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}
.theme-card{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 80%, transparent);
  cursor:pointer;
}
.theme-card.active{
  box-shadow:0 0 0 2px var(--primary) inset;
}
.theme-swatch{
  height:56px;
  border-radius:14px;
  border:1px solid var(--border);
  margin-bottom:12px;
}
.theme-card strong{display:block; margin-bottom:4px}
.theme-card span{display:block; color:var(--muted); line-height:1.5; font-size:.92rem}
.custom-theme{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}
.file-btn{position:relative; overflow:hidden}
.hidden{display:none !important}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 75%, transparent);
  color:var(--muted);
  font-size:.92rem;
}
.card-list{display:grid; gap:14px; margin-top:16px}
.item-card{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 78%, transparent);
}
.item-card h4{margin:0 0 8px}
.item-card p{margin:0; color:var(--muted); line-height:1.6}
.item-actions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:12px;
}
.item-actions button{
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface2) 80%, transparent);
  color:var(--text);
  font-weight:800;
}

.article-stack .article-card h3{font-size:1.3rem}
.article-stack .article-card .article-body{white-space:pre-wrap}
.article-stack .article-card .article-meta{color:var(--muted)}
.article-stack .article-card .article-media{margin-top:12px}
.article-stack .article-card .article-media iframe{
  width:100%;
  min-height:280px;
  border:0;
  display:block;
}
.article-stack .article-card .article-media video{max-height:560px; object-fit:cover}

.muted{color:var(--muted)}
.split{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px}
.mission-grid .card{min-height:100%}

@media (max-width: 1120px){
  .nav-links{display:none}
  .menu-toggle{display:inline-grid; place-items:center}
  .mobile-hide{display:none}
  .menu-panel.open{display:block}
  .hero-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .grid-4{grid-template-columns:repeat(2, minmax(0,1fr))}
  .grid-5{grid-template-columns:repeat(2, minmax(0,1fr))}
  .admin-layout{grid-template-columns:1fr}
  .admin-rail{position:static; grid-template-columns:repeat(3, minmax(0,1fr))}
  .theme-samples, .custom-theme{grid-template-columns:repeat(2, minmax(0,1fr))}
}

@media (max-width: 820px){
  .section{padding:58px 0}
  .hero-title{max-width:100%; font-size:clamp(2.2rem, 10vw, 3.6rem)}
  .topbar-inner{min-height:72px}
  .nav-cta .btn.soft{display:none}
  .grid-3, .grid-2, .split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-copy{text-align:left}
  .cta-panel{flex-direction:column; align-items:flex-start}
  .cta-actions{justify-content:flex-start}
  .mockup-shell{min-height:460px}
  .mockup-shell img{min-height:460px}
  .floating-help{max-width:calc(100vw - 32px)}
  .theme-samples, .custom-theme{grid-template-columns:1fr}
  .admin-rail{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .field.span-2{grid-column:auto}
}

@media (max-width: 520px){
  .topbar-inner{gap:12px}
  .brand-tagline{display:none}
  .theme-toggle .toggle-label{display:none}
  .theme-toggle{padding:0 12px}
  .btn{width:auto}
  .hero-actions .btn, .hero-actions .btn.soft{flex:1 1 100%}
  .floating-help .help-copy small{display:none}
}


/* KaziPass production polish */
.hidden-admin-zone{
  position:fixed;
  right:0;
  bottom:0;
  width:76px;
  height:76px;
  z-index:10000;
  opacity:0;
  border:0;
  background:transparent;
}
.mockup-shell{
  min-height:auto;
  aspect-ratio:1 / 1;
}
.mockup-shell img{
  display:block;
  min-height:auto;
  aspect-ratio:1 / 1;
  object-fit:cover;
}
.mockup-shell::after{
  background:linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.28));
}
.brand-mark img{object-fit:cover}
@media (max-width: 820px){
  .mockup-shell{min-height:auto; aspect-ratio:1 / 1; border-radius:28px;}
  .mockup-shell img{min-height:auto; aspect-ratio:1 / 1;}
}
@media (max-width: 520px){
  .hero{padding-top:22px}
  .hero-title{font-size:clamp(2.35rem, 12vw, 3.9rem); letter-spacing:-.07em;}
  .hero-lead{font-size:1rem; line-height:1.62;}
  .hero-note{font-size:.95rem;}
}
