/* General Pharma verification page styles (see DESIGN_SPEC.md).
   Loaded after Bootstrap 4, which the result panel still relies on.
   Class names and ids read by index.php and its script are styled, never renamed. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,600;0,800;1,300;1,400&display=swap');

/* ── 1. Foundation ─────────────────────────────────────────────────────── */

:root {
    --gp-blue: #005fb0;
    --gp-blue-dark: #003f78;
    --gp-blue-50: #eaf2fa;
    --gp-blue-100: #cfe0f1;
    --gp-sky: #6fb6ff;
    --gp-ink: #0a1726;
    --gp-mute: #5a6a7a;
    --gp-line: #e4e8ec;
    --gp-cream: #f5f7fa;

    --gp-ok: #2a9f55;
    --gp-warn: #c98a00;
    --gp-danger: #c8372d;

    --gp-font-heading: "Archivo", system-ui, sans-serif;
    --gp-font-body: "Montserrat", system-ui, sans-serif;

    --gp-pad: 48px;
    --gp-container: 1450px;
}

/* Montserrat is set on every element, so the heading face has to be named
   on each element that uses it rather than inherited. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--gp-font-body);
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #fff;
    color: var(--gp-ink);
    font-size: 15px;
    line-height: 1.55;
}

.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
}

/* Scroll-in animation. The page script adds .is-inViewport when an element
   with [data-inviewport] enters the viewport. */
[data-inviewport] {
    opacity: 0;
    transform: translateY(16px);
    transition-property: transform, opacity;
    transition-timing-function: ease-out;
    transition-duration: 0.6s;
}

[data-inviewport].is-inViewport {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-inviewport] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

::selection {
    background: rgba(0, 95, 176, 0.25);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gp-blue);
    outline-offset: 2px;
}

.gp-kicker,
.gp-kicker * {
    font-family: var(--gp-font-heading);
}

.gp-kicker {
    display: block;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gp-blue);
}

.gp-card {
    background: #fff;
    border: 1px solid var(--gp-line);
    border-radius: 0;
    padding: 32px;
}

@media (max-width: 960px) {
    :root {
        --gp-pad: 24px;
    }
}

@media (max-width: 560px) {
    :root {
        --gp-pad: 16px;
    }
}

/* ── 2. Header ─────────────────────────────────────────────────────────── */

/* Fixed to the top; the page script reads its height to offset scrolling. */
.sticky-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--gp-line);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px var(--gp-pad);
}

.logo-container img {
    width: auto;
    height: 44px;
}

.header-logo-button {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.header-logo-button:focus-visible {
    outline: 2px solid var(--gp-blue);
    outline-offset: 4px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 0;
    border-radius: 0;
    background: var(--gp-ink);
    color: #fff;
    font-family: var(--gp-font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
}

.header-btn:hover {
    background: var(--gp-blue);
    color: #fff;
    text-decoration: none;
}

.header-btn:active {
    background: var(--gp-blue-dark);
}

.header-btn i {
    font-size: 11px;
}

@media (max-width: 600px) {
    .header-container {
        padding: 10px var(--gp-pad);
        gap: 12px;
    }

    .logo-container img {
        height: 34px;
    }

    .header-btn {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.08em;
        gap: 6px;
    }
}

/* ── 3. Hero ───────────────────────────────────────────────────────────── */

:root {
    --gp-header-h: 73px;
}

.gp-hero {
    position: relative;
    overflow: hidden;
    background: var(--gp-blue-dark);
    color: #fff;
}

/* Lighter right-hand panel behind the card */
.gp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    background: linear-gradient(180deg, #004e92 0%, var(--gp-blue) 100%);
    pointer-events: none;
}

/* Fine grid plus two soft orbs */
.gp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 94% 2%, rgba(111, 182, 255, 0.22), transparent 30%),
        radial-gradient(circle at 18% 100%, rgba(255, 255, 255, 0.07), transparent 24%);
    background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
    pointer-events: none;
}

.gp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(var(--gp-header-h) + 48px) var(--gp-pad) 48px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.gp-hero-copy,
.gp-hero-form {
    min-width: 0;
}

