/* centers.dallelha.com — the pre-launch sign-up page. Arabic first, so every
   side-dependent rule uses logical properties (inline-start/end), and Arabic
   text never gets letter-spacing: it breaks the joins between letters. */
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Dallelha Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --page: #f5f8fc;
    --surface: #ffffff;
    --ink: #0f1b2d;
    --muted: #5c6d82;
    --line: #dce5ef;
    --control-line: #7b8fa8;
    --accent: #154c8a;
    --accent-hover: #0a2e54;
    --on-accent: #ffffff;
    --soft: #edf4fc;
    --field: #f8fafd;
    --gold: #85570f;
    --gold-soft: #fff4df;
    --danger: #a23535;
    --danger-soft: #fff0ee;
    --success: #176349;
    --success-soft: #edf7f1;
    --glow-x: 88%;
    --shadow: 0 24px 72px -32px rgb(15 47 85 / 24%), 0 2px 6px rgb(15 47 85 / 3%);
    /* The Pioneer card is a dark object in both themes. */
    --card-a: #0a1829;
    --card-b: #133a66;
    --foil-a: #fbebc2;
    --foil-b: #d9a84e;
    --foil-c: #f5d690;
    --foil-d: #b9802c;
    --foil-ink: #ebc97f;
}
@media (prefers-color-scheme: dark) {
    :root {
        --page: #0c1523;
        --surface: #132238;
        --ink: #edf3fb;
        --muted: #a7b7cc;
        --line: #30435b;
        --control-line: #657d99;
        --accent: #9bc8fa;
        --accent-hover: #b9d9ff;
        --on-accent: #102943;
        --soft: #1b304b;
        --field: #101d30;
        --gold: #f0d39d;
        --gold-soft: #352c21;
        --danger: #ffb4aa;
        --danger-soft: #3a232b;
        --success: #a0ddbe;
        --success-soft: #19362f;
        --shadow: 0 24px 72px -28px rgb(0 0 0 / 50%);
        color-scheme: dark;
    }
    .wordmark { filter: brightness(0) invert(1); }
}
[dir="ltr"] { --glow-x: 12%; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at var(--glow-x) 30%, rgb(67 132 207 / 10%), transparent 50%),
        radial-gradient(ellipse at calc(100% - var(--glow-x)) 90%, rgb(217 168 78 / 7%), transparent 45%),
        var(--page);
    color: var(--ink);
    font-family: "Dallelha Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
p, h1, h2, figure, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
button, a, input, select, label {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
[dir="ltr"] .dir-icon { transform: scaleX(-1); }
.icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
[hidden] { display: none !important; }
bdi, .phone-display { unicode-bidi: isolate; }
.skip-link {
    position: fixed;
    top: 12px;
    inset-inline-start: 16px;
    z-index: 1000;
    padding: 12px 18px;
    transform: translateY(-160%);
    border-radius: 10px;
    background: var(--surface);
}
.skip-link:focus { transform: none; }

/* ---------- Header & footer ---------- */
.site-header, .layout, .site-footer {
    width: min(1160px, calc(100% - 64px));
    margin-inline: auto;
}
.site-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}
.brand-home {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-radius: 4px;
}
.wordmark { display: block; width: 88px; height: auto; }
.header-label {
    padding-inline-start: 20px;
    border-inline-start: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-inline-start: auto;
}
.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.language-toggle .icon { width: 16px; height: 16px; }
.language-toggle:hover { border-color: var(--accent); background: var(--soft); }
.website-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.website-link .icon { width: 16px; height: 16px; }
.website-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Layout ---------- */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 72px;
    align-items: start;
    padding-block: 64px 80px;
}

