/* =========================================================
   COOP Central — Landing Page
   ========================================================= */
:root {
  --navy: #0A2A66;
  --navy-2: #0B3F9A;
  --blue: #0B57D0;
  --blue-soft: #E8F0FC;
  --green: #3A9E3A;
  --green-dark: #2E7D32;
  --green-soft: #EAF6E8;
  --green-light: #8FDB7E;
  --ink: #1F3157;
  --muted: #4A5872;
  --line: #DCE5F2;
  --bg: #FCFDFE;
  --tint: #F2F6FC;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(10, 42, 102, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 42, 102, 0.16);
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: .2em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.text-green { color: var(--green); }
.text-green-light { color: var(--green-light); }
.center { text-align: center; margin-top: 32px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .75em;
}
.eyebrow-light { color: var(--green-light); }
.lead { font-size: 1.12rem; color: var(--muted); }
.lead.light { color: #C9D8F2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 11px 20px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .step-tab:focus-visible, .nav-toggle:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7AB0FF; outline-offset: 2px;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(11, 87, 208, .28); }
.btn-primary:hover { background: #0A4DBA; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(58, 158, 58, .3); }
.btn-green:hover { background: var(--green-dark); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 253, 254, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10, 42, 102, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { width: 128px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover, .main-nav ul a.active { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.nav-actions { display: flex; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: var(--blue-soft);
  border-radius: 12px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FCFDFE 0%, #EEF4FC 55%, #E6F4E4 100%);
  padding: 56px 0 40px;
}
.hero-wave {
  position: absolute; inset: auto -10% -120px -10%; height: 340px; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 100%, rgba(58, 158, 58, .18), transparent 70%),
              radial-gradient(60% 100% at 75% 100%, rgba(11, 87, 208, .16), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-icon { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font-size: .8rem; }
.trust-icon.blue { background: var(--blue); }
.trust-icon.green { background: var(--green); }
.trust-icon.purple { background: #7C4DDB; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; height: 560px; }
.phone { position: relative; height: 100%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(10, 42, 102, .22)); }
.phone-front { order: 1; z-index: 2; margin-right: -9%; }
.phone-back { order: 2; z-index: 1; height: 86%; transform: translateY(-5%); }

.powered-strip {
  position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px 22px; margin-top: 40px; padding: 16px 24px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 18px;
  max-width: 640px;
}
.powered-label { font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.powered-amp { font-weight: 700; color: var(--muted); font-size: 1.3rem; }
.pw-nationlink { width: 190px; }
.pw-surge { width: 72px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #145C8A 100%); color: #E3ECFA; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-cta { background: linear-gradient(135deg, #0A2A66 0%, #0B4FB0 60%, #1E7A5A 100%); color: #E3ECFA; }
.section-cta h2 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.sub-title { text-align: center; margin: 56px 0 24px; font-size: 1.4rem; }

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

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); margin: 0; }
.card-icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 14px; margin-bottom: 16px; }
.card-featured { border: 2px solid var(--blue); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.card-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.card-dark p { color: #C9D8F2; }
.card-dark .card-icon { background: rgba(143, 219, 126, .16); }

/* ---------- Solution ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { background: rgba(255, 255, 255, .12); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid rgba(255, 255, 255, .2); }
.pill-green { background: var(--green); border-color: var(--green); }
.solution-icon { display: grid; place-items: center; }
.solution-icon { width: min(360px, 80%); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 22%; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); padding: 14%; }
.solution-icon img { width: 100%; height: auto; }

/* ---------- Platform ---------- */
.platform-shot, .wide-shot { background: #fff; border-radius: 24px; padding: 10px; box-shadow: var(--shadow-lg); }
.platform-shot img, .wide-shot img { border-radius: 16px; width: 100%; }
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 48px; }
.arch-box { border-radius: var(--radius); padding: 26px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.arch-box h3 { margin: 10px 0 6px; }
.arch-box p { margin: 0; font-size: .95rem; }
.arch-box img { width: 56px; height: 56px; }
.arch-emoji { font-size: 2.2rem; line-height: 56px; height: 56px; }
.arch-green { background: var(--green-soft); }
.arch-green p { color: var(--muted); }
.arch-blue { background: var(--blue-soft); }
.arch-blue p { color: var(--muted); }
.arch-navy { background: var(--navy); }
.arch-navy h3 { color: #fff; }
.arch-navy p { color: #C9D8F2; }
.arch-arrow { align-self: center; font-size: 2rem; color: var(--blue); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.step-tab {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; color: var(--ink);
  cursor: pointer; transition: all .2s ease;
}
.step-tab:hover { border-color: var(--blue); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; transition: all .2s ease; }
.step-tab.active { border-color: var(--blue); box-shadow: 0 10px 26px rgba(11, 87, 208, .18); color: var(--navy); }
.step-tab.active .step-num { background: var(--blue); color: #fff; }
.step-tab.done .step-num { background: var(--green); color: #fff; }

.step-panel {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, #fff 0%, #F4F8FE 100%); border: 1px solid var(--line);
  border-radius: 28px; padding: 44px; box-shadow: var(--shadow);
}
.step-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
.step-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.step-image { display: grid; place-items: center; }
.step-image img { max-height: 560px; width: auto; filter: drop-shadow(0 18px 28px rgba(10, 42, 102, .18)); transition: opacity .25s ease, transform .25s ease; }
.step-image img.swap { opacity: 0; transform: translateY(8px); }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Services / members ---------- */
.split-reverse { grid-template-columns: 0.8fr 1.2fr; }
.phone-single { display: grid; place-items: center; }
.phone-single img { max-height: 620px; width: auto; filter: drop-shadow(0 18px 28px rgba(10, 42, 102, .18)); }
.services-grid { margin-top: 20px; gap: 14px; }
.mini-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mini-card > span { font-size: 1.5rem; line-height: 1; flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 12px; }
.mini-card h4 { font-size: .98rem; color: var(--navy); }
.mini-card p { margin: 0; font-size: .9rem; color: var(--muted); }

.feature-rows { display: grid; gap: 18px; margin-top: 20px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row p { margin: 0; color: var(--muted); }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }
.phone-pair { display: flex; justify-content: center; align-items: center; gap: 0; min-width: 0; }
.phone-pair img { min-width: 0; flex: 0 1 auto; object-fit: contain; }
.phone-pair img { position: relative; height: 560px; width: auto; filter: drop-shadow(0 18px 28px rgba(10, 42, 102, .18)); }
.phone-pair img:first-child { z-index: 2; margin-right: -30px; height: 500px; }

/* ---------- Partners ---------- */
.coop-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.coop-types span { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }

.network-box { margin-top: 24px; background: var(--green-soft); border-radius: 16px; padding: 18px 20px; }
.network-box h4 { color: #1E5A20; }
.network-box p { margin: 0; color: #1E5A20; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.contact-list span { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border-radius: 12px; }
.contact-list a { color: #fff; font-weight: 600; word-break: break-word; }
.contact-form { background: #fff; border-radius: 24px; padding: 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); color: var(--ink); }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-row label span { color: #D93025; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FAFCFF;
}
.form-row input.invalid, .form-row select.invalid { border-color: #D93025; background: #FFF6F5; }
.form-row textarea { resize: vertical; }
.form-error { color: #C5221F; font-weight: 600; font-size: .92rem; min-height: 1.2em; margin: 0 0 10px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #071D4A; color: #B8C7E3; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 16px; border-radius: 14px; margin-bottom: 14px; }
.footer-logo img { width: 140px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #B8C7E3; word-break: break-word; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0; }
.footer-powered { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.logo-chip { background: #fff; border-radius: 10px; padding: 6px 12px; display: inline-flex; align-items: center; height: 48px; }
.logo-chip img { width: 130px; }
.logo-chip img.chip-surge { width: auto; height: 36px; }

.back-to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 87, 208, .35); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .25s ease; z-index: 90; text-decoration: none !important;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav ul { gap: 16px; }
  .main-nav ul a { font-size: .9rem; }
  .nav-actions .btn-outline { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  /* backdrop-filter makes the header a containing block for fixed children, which trapped the mobile menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FCFDFE; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--bg); padding: 20px 20px 32px; overflow-y: auto;
    opacity: 0; transform: translateY(-12px); visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav ul a.active { border-color: var(--line); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn-outline { display: inline-flex; }
  .nav-actions .btn { width: 100%; padding: 14px; }
  body.nav-open { overflow: hidden; }

  .hero-grid, .split, .split-reverse { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero-copy { text-align: center; }
  .hero-ctas, .trust-list { justify-content: center; }
  .hero-visual { height: 480px; max-width: 520px; width: 100%; margin: 0 auto; }
  .powered-strip { margin-left: auto; margin-right: auto; }
  .split-reverse .phone-single { order: 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); justify-self: center; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step-label { font-size: .8rem; }
  .step-panel { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .step-image { order: -1; }
  .step-image img { max-height: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .solution-icon { width: min(260px, 70%); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .brand img { width: 110px; }
  .hero-visual { height: 380px; }
  .hero-ctas .btn { width: 100%; }
  .powered-strip { flex-wrap: nowrap; gap: 10px; padding: 12px 14px; }
  .powered-label { font-size: .62rem; letter-spacing: .12em; }
  .powered-amp { font-size: 1rem; }
  .pw-nationlink { width: 118px; min-width: 0; }
  .pw-surge { width: 46px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 22px; }
  .card > .card-icon { grid-row: span 2; margin: 0; width: 48px; height: 48px; font-size: 1.5rem; }
  .card > h3, .card > p { grid-column: 2; }
  .card > h3 { margin-bottom: 4px; }
  .card-featured, .grid-3 .card:not(.card-dark) { display: block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .step-tab { flex: 0 0 132px; scroll-snap-align: start; }
  .step-panel { padding: 22px 18px; border-radius: 22px; }
  .step-image img { max-height: 420px; }
  .phone-single img { max-height: 480px; }
  .phone-pair img { height: 400px; }
  .phone-pair img:first-child { height: 350px; margin-right: -24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .platform-shot, .wide-shot { padding: 6px; border-radius: 18px; }
}

@media (max-width: 380px) {
  .hero-visual { height: 330px; }
  .phone-pair img { height: 330px; }
  .phone-pair img:first-child { height: 290px; }
  .trust-list { font-size: .88rem; }
}

/* ---------- Dynamic additions (PHP build) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { margin-top: 14px; background: var(--green-soft); color: #1E5A20; border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.net-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 0 auto 36px; }
.net-stats div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.net-stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue); line-height: 1.1; }
.net-stats span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.coop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; text-decoration: none !important; }
.coop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.coop-card-top { position: relative; height: 104px; }
.coop-card-top img { position: absolute; left: 18px; bottom: -30px; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid #fff; object-fit: contain; box-shadow: 0 6px 16px rgba(10,42,102,.15); }
.verified { position: absolute; top: 12px; right: 12px; background: #fff; color: #1E7A2E; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.coop-card-body { padding: 40px 18px 18px; }
.coop-card-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.coop-type { color: var(--blue); font-weight: 600; font-size: .86rem; margin: 0 0 6px; }
.coop-loc { color: var(--muted); font-size: .86rem; margin: 0; }
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: 0 18px 50px rgba(10,42,102,.25); }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.install-banner div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.install-banner strong { color: var(--navy); font-size: .95rem; }
.install-banner span { color: var(--muted); font-size: .82rem; }
.install-banner .btn { padding: 9px 16px; }
.ib-x { border: 0; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.install-ios { position: fixed; inset: auto 0 0 0; z-index: 96; padding: 12px; }
.ios-card { position: relative; max-width: 420px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.ios-card .ib-x { position: absolute; top: 8px; right: 8px; }
.ios-card h3 { margin: 0 0 6px; } .ios-card p { margin: 0; color: var(--muted); }
/* directory page */
.dir-hero { background: linear-gradient(135deg, #FCFDFE 0%, #EEF4FC 55%, #E6F4E4 100%); padding: 48px 0 28px; }
.dir-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.dir-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); margin-top: 20px; }
.dir-filters input, .dir-filters select { font: inherit; font-size: 16px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #FAFCFF; color: var(--ink); }
.dir-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; color: var(--muted); }
.dir-meta h2 { margin: 0; font-size: 1.4rem; }
.coop-card-body .coop-desc { color: var(--muted); font-size: .88rem; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 32px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; padding: 0 12px; }
.pager a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager a:hover { text-decoration: none; border-color: var(--blue); }
.coop-profile { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.coop-profile .card { padding: 28px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-head img { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #EEF2F8; padding-bottom: 10px; font-size: .95rem; }
.facts li span { color: var(--muted); }
.facts li strong { text-align: right; color: var(--navy); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips span { background: var(--blue-soft); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; }
@media (max-width: 1100px) { .coop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .dir-filters { grid-template-columns: 1fr 1fr; } .dir-filters .grow { grid-column: 1 / -1; } .coop-profile { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .coop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .coop-card-top { height: 80px; } .coop-card-top img { width: 52px; height: 52px; bottom: -24px; left: 12px; } .coop-card-body { padding: 32px 12px 14px; } .coop-card-body h3 { font-size: .92rem; } .coop-type, .coop-loc { font-size: .78rem; } .net-stats { gap: 8px; } .net-stats div { padding: 12px 6px; border-radius: 14px; } .net-stats span { font-size: .76rem; } .btn-pair .btn { width: 100%; } .verified { font-size: .66rem; padding: 2px 8px; top: 8px; right: 8px; } }
@media (max-width: 560px) { .dir-filters { grid-template-columns: 1fr; } .dir-filters .btn { width: 100%; } }
@media (max-width: 360px) { .coop-grid { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