.gp-serial {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.gp-serial span {
    font-family: var(--gp-font-heading);
    font-size: 11px;
    text-transform: uppercase;
}

.gp-serial-num {
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--gp-sky);
}

.gp-serial-rule {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.gp-serial-label {
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.6);
}

.gp-hero-title,
.gp-hero-title span,
.gp-hero-title em {
    font-family: var(--gp-font-heading);
}

.gp-hero-title {
    margin: 0 0 24px;
    font-size: clamp(40px, 4.6vw, 68px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}

.gp-hero-title span {
    color: var(--gp-sky);
}

.gp-hero-title em {
    display: block;
    margin-top: 10px;
    font-size: 0.647em;
    font-style: italic;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--gp-blue-100);
}

.gp-hero-desc {
    max-width: 500px;
    margin: 0 0 44px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.gp-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.gp-stat strong,
.gp-stat span {
    display: block;
    font-family: var(--gp-font-heading);
}

.gp-stat strong {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.gp-stat span {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Verification card ── */

.gp-hero-form {
    position: relative;
}

.gp-ribbon {
    position: absolute;
    top: -14px;
    left: 32px;
    z-index: 2;
    padding: 8px 18px;
    background: var(--gp-sky);
    color: var(--gp-blue-dark);
    font-family: var(--gp-font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gp-verify-card {
    position: relative;
    padding: 50px 44px 36px;
    background: #fff;
    color: var(--gp-ink);
    box-shadow: 0 50px 100px rgba(0, 20, 50, 0.4);
}

.gp-verify-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gp-blue-dark) 0%, var(--gp-blue) 50%, var(--gp-sky) 100%);
}

.gp-verify-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.gp-verify-head .gp-kicker {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.24em;
}

.gp-verify-title {
    margin: 0;
    font-family: var(--gp-font-heading);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--gp-ink);
}

.gp-verify-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--gp-blue-50);
    color: var(--gp-blue);
    font-size: 22px;
}

.gp-verify-sub {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gp-mute);
}

.gp-field-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 10px;
}

.gp-field-label {
    margin: 0;
    font-family: var(--gp-font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gp-mute);
}

/* The page script writes neon inline colours onto this badge (tuned for the
   old dark card), so the colours are pinned here. The ready state is picked
   up from the icon the script inserts. */
.gp-hero .input-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    color: var(--gp-blue) !important;
    font-family: var(--gp-font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gp-hero .input-status-badge:has(.fa-check-circle) {
    color: var(--gp-ok) !important;
}

.gp-code-field {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: stretch;
    margin-bottom: 28px;
    border: 1.5px solid var(--gp-line);
    transition: border-color 0.2s;
}

.gp-code-field:focus-within {
    border-color: var(--gp-blue);
}

.gp-code-icon {
    display: grid;
    place-items: center;
    background: var(--gp-blue-50);
    border-right: 1.5px solid var(--gp-line);
    color: var(--gp-blue);
    font-size: 18px;
}

.gp-hero .code-input {
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: var(--gp-ink);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.gp-hero .code-input::placeholder {
    color: #9aa7b4;
    font-size: 16px;
    font-weight: 400;
    opacity: 1;
}

.gp-hero .verify-btn,
.gp-hero .verify-btn span {
    font-family: var(--gp-font-heading);
}

.gp-hero .verify-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 22px 26px;
    border: 0;
    border-radius: 0;
    background: var(--gp-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.gp-hero .verify-btn:hover {
    background: var(--gp-blue-dark);
    box-shadow: none;
    transform: none;
}

.gp-hero .verify-btn .fa-arrow-right {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    letter-spacing: 0;
}

/* While submitting, the script swaps the label for a spinner and text */
.gp-hero .verify-btn:disabled {
    justify-content: flex-start;
    background: var(--gp-blue-dark);
    opacity: 0.8;
    cursor: wait;
}

.gp-site-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-blue);
    text-align: center;
    text-decoration: none;
}

.gp-site-link:hover {
    color: var(--gp-blue-dark);
    text-decoration: underline;
}

.gp-site-link i {
    font-size: 11px;
}

.gp-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gp-line);
    font-size: 13px;
    color: var(--gp-mute);
}