/* ---------- Intro ---------- */
.intro { padding-top: 12px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}
.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--foil-b), var(--foil-d));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--foil-b) 22%, transparent);
}
h1 {
    margin-top: 22px;
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 700;
    line-height: 1.25;
}
:lang(en) h1 { letter-spacing: -0.035em; line-height: 1.1; }
.hero-accent { color: var(--accent); }
.primary-button.hero-cta { display: none; }
.intro-copy {
    max-width: 34em;
    margin-top: 20px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

/* ---------- The Pioneer card ---------- */
.pioneer-showcase {
    position: relative;
    max-width: 420px;
    margin-block: 44px 40px;
    padding: 6px;
}
.pioneer-showcase::before {
    content: "";
    position: absolute;
    inset: 10% 6% -8%;
    border-radius: 40px;
    background: radial-gradient(ellipse at center, rgb(217 168 78 / 34%), transparent 70%);
    filter: blur(28px);
    pointer-events: none;
}
.pioneer-showcase .pioneer-card { transform: rotate(-2.5deg); }
[dir="ltr"] .pioneer-showcase .pioneer-card { transform: rotate(2.5deg); }
.pioneer-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.586;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 0%, rgb(155 200 250 / 22%), transparent 42%),
        radial-gradient(circle at 0% 100%, rgb(217 168 78 / 18%), transparent 46%),
        linear-gradient(140deg, var(--card-a) 0%, var(--card-b) 58%, #0d2645 100%);
    box-shadow: 0 30px 60px -24px rgb(6 22 44 / 55%), inset 0 1px 0 rgb(255 255 255 / 10%);
    color: #ffffff;
}
/* Fine guilloche rings, the texture of a membership card. */
.pioneer-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    top: -170px;
    inset-inline-end: -150px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 13px, rgb(255 255 255 / 7%) 13px 14px);
    pointer-events: none;
}
/* The light sweep. Only transform and opacity move. */
.pioneer-card::after {
    content: "";
    position: absolute;
    inset: -20% -60%;
    background: linear-gradient(105deg, transparent 42%, rgb(255 244 214 / 24%) 50%, transparent 58%);
    transform: translateX(-70%);
    opacity: 0;
    pointer-events: none;
}
.card-top, .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.card-wordmark {
    display: block;
    width: 66px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.card-edition {
    color: var(--foil-ink);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.26em;
}
.card-body {
    display: flex;
    align-items: center;
    gap: 18px;
}
.card-emblem {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    fill: none;
    stroke: url(#g-foil);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 10px rgb(217 168 78 / 30%));
}
.card-title {
    display: block;
    background: linear-gradient(118deg, var(--foil-a) 0%, var(--foil-b) 42%, var(--foil-c) 66%, var(--foil-d) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
}
.card-latin {
    display: block;
    margin-top: 2px;
    color: var(--foil-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.42em;
}
/* Caption over name, so a long center name gets the card's full width. */
.card-bottom { flex-direction: column; align-items: flex-start; gap: 0; }
.card-center {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-caption {
    order: -1;
    flex-shrink: 0;
    color: rgb(255 255 255 / 70%);
    font-size: 12px;
}

/* ---------- Benefits ---------- */
.benefits {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.benefit-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent);
}
.benefits strong { display: block; font-size: 16px; }
.benefits div > span { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Panel ---------- */
.panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.panel:focus { outline: none; }
.progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}
.progress li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 3px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.progress .step-number {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}
.progress li.is-complete { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.progress li.is-current { border-color: var(--accent); color: var(--ink); font-weight: 600; }

.step-kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}
.step h2 {
    margin: 4px 0 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}
:lang(en) .step h2 { letter-spacing: -0.02em; }
.step h2:focus { outline: none; }
.step-intro { margin: -12px 0 22px; color: var(--muted); }
.optional { color: var(--muted); font-weight: 400; }

/* ---------- Fields ---------- */
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
}
.field > label, .field > legend, .label-like {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}
/* Labels that wrap a control are not field captions. */
.field > .switch-row { display: inline-flex; margin-bottom: 0; font-size: 15px; font-weight: 500; }
.field > .photo-drop { display: block; margin-bottom: 0; font-size: inherit; font-weight: inherit; }
input[type="text"], input[type="tel"], select {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 13px 16px;
    border: 1.5px solid var(--control-line);
    border-radius: 14px;
    background-color: var(--field);
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
select {
    appearance: none;
    padding-inline-end: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 16px center;
    cursor: pointer;
}
[dir="rtl"] select { background-position: left 16px center; }
.input-shell { position: relative; }
.input-shell > .icon {
    position: absolute;
    top: 17px;
    left: 16px;
    color: var(--muted);
    pointer-events: none;
}
.input-shell input { padding-left: 48px; }
input[dir="ltr"] { text-align: left; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.field-error { margin-top: 7px; color: var(--danger); font-size: 13px; font-weight: 500; }

.type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.type-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.type-option:hover { border-color: var(--control-line); }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.type-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.type-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--accent);
}
.type-option:has(input:checked) .type-icon { background: var(--accent); color: var(--on-accent); }
.type-text strong { display: block; font-size: 16px; }
.type-text span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.type-check {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.type-check .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.type-option:has(input:checked) .type-check { opacity: 1; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip span:hover { border-color: var(--control-line); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
    position: relative;
    width: 46px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--control-line);
    transition: background-color 0.2s ease;
}
.switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
    transition: transform 0.2s ease;
}
[dir="rtl"] .switch::after { left: auto; right: 4px; }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
[dir="rtl"] .switch-row input:checked + .switch::after { transform: translateX(-18px); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--accent); outline-offset: 3px; }

.photo-drop {
    display: block;
    padding: 16px;
    border: 1.5px dashed var(--control-line);
    border-radius: 18px;
    background: var(--field);
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.photo-drop:hover { border-color: var(--accent); }
.photo-drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.photo-empty { display: flex; align-items: center; gap: 14px; }
.photo-empty strong { display: block; font-size: 15px; }
.photo-empty .field-help { display: block; margin: 0; }
.photo-preview {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- Map ---------- */
.map-frame {
    position: relative;
    height: clamp(300px, 46vh, 420px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--soft);
}
.map { position: absolute; inset: 0; }
.map .leaflet-container, .map.leaflet-container { font: inherit; background: var(--soft); }
.map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}
.locate-button {
    position: absolute;
    z-index: 800;
    bottom: 14px;
    left: 14px; /* physical: zoom is top-left and the attribution bottom-right in both directions */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px -10px rgb(15 47 85 / 40%);
    cursor: pointer;
}
.locate-button:hover { border-color: var(--accent); }
.locate-button[disabled] { cursor: progress; opacity: 0.75; }
.map-status { margin-top: 10px; color: var(--muted); font-size: 14px; }
.map-status.is-set { color: var(--success); font-weight: 500; }
.pin-marker { background: none; border: 0; }
.pin-svg { display: block; width: 40px; height: 50px; filter: drop-shadow(0 6px 6px rgb(6 22 44 / 35%)); }
.pin-body { fill: #154c8a; stroke: #ffffff; stroke-width: 2.5; }
.pin-dot { fill: #ffffff; }
.leaflet-control-attribution { font-size: 11px; }

/* ---------- Summary, code, actions ---------- */
.summary {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}
.summary dt, .summary dd {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.summary dt { color: var(--muted); font-size: 13px; background: var(--field); }
.summary dd { font-weight: 600; overflow-wrap: anywhere; }
.summary dt:nth-last-of-type(1), .summary dd:last-of-type { border-bottom: 0; }
.otp-input {
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-indent: 0.4em; /* balances the trailing letter-spacing so the digits sit centred */
    font-variant-numeric: tabular-nums;
}
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.primary-button {
    flex: 1;
    border: 0;
    background: var(--accent);
    color: var(--on-accent);
}
.primary-button:hover { background: var(--accent-hover); }
.secondary-button {
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink);
}
.secondary-button:hover { border-color: var(--control-line); }
.primary-button:active, .secondary-button:active { transform: scale(0.985); }
.primary-button[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.text-button:hover:not([disabled]) { text-decoration: underline; text-underline-offset: 5px; }
.text-button[disabled] { color: var(--muted); cursor: default; }
.text-button .icon { width: 16px; height: 16px; }
.code-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 14px;
}
.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 15px;
    font-weight: 500;
}
.alert.is-info { background: var(--success-soft); color: var(--success); }

/* ---------- Done ---------- */
.done { text-align: center; }
.done .pioneer-card { margin: 4px auto 30px; text-align: start; }
.done .step-intro { margin: -8px auto 0; max-width: 30em; }
.done-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.closed .actions .primary-button { flex: 0 1 auto; }
/* Done: the panel's card is the moment; the progress and the hero's sample card step aside. */
.panel.is-done .progress, .signup-done .pioneer-showcase,
.signup-done .primary-button.hero-cta { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .pioneer-showcase .pioneer-card::after { animation: card-sweep 9s ease-in-out 1.2s infinite; }
    .pioneer-card.reveal { animation: card-reveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    .pioneer-card.reveal::after { animation: card-sweep-once 1.6s ease-in-out 0.8s both; }
    .done .step-kicker, .done h2, .done .step-intro, .done-note {
        animation: rise-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .done .step-kicker { animation-delay: 0.35s; }
    .done h2 { animation-delay: 0.45s; }
    .done .step-intro { animation-delay: 0.55s; }
    .done-note { animation-delay: 0.65s; }
    .step:not(.done) { animation: step-in 0.35s ease both; }
}
@keyframes card-sweep {
    0% { transform: translateX(-70%); opacity: 0; }
    4% { opacity: 1; }
    16% { transform: translateX(70%); opacity: 0; }
    100% { transform: translateX(70%); opacity: 0; }
}
@keyframes card-sweep-once {
    0% { transform: translateX(-70%); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateX(70%); opacity: 0; }
}
@keyframes card-reveal {
    from { opacity: 0; transform: translateY(18px) scale(0.94); }
    to { opacity: 1; transform: none; }
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes step-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Phone & tablet ---------- */
@media (max-width: 980px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-block: 36px 56px;
    }
    .intro { padding-top: 0; }
    /* The form sits below the card and benefits here: offer the way down. */
    .primary-button.hero-cta { display: inline-flex; flex: none; margin-top: 24px; }
    .pioneer-showcase { margin-block: 32px 28px; }
    .panel { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
    .site-header, .layout, .site-footer { width: calc(100% - 32px); }
    .site-header { min-height: 72px; gap: 12px; }
    .wordmark { width: 76px; }
    .header-label { padding-inline-start: 12px; font-size: 13px; }
    .website-link { display: none; }
    .layout { padding-block: 28px 40px; gap: 32px; }
    h1 { font-size: 36px; }
    .intro-copy { font-size: 16px; }
    .pioneer-showcase { max-width: 340px; }
    .pioneer-card { padding: 18px 20px; border-radius: 18px; }
    .card-title { font-size: 38px; }
    .card-emblem { width: 52px; height: 52px; }
    .panel { padding: 22px 18px; border-radius: 22px; }
    .progress { margin-bottom: 24px; }
    .progress li { font-size: 12px; }
    .step h2 { font-size: 24px; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .type-options { grid-template-columns: minmax(0, 1fr); }
    .type-option { flex-direction: row; align-items: center; }
    .actions { margin-top: 26px; }
    .secondary-button { padding: 0 18px; }
    .summary { grid-template-columns: minmax(0, 1fr); }
    .summary dt { padding-bottom: 2px; border-bottom: 0; background: none; }
    .summary dd { padding-top: 0; }
}
