/* =========================================================
   SaccoCloud — marketing site (Xenon-style dark + emerald)
   Self-contained: does not depend on the app stylesheet.
   ========================================================= */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/Montserrat.woff2") format("woff2");
}

:root {
    --ink:        #0a1410;
    --night:      #0c1a13;
    --night-2:    #0f231a;
    --emerald:    #008137;
    --emerald-2:  #00622c;
    --emerald-lo: #0a2a17;
    --paper:      #ffffff;
    --mist:       #f4f8f5;
    --muted:      #5b6b63;
    --line:       #e4ebe6;
    --line-dark:  rgba(255,255,255,0.10);
    --white-70:   rgba(255,255,255,0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--emerald-2);
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
    cursor: pointer; border: 1.5px solid transparent; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--emerald); color: #ffffff; box-shadow: 0 10px 24px rgba(34,197,94,.35); }
.btn-green:hover { background: #2dd36a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color:#fff; }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* True black, not the green-black --ink of .btn-dark. Used for Sign up beside
   Sign in, where the two need to read as clearly different choices. */
.btn-black { background: #000; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.btn-black:hover { background: #1a1a1a; }

/* Sign in and Sign up sit on one row, and wrap onto two on a narrow phone
   rather than being squeezed. Both stretch equally so neither looks like the
   lesser option by accident. */
/* Stacked, not side by side: signing in is what nearly everybody came to do,
   and a Sign up button of equal width beside it reads as an equal choice. */
.auth-actions { display: flex; flex-direction: column; gap: 10px; }
.auth-actions .btn { width: 100%; justify-content: center; }

/* ---------- Top nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,26,19,.82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.brand .logo {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--emerald); color: #ffffff; font-weight: 900;
}
/* Real logo image replaces the letter tile */
img.logo { width: 48px; height: 40px; border-radius: 0; object-fit: contain; display: block; background: transparent; padding: 0; }
.pauth-brand img.logo, .auth-aside img.logo { width: 48px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--white-70); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .signin { color: rgba(255,255,255,.82); font-weight: 600; font-size: 14px; padding: 8px 4px; }
.nav-cta .signin:hover { color: #fff; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
    line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, transform .12s;
}
.nav-btn:hover { transform: translateY(-1px); }
.nav-btn-ghost { border: 1.5px solid rgba(255,255,255,.26); color: #fff; }
.nav-btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.5); }
.nav-btn-green { background: var(--emerald); color: #ffffff; box-shadow: 0 8px 20px rgba(34,197,94,.30); }
.nav-btn-green:hover { background: #2dd36a; }
.nav-toggle {
    display: none; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    color: #fff; cursor: pointer; width: 42px; height: 42px; border-radius: 12px;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-menu-actions { display: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1100px 500px at 78% -8%, rgba(34,197,94,.20), transparent 60%),
        radial-gradient(700px 400px at 0% 20%, rgba(34,197,94,.08), transparent 55%),
        linear-gradient(180deg, var(--night), var(--night-2));
    color: #fff; padding: 74px 0 90px; overflow: hidden;
}
/* Full-bleed background-image banner hero */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 96px 0 104px;
    overflow: hidden;
}
.hero-banner::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 80% 0%, rgba(34,197,94,.28), transparent 55%),
        linear-gradient(180deg, rgba(8,16,12,.78), rgba(10,20,15,.90));
}
.hero-banner-inner {
    position: relative; z-index: 1;
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}
.hero-banner-inner h1 { font-size: 52px; margin: 18px 0 18px; }
.hero-banner-inner h1 .hl { color: var(--emerald); }
.hero-banner-inner p.lead { color: rgba(255,255,255,.86); font-size: 18px; max-width: 620px; margin: 0 auto 30px; }
.hero-banner-inner .hero-cta { justify-content: center; }
.hero-banner-inner .hero-trust { justify-content: center; margin-top: 34px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: 54px; margin-bottom: 20px; }
.hero h1 .hl { color: var(--emerald); }
.hero p.lead { color: var(--white-70); font-size: 18px; max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--night-2);
    margin-left: -10px; background-size: cover; background-position: center;
    display: grid; place-items: center; font-weight: 800; font-size: 13px; color:#ffffff;
}
.avatars span:first-child { margin-left: 0; }
.hero-trust .t-num { font-weight: 800; font-size: 18px; }
.hero-trust .t-sub { color: var(--white-70); font-size: 13px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
    border-radius: 26px; border: 1px solid var(--line-dark);
    box-shadow: 0 30px 70px rgba(0,0,0,.45); width: 100%; height: 420px; object-fit: cover;
}
.hero-badge {
    position: absolute; background: #fff; color: var(--ink); border-radius: 16px;
    padding: 14px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.28); display: flex; gap: 12px; align-items: center;
}
.hero-badge .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--emerald-lo); color: var(--emerald); display:grid; place-items:center; }
.hero-badge .bt { font-weight: 800; font-size: 15px; }
.hero-badge .bs { font-size: 12px; color: var(--muted); }
.hero-badge.b1 { top: 22px; left: -26px; }
.hero-badge.b2 { bottom: 26px; right: -20px; }