.gp-privacy i {
    color: var(--gp-blue);
}

@media (max-width: 1200px) {
    .gp-hero-inner {
        gap: 48px;
    }

    .gp-stats {
        gap: 28px;
    }
}

@media (max-width: 960px) {
    .gp-hero::before {
        display: none;
    }

    .gp-hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
        min-height: 0;
        padding-top: calc(var(--gp-header-h) + 40px);
        padding-bottom: 56px;
    }

    .gp-hero-title {
        font-size: clamp(40px, 8.5vw, 60px);
    }
}

@media (max-width: 600px) {
    :root {
        --gp-header-h: 55px;
    }
}

@media (max-width: 560px) {
    .gp-hero-inner {
        gap: 44px;
        padding-top: calc(var(--gp-header-h) + 28px);
        padding-bottom: 40px;
    }

    .gp-serial {
        margin-bottom: 24px;
    }

    .gp-hero-desc {
        margin-bottom: 32px;
        font-size: 15px;
    }

    .gp-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        padding-top: 22px;
    }

    .gp-stat strong {
        font-size: 20px;
    }

    .gp-stat span {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .gp-ribbon {
        left: 20px;
        letter-spacing: 0.16em;
    }

    .gp-verify-card {
        padding: 40px 20px 24px;
    }

    .gp-verify-title {
        font-size: 24px;
    }

    .gp-verify-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .gp-code-field {
        grid-template-columns: 46px 1fr;
        margin-bottom: 20px;
    }

    .gp-hero .code-input {
        padding: 16px 14px;
    }

    .gp-hero .verify-btn {
        padding: 18px 20px;
        font-size: 13px;
        letter-spacing: 0.16em;
    }
}

/* ── 4. Verification result ────────────────────────────────────────────── */

/* Markup here is produced by buildVerificationResultHtml() in index.php and
   is styled as-is. */
#verification-result {
    margin-top: 0 !important;
    animation: gp-fade-in 0.5s ease-in-out;
}

@keyframes gp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keeps the form clear of the fixed header when it is scrolled to */
#verify-form {
    scroll-margin-top: 110px;
}

#verification-result .result-alert {
    --gp-status: var(--gp-danger);
    margin-bottom: 16px;
    padding: 18px 20px !important;
    border: 1px solid var(--gp-line);
    border-left: 4px solid var(--gp-status);
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    background: color-mix(in srgb, var(--gp-status) 6%, #fff);
    color: var(--gp-ink);
    font-size: 14px;
    line-height: 1.6;
}

#verification-result .alert-success {
    --gp-status: var(--gp-ok);
}

#verification-result .alert-info,
#verification-result .alert-warning {
    --gp-status: var(--gp-warn);
}

#verification-result .result-alert p {
    margin: 0;
}

#verification-result .result-alert p + p {
    margin-top: 8px;
}

#verification-result .result-title-success,
#verification-result .result-title-warning {
    margin-bottom: 6px;
    font-family: var(--gp-font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#verification-result .result-title-success {
    color: var(--gp-ok);
}

#verification-result .result-title-warning {
    color: var(--gp-danger);
}

#verification-result .result-desc,
#verification-result .thank-you-msg {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gp-ink);
}

#verification-result .thank-you-msg {
    color: var(--gp-mute);
}

#verification-result .purchase-warning {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gp-danger);
}

/* In the "invalid code" message this is an inline span between line breaks */
#verification-result span.purchase-warning {
    display: inline;
    margin-top: 0;
}

#verification-result .product-card-custom {
    margin-bottom: 0;
    padding: 24px;
    border: 1px solid var(--gp-line);
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: var(--gp-ink);
}

#verification-result .product-card-custom > .d-flex {
    margin-bottom: 12px !important;
}

#verification-result .product-details-icon {
    margin-right: 10px;
    font-size: 16px;
    color: var(--gp-blue);
}

#verification-result .product-details-header-text {
    font-family: var(--gp-font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gp-blue);
}

