/*! First Choice Credit Union — Public marketing site */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --fccu-blue: #0b5cab;
    --fccu-blue-deep: #084a8c;
    --fccu-hero: #0b5cab;
    --fccu-green: #0f6b3c;
    --fccu-green-hover: #0c5731;
    --fccu-ink: #1a1a1a;
    --fccu-muted: #4a5568;
    --fccu-line: #e6e9ee;
    --fccu-bg: #ffffff;
}

* { box-sizing: border-box; }

body.pub-page {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--fccu-ink);
    background: var(--fccu-bg);
    -webkit-font-smoothing: antialiased;
}

.pub-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--fccu-line);
}

.pub-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pub-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 8px;
}
.pub-menu-btn:hover { background: #f3f4f6; }

.pub-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.pub-logo img { width: 28px; height: 28px; }
.pub-logo span {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pub-signin {
    background: var(--fccu-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-block;
}
.pub-signin:hover { background: var(--fccu-blue-deep); }

.pub-hero {
    background: var(--fccu-hero);
    color: #fff;
    padding: 36px 20px 40px;
}
.pub-hero-inner { max-width: 720px; margin: 0 auto; }
.pub-hero-kicker {
    font-size: 1.65rem;
    font-weight: 500;
    margin: 0 0 8px;
}
.pub-hero-kicker strong { font-weight: 800; }
.pub-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.pub-hero p {
    margin: 0 0 22px;
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 34rem;
    opacity: 0.96;
}
.pub-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pub-btn-green {
    background: var(--fccu-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}
.pub-btn-green:hover { background: var(--fccu-green-hover); }
.pub-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}
.pub-btn-outline:hover { background: rgba(255,255,255,0.1); }

.pub-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 20px;
}
.pub-section h2 {
    text-align: center;
    margin: 0 0 28px;
    font-size: 1.45rem;
    font-weight: 600;
    color: #2d3748;
}

.pub-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    text-align: center;
}
@media (min-width: 700px) {
    .pub-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pub-service {
    text-decoration: none;
    color: var(--fccu-blue);
    font-weight: 600;
    font-size: 0.95rem;
}
.pub-service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    color: #4a5568;
}
.pub-service-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.pub-cards { padding: 8px 16px 40px; max-width: 720px; margin: 0 auto; }
.pub-card {
    border: 1px solid var(--fccu-line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
}
.pub-card-head {
    background: var(--fccu-blue);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
}
.pub-card-head svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.7; }
.pub-card-body { padding: 20px 18px 22px; }
.pub-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fccu-ink);
}
.pub-card-body p {
    margin: 0 0 18px;
    color: var(--fccu-muted);
    line-height: 1.45;
    font-size: 0.98rem;
}
.pub-btn-blue {
    background: var(--fccu-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.pub-btn-blue:hover { background: var(--fccu-blue-deep); }

.pub-footer {
    border-top: 1px solid var(--fccu-line);
    padding: 28px 20px 40px;
    text-align: center;
    color: #718096;
    font-size: 0.78rem;
    line-height: 1.6;
}
.pub-footer a { color: var(--fccu-blue); text-decoration: none; font-weight: 600; }

.pub-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}
.pub-drawer.open { pointer-events: auto; }
.pub-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s;
}
.pub-drawer.open .pub-drawer-backdrop { opacity: 1; }
.pub-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding: 20px;
    box-shadow: 8px 0 30px rgba(0,0,0,0.12);
}
.pub-drawer.open .pub-drawer-panel { transform: translateX(0); }
.pub-drawer-panel a {
    display: block;
    padding: 12px 0;
    color: var(--fccu-ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--fccu-line);
}

/* Signup wizard */
.su-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}
.su-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
}
.su-progress span {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #e2e8f0;
}
.su-progress span.on { background: var(--fccu-blue); }
.su-card {
    background: #fff;
    border: 1px solid var(--fccu-line);
    border-radius: 10px;
    padding: 22px 18px;
}
.su-card h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}
.su-card .sub {
    margin: 0 0 20px;
    color: var(--fccu-muted);
    font-size: 0.95rem;
}
.su-field { margin-bottom: 14px; }
.su-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 6px;
}
.su-field input,
.su-field select,
.su-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 12px;
    font: inherit;
    font-size: 1rem;
}
.su-field input:focus,
.su-field select:focus,
.su-field textarea:focus {
    outline: 2px solid rgba(11, 92, 171, 0.25);
    border-color: var(--fccu-blue);
}
.su-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.su-actions .pub-btn-blue,
.su-actions .pub-btn-muted { flex: 1; text-align: center; }
.pub-btn-muted {
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}
.su-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: 0 0 10px;
    min-height: 1.2em;
}

/* Verify / captcha */
.vf-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(180deg, #f7fafc 0%, #eef2f7 100%);
}
.vf-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--fccu-line);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    padding: 28px 22px;
    text-align: center;
}
.vf-card h1 { margin: 0 0 8px; font-size: 1.35rem; }
.vf-card .sub { color: var(--fccu-muted); margin: 0 0 20px; font-size: 0.95rem; }
.vf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.vf-tile {
    aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 1.8rem;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.vf-tile:hover { border-color: var(--fccu-blue); }
.vf-tile.selected {
    border-color: var(--fccu-blue);
    background: #e8f1fc;
    transform: scale(0.97);
}
.vf-prompt {
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--fccu-ink);
}