/* ---------- Logo/stat strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 34px 0; }
.strip .num { font-size: 30px; font-weight: 800; color: var(--emerald); }
.strip .lbl { color: var(--white-70); font-size: 13px; }

/* ---------- Section shell ---------- */
.section { padding: 92px 0; }
.section.mist { background: var(--mist); }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: 38px; margin: 14px 0 12px; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feat {
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10,20,16,.10); border-color: #cfe9d8; }
.feat .fic { width: 50px; height: 50px; border-radius: 14px; background: var(--emerald-lo); color: var(--emerald); display: grid; place-items: center; margin-bottom: 16px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }

/* Split showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 22px; box-shadow: 0 24px 60px rgba(10,20,16,.14); height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--emerald); color:#ffffff; display: grid; place-items: center; font-size: 13px; font-weight: 900; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; position: relative; }
.step .n { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--emerald); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan.pop { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; border-color: transparent; box-shadow: 0 26px 60px rgba(12,26,19,.28); transform: scale(1.03); }
.plan .tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-2); }
.plan.pop .tag { color: var(--emerald); }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan.pop .price small { color: var(--white-70); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; font-size: 14px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul .ck { color: var(--emerald); font-weight: 900; }
.plan .btn { justify-content: center; margin-top: auto; }
.pop-badge { display: inline-block; background: var(--emerald); color:#ffffff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; width: fit-content; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.quote .stars { color: #f5b301; margin-bottom: 12px; letter-spacing: 2px; }
.quote p { font-size: 15px; margin: 0 0 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; font-size: 14px; }
.quote .who span { font-size: 12px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--emerald-2), var(--emerald)); color: #ffffff; border-radius: 28px; padding: 54px; text-align: center; }
.cta-band h2 { font-size: 34px; margin-bottom: 12px; }
.cta-band p { margin: 0 0 26px; font-weight: 600; }

/* Footer */
.foot { background: var(--ink); color: var(--white-70); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line-dark); }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.foot a { display: block; color: var(--white-70); font-size: 14px; padding: 5px 0; }
.foot a:hover { color: var(--emerald); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ---------- Auth pages ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
    background:
        radial-gradient(700px 380px at 20% 10%, rgba(34,197,94,.22), transparent 60%),
        linear-gradient(180deg, var(--night), var(--night-2));
    color: #fff; padding: 54px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside .brand { margin-bottom: 40px; }
.auth-aside h2 { font-size: 34px; margin-bottom: 16px; }
.auth-aside p { color: var(--white-70); font-size: 16px; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.auth-points .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); color:#ffffff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.auth-quote { border-left: 3px solid var(--emerald); padding-left: 16px; color: var(--white-70); font-size: 14px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--mist); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 14.5px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--emerald-2); font-weight: 700; }
.auth-err { background: #fdecec; border: 1px solid #f6c8c8; color: #7f1d1d; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }
.auth-ok { background: #e9f9ef; border: 1px solid #bbe8cb; color: #14532d; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }
.auth-back { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 22px; display: inline-block; }

/* Show/hide password toggle.
   A drawn eye rather than an emoji: emoji render differently on every phone,
   and one that lands 2px off centre is the sort of thing that makes a money
   app look homemade. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px !important; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    background: none; border: 0; border-radius: 9px; cursor: pointer;
    color: var(--muted, #94a3b8); transition: color .15s ease, background .15s ease;
}
.pw-toggle svg { width: 18px; height: 18px; display: block; }
.pw-toggle:hover { color: var(--emerald-2, #16a34a); background: rgba(34,197,94,.10); }
.pw-toggle:focus-visible {
    outline: none; color: var(--emerald-2, #16a34a);
    box-shadow: 0 0 0 3px rgba(34,197,94,.28);
}
.pw-toggle.on { color: var(--emerald-2, #16a34a); }
/* A finger is not a mouse pointer: on touch there is no hover to inherit, so
   the press itself has to show. */
.pw-toggle:active { color: var(--emerald-2, #16a34a); background: rgba(34,197,94,.18); }

/* ---------- Responsive ---------- */
/* =========================================================
   Role switcher — makes it obvious which door you are using
   ========================================================= */
/* Two doors into the same building, and it has to be obvious which one you
   are standing at. The selected side is filled in e.sacco green rather than
   plain white — white on grey reads as "nothing is selected". */
.role-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: #eef2f7; border: 1px solid #e2e8f0;
    border-radius: 15px; padding: 4px; margin-bottom: 22px;
}
.role-tab {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 10px; border-radius: 11px;
    font-size: 13.8px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2;
    color: #64748b; text-decoration: none; cursor: pointer;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease;
    -webkit-tap-highlight-color: transparent;   /* the grey flash Android paints */
}
.role-tab svg { width: 17px; height: 17px; flex-shrink: 0; }

.role-tab:hover {
    color: #14532d; background: rgba(34,197,94,.10); text-decoration: none;
}
/* Touch has no hover, so the press itself has to answer. */
.role-tab:active { transform: scale(.985); background: rgba(34,197,94,.18); color: #14532d; }
.role-tab:focus-visible {
    outline: none; color: #14532d;
    box-shadow: 0 0 0 3px rgba(34,197,94,.30);
}

.role-tab.active {
    background: linear-gradient(180deg, var(--emerald, #22c55e), var(--emerald-2, #16a34a));
    color: #fff;
    box-shadow: 0 1px 2px rgba(21,128,61,.24), 0 6px 16px rgba(22,163,74,.28);
}
/* The selected side is already where you are — it should not offer to move. */
.role-tab.active:hover,
.role-tab.active:active { background: linear-gradient(180deg, var(--emerald, #22c55e), var(--emerald-2, #16a34a)); color: #fff; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .role-tab { transition: none; }
    .role-tab:active { transform: none; }
}

/* Remember-me row */
.remember-row {
    display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px;
    cursor: pointer; font-weight: 500;
}
.remember-row input[type="checkbox"] {
    width: 19px; height: 19px; margin: 1px 0 0; flex-shrink: 0;
    accent-color: #16a34a; cursor: pointer;
}
.remember-row b { display: block; font-size: 13.5px; color: #0f172a; font-weight: 700; }
.remember-row small { display: block; font-size: 12px; color: #64748b; margin-top: 1px; }

/* Powered-by line on the auth cards */
.pauth-powered, .auth-powered {
    margin-top: 18px; padding-top: 14px; border-top: 1px solid #e8ecf3;
    text-align: center; font-size: 12px; color: #94a3b8;
}
.pauth-powered b, .auth-powered b { color: #64748b; font-weight: 700; }

@media (max-width: 960px) {
    .hero-grid, .split, .auth-shell { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero h1, .hero-banner-inner h1 { font-size: 38px; }
    .hero-banner { padding: 66px 0 74px; }
    .feat-grid, .steps, .price-grid, .quotes { grid-template-columns: 1fr; }
    .strip-inner { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .plan.pop { transform: none; }
    .auth-aside { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-cta { gap: 0; }
    .nav-cta .cta-desktop { display: none; }
    .nav-links.open {
        display: flex; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: var(--night-2); padding: 10px 18px 20px; gap: 0;
        border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
        box-shadow: 0 24px 44px rgba(0,0,0,.45);
    }
    .nav-links.open > a { color: #fff; font-weight: 600; font-size: 15px; padding: 15px 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
    .nav-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
    .menu-btn { display: block; text-align: center; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15px; }
    .menu-btn.ghost { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
    .menu-btn.ghost:hover { background: rgba(255,255,255,.08); }
    .menu-btn.green { background: var(--emerald); color: #ffffff; box-shadow: 0 8px 20px rgba(34,197,94,.30); }
}
@media (max-width: 560px) {
    .hero h1, .hero-banner-inner h1 { font-size: 30px; }
    .sec-head h2 { font-size: 28px; }
    .section { padding: 62px 0; }
    .strip-inner { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 36px 22px; }
    .row-2 { grid-template-columns: 1fr; }
    .hero-badge { display: none; }
}


/* =========================================================
   Mobile hardening — auth / portal / landing
   ========================================================= */

/* Grid items refuse to shrink below their content by default, and
   "SACCO Head/Treasurer" plus a 17px icon is wider than half of a 320px
   screen — which pushed the sign-in card off the edge. */
.role-switch > * { min-width: 0; }
.role-tab { text-align: center; overflow-wrap: anywhere; }

@media (max-width: 400px) {
    .role-tab { font-size: 12.5px; padding: 10px 6px; gap: 5px; line-height: 1.25; }
    .role-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
}

@media (max-width: 340px) {
    .role-switch { grid-template-columns: 1fr; }
}

/* =========================================================================
   Registration — grouped as an organisation form
   ========================================================================= */
.reg-section {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
    font-weight: 800; color: var(--muted, #64748b);
    margin: 22px 0 10px; padding-bottom: 7px;
    border-bottom: 1px solid rgba(148, 163, 184, .28);
}
.reg-section:first-of-type { margin-top: 4px; }
.field .opt { font-weight: 500; color: var(--muted, #94a3b8); font-size: 12px; }

/* The "Powered by PledgePay" credit. A real link, but it must not shout over
   the page it sits under, so it inherits colour and only underlines on hover. */
.powered-link { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; opacity: .85; }
.powered-link:hover,
.powered-link:focus-visible { opacity: 1; text-decoration: none; }

/* ---------- Branch yes/no on signup ---------- */
.branch-choice { display: grid; gap: 10px; }
.branch-opt {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 12px 13px; border: 1.5px solid var(--line-dark, #24382c); border-radius: 12px;
    cursor: pointer; background: rgba(255,255,255,.03);
}
.branch-opt input { margin-top: 3px; width: auto; flex: none; accent-color: var(--emerald-2, #34d399); }
.branch-opt:hover { border-color: var(--emerald-2, #34d399); }
.branch-opt b { display: block; font-size: 14px; }
.branch-opt small { display: block; color: var(--muted, #9aa8a0); font-size: 12.2px; margin-top: 2px; }

/* The chosen answer should look chosen. :has() lets the card carry the state
   the radio inside it holds, so the whole card lights up rather than a dot. */
.branch-opt:has(input:checked) {
    border-color: var(--emerald-2, #34d399);
    background: rgba(52, 211, 153, .09);
}

/* ---------- Branch cards on signup ---------- */
.branch-card {
    border: 1.5px solid var(--line-dark, #24382c); border-radius: 12px;
    padding: 13px; margin-bottom: 10px; background: rgba(255,255,255,.03);
    display: grid; gap: 9px;
}
.branch-card-head { display: flex; align-items: center; justify-content: space-between; }
.branch-card-head b { font-size: 13px; letter-spacing: .01em; }
.branch-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 520px) { .branch-card-grid { grid-template-columns: 1fr; } }
.branch-card input { margin: 0; }
.branch-drop {
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
    font-size: 12.2px; color: var(--muted, #9aa8a0); text-decoration: underline;
}
.branch-drop:hover { color: #f87171; }
.branch-add {
    background: none; cursor: pointer; font: inherit; font-size: 13.2px; font-weight: 600;
    color: var(--emerald-2, #34d399);
    border: 1.5px dashed var(--line-dark, #24382c); border-radius: 12px;
    padding: 10px 13px; width: 100%; text-align: center;
}
.branch-add:hover { border-color: var(--emerald-2, #34d399); }

/* ---------- Password checklist ----------
   Shows every rule from the start, rather than revealing them one refusal at a
   time. Grey until you type, then green as each is met. */
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.pw-rules li {
    font-size: 12.4px; color: var(--muted, #94a3b8);
    display: flex; align-items: baseline; gap: 7px; transition: color .15s ease;
}
.pw-rules li span { flex: none; width: 12px; text-align: center; font-weight: 800; }
.pw-rules li.met   { color: var(--emerald-2, #16a34a); }
.pw-rules li.unmet { color: #b45309; }
.pw-match-note { font-size: 12.4px; margin-top: 5px; font-weight: 600; }
.pw-match-note.met   { color: var(--emerald-2, #16a34a); }
.pw-match-note.unmet { color: #b45309; }