#verification-result .product-details-list {
    display: flex;
    flex-direction: column;
}

#verification-result .product-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gp-line);
}

#verification-result .product-detail-row-last {
    border-bottom: 0;
}

#verification-result .detail-label {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--gp-font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gp-mute);
}

#verification-result .detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--gp-ink);
    text-align: right;
    word-break: break-word;
}

#verification-result .product-card-custom .card-body {
    padding: 16px 0 0 !important;
}

#verification-result .product-image-container-style {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 0;
    padding: 20px;
    border-radius: 0;
    background: var(--gp-blue-50);
}

#verification-result .product-img-style {
    width: auto;
    max-height: 280px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
}

@media (max-width: 560px) {
    #verification-result .product-card-custom {
        padding: 18px 16px;
    }

    #verification-result .detail-label {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    #verification-result .detail-value {
        font-size: 14px;
    }
}

/* ── 5. Sections: shared layout ────────────────────────────────────────── */

.gp-section {
    width: 100%;
    background: #fff;
    color: var(--gp-ink);
}

.gp-section--cream {
    background: var(--gp-cream);
}

.gp-section--ruled {
    border-top: 1px solid var(--gp-line);
}

.gp-section-inner {
    max-width: var(--gp-container);
    margin: 0 auto;
    padding: 96px var(--gp-pad);
}

.gp-section-head {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 56px;
}

.gp-section-head--why {
    grid-template-columns: 1fr 1.4fr;
}

.gp-section-head .gp-kicker {
    margin-bottom: 14px;
}

.gp-section-title,
.gp-section-title em {
    font-family: var(--gp-font-heading);
}

.gp-section-title {
    margin: 0;
    font-size: clamp(36px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--gp-ink);
}

.gp-section-title em {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--gp-blue);
}

.gp-section-title--solid em {
    font-style: normal;
    font-weight: 800;
}

.gp-section-lead {
    max-width: 540px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gp-mute);
}

/* A photo that fills its panel, with optional floating labels */
.gp-photo {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: var(--gp-blue-50);
}

.gp-photo--tall {
    min-height: 560px;
    background: var(--gp-blue-100);
}

.gp-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── 6. Multilingual instructions ──────────────────────────────────────── */

.gp-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gp-lang-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.gp-lang-name {
    margin: 0;
    font-family: var(--gp-font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--gp-ink);
}

.gp-lang-name small {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--gp-mute);
}

.gp-lang-num {
    font-family: var(--gp-font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--gp-blue-100);
}

.gp-lang-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--gp-ink);
}

[dir="rtl"] .gp-lang-steps {
    padding-left: 0;
    padding-right: 18px;
}

.gp-lang-steps a {
    font-weight: 700;
    color: var(--gp-blue);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.gp-lang-steps a:hover {
    color: var(--gp-blue-dark);
    text-decoration: underline;
}

/* ── 7. Find the code ──────────────────────────────────────────────────── */

.gp-code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.gp-photo-label {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.gp-photo-label span:last-child {
    font-family: var(--gp-font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gp-ink);
}

.gp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gp-sky);
    animation: gp-pulse 1.6s ease-in-out infinite;
}

@keyframes gp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
    .gp-dot {
        animation: none;
    }
}

.gp-steps {
    display: grid;
    gap: 20px;
    align-content: center;
}

.gp-step {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 20px;
    align-items: center;
}

.gp-step-num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gp-blue);
    color: #fff;
    font-family: var(--gp-font-heading);
    font-size: 18px;
    font-weight: 800;
}

.gp-step-name {
    margin: 0 0 4px;
    font-family: var(--gp-font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--gp-ink);
}

.gp-step-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gp-mute);
}

.gp-chip {
    display: grid;
    place-items: center;
    width: 100px;
    height: 56px;
    border-radius: 4px;
    font-family: var(--gp-font-heading);
    font-weight: 800;
}

