/* ═══════════════════════════════════════════════
   Softbook – Frontend CSS  (mobile-first)
   ═══════════════════════════════════════════════ */

:root {
    --primary:      #146B77;
    --primary-dark: #0F525B;
    --accent:       #f5a623;
    --dark:         #1a2035;
    --topbar-h:     56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    height: var(--topbar-h);
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    flex: 2;
    min-width: 0;
}

/* Brand */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img { height: 42px; }   /* 56px top bar: leaves 7px above and below */

.brand-logo .brand-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -.3px;
    white-space: nowrap;
}

/* Desktop module links — hidden on mobile */
.top-modules {
    display: none;
    align-items: center;
    margin-left: 20px;
}

.top-modules a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 0 12px;
    height: var(--topbar-h);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.top-modules a:hover,
.top-modules a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Auth + hamburger */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-signin {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 4px;
    border: 1.5px solid var(--primary);
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.btn-signin:hover { background: var(--primary); color: #fff; text-decoration: none; }

.btn-signup {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 4px;
    border: 1.5px solid var(--primary);
    white-space: nowrap;
    transition: background .15s;
}

.btn-signup:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* Hamburger button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background .15s;
}

.hamburger:hover { background: #f4f6f9; }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #555;
    border-radius: 2px;
    transition: all .25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    z-index: 1099;
    padding: 8px 0 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
    background: rgba(20, 107, 119,.05);
    border-left-color: var(--primary);
}

.mobile-nav a.active { font-weight: 600; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    /* SoftBook icon pattern (as on the register panel) over the dark brand gradient */
    background:
        url('../../images/reg-pattern-dark.png') 0 0 / 288px 264px,
        linear-gradient(135deg, #0f4f59 0%, var(--primary) 45%, #1a2035 100%);
    position: relative;
    overflow: hidden;
    padding: 48px 20px 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -120px; left: 25%;
    width: 350px; height: 350px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}

/* Hero uses Bootstrap row — just fine-tune text */
.hero-text {
    position: relative;
    z-index: 1;
    text-align: center;        /* center on mobile */
}

.hero-text h1 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-text h1 span { color: var(--accent); }

.hero-text p {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-top: 14px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;   /* center on mobile */
}

.btn-hero-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    transition: background .2s, transform .2s;
    box-shadow: 0 4px 14px rgba(245,166,35,.4);
    white-space: nowrap;
}

.btn-hero-primary:hover {
    background: #e09520;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.6);
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
}

/* Mockup — hidden on xs, visible from sm */
.hero-image {
    position: relative;
    z-index: 1;
    display: none;             /* hidden xs */
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.hero-mockup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.mockup-bar {
    background: var(--dark);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red    { background: #f64e60; }
.mockup-dot.yellow { background: #ffa800; }
.mockup-dot.green  { background: #1bc5bd; }

.mockup-body { display: flex; height: 260px; }

.mockup-sidebar {
    width: 120px;
    background: #f8f9fc;
    border-right: 1px solid #eee;
    padding: 12px 0;
    flex-shrink: 0;
}

.mockup-sidebar .ms-item {
    padding: 7px 12px;
    font-size: 10px;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-sidebar .ms-item.active {
    color: var(--primary);
    background: rgba(20, 107, 119,.08);
    border-left: 2px solid var(--primary);
}

.mockup-sidebar .ms-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.mockup-sidebar .ms-item.active .ms-dot { background: var(--primary); }

.mockup-content { flex: 1; padding: 14px; overflow: hidden; }

.mockup-content .mc-label {
    font-size: 9px;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.mockup-content .mc-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.mockup-row { display: flex; gap: 8px; margin-bottom: 10px; }

.mockup-kpi { flex: 1; background: #f4f6f9; border-radius: 6px; padding: 7px 9px; }

.mkpi-label { font-size: 8px; color: #aaa; font-weight: 600; text-transform: uppercase; }
.mkpi-val   { font-size: 12px; font-weight: 700; color: var(--dark); margin-top: 2px; }
.mkpi-bar   { height: 4px; border-radius: 2px; margin-top: 5px; background: #e0e0e0; }
.mkpi-fill  { height: 100%; border-radius: 2px; }

.mockup-chart {
    background: #f4f6f9;
    border-radius: 6px;
    padding: 8px;
    height: 72px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.chart-bar {
    flex: 1;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    opacity: .7;
}

/* ══════════════════════════════════════
   FEATURE PILLS
══════════════════════════════════════ */
.feature-pills {
    background: #f4f6f9;
    padding: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #e8ecef;
}

.pill {
    background: #fff;
    border: 1.5px solid #e0e5ed;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    white-space: nowrap;
}

.pill svg { color: var(--primary); flex-shrink: 0; }

/* ══════════════════════════════════════
   RRA TRUST BANNER
══════════════════════════════════════ */
.rra-trust-banner {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    padding: 22px 16px;
}
.rra-trust-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
}
.rra-trust-logo {
    /* rra-color-transparent.png is a wide ~2:1 mark, not square — a wider box shows it bigger
       without wasted letterboxing on the top/bottom. */
    width: 130px;
    height: 65px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
}
.rra-trust-text {
    /* flex-basis:auto would size this to the unwrapped sentence's full max-content width
       (well over 760px), forcing the whole row — including both logos — onto separate
       lines. Letting it shrink and wrap internally keeps everything on one row instead. */
    flex: 1 1 260px;
    min-width: 0;
}
.rra-trust-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}
.rra-trust-text span {
    display: block;
    font-size: 12.5px;
    color: #667085;
    margin-top: 2px;
}

/* ══════════════════════════════════════
   PARTNERS MARQUEE
══════════════════════════════════════ */
.partners-section {
    background: var(--dark);
    padding: 44px 16px;
}
.partners-title {
    text-align: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
}
.partners-marquee {
    overflow: hidden;
    max-width: 1180px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    /* Track is the partner list rendered twice back-to-back (see fragments.html); scrolling
       exactly -50% moves through one full set, so the loop point is seamless. */
    animation: partners-scroll 28s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.partner-card {
    flex-shrink: 0;
    width: 190px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px 18px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.partner-card.no-link { pointer-events: none; cursor: default; }
.partner-card-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a2035;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.partner-card-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-card-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner-card-logo span { font-size: 13px; font-weight: 600; color: #667085; }

/* ══════════════════════════════════════
   MODULES GRID
══════════════════════════════════════ */
.modules-section {
    padding: 40px 16px;
    background: #fff;
}

.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 24px; font-weight: 700; }
.section-header p  { color: #666; margin-top: 8px; font-size: 14px; }

.module-tile {
    background: #fff;
    border: 1.5px solid #e8ecef;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    height: 100%;
}

.module-tile:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(20, 107, 119,.15);
    transform: translateY(-3px);
    text-decoration: none;
}

.tile-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}

.tile-title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.tile-desc  { font-size: 11.5px; color: #888; line-height: 1.55; }

/* ══════════════════════════════════════
   STATS BANNER
══════════════════════════════════════ */
.stats-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #283557 100%);
    padding: 40px 16px;
}

.stat-item { text-align: center; }
.stat-num  { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-lbl  { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section {
    background: var(--primary);
    padding: 48px 20px;
    text-align: center;
}

.cta-section h2 { font-size: 22px; font-weight: 700; color: #fff; }
.cta-section p  { color: rgba(255,255,255,.8); margin-top: 10px; font-size: 14px; }

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}

.btn-cta-primary:hover { background: #e09520; color: #fff; text-decoration: none; }

.btn-cta-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 28px;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.6);
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}

.btn-cta-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
}

/* ══════════════════════════════════════
   CONTENT PAGE HERO  (how-it-works, legal, contact …)
══════════════════════════════════════ */
.page-hero {
    background: #f7f8f6;
    border-bottom: 1px solid #e8ecef;
    padding: 34px 16px 38px;
}

.page-hero-inner { max-width: 1120px; margin: 0 auto; }

.eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: rgba(20, 107, 119,.08);
    border: 1px solid rgba(20, 107, 119,.22);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.7px;
    max-width: 620px;
}

.page-hero .lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.85;
    color: #5d6470;
    max-width: 580px;
}

.page-hero .lead + .lead { margin-top: 10px; }
.page-hero .lead a { color: var(--primary); }

/* ══════════════════════════════════════
   RWANDA NUMBERS GRID
══════════════════════════════════════ */
.numbers-section {
    background: #faf9f6;
    border-bottom: 1px solid #eceae4;
    padding: 40px 16px;
}

.numbers-inner { max-width: 1120px; margin: 0 auto; }

.numbers-head { max-width: 620px; margin-bottom: 26px; }

.numbers-head h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.7px;
}

.numbers-head p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.85;
    color: #5d6470;
}

.numbers-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.num-card {
    background: #fff;
    border: 1px solid #e6e3db;
    border-radius: 10px;
    padding: 16px 16px 18px;
}

.num-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--dark);
}

.num-lbl { font-size: 12.5px; font-weight: 700; color: var(--dark); margin-top: 8px; }
.num-note { font-size: 11.5px; line-height: 1.65; color: #8a8f98; margin-top: 6px; }

.num-card.is-accent {
    background: rgba(20, 107, 119,.05);
    border-color: rgba(20, 107, 119,.22);
}

.num-card.is-accent .num-val  { color: var(--primary-dark); }
.num-card.is-accent .num-note { color: #6f7a83; }

/* ══════════════════════════════════════
   STEPS
══════════════════════════════════════ */
.steps-section { background: #fff; padding: 40px 16px; }

.steps-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-card {
    border: 1.5px solid #e8ecef;
    border-radius: 14px;
    padding: 20px 18px;
}

.step-num { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--primary); }

.step-card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin-top: 8px; }

.step-card p { font-size: 13.5px; line-height: 1.85; color: #5d6470; margin-top: 10px; }

.step-panel {
    margin-top: 16px;
    background: #f7f9fb;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    padding: 14px 16px;
}

.step-panel-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #93a0ad;
    margin-bottom: 10px;
}

.step-panel ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.step-panel li {
    position: relative;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #4d5560;
}

.step-panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(20, 107, 119,.55);
}

/* ══════════════════════════════════════
   SPLIT SECTION + TICK / CROSS LISTS
══════════════════════════════════════ */
.split-section { background: #f7f8f6; border-top: 1px solid #e8ecef; padding: 40px 16px; }

.split-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.split-inner h2 { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.5px; }
.split-inner p  { font-size: 13.5px; line-height: 1.85; color: #5d6470; margin-top: 12px; }

.check-list, .never-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li, .never-list li {
    position: relative;
    padding-left: 30px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4d5560;
}

.check-list li::before, .never-list li::before {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.check-list li::before { content: '\2713'; background: rgba(20, 107, 119,.12); color: var(--primary-dark); }
.never-list li::before { content: '\2715'; background: rgba(246,78,96,.12); color: #f64e60; }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-section { background: #fff; padding: 40px 16px; }
.faq-inner   { max-width: 820px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid #e8ecef; }

.faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 16px 34px 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 12px;
    font-size: 19px;
    font-weight: 400;
    color: var(--primary);
}

.faq-item[open] summary::after { content: '\2013'; }

.faq-item p { font-size: 13.5px; line-height: 1.85; color: #5d6470; padding: 0 8px 18px 0; }
.faq-item p a { color: var(--primary); }

/* ══════════════════════════════════════
   INFO CARDS  (contact, apps)
══════════════════════════════════════ */
.info-section { background: #fff; padding: 40px 16px; }

.info-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.info-card {
    background: #fff;
    border: 1.5px solid #e8ecef;
    border-radius: 12px;
    padding: 20px 18px;
    height: 100%;
}

.info-card .ic-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(20, 107, 119,.1);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.info-card h3 { font-size: 14px; font-weight: 700; color: var(--dark); }
.info-card p  { font-size: 12.5px; line-height: 1.7; color: #8a8f98; margin-top: 6px; }

.info-card .ic-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.info-card .ic-link:hover { text-decoration: underline; }

.ic-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
    margin-bottom: 10px;
    background: #eef1f4;
    color: #7b8794;
}

.ic-badge.is-live { background: rgba(27,197,189,.14); color: #0d8c86; }

/* ══════════════════════════════════════
   MODULE PACK CARDS
══════════════════════════════════════ */
.packs-section { background: #fff; padding: 40px 16px; }

.packs-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pack-card {
    border: 1.5px solid #e8ecef;
    border-radius: 14px;
    padding: 20px 18px;
    background: #fff;
}

.pack-card.is-core { border-color: rgba(20, 107, 119,.35); background: rgba(20, 107, 119,.03); }

.pack-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.pack-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #93a0ad;
}

.pack-tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
    background: #eef1f4;
    color: #7b8794;
}

.pack-tag.is-required { background: rgba(20, 107, 119,.14); color: var(--primary-dark); }
.pack-tag.is-popular  { background: rgba(245,166,35,.18); color: #a96c04; }
.pack-tag.is-new      { background: rgba(27,197,189,.16); color: #0d8c86; }

.pack-card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.pack-hook { font-size: 13px; font-weight: 600; color: var(--primary-dark); margin-top: 8px; }
.pack-card p { font-size: 13.5px; line-height: 1.85; color: #5d6470; margin-top: 10px; }

.pack-who { margin-top: 16px; }

.pack-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
}

.pack-foot .pack-note { font-size: 12px; color: #93a0ad; margin-right: auto; }

/* ══════════════════════════════════════
   INSIGHTS — FILTERS, POST CARDS, SUBSCRIBE
══════════════════════════════════════ */
.posts-section { background: #fff; padding: 36px 16px 48px; }
.posts-inner   { max-width: 1120px; margin: 0 auto; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.chip {
    font-size: 12.5px;
    font-weight: 600;
    color: #5d6470;
    background: #fff;
    border: 1.5px solid #e8ecef;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}

.chip:hover { border-color: var(--primary); color: var(--primary-dark); }

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.post-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.post-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e8ecef;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    text-decoration: none;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

a.post-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(20, 107, 119,.13);
    transform: translateY(-3px);
    text-decoration: none;
}

.post-cat {
    align-self: flex-start;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
    background: rgba(20, 107, 119,.1);
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.post-card h3 { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--dark); }
.post-card p  { font-size: 12.5px; line-height: 1.7; color: #8a8f98; margin-top: 8px; }

.post-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef1f4;
    font-size: 11.5px;
    color: #93a0ad;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card.is-soon { background: #fafbfc; border-style: dashed; }
.post-card.is-soon h3 { color: #7b8794; }

.subscribe-card {
    max-width: 1120px;
    margin: 0 auto;
    background: rgba(20, 107, 119,.05);
    border: 1px solid rgba(20, 107, 119,.2);
    border-radius: 14px;
    padding: 22px 20px;
}

.subscribe-card .pack-kicker { color: var(--primary-dark); }
.subscribe-card h2 { font-size: 20px; font-weight: 800; line-height: 1.3; margin-top: 8px; }
.subscribe-card p  { font-size: 13.5px; line-height: 1.8; color: #5d6470; margin-top: 10px; }

/* ══════════════════════════════════════
   LEGAL / ARTICLE LONG-FORM PROSE
══════════════════════════════════════ */
.legal-section, .article-section { background: #fff; padding: 34px 16px 56px; }
.legal-inner, .article-inner     { max-width: 800px; margin: 0 auto; }
.article-inner { max-width: 760px; }

.article-inner h2 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; scroll-margin-top: 70px; }
.article-inner h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.article-inner p, .article-inner li { font-size: 14px; line-height: 1.9; color: #4d5560; }
.article-inner p { margin-bottom: 14px; }
.article-inner ul, .article-inner ol { margin: 0 0 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.article-inner a { color: var(--primary); }

.table-wrap { overflow-x: auto; margin: 0 0 18px; }

.data-table { width: 100%; border-collapse: collapse; min-width: 420px; }

.data-table th, .data-table td {
    font-size: 12.5px;
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid #eef1f4;
    color: #4d5560;
    white-space: nowrap;
}

.data-table th { font-weight: 700; color: var(--dark); background: #f7f9fb; }
.data-table td.num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tfoot td { font-weight: 700; color: var(--dark); background: #f7f9fb; }

.legal-meta { font-size: 12px; color: #93a0ad; }

.legal-toc {
    background: #f7f9fb;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 22px 0 8px;
}

.legal-toc-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #93a0ad;
    margin-bottom: 10px;
}

.legal-toc ol { margin: 0 0 0 18px; display: flex; flex-direction: column; gap: 7px; }
.legal-toc a  { font-size: 13px; color: var(--primary); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

.legal-inner h2 { font-size: 17px; font-weight: 700; margin: 30px 0 10px; scroll-margin-top: 70px; }
.legal-inner h3 { font-size: 14px; font-weight: 700; margin: 20px 0 8px; }
.legal-inner p, .legal-inner li { font-size: 13.5px; line-height: 1.85; color: #4d5560; }
.legal-inner p  { margin-bottom: 12px; }
.legal-inner ul, .legal-inner ol { margin: 0 0 14px 20px; display: flex; flex-direction: column; gap: 7px; }
.legal-inner a  { color: var(--primary); }

.legal-callout {
    background: rgba(20, 107, 119,.05);
    border: 1px solid rgba(20, 107, 119,.2);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0;
}

.legal-callout p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
    position: relative;
    overflow: hidden;
    /* same icon pattern as the login page: white and teal icons, alternating */
    background-color: #d5eae9;
    background-image: url('../../images/auth-pattern-duo.png');
    background-size: 144px 132px;
    border-top: 3px solid var(--accent);
    padding: 40px 20px 0;
}
/* soften the pattern so the footer text stays easy to read */
footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(213,234,233,.8);
    pointer-events: none;
    z-index: 0;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

/* ── Brand block ── */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-brand img { height: 48px; }

.footer-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.4px;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(26,32,53,.85);
    max-width: 360px;
    margin-bottom: 22px;
}

/* ── Contact rows ── */
.footer-contact { display: flex; flex-direction: column; gap: 14px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(26,32,53,.92);
    text-decoration: none;
}

.footer-contact-item:hover { color: var(--dark); text-decoration: none; }
.footer-contact-item.is-static { color: rgba(26,32,53,.8); }

.footer-ico {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(26,32,53,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-ico svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: rgba(26,32,53,.75);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-item:hover .footer-ico { background: rgba(26,32,53,.16); }

/* ── Link columns ── */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
}

.footer-col h6 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(26,32,53,.75);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-col a {
    font-size: 13.5px;
    color: var(--dark);
    text-decoration: none;
}

.footer-col a:hover { color: var(--primary); text-decoration: none; }

/* ── Bottom bar ── */
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 34px auto 0;
    border-top: 1px solid rgba(26,32,53,.15);
    padding: 16px 0 62px;   /* room for the back-to-top button on mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-copy { font-size: 12px; color: rgba(26,32,53,.75); }

.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(26,32,53,.75);
}

.footer-badges .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(26,32,53,.25);
}

/* ── Back to top ── */
.footer-top {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(26,32,53,.22);
    background: rgba(26,32,53,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-top:hover { background: rgba(26,32,53,.14); border-color: rgba(26,32,53,.4); }

.footer-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════
   BREAKPOINT: sm ≥576px
══════════════════════════════════════ */
@media (min-width: 576px) {
    .hero { padding: 56px 32px 48px; }
    .hero-text h1 { font-size: 36px; }
    .hero-image { display: flex; }   /* show mockup from sm */

    .modules-section { padding: 48px 24px; }
    .section-header h2 { font-size: 28px; }
    .stats-banner { padding: 48px 24px; }
    .stat-num { font-size: 32px; }
    .cta-section h2 { font-size: 26px; }
    .feature-pills { padding: 18px 24px; gap: 10px; }

    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid    { grid-template-columns: repeat(2, 1fr); }
    .post-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   BREAKPOINT: md ≥768px
══════════════════════════════════════ */
@media (min-width: 768px) {
    .top-bar { padding: 0 28px; }
    .btn-signup { display: inline-flex; }

    .hero { padding: 64px 40px; }
    .hero-text { text-align: left; }
    .hero-text h1 { font-size: 40px; }
    .hero-text p { font-size: 15px; }
    .hero-actions { justify-content: flex-start; }
    .hero-image { margin-top: 0; }

    .modules-section { padding: 56px 32px; }
    .section-header h2 { font-size: 30px; }
    .stats-banner { padding: 52px 32px; }
    .cta-section { padding: 56px 40px; }
    .cta-section h2 { font-size: 28px; }

    .page-hero { padding: 46px 32px 50px; }
    .page-hero h1 { font-size: 33px; }
    .numbers-section, .steps-section, .split-section, .faq-section, .info-section,
    .packs-section, .posts-section { padding: 52px 32px; }
    .legal-section, .article-section { padding: 40px 32px 64px; }

    .pack-card { padding: 26px 24px; }
    .pack-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }
    .pack-who  { margin-top: 0; }
    .subscribe-card { padding: 26px 28px; }
    .numbers-head h2 { font-size: 30px; }

    .step-card {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 26px;
        align-items: start;
        padding: 26px 24px;
    }
    .step-panel { margin-top: 0; }

    footer { padding: 48px 32px 0; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 16px 52px 22px 0;   /* keep badges clear of the back-to-top button */
    }
}

/* ══════════════════════════════════════
   BREAKPOINT: lg ≥992px — show desktop nav
══════════════════════════════════════ */
@media (min-width: 992px) {
    .top-bar { padding: 0 40px; }
    .top-modules { display: flex; }
    .hamburger { display: none; }

    .hero { padding: 72px 40px; }
    .hero-text h1 { font-size: 46px; }
    .hero-text p { font-size: 16px; max-width: 480px; }

    .modules-section { padding: 64px 40px; }
    .section-header h2 { font-size: 32px; }
    .stats-banner { padding: 56px 40px; }
    .stat-num { font-size: 36px; }
    .cta-section { padding: 64px 40px; }
    .cta-section h2 { font-size: 30px; }
    .feature-pills { padding: 20px 40px; }

    .page-hero { padding: 56px 40px 60px; }
    .page-hero h1 { font-size: 38px; }
    .numbers-section, .steps-section, .split-section, .faq-section, .info-section,
    .packs-section, .posts-section { padding: 64px 40px; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .numbers-head h2 { font-size: 32px; }
    .numbers-grid { grid-template-columns: repeat(4, 1fr); }
    .info-grid    { grid-template-columns: repeat(3, 1fr); }
    .split-inner  { grid-template-columns: 1fr 1fr; gap: 48px; }

    footer { padding: 56px 40px 0; }
    .footer-inner { grid-template-columns: 1.15fr 1.85fr; gap: 56px; }
    .footer-top { right: 32px; bottom: 26px; }
}

/* ══════════════════════════════════════
   BREAKPOINT: xl ≥1200px
══════════════════════════════════════ */
@media (min-width: 1200px) {
    .hero-text h1 { font-size: 50px; }
    .hero-mockup { max-width: 520px; }
}

/* Jump-to list of every module on /modules */
.module-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.module-index a {
    padding: 6px 14px;
    border: 1px solid rgba(20,107,119,.35);
    border-radius: 20px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.module-index a:hover { background: var(--primary); color: #fff; }
.section-header p a { color: var(--primary); font-weight: 600; }

/* Nine desktop links: tighten between 992 and 1239px so they never run under the buttons */
@media (min-width: 992px) and (max-width: 1239px) {
    .top-bar { padding: 0 16px; }
    .top-modules { margin-left: 8px; }
    .top-modules a { padding: 0 7px; font-size: 12px; }
}

/* Logo at the top of the hero mockup sidebar (the PNG carries its own white margin) */
.mockup-sidebar .ms-logo { display: block; width: 100%; max-width: 96px; height: auto; margin: 0 0 4px 2px; }
