/* Business Growth Assessment promotions: first-visit popup (.gp) and homepage section (.gh).
   Same scoped brand tokens as the assessment (logo teal for actions, navy for headings). */

/* ---------- Popup ---------- */
.gp {
    --gp-primary: #0d7a6a;
    --gp-primary-hover: #0a6457;
    --gp-primary-soft: #eaf6f3;
    --gp-primary-line: #a8d9cf;
    --gp-navy: #0f2d52;
    --gp-text: #1f2937;
    --gp-muted: #5a6472;
    --gp-line: #e7e4dd;
    --gp-ring: rgba(13, 122, 106, 0.35);
    padding: 0; border: 0; background: transparent; color: var(--gp-text);
    width: min(880px, calc(100% - 40px)); max-width: 880px; max-height: calc(100% - 40px);
    overflow: visible; font-family: inherit;
}
.gp::backdrop { background: rgba(15, 23, 42, 0.45); }
.gp[open] { animation: gp-in 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.gp[open]::backdrop { animation: gp-fade 0.25s ease; }
@keyframes gp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gp-fade { from { opacity: 0; } to { opacity: 1; } }

.gp__card {
    position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr;
    background: #ffffff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(15, 23, 42, 0.05);
    max-height: calc(100vh - 40px);
}
.gp__aside { position: relative; background: linear-gradient(160deg, #eef7f5 0%, #f4f6f9 100%); display: grid; place-items: center; padding: 32px 28px; }
.gp--photo .gp__aside { padding: 0; background: #e9eef0; }
.gp--photo .gp__aside img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* Preview of the real first question (no stock imagery) */
.gp__preview, .gh__preview {
    width: 100%; max-width: 320px; background: #ffffff; border: 1px solid var(--gp-line, #e7e4dd); border-radius: 14px; padding: 16px;
    box-shadow: 0 12px 30px -18px rgba(15, 45, 82, 0.35); display: grid; gap: 8px; font-size: 12.5px; color: #1f2937;
}
.gp__preview-top, .gh__preview-top { display: flex; justify-content: space-between; gap: 8px; color: #5a6472; font-size: 11.5px; }
.gp__preview-cat, .gh__preview-cat { color: #0d7a6a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; }
.gp__preview-bar, .gh__preview-bar { height: 4px; border-radius: 999px; background: #eaf6f3; overflow: hidden; }
.gp__preview-bar span, .gh__preview-bar span { display: block; width: 8%; height: 100%; background: #0d7a6a; border-radius: inherit; }
.gp__preview-q, .gh__preview-q { margin: 4px 0 2px; font-size: 14px; font-weight: 600; line-height: 1.35; color: #0f2d52; }
.gp__preview-opt, .gh__preview-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #e2ded5; border-radius: 9px; line-height: 1.3; }
.gp__preview-opt b, .gh__preview-opt b { display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: #f4f4f1; font-size: 11px; color: #5a6472; }
.gp__preview-opt.is-on, .gh__preview-opt.is-on { border-color: #0d7a6a; background: #eaf6f3; box-shadow: inset 0 0 0 1px #0d7a6a; }
.gp__preview-opt.is-on b, .gh__preview-opt.is-on b { background: #0d7a6a; color: #ffffff; }

.gp__body { padding: 36px 36px 30px; display: grid; gap: 10px; align-content: center; overflow-y: auto; }
.gp__label { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gp-primary); }
.gp__title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--gp-navy); outline: none; }
.gp__sub { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--gp-text); }
.gp__desc { margin: 2px 0 0; font-size: 15px; line-height: 1.6; color: var(--gp-muted); }
.gp__facts { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 7px; }
.gp__facts li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--gp-text); }
.gp__facts svg { width: 18px; height: 18px; padding: 3px; border-radius: 999px; background: var(--gp-primary-soft); color: var(--gp-primary); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.gp__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 24px;
    border-radius: 10px; background: var(--gp-primary); color: #ffffff; font-weight: 600; font-size: 16px; text-decoration: none;
    transition: background-color .15s ease;
}
.gp__cta:hover { background: var(--gp-primary-hover); }
.gp__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gp__later {
    min-height: 44px; padding: 8px 6px; border: 0; background: none; color: var(--gp-muted);
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 8px;
}
.gp__later:hover { color: var(--gp-text); text-decoration: underline; text-underline-offset: 3px; }
.gp__note { margin: 4px 0 0; font-size: 13.5px; color: var(--gp-muted); }
.gp__close {
    position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 999px; border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.92); color: #475569; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.gp__close:hover { background: #f1f5f9; color: var(--gp-text); }
.gp__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Keyboard users get a clear ring; pointer users never see one. */
.gp :focus { outline: none; }
.gp :focus-visible { outline: 3px solid var(--gp-ring); outline-offset: 2px; }
.gp__title:focus-visible { outline: none; }

/* Small screens: a purpose-built bottom sheet that keeps the page visible above it. */
@media (max-width: 640px) {
    .gp { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; }
    .gp__card { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; max-height: 92vh; }
    .gp__aside { display: none; }
    .gp--photo .gp__aside { display: block; height: 150px; }
    .gp__body { padding: 26px 20px 22px; gap: 8px; }
    .gp__body::before { content: ''; justify-self: center; width: 40px; height: 4px; border-radius: 999px; background: #d9dde3; margin: -12px 0 6px; }
    .gp__title { font-size: 23px; padding-right: 36px; }
    .gp__sub { font-size: 15.5px; }
    .gp__desc { font-size: 14.5px; }
    .gp__facts { grid-template-columns: 1fr; gap: 6px; }
    .gp__facts li { font-size: 14px; }
    .gp__actions { flex-direction: column; align-items: stretch; gap: 4px; }
    .gp__cta { width: 100%; }
    .gp__note { text-align: center; }
    .gp__close { top: 10px; right: 10px; background: #f3f4f6; }
    .gp--photo .gp__close { top: 10px; }
    .gp[open] { animation-name: gp-up; }
    @keyframes gp-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 640px) and (max-height: 640px) {
    .gp--photo .gp__aside { display: none; }
    .gp__facts { display: none; }
}

/* ---------- Homepage section ---------- */
.gh-section {
    --gh-primary: #0d7a6a; --gh-primary-hover: #0a6457; --gh-primary-ink: #ffffff; --gh-primary-soft: #eaf6f3;
    padding: 72px 0;
}
:root:not([data-theme="light"]) .gh-section { --gh-primary: #2fb8a2; --gh-primary-hover: #45c9b4; --gh-primary-ink: #04211c; --gh-primary-soft: rgba(47, 184, 162, 0.14); }
.gh {
    display: grid; gap: 32px; align-items: center;
    border: 1px solid var(--border); border-radius: 20px; background: var(--card-glass); padding: 28px;
}
.gh__body { display: grid; gap: 14px; align-content: center; }
.gh__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gh-primary); }
.gh__body h2 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.gh__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 560px; }
.gh__benefits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.gh__benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; font-weight: 500; line-height: 1.5; color: var(--text); }
.gh__benefits svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 999px; background: var(--gh-primary-soft); fill: none; stroke: var(--gh-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gh__facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gh__facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-hover); font-size: 13.5px; font-weight: 600; color: var(--text); }
.gh__facts svg { width: 15px; height: 15px; fill: none; stroke: var(--gh-primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gh__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.gh__btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 14px 26px; border-radius: 10px;
    background: var(--gh-primary); color: var(--gh-primary-ink); font-weight: 600; font-size: 16px; text-decoration: none;
    transition: background-color .15s ease;
}
.gh__btn:hover { background: var(--gh-primary-hover); }
.gh__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gh__btn:focus-visible { outline: 3px solid rgba(13, 122, 106, 0.4); outline-offset: 3px; }
.gh__note { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.gh__media { display: grid; place-items: center; min-height: 100%; border-radius: 16px; padding: 28px; background: linear-gradient(160deg, #eef7f5 0%, #f4f6f9 100%); }
:root:not([data-theme="light"]) .gh__media { background: linear-gradient(160deg, rgba(47, 184, 162, 0.10), rgba(255, 255, 255, 0.03)); }
.gh--photo .gh__media { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #e9eef0; }
.gh--photo .gh__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gh__preview { max-width: 380px; font-size: 13px; padding: 18px; }
.gh__preview-q { font-size: 15px; }

@media (min-width: 900px) {
    .gh { grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 36px 36px 36px 40px; }
}
@media (max-width: 560px) {
    .gh-section { padding: 48px 0; }
    .gh { padding: 22px 18px; gap: 24px; }
    .gh__media { padding: 18px; }
    .gh--photo .gh__media { aspect-ratio: 16 / 10; }
    .gh__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .gp[open], .gp[open]::backdrop { animation: none !important; }
    .gp *, .gh * { transition: none !important; }
}