.gp-chip--scratch {
    background: repeating-linear-gradient(90deg, #c7cdc9 0 6px, #a9b1ac 6px 12px, #d6dcd8 12px 18px);
    color: #2a3b32;
    font-size: 9px;
    letter-spacing: 0.2em;
}

.gp-chip--code {
    background: #fff;
    border: 1.5px solid var(--gp-blue);
    color: var(--gp-blue);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.gp-chip--ok {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gp-blue);
    color: #fff;
    font-size: 14px;
}

.gp-chip--ok i {
    font-size: 12px;
}

/* ── 8. Why verify ─────────────────────────────────────────────────────── */

.gp-why-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: stretch;
}

.gp-stat-chip {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 18px 22px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 30, 70, 0.14);
}

.gp-stat-chip strong,
.gp-stat-chip span {
    display: block;
    font-family: var(--gp-font-heading);
}

.gp-stat-chip strong {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--gp-blue);
}

.gp-stat-chip span {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gp-mute);
}

.gp-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gp-reason {
    display: grid;
    grid-template-rows: 140px 1fr;
    background: var(--gp-cream);
}

/* Holds an icon on a ruled tint; an <img> placed inside covers it instead */
.gp-reason-media {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-color: var(--gp-blue-50);
    background-image:
        linear-gradient(rgba(0, 95, 176, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 95, 176, 0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    color: var(--gp-blue);
    font-size: 40px;
}

.gp-reason-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-reason-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 10px;
    background: var(--gp-blue);
    color: #fff;
    font-family: var(--gp-font-heading);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2em;
}

.gp-reason-body {
    padding: 22px 24px;
}

.gp-reason-body h3 {
    margin: 0 0 6px;
    font-family: var(--gp-font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--gp-ink);
}

.gp-reason-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gp-mute);
}

/* ── Sections: responsive ── */

@media (max-width: 1100px) {
    .gp-section-head--why,
    .gp-why-grid {
        grid-template-columns: 1fr;
    }

    .gp-photo--tall {
        min-height: 420px;
    }
}

@media (max-width: 960px) {
    .gp-section-inner {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .gp-section-head {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .gp-section-title {
        font-size: 36px;
    }

    .gp-lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gp-code-grid {
        grid-template-columns: 1fr;
    }

    .gp-photo {
        min-height: 380px;
    }
}

@media (max-width: 560px) {
    .gp-section-inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .gp-section-title {
        font-size: 30px;
    }

    .gp-section-lead {
        font-size: 15px;
    }

    .gp-card {
        padding: 22px 20px;
    }

    .gp-lang-grid,
    .gp-reasons {
        grid-template-columns: 1fr;
    }

    .gp-photo,
    .gp-photo--tall {
        min-height: 280px;
    }

    .gp-photo-label {
        top: 16px;
        left: 16px;
    }

    .gp-stat-chip {
        left: 16px;
        bottom: 16px;
        padding: 14px 16px;
    }

    .gp-step {
        grid-template-columns: 44px 1fr;
        gap: 14px 16px;
        align-items: start;
    }

    .gp-step-num {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .gp-chip {
        grid-column: 2;
        justify-self: start;
    }

    .gp-reason {
        grid-template-rows: 110px 1fr;
    }
}

/* ── 9. Official-website poster ────────────────────────────────────────── */

.gp-poster {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--gp-blue-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(100deg, var(--gp-blue-dark) 0%, #00529b 55%, var(--gp-blue) 100%);
    background-size: 72px 72px, 72px 72px, 100% 100%;
    color: #fff;
}

.gp-poster-inner {
    max-width: var(--gp-container);
    margin: 0 auto;
    padding: 112px var(--gp-pad);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
}

.gp-poster-copy,
.gp-browser {
    min-width: 0;
}

.gp-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--gp-font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gp-pill i {
    color: var(--gp-sky);
    font-size: 12px;
}

.gp-poster-title,
.gp-poster-title span {
    font-family: var(--gp-font-heading);
}

.gp-poster-title {
    margin: 0 0 24px;
    font-size: clamp(40px, 5.2vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}

.gp-poster-title span {
    color: var(--gp-sky);
}

.gp-poster-desc {
    max-width: 540px;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.gp-poster-note {
    margin: 28px 0 0;
    font-family: var(--gp-font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gp-sky);
}

/* Browser-style card showing the official address */
.gp-browser {
    background: #fff;
    color: var(--gp-ink);
    box-shadow: 0 40px 80px rgba(0, 20, 50, 0.4);
}

.gp-browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gp-line);
    background: #f3f5f8;
}

.gp-browser-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e46161;
}

.gp-browser-dot:nth-child(2) {
    background: #e8c04b;
}

.gp-browser-dot:nth-child(3) {
    background: #5fbf79;
}

.gp-browser-address {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 7px 12px;
    border: 1px solid var(--gp-line);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--gp-ink);
}

.gp-browser-address i {
    color: var(--gp-ok);
    font-size: 11px;
}

.gp-browser-address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-browser-address b {
    color: var(--gp-ok);
    font-weight: 700;
}

.gp-browser-body {
    padding: 28px 24px;
}

.gp-browser-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--gp-font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gp-mute);
}

.gp-browser-url {
    display: inline-block;
    margin-bottom: 20px;
    font-family: var(--gp-font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--gp-blue);
    text-decoration: none;
    word-break: break-all;
}

.gp-browser-url:hover {
    color: var(--gp-blue-dark);
    text-decoration: underline;
}

.gp-browser-note {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--gp-line);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gp-mute);
}

.gp-browser-note strong {
    font-weight: 700;
    color: var(--gp-ink);
}

@media (max-width: 1100px) {
    .gp-poster-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 960px) {
    .gp-poster-inner {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width: 560px) {
    .gp-poster-inner {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .gp-pill {
        margin-bottom: 22px;
        letter-spacing: 0.16em;
    }

    .gp-poster-desc {
        font-size: 15px;
    }

    .gp-browser-body {
        padding: 22px 18px;
    }

    .gp-browser-url {
        font-size: 18px;
    }
}

/* ── 10. Footer ────────────────────────────────────────────────────────── */

.gp-footer {
    width: 100%;
    background: var(--gp-ink);
    color: #d9e3dc;
}

.gp-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 72px var(--gp-pad) 32px;
}

.gp-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* The logo file has a white background, so it sits on a white plate */
.gp-footer-logo {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 14px;
    background: #fff;
}

.gp-footer-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
}

.gp-footer-mission {
    max-width: 420px;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.55;
    color: #d9e3dc;
}

.gp-footer-tagline {
    margin: 0 0 24px;
    font-family: var(--gp-font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gp-sky);
}

.gp-footer-social {
    display: flex;
    gap: 10px;
}

.gp-footer-social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.gp-footer-social a:hover {
    border-color: var(--gp-blue);
    background: var(--gp-blue);
    color: #fff;
}

.gp-footer-col h4 {
    margin: 0 0 16px;
    font-family: var(--gp-font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
}

.gp-footer-col ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}

.gp-footer-col strong {
    font-weight: 700;
    color: #fff;
}

.gp-footer a {
    color: #cad6e3;
    text-decoration: none;
}

.gp-footer a:hover {
    color: #fff;
}

.gp-footer a:focus-visible {
    outline-color: var(--gp-sky);
}

.gp-footer .gp-footer-map {
    font-weight: 700;
    color: var(--gp-sky);
}

.gp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
}

.gp-footer-bottom span,
.gp-footer-bottom a {
    font-family: var(--gp-font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gp-footer-bottom span {
    color: rgba(255, 255, 255, 0.5);
}

.gp-footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 960px) {
    .gp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gp-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .gp-footer-inner {
        padding-top: 56px;
    }

    .gp-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }

    .gp-footer-bottom span,
    .gp-footer-bottom a {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
}

/* ── 11. Go-to-top button ──────────────────────────────────────────────── */

/* Hidden until the page script adds .active after scrolling down */
.go-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--gp-blue);
    box-shadow: 0 10px 20px rgba(0, 20, 50, 0.25);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
}

.go-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top:hover {
    background: var(--gp-blue-dark);
}

.go-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

@media (max-width: 768px) {
    .go-to-top {
        right: 16px;
        bottom: 16px;
    }
}
