:root {
    --paper: #fffdf5;
    --paper-cool: #f7fbff;
    --surface: rgba(255, 255, 255, .92);
    --surface-solid: #ffffff;
    --ink: #151126;
    --ink-soft: #423b57;
    --muted: #706982;
    --line: rgba(57, 35, 97, .16);
    --line-strong: rgba(57, 35, 97, .28);
    --cyan: #00dff5;
    --cyan-dark: #007c92;
    --magenta: #ff2bc2;
    --magenta-dark: #b80082;
    --violet: #6746ff;
    --violet-dark: #3f22c8;
    --acid: #c8ff34;
    --gold: #ffbf1f;
    --danger: #c3234f;
    --danger-soft: #fff0f5;
    --shadow: 0 30px 90px rgba(57, 35, 97, .15);
    --shadow-neon: 0 24px 70px rgba(103, 70, 255, .18), 0 0 42px rgba(0, 223, 245, .13);
    --radius-xl: 36px;
    --radius-lg: 26px;
    --radius-md: 17px;
    --radius-sm: 11px;
    --shell: min(1240px, calc(100% - 38px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(103, 70, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 70, 255, .045) 1px, transparent 1px),
        radial-gradient(circle at 7% 4%, rgba(0, 223, 245, .22), transparent 27rem),
        radial-gradient(circle at 91% 9%, rgba(255, 43, 194, .17), transparent 28rem),
        radial-gradient(circle at 72% 75%, rgba(200, 255, 52, .13), transparent 29rem),
        var(--paper);
    background-size: 38px 38px, 38px 38px, auto, auto, auto, auto;
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

body.modal-open {
    overflow: hidden;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 18px;
    top: 12px;
    transform: translateY(-180%);
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--violet-dark);
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow,
.reference,
.revelation-kicker {
    margin: 0;
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1,
h2,
h3,
.brand strong,
button,
.primary-link,
.card-arrow {
    font-family: "Oxanium", system-ui, sans-serif;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 17px 0 24px;
    max-width: 800px;
    font-size: clamp(3rem, 6.15vw, 6.55rem);
    line-height: .91;
    letter-spacing: -.068em;
}

h2 {
    margin: 10px 0 17px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

h3 {
    margin: 8px 0 10px;
    font-size: 1.48rem;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.site-header {
    position: sticky;
    z-index: 80;
    top: 0;
    border-bottom: 1px solid rgba(103, 70, 255, .16);
    background: rgba(255, 253, 245, .84);
    backdrop-filter: blur(22px) saturate(1.3);
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 3%, var(--cyan), var(--violet), var(--magenta), var(--acid), transparent 97%);
    opacity: .75;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
}

.brand-copy {
    display: grid;
    line-height: 1.06;
}

.brand strong {
    font-size: 1rem;
    letter-spacing: -.012em;
}

.brand small {
    margin-top: 6px;
    color: var(--muted);
    font-size: .7rem;
}

.symbol {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(0, 223, 245, .32));
}

.symbol::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from 18deg, var(--cyan) 0 24%, var(--violet) 24% 54%, transparent 54% 62%, var(--magenta) 62% 83%, var(--acid) 83% 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
}

.symbol::after {
    content: "";
    position: absolute;
    inset: 20%;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 50%;
}

.symbol > span {
    position: relative;
    z-index: 2;
    width: 18%;
    height: 18%;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 5px rgba(0, 223, 245, .14), 0 0 22px rgba(255, 43, 194, .28);
}

.symbol-small {
    width: 42px;
    height: 42px;
}

.symbol-medium {
    width: 64px;
    height: 64px;
}

.symbol-large {
    width: 132px;
    height: 132px;
}

.is-spinning::before {
    animation: spin 2.4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.primary-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.primary-nav a {
    position: relative;
    padding: 9px 10px;
    border-radius: 10px;
    color: #5e5671;
    font-size: .79rem;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 5px;
    left: 11px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transition: transform .2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--violet-dark);
    background: rgba(103, 70, 255, .075);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(103, 70, 255, .22);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 24px rgba(103, 70, 255, .07);
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

.system-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.system-status.is-ready > span {
    background: var(--acid);
    box-shadow: 0 0 0 4px rgba(200, 255, 52, .18), 0 0 12px rgba(200, 255, 52, .6);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-solid);
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 94px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .15), transparent 45%);
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(103, 70, 255, .18);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 18px var(--magenta);
}

.hero-orbit-one {
    width: 520px;
    height: 520px;
    left: -320px;
    top: -190px;
}

.hero-orbit-one::after {
    right: 61px;
    bottom: 77px;
}

.hero-orbit-two {
    width: 390px;
    height: 390px;
    right: -205px;
    bottom: -170px;
}

.hero-orbit-two::after {
    left: 41px;
    top: 72px;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(455px, .76fr);
    align-items: start;
    gap: clamp(42px, 6vw, 86px);
}

.hero-copy {
    padding-top: 28px;
}

.hero-copy h1 {
    background: linear-gradient(112deg, var(--ink) 4%, var(--violet-dark) 48%, var(--magenta-dark) 89%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy .lead {
    max-width: 700px;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.55vw, 1.29rem);
    line-height: 1.72;
}

.hero-commandments {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.hero-commandments span {
    padding: 9px 12px;
    border: 1px solid rgba(103, 70, 255, .18);
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 23px rgba(103, 70, 255, .06);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 27px;
}

.hero-links a {
    color: var(--violet-dark);
    font-weight: 800;
    text-decoration-color: var(--magenta);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.oracle-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3.2vw, 37px);
    border: 1px solid rgba(103, 70, 255, .27);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(248, 250, 255, .92)),
        var(--surface-solid);
    box-shadow: var(--shadow-neon);
}

.oracle-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--cyan), transparent 27%, transparent 70%, var(--magenta));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .72;
}

.oracle-card-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -220px;
    top: -230px;
    border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--violet), var(--magenta), var(--acid), var(--cyan));
    filter: blur(65px);
    opacity: .19;
    pointer-events: none;
}

.oracle-heading {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.oracle-heading h2 {
    max-width: 430px;
    margin-bottom: 0;
    font-size: clamp(1.95rem, 3.1vw, 2.9rem);
}

.source-hint {
    position: relative;
    margin: 20px 0 0;
    padding: 15px 16px;
    border: 1px solid rgba(255, 43, 194, .25);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 43, 194, .075), rgba(0, 223, 245, .06));
}

.source-hint span {
    display: block;
    color: var(--magenta-dark);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.source-hint strong {
    display: block;
    margin-top: 4px;
    font-family: "Oxanium", system-ui, sans-serif;
}

.source-hint p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

#prayer-form {
    position: relative;
    margin-top: 23px;
}

.ritual-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.ritual-pills legend {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ritual-pills input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ritual-pills span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 8px 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .7);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .68rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: .18s ease;
}

.ritual-pills input:checked + span {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(115deg, var(--violet), var(--magenta));
    box-shadow: 0 9px 24px rgba(103, 70, 255, .23);
    transform: translateY(-1px);
}

.ritual-pills input:focus-visible + span {
    outline: 3px solid rgba(0, 223, 245, .35);
    outline-offset: 2px;
}

.prayer-label {
    display: block;
    margin: 22px 0 9px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 800;
}

textarea {
    width: 100%;
    resize: vertical;
    min-height: 158px;
    padding: 17px 18px;
    border: 1px solid rgba(103, 70, 255, .24);
    border-radius: 17px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .84);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    line-height: 1.55;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea:focus {
    border-color: var(--violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(103, 70, 255, .11), 0 12px 31px rgba(103, 70, 255, .08);
}

textarea::placeholder {
    color: #9991a9;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
    color: var(--muted);
    font-size: .72rem;
}

.form-error {
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid rgba(195, 35, 79, .2);
    border-radius: 12px;
    color: var(--danger);
    background: var(--danger-soft);
    font-size: .86rem;
    font-weight: 700;
}

.submit-button,
.secondary-button,
.ghost-button,
.primary-link {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.submit-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 55px;
    margin-top: 17px;
    padding: 14px 19px;
    overflow: hidden;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(105deg, var(--violet-dark), var(--violet), var(--magenta));
    box-shadow: 0 17px 38px rgba(103, 70, 255, .27), 0 0 26px rgba(255, 43, 194, .13);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .035em;
}

.submit-button::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 250%;
    left: -130px;
    top: -70%;
    transform: rotate(22deg);
    background: rgba(255, 255, 255, .25);
    transition: left .45s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(103, 70, 255, .33), 0 0 32px rgba(255, 43, 194, .2);
}

.submit-button:hover:not(:disabled)::before {
    left: 115%;
}

.submit-button:disabled {
    cursor: not-allowed;
    filter: grayscale(.55);
    opacity: .58;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.submit-button.is-loading .button-loader {
    display: inline-block;
}

.oracle-waiting {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}

.oracle-waiting p {
    margin: 0;
}

.oracle-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 5px rgba(200, 255, 52, .14), 0 0 15px rgba(200, 255, 52, .7);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    50% { transform: scale(.72); opacity: .55; }
}

.privacy-note {
    margin: 13px 0 0;
    color: #878093;
    font-size: .69rem;
    line-height: 1.5;
}

.revelation-modal {
    width: min(850px, calc(100% - 28px));
    max-height: min(90vh, 900px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 34px;
    color: var(--ink);
    background: transparent;
}

.revelation-modal::backdrop {
    background: rgba(24, 15, 49, .68);
    backdrop-filter: blur(13px) saturate(1.2);
}

.revelation-modal.is-open {
    position: fixed;
    z-index: 500;
    inset: 5vh auto auto 50%;
    display: block;
    transform: translateX(-50%);
}

.modal-shell {
    position: relative;
    max-height: min(90vh, 900px);
    padding: clamp(27px, 5vw, 57px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(249, 247, 255, .97)),
        #fff;
    box-shadow: 0 44px 130px rgba(21, 11, 54, .42), 0 0 65px rgba(0, 223, 245, .18);
}

.modal-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: inherit;
    background: linear-gradient(130deg, var(--cyan), var(--violet), var(--magenta), var(--acid));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.modal-halo {
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    top: -180px;
    right: -170px;
    border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--violet), var(--magenta), var(--acid), var(--cyan));
    filter: blur(75px);
    opacity: .32;
}

.modal-close {
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 19px;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, .86);
    font-family: system-ui, sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.revelation-loading {
    display: grid;
    justify-items: center;
    min-height: 390px;
    align-content: center;
    text-align: center;
}

.revelation-loading h2 {
    margin-top: 12px;
}

.revelation-loading p:last-child {
    color: var(--muted);
}

.revelation-seal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 50px;
}

.revelation-seal small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .72rem;
}

.revelation-content > h2,
.revelation-error h2 {
    max-width: 690px;
    margin-top: 29px;
    background: linear-gradient(110deg, var(--ink), var(--violet-dark) 55%, var(--magenta-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.revelation-content blockquote {
    position: relative;
    margin: 25px 0 17px;
    padding: 22px 24px 22px 29px;
    border: 1px solid rgba(103, 70, 255, .17);
    border-left: 5px solid var(--cyan);
    border-radius: 0 18px 18px 0;
    color: var(--ink-soft);
    background: linear-gradient(110deg, rgba(0, 223, 245, .085), rgba(255, 43, 194, .055));
    font-size: 1.02rem;
    font-weight: 600;
}

.source-link {
    display: inline-flex;
    margin: 1px 0 22px;
    color: var(--violet-dark);
    font-size: .82rem;
    font-weight: 800;
    text-underline-offset: 4px;
}

.revelation-guidance {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.revelation-guidance p {
    margin: 0 0 15px;
}

.revelation-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 25px;
}

.revelation-detail {
    padding: 16px 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .73);
}

.revelation-detail span {
    color: var(--magenta-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.revelation-detail p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: .88rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.secondary-button,
.ghost-button,
.primary-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 13px;
    font-size: .79rem;
    font-weight: 800;
}

.secondary-button,
.primary-link {
    color: #fff;
    background: linear-gradient(110deg, var(--violet-dark), var(--magenta));
    box-shadow: 0 13px 29px rgba(103, 70, 255, .22);
}

.ghost-button {
    border: 1px solid var(--line-strong);
    color: var(--violet-dark);
    background: rgba(255, 255, 255, .7);
}

.secondary-button:hover,
.ghost-button:hover,
.primary-link:hover {
    transform: translateY(-2px);
}

.revelation-error {
    padding: 18px 5px 5px;
}

.revelation-error > p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1rem;
}

.home-section {
    padding: 82px 0 105px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.08fr .78fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    margin: 0 0 7px;
    color: var(--muted);
}

.page-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.page-card {
    position: relative;
    min-height: 310px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(103, 70, 255, .18);
    border-radius: 23px;
    color: var(--ink);
    background: rgba(255, 255, 255, .77);
    box-shadow: 0 13px 35px rgba(57, 35, 97, .065);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.page-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -105px;
    top: -105px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    filter: blur(12px);
    opacity: .09;
    transition: opacity .22s ease, transform .22s ease;
}

.page-card:nth-child(3n+2)::before {
    background: linear-gradient(135deg, var(--violet), var(--acid));
}

.page-card:nth-child(3n+3)::before {
    background: linear-gradient(135deg, var(--magenta), var(--gold));
}

.page-card:hover {
    transform: translateY(-7px);
    border-color: rgba(103, 70, 255, .4);
    box-shadow: var(--shadow-neon);
}

.page-card:hover::before {
    opacity: .2;
    transform: scale(1.17);
}

.page-card-number {
    display: block;
    margin-bottom: 36px;
    color: var(--magenta-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.page-card h3 {
    margin-top: 13px;
    font-size: 1.65rem;
}

.page-card > p:not(.eyebrow) {
    color: var(--muted);
    font-size: .91rem;
}

.card-arrow {
    position: absolute;
    right: 25px;
    bottom: 23px;
    color: var(--violet-dark);
    font-size: .78rem;
    font-weight: 800;
}

.card-arrow b {
    color: var(--magenta);
    font-size: 1.2em;
}

.manifesto-band {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    color: #fff;
    background:
        radial-gradient(circle at 8% 18%, rgba(0, 223, 245, .35), transparent 22rem),
        radial-gradient(circle at 90% 78%, rgba(255, 43, 194, .35), transparent 24rem),
        linear-gradient(115deg, #1d0f49, #3f22c8 46%, #7211a6 100%);
}

.manifesto-band::after {
    content: "GENERÉR IGEN · GENERÉR IGEN · GENERÉR IGEN";
    position: absolute;
    right: -5%;
    bottom: -31px;
    color: rgba(255, 255, 255, .055);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    white-space: nowrap;
}

.manifesto-band .eyebrow {
    color: var(--acid);
}

.manifesto-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .8fr;
    align-items: center;
    gap: 70px;
}

.manifesto-grid h2 {
    margin-bottom: 0;
}

.manifesto-grid blockquote {
    margin: 0;
    padding: 26px 0 26px 28px;
    border-left: 3px solid var(--cyan);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.38;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 65px;
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -260px;
    top: -300px;
    border: 1px solid rgba(103, 70, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 43, 194, .08);
}

.page-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: end;
    gap: 70px;
}

.page-hero h1 {
    max-width: 850px;
    background: linear-gradient(110deg, var(--ink), var(--violet-dark), var(--magenta-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-lead {
    max-width: 780px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.page-stamp {
    display: grid;
    justify-items: center;
    padding: 25px;
    border: 1px solid rgba(103, 70, 255, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .75);
    box-shadow: var(--shadow-neon);
    text-align: center;
}

.page-stamp strong {
    margin-top: 12px;
    font-family: "Oxanium", system-ui, sans-serif;
}

.page-stamp small {
    margin-top: 5px;
    color: var(--muted);
}

.content-section {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: clamp(35px, 6vw, 84px);
    padding-top: 25px;
    padding-bottom: 100px;
}

.toc-card {
    position: sticky;
    top: 112px;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 15px 38px rgba(57, 35, 97, .07);
}

.toc-card nav {
    display: grid;
    gap: 3px;
    margin-top: 14px;
}

.toc-card a {
    padding: 8px 9px;
    border-radius: 9px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.toc-card a:hover {
    color: var(--violet-dark);
    background: rgba(103, 70, 255, .075);
}

.article-stack {
    display: grid;
    gap: 20px;
}

.scripture-article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 23px;
    padding: clamp(25px, 4vw, 43px);
    scroll-margin-top: 112px;
    border: 1px solid rgba(103, 70, 255, .17);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 42px rgba(57, 35, 97, .06);
}

.article-number {
    display: grid;
    place-items: center;
    align-self: start;
    width: 51px;
    height: 51px;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 50%;
    color: var(--violet-dark);
    background: linear-gradient(135deg, rgba(0, 223, 245, .13), rgba(255, 43, 194, .1));
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .73rem;
    font-weight: 800;
}

.article-body h2 {
    font-size: clamp(1.75rem, 3.2vw, 3rem);
}

.chapter-label {
    margin: 0 0 7px;
    color: var(--magenta-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.scripture-verses {
    display: grid;
    gap: 0;
    margin: 28px 0 12px;
    border-top: 1px solid rgba(103, 70, 255, .13);
}

.scripture-verse {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(103, 70, 255, .10);
    color: var(--ink-soft);
    line-height: 1.72;
}

.scripture-verse:nth-child(odd) {
    background: linear-gradient(90deg, rgba(0, 223, 245, .035), transparent 60%);
}

.verse-number {
    display: inline-grid;
    place-items: center;
    align-self: start;
    width: 29px;
    height: 29px;
    margin-top: 1px;
    border: 1px solid rgba(103, 70, 255, .17);
    border-radius: 50%;
    color: var(--violet-dark);
    background: rgba(255, 255, 255, .72);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .68rem;
    font-weight: 800;
}

.article-body blockquote {
    margin: 22px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--magenta);
    border-radius: 0 14px 14px 0;
    color: var(--ink-soft);
    background: linear-gradient(110deg, rgba(255, 43, 194, .07), rgba(0, 223, 245, .05));
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: 1.04rem;
    line-height: 1.55;
}

.article-body > p:not(.reference) {
    color: var(--ink-soft);
}

.article-body ul {
    padding-left: 22px;
    color: var(--ink-soft);
}

.article-body li {
    margin-bottom: 8px;
}

.ask-link {
    display: inline-flex;
    gap: 9px;
    margin-top: 13px;
    color: var(--violet-dark);
    font-size: .8rem;
    font-weight: 800;
    text-decoration-color: var(--cyan);
    text-underline-offset: 5px;
}

.page-cta {
    padding: 76px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(115deg, rgba(0, 223, 245, .08), rgba(103, 70, 255, .07), rgba(255, 43, 194, .08));
}

.page-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.page-cta h2 {
    margin-bottom: 0;
}

.site-footer {
    padding: 53px 0;
    color: #ded7ef;
    background: #161026;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr auto auto;
    align-items: start;
    gap: 32px;
}

.site-footer strong {
    color: #fff;
    font-family: "Oxanium", system-ui, sans-serif;
}

.site-footer p {
    max-width: 430px;
    margin: 8px 0 0;
    color: #aaa1bf;
    font-size: .82rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.site-footer a {
    color: #dcd4ec;
    font-size: .78rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--cyan);
}

.copyright {
    text-align: right;
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: auto auto 1fr auto;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        background: rgba(255, 253, 245, .97);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 11px 12px;
    }

    .system-status {
        justify-self: end;
    }

    .home-hero-grid {
        grid-template-columns: minmax(0, .82fr) minmax(420px, .75fr);
        gap: 35px;
    }

    .page-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --shell: min(100% - 28px, 720px);
    }

    .system-status {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .nav-toggle {
        order: initial;
        justify-self: end;
    }

    .home-hero {
        padding-top: 48px;
    }

    .home-hero-grid,
    .page-hero-inner,
    .section-heading,
    .manifesto-grid,
    .content-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-top: 0;
    }

    .oracle-card {
        margin-top: 9px;
    }

    .section-heading {
        gap: 13px;
    }

    .manifesto-grid {
        gap: 22px;
    }

    .page-stamp {
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .page-stamp strong,
    .page-stamp small {
        grid-column: 2;
        margin-top: 0;
    }

    .page-stamp .symbol {
        grid-row: 1 / span 2;
    }

    .content-section {
        gap: 23px;
    }

    .toc-card {
        position: static;
    }

    .toc-card nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        gap: 25px;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 620px) {
    :root {
        --shell: min(100% - 22px, 540px);
    }

    h1 {
        font-size: clamp(2.85rem, 15vw, 4.7rem);
    }

    h2 {
        font-size: clamp(1.9rem, 10vw, 3rem);
    }

    .header-inner {
        min-height: 76px;
    }

    .brand small {
        display: none;
    }

    .symbol-small {
        width: 37px;
        height: 37px;
    }

    .home-hero {
        padding: 40px 0 65px;
    }

    .hero-commandments {
        display: grid;
    }

    .oracle-card {
        padding: 22px 17px;
        border-radius: 25px;
    }

    .oracle-heading .symbol {
        width: 50px;
        height: 50px;
    }

    .ritual-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-meta {
        display: grid;
        gap: 3px;
    }

    .field-meta span:last-child {
        justify-self: end;
    }

    .page-card-grid {
        grid-template-columns: 1fr;
    }

    .page-card {
        min-height: 280px;
    }

    .revelation-modal {
        width: calc(100% - 14px);
        max-height: 94vh;
    }

    .modal-shell {
        max-height: 94vh;
        padding: 48px 19px 24px;
        border-radius: 25px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }

    .revelation-loading {
        min-height: 360px;
    }

    .revelation-loading .symbol-large {
        width: 105px;
        height: 105px;
    }

    .revelation-seal {
        padding-right: 35px;
    }

    .revelation-meta-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        display: grid;
    }

    .scripture-article {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 23px 18px;
    }

    .article-number {
        width: 43px;
        height: 43px;
    }

    .toc-card nav {
        grid-template-columns: 1fr;
    }

    .page-stamp {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .page-stamp strong,
    .page-stamp small {
        grid-column: auto;
    }

    .page-stamp .symbol {
        grid-row: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Version 4.0: udvidet kanon, kilder og menighedsråd */
.quote-attribution {
    margin: -11px 0 20px;
    color: var(--violet-dark) !important;
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.source-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed rgba(103, 70, 255, .28);
    border-radius: 14px;
    color: #625a75 !important;
    background: rgba(103, 70, 255, .045);
    font-size: .88rem;
}

.external-source,
.article-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 12px 4px 0;
    padding: 10px 13px;
    border: 1px solid rgba(0, 177, 199, .28);
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(0, 223, 245, .075);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.external-source:hover,
.article-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 43, 194, .08);
    box-shadow: 0 10px 28px rgba(103, 70, 255, .1);
}

.article-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
}

.canon-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 10px;
}

.canon-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(103, 70, 255, .19);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(250, 247, 255, .9)),
        linear-gradient(90deg, var(--cyan), var(--magenta));
    box-shadow: 0 12px 30px rgba(57, 35, 97, .055);
}

.canon-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--acid));
}

.canon-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.canon-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.canon-card-topline > span {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(0, 223, 245, .1);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.canon-card-subtitle {
    margin: 7px 0 10px !important;
    color: var(--magenta-dark, #aa146f) !important;
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.canon-card p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: .9rem;
}

@media (max-width: 720px) {
    .canon-card-grid {
        grid-template-columns: 1fr;
    }

    .external-source,
    .article-links a {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
    }
}

/* Version 4.1: statistik, flydende orakel og social deling */
.stats-section {
    position: relative;
    padding: 72px 0 18px;
}

.stats-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
    gap: 44px;
    align-items: end;
    margin-bottom: 28px;
}

.stats-heading h2 {
    margin-bottom: 0;
}

.stats-heading > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 18px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 22px 55px rgba(57, 35, 97, .09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -55px -70px auto;
    width: 170px;
    height: 170px;
    border: 23px solid rgba(103, 70, 255, .08);
    border-radius: 50%;
}

.stat-card-primary {
    background:
        radial-gradient(circle at 90% 12%, rgba(200, 255, 52, .6), transparent 13rem),
        linear-gradient(135deg, rgba(0, 223, 245, .18), rgba(255, 255, 255, .96) 48%, rgba(255, 43, 194, .13));
    border-color: rgba(103, 70, 255, .28);
}

.stat-card small {
    display: block;
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.stat-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin: 16px 0 10px;
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: clamp(3.25rem, 7vw, 6rem);
    line-height: .85;
    letter-spacing: -.07em;
}

.stat-card:not(.stat-card-primary) strong {
    font-size: clamp(2.9rem, 5vw, 4.5rem);
}

.stat-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 32rem;
    color: var(--ink-soft);
}

.stat-orbit {
    position: absolute;
    right: 31px;
    top: 31px;
    width: 58px;
    height: 58px;
    border: 7px solid var(--magenta);
    border-right-color: transparent;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(255, 43, 194, .28);
    transform: rotate(-26deg);
}

.stat-card.has-updated {
    border-color: var(--magenta);
    box-shadow: 0 20px 65px rgba(255, 43, 194, .22);
    transform: translateY(-4px) scale(1.01);
}

.floating-oracle-launcher {
    position: fixed;
    z-index: 120;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 12px 18px 12px 13px;
    border: 1px solid rgba(103, 70, 255, .34);
    border-radius: 999px;
    color: var(--ink);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(100deg, var(--cyan), var(--violet), var(--magenta), var(--acid)) border-box;
    box-shadow: 0 18px 55px rgba(63, 34, 200, .25), 0 0 25px rgba(0, 223, 245, .16);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-oracle-launcher:hover,
.floating-oracle-launcher:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(63, 34, 200, .32), 0 0 32px rgba(255, 43, 194, .2);
}

.floating-oracle-launcher > span:last-child {
    display: grid;
    text-align: left;
    line-height: 1.05;
}

.floating-oracle-launcher strong {
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .86rem;
    letter-spacing: .015em;
}

.floating-oracle-launcher small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .69rem;
}

.symbol-tiny {
    width: 39px;
    height: 39px;
    min-width: 39px;
}

.symbol-tiny::before {
    border-width: 4px;
}

.symbol-tiny::after {
    width: 7px;
    height: 7px;
}

.symbol-tiny > span {
    width: 3px;
    height: 3px;
}

.floating-oracle-panel {
    position: fixed;
    z-index: 125;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 78px);
    width: min(440px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 120px));
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(103, 70, 255, .28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 43, 194, .17), transparent 14rem),
        radial-gradient(circle at 8% 75%, rgba(0, 223, 245, .18), transparent 16rem),
        rgba(255, 255, 255, .98);
    box-shadow: 0 35px 110px rgba(40, 24, 90, .3), 0 0 50px rgba(0, 223, 245, .15);
    transform: translateY(16px) scale(.97);
    opacity: 0;
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease;
}

.floating-oracle-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-oracle-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 5px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--acid));
}

.floating-oracle-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.floating-oracle-heading h2 {
    margin: 7px 0 0;
    font-size: 1.7rem;
    letter-spacing: -.04em;
}

.floating-oracle-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.floating-oracle-intro {
    margin: 15px 0 19px;
    color: var(--ink-soft);
    font-size: .91rem;
}

.prayer-form.floating .ritual-pills {
    grid-template-columns: 1fr 1fr;
}

.prayer-form.floating .ritual-pills span {
    min-height: 42px;
    padding: 9px 8px;
    font-size: .72rem;
}

.prayer-form.floating textarea {
    min-height: 126px;
    padding: 15px;
}

.prayer-form.floating .field-meta {
    display: block;
}

.prayer-form.floating .field-meta > span:first-child {
    display: none;
}

.prayer-form.floating .field-meta > span:last-child {
    display: block;
    text-align: right;
}

.prayer-form.floating .submit-button {
    min-height: 53px;
}

.ask-link,
.primary-link {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.ask-link {
    width: auto;
    text-align: left;
}

.page-cta .primary-link {
    border: 0;
}

@media (max-width: 860px) {
    .stats-heading,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-heading {
        gap: 12px;
    }

    .stat-card {
        min-height: 190px;
    }
}

@media (max-width: 620px) {
    .stats-section {
        padding-top: 52px;
    }

    .floating-oracle-launcher {
        right: 13px;
        bottom: 13px;
        min-width: 0;
        padding: 10px;
    }

    .floating-oracle-launcher > span:last-child {
        display: none;
    }

    .floating-oracle-panel {
        right: 10px;
        bottom: 72px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 92px);
        padding: 21px;
        border-radius: 24px;
    }

    .prayer-form.floating .ritual-pills {
        grid-template-columns: 1fr 1fr;
    }
}

.ask-link {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Version 5.0 · menighed, bidragsydere og udvidet kanon */
.stats-grid.stats-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card-community {
    background:
        radial-gradient(circle at 90% 12%, rgba(200, 255, 52, .72), transparent 38%),
        linear-gradient(145deg, #ffffff, #efffff 52%, #fff0fb);
    border-color: rgba(0, 124, 146, .34);
    box-shadow: 8px 8px 0 rgba(0, 223, 245, .48);
}

.stat-card-community a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-top: auto;
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 30px;
    align-items: start;
    padding-block: 70px 100px;
}

.registration-grid-wide {
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
}

.registration-card,
.registration-aside,
.embed-panel,
.profile-detail-card {
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .94);
    box-shadow: 9px 9px 0 rgba(103, 70, 255, .16);
}

.registration-card {
    padding: clamp(24px, 4vw, 48px);
}

.registration-aside {
    position: sticky;
    top: 112px;
    padding: 30px;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 43, 194, .18), transparent 38%),
        linear-gradient(155deg, #ffffff, #f1feff);
}

.community-form {
    display: grid;
    gap: 19px;
    margin-top: 28px;
}

.community-form > label:not(.consent-row),
.code-label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.community-form label small {
    color: var(--muted);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
}

.community-form input[type="text"],
.community-form input[type="email"],
.community-form input[type="url"],
.community-form textarea,
.embed-code {
    width: 100%;
    border: 2px solid rgba(21, 17, 38, .58);
    border-radius: 15px;
    outline: none;
    background: #fff;
    color: var(--ink);
    padding: 14px 16px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.community-form input:focus,
.community-form textarea:focus,
.embed-code:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 5px rgba(103, 70, 255, .14), 5px 5px 0 rgba(0, 223, 245, .34);
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-two-columns label {
    display: grid;
    gap: 8px;
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .83rem;
    font-weight: 800;
}

.consent-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0, 223, 245, .09);
    color: var(--ink-soft);
    font-size: .9rem;
}

.consent-row input {
    width: 19px;
    height: 19px;
    margin-top: 3px;
    accent-color: var(--violet);
}

.consent-row a {
    color: var(--violet-dark);
    font-weight: 800;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hex-certificate {
    position: relative;
    display: grid;
    gap: 5px;
    margin: 26px 0;
    padding: 24px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(0, 223, 245, .13) 1px, transparent 1px),
        linear-gradient(rgba(255, 43, 194, .09) 1px, transparent 1px),
        #fff;
    background-size: 20px 20px;
    box-shadow: 7px 7px 0 var(--acid);
}

.hex-certificate span,
.profile-detail-card span {
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hex-certificate strong {
    font-family: "Oxanium", monospace;
    font-size: clamp(1.45rem, 4vw, 2.55rem);
    letter-spacing: .09em;
    overflow-wrap: anywhere;
}

.hex-certificate small {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--magenta-dark);
    font-weight: 900;
}

.form-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
}

.badge-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    margin: 24px 0;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, #ecfeff 45%, #fdf2f8);
    box-shadow: 6px 6px 0 var(--cyan);
}

.badge-preview div {
    display: grid;
}

.badge-preview strong {
    font-family: "Oxanium", system-ui, sans-serif;
    line-height: 1.15;
}

.badge-preview small {
    color: var(--muted);
}

.code-label {
    margin-top: 22px;
}

.embed-code {
    min-height: 92px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
}

.company-profile-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 72px;
}

.company-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 25%, rgba(0, 223, 245, .32), transparent 28rem),
        radial-gradient(circle at 88% 30%, rgba(255, 43, 194, .22), transparent 27rem),
        linear-gradient(180deg, rgba(255,255,255,.2), rgba(200,255,52,.08));
}

.company-profile-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}

.company-sigil {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 14px 14px 0 var(--magenta), -9px -9px 0 var(--cyan);
}

.company-sigil .symbol {
    position: absolute;
}

.company-sigil > strong {
    position: relative;
    z-index: 2;
    font-family: "Oxanium", sans-serif;
    font-size: 5rem;
}

.company-title {
    display: inline-flex;
    padding: 7px 12px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--acid);
    font-family: "Oxanium", sans-serif;
    font-weight: 800;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-block: 40px 70px;
}

.profile-detail-card {
    padding: 25px;
}

.profile-detail-card strong {
    display: block;
    margin: 10px 0;
    font-family: "Oxanium", sans-serif;
    font-size: 1.35rem;
}

.embed-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 35px;
    align-items: center;
    padding-bottom: 110px;
}

.embed-panel {
    padding: 24px;
}

.footer-contact {
    display: grid;
    align-content: start;
    gap: 4px;
}

.footer-contact span {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.footer-contact a {
    color: var(--violet-dark);
    font-family: "Oxanium", sans-serif;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .stats-grid.stats-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .registration-grid,
    .registration-grid-wide,
    .company-profile-grid,
    .profile-details-grid,
    .embed-section {
        grid-template-columns: 1fr;
    }

    .registration-aside {
        position: static;
    }

    .company-sigil {
        width: 180px;
    }
}

@media (max-width: 620px) {
    .stats-grid.stats-grid-four,
    .form-two-columns {
        grid-template-columns: 1fr;
    }

    .registration-grid {
        padding-block: 45px 75px;
    }

    .registration-card,
    .registration-aside {
        padding: 22px;
    }

    .form-actions-row > * {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 620px) {
    .scripture-verse {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 0;
        font-size: .94rem;
    }

    .verse-number {
        width: 25px;
        height: 25px;
        font-size: .62rem;
    }
}

/* Version 5.2 — medlemsportal og ceremoniel udmeldelse */
.member-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 96px;
}

.member-login-card {
    min-height: 430px;
}

.hex-input {
    font-family: "Oxanium", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1rem, 2.3vw, 1.25rem);
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.form-footnote {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.form-success {
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid rgba(57, 214, 126, .48);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(215, 255, 102, .2), rgba(0, 223, 245, .12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.member-choice-modal {
    width: min(680px, calc(100vw - 28px));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.member-choice-modal::backdrop {
    background:
        radial-gradient(circle at 50% 45%, rgba(103, 70, 255, .25), transparent 34%),
        rgba(20, 14, 48, .72);
    backdrop-filter: blur(12px) saturate(1.15);
}

.member-choice-shell {
    position: relative;
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid rgba(103, 70, 255, .26);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 233, .96)),
        var(--paper);
    box-shadow: 0 35px 95px rgba(34, 17, 88, .35), 0 0 65px rgba(0, 223, 245, .22);
    text-align: center;
    overflow: hidden;
}

.member-choice-shell::before,
.member-choice-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.member-choice-shell::before {
    width: 260px;
    height: 260px;
    right: -120px;
    top: -130px;
    border: 2px solid rgba(255, 45, 174, .28);
    box-shadow: 0 0 52px rgba(255, 45, 174, .2);
}

.member-choice-shell::after {
    width: 170px;
    height: 170px;
    left: -80px;
    bottom: -95px;
    border: 2px solid rgba(0, 223, 245, .35);
    box-shadow: 0 0 48px rgba(0, 223, 245, .2);
}

.member-choice-shell > * {
    position: relative;
    z-index: 1;
}

.member-choice-shell .symbol {
    margin: 0 auto 20px;
}

.member-choice-shell h2 {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2rem, 5vw, 3.55rem);
}

.member-choice-warning {
    margin: 20px auto 0;
    max-width: 560px;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(255, 45, 174, .08);
    color: var(--muted);
    font-size: .92rem;
}

.member-choice-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.member-choice-actions form {
    margin: 0;
}

.danger-button {
    min-height: 52px;
    padding: 0 25px;
    border: 1px solid rgba(175, 0, 85, .22);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--magenta), #ff6a4d);
    box-shadow: 0 12px 30px rgba(255, 45, 174, .23);
    color: #fff;
    cursor: pointer;
    font-family: "Oxanium", system-ui, sans-serif;
    font-weight: 800;
}

.danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 45, 174, .31);
}

.member-choice-actions .primary-link {
    min-height: 52px;
    border: 0;
    cursor: pointer;
}

@media (max-width: 850px) {
    .member-portal-grid {
        grid-template-columns: 1fr;
        padding-top: 24px;
        padding-bottom: 70px;
    }
}

@media (max-width: 560px) {
    .member-choice-actions,
    .member-choice-actions form,
    .member-choice-actions button {
        width: 100%;
    }
}

/* Version 6.0 — MySQL-menighed, samlet navigation og fælles login */
.primary-nav {
    align-items: center;
}

.primary-nav button,
.footer-link-button {
    font: inherit;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    color: #5e5671;
    background: transparent;
    cursor: pointer;
    font-size: .79rem;
    font-weight: 700;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--violet-dark);
    background: rgba(103, 70, 255, .075);
}

.nav-dropdown-toggle span {
    transition: transform .2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle span {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 12px);
    left: 50%;
    width: min(360px, calc(100vw - 36px));
    display: none;
    padding: 10px;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 20px;
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 24px 70px rgba(39, 20, 93, .22), 0 0 35px rgba(0, 223, 245, .12);
    transform: translateX(-50%);
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
}

.nav-dropdown-menu a {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 14px;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a strong {
    color: var(--ink);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .84rem;
}

.nav-dropdown-menu a small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
    background: linear-gradient(110deg, rgba(0, 223, 245, .12), rgba(255, 45, 174, .09));
}

.nav-join-button,
.nav-login-button {
    min-height: 38px;
    border-radius: 999px !important;
    cursor: pointer;
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.nav-join-button {
    padding: 0 15px;
    border: 0;
    color: #140f2b;
    background: linear-gradient(120deg, var(--acid), var(--cyan));
    box-shadow: 0 10px 24px rgba(0, 223, 245, .18);
}

.nav-login-button {
    display: inline-flex;
    align-items: center;
    padding: 0 15px !important;
    border: 1px solid rgba(103, 70, 255, .25);
    color: var(--violet-dark) !important;
    background: rgba(255, 255, 255, .82);
}

.join-choice-modal {
    width: min(800px, calc(100vw - 28px));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.join-choice-modal::backdrop {
    background: radial-gradient(circle at 50% 42%, rgba(0, 223, 245, .22), transparent 35%), rgba(20, 14, 48, .76);
    backdrop-filter: blur(12px) saturate(1.15);
}

.join-choice-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid rgba(103, 70, 255, .25);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 235, .97));
    box-shadow: 0 35px 95px rgba(34, 17, 88, .36), 0 0 65px rgba(0, 223, 245, .2);
    text-align: center;
}

.join-choice-shell > .symbol {
    margin: 0 auto 20px;
}

.join-choice-shell h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.join-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    text-align: left;
}

.join-choice-grid a {
    display: grid;
    gap: 9px;
    min-height: 190px;
    padding: 25px;
    border: 1px solid rgba(103, 70, 255, .18);
    border-radius: 22px;
    color: var(--ink);
    background: linear-gradient(145deg, rgba(0, 223, 245, .1), rgba(255, 255, 255, .9) 48%, rgba(255, 45, 174, .09));
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.join-choice-grid a:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(76, 42, 160, .16);
}

.join-choice-grid span {
    color: var(--magenta-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.join-choice-grid strong {
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: 1.5rem;
}

.join-choice-grid small {
    color: var(--muted);
    line-height: 1.55;
}

.login-code-certificate {
    margin-top: 14px;
    border-color: rgba(255, 45, 174, .35);
    background: linear-gradient(135deg, rgba(255, 45, 174, .08), rgba(200, 255, 52, .12));
}

.account-summary {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.account-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(103, 70, 255, .15);
    border-radius: 14px;
    background: rgba(255, 255, 255, .64);
}

.account-summary span {
    color: var(--muted);
    font-size: .82rem;
}

.hex-inline {
    font-family: "Oxanium", ui-monospace, monospace;
    letter-spacing: .06em;
}

.reset-code-panel {
    margin-top: 25px;
    padding: 18px;
    border: 1px dashed rgba(103, 70, 255, .28);
    border-radius: 18px;
    background: rgba(103, 70, 255, .04);
}

.reset-code-panel summary {
    cursor: pointer;
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-weight: 800;
}

.compact-form {
    margin-top: 16px;
}

.members-section {
    padding-top: 45px;
    padding-bottom: 100px;
}

.members-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.member-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.member-directory-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid rgba(103, 70, 255, .16);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .91), rgba(0, 223, 245, .055));
    box-shadow: 0 12px 28px rgba(69, 43, 124, .07);
}

.member-directory-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--violet-dark);
    background: conic-gradient(var(--cyan), var(--magenta), var(--acid), var(--cyan));
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .86), 0 0 18px rgba(0, 223, 245, .22);
    font-size: 1.5rem;
}

.member-directory-card h2 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.member-directory-card h2 span {
    color: var(--magenta-dark);
}

.member-directory-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.member-directory-card code {
    color: var(--violet-dark);
    background: transparent;
}

.empty-members {
    padding: clamp(35px, 7vw, 75px);
    border: 1px solid rgba(103, 70, 255, .17);
    border-radius: 28px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid rgba(103, 70, 255, .18);
    border-radius: 12px;
    color: var(--violet-dark);
    background: #fff;
    text-decoration: none;
    font-weight: 800;
}

.pagination a.is-current {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
}

.footer-link-button {
    padding: 0;
    border: 0;
    color: #dcd4ec;
    background: transparent;
    cursor: pointer;
    font-size: .78rem;
}

.footer-link-button:hover {
    color: var(--cyan);
}

@media (max-width: 1120px) {
    .primary-nav {
        align-items: stretch;
    }
    .nav-dropdown-toggle,
    .nav-join-button,
    .nav-login-button {
        width: 100%;
        justify-content: space-between;
        min-height: 44px;
        padding: 11px 12px !important;
        border-radius: 11px !important;
        text-align: left;
    }
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 5px;
        border-radius: 14px;
        box-shadow: none;
        transform: none;
    }
}

@media (max-width: 720px) {
    .join-choice-grid,
    .member-directory {
        grid-template-columns: 1fr;
    }
    .join-choice-grid a {
        min-height: 150px;
    }
    .members-toolbar,
    .account-summary > div {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Version 6.0 · teknisk opsætning */
.setup-stack {
    display: grid;
    gap: 1.5rem;
    padding-block: clamp(2rem, 5vw, 4.5rem);
}
.setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.setup-status {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 1rem 0 1.2rem;
    padding: 1rem 1.1rem;
    border: 2px solid var(--ink, #17142a);
    border-radius: 16px;
    background: #f5f1ff;
    box-shadow: 5px 5px 0 #a7f8ff;
}
.setup-status.is-ready strong {
    color: #4f16c8;
    font-family: "Oxanium", sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.setup-status span { color: var(--muted, #655f78); }
.setup-note { margin: 0; }
@media (max-width: 820px) {
    .setup-grid { grid-template-columns: 1fr; }
}

/* Version 6.1: kvoter, medlemsport og dagens prædiken */
.oracle-quota {
    margin: .65rem 0 0;
    padding: .65rem .8rem;
    border: 1px solid rgba(83, 35, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .62);
    color: var(--ink-soft, #4c4662);
    font-size: .82rem;
    line-height: 1.45;
}
.oracle-quota strong { color: var(--violet, #5b21ff); }
.inline-member-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--magenta, #e5007d);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sermon-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    margin-top: clamp(2rem, 5vw, 5rem);
    margin-bottom: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid rgba(84, 30, 255, .2);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(0, 237, 255, .32), transparent 28%),
        radial-gradient(circle at 12% 100%, rgba(255, 0, 148, .2), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,244,255,.93));
    box-shadow: 0 30px 80px rgba(70, 30, 160, .12);
}
.sermon-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(78, 25, 220, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 25, 220, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, #000, transparent 80%);
}
.sermon-feature > * { position: relative; z-index: 1; }
.sermon-feature h2 { margin: .2rem 0 .7rem; font-size: clamp(2rem, 4vw, 4rem); }
.sermon-feature-copy > p:not(.eyebrow) { max-width: 66ch; font-size: 1.05rem; }
.sermon-feature-notes { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.sermon-feature-notes span {
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(84, 30, 255, .13);
    font-size: .78rem;
    font-weight: 700;
}
.sermon-feature-action {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 1.35rem;
    text-align: center;
    border-radius: 28px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(0, 214, 230, .28);
    backdrop-filter: blur(12px);
}
.sermon-button {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 1rem 1.15rem;
    background: linear-gradient(100deg, #5b21ff, #e5007d 58%, #ff5c00);
    color: #fff;
    font-family: "Oxanium", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 14px 34px rgba(153, 0, 144, .24);
    cursor: pointer;
}
.sermon-button:hover { transform: translateY(-2px); }
.sermon-button:disabled { opacity: .65; cursor: wait; transform: none; }

.member-gate-modal,
.sermon-modal {
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    overflow: auto;
    scrollbar-width: none;
}
.member-gate-modal::-webkit-scrollbar,
.sermon-modal::-webkit-scrollbar,
.member-gate-shell::-webkit-scrollbar,
.sermon-shell::-webkit-scrollbar { display: none; }
.member-gate-modal::backdrop,
.sermon-modal::backdrop { background: rgba(28, 13, 60, .68); backdrop-filter: blur(8px); }
.member-gate-shell,
.sermon-shell {
    position: relative;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    scrollbar-width: none;
    padding: clamp(1.4rem, 4vw, 3rem);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 0, rgba(0, 231, 255, .3), transparent 30%),
        radial-gradient(circle at 0 100%, rgba(255, 0, 154, .18), transparent 38%),
        #fffdf8;
    box-shadow: 0 34px 110px rgba(26, 8, 60, .36);
}
.member-gate-shell h2,
.sermon-shell h2 { margin: .45rem 0 .8rem; font-size: clamp(1.8rem, 5vw, 3.3rem); }
.member-gate-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
    margin: 1.2rem 0 1.5rem;
}
.member-gate-benefits span {
    min-height: 86px;
    display: grid;
    place-items: center;
    padding: .8rem;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(91,33,255,.08), rgba(0,222,235,.1));
    border: 1px solid rgba(91,33,255,.14);
    font-weight: 800;
}
.sermon-loading { min-height: 380px; display: grid; place-items: center; align-content: center; text-align: center; gap: 1rem; }
.sermon-content blockquote { margin: 1rem 0 1.4rem; }
.sermon-body { font-size: 1.02rem; line-height: 1.78; }
.sermon-body p + p { margin-top: 1rem; }
.sermon-closing {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid #e5007d;
    background: rgba(229, 0, 125, .06);
    font-family: "Oxanium", sans-serif;
    font-weight: 700;
}
.sermon-error { padding: 1rem 0; }

@media (max-width: 760px) {
    .sermon-feature { grid-template-columns: 1fr; border-radius: 24px; }
    .member-gate-benefits { grid-template-columns: 1fr; }
    .member-gate-benefits span { min-height: 58px; }
}

/* Version 6.2: fælles loginmodal, forsidestatus og profiladministration */
.login-modal,
.delete-account-modal {
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 30px;
    color: var(--ink);
    background: transparent;
    overflow: auto;
    scrollbar-width: none;
}

.login-modal::-webkit-scrollbar,
.delete-account-modal::-webkit-scrollbar,
.login-modal-shell::-webkit-scrollbar,
.delete-account-shell::-webkit-scrollbar {
    display: none;
}

.login-modal::backdrop,
.delete-account-modal::backdrop {
    background: rgba(28, 13, 60, .68);
    backdrop-filter: blur(9px);
}

.login-modal-shell,
.delete-account-shell {
    position: relative;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    scrollbar-width: none;
    padding: clamp(1.45rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 0, rgba(0, 223, 245, .28), transparent 31%),
        radial-gradient(circle at 0 100%, rgba(255, 43, 194, .17), transparent 38%),
        #fffdf8;
    box-shadow: 0 34px 110px rgba(26, 8, 60, .38);
}

.login-modal-shell > .symbol,
.delete-account-shell > .symbol {
    margin-bottom: 1rem;
}

.login-modal-shell h2,
.delete-account-shell h2 {
    margin: .35rem 0 .75rem;
    font-size: clamp(1.85rem, 5vw, 3.15rem);
}

.login-modal-shell .community-form {
    margin-top: 1.25rem;
}

.login-modal-footnote {
    margin: 1.2rem 0 0;
    color: var(--muted);
    text-align: center;
}

.home-account-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(1.4rem, 4vw, 2.6rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 26px;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .94), rgba(247, 252, 255, .88)),
        #fff;
    box-shadow: 0 18px 55px rgba(64, 38, 130, .12);
}

.home-account-status-copy h2 {
    margin: .2rem 0 .4rem;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.home-account-status-copy p {
    margin: 0;
    color: var(--muted);
}

.home-account-status-copy strong {
    color: var(--violet-dark);
}

.home-account-notice {
    margin-top: .75rem !important;
    padding: .75rem .9rem;
    border-left: 4px solid var(--magenta);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 43, 194, .06);
}

.home-account-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
    gap: clamp(1.2rem, 3vw, 2.2rem);
    align-items: start;
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.profile-card .account-summary {
    margin: 1.3rem 0 1.5rem;
}

.profile-danger-zone {
    border-color: rgba(195, 35, 79, .2);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 43, 194, .13), transparent 35%),
        rgba(255, 255, 255, .86);
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .8rem 1.1rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(105deg, #b01649, #e5007d);
    box-shadow: 0 12px 28px rgba(176, 22, 73, .2);
    font-family: "Oxanium", system-ui, sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.danger-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.primary-nav button.nav-login-button {
    appearance: none;
}

@media (max-width: 850px) {
    .home-account-status,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .home-account-status-icon {
        display: none;
    }

    .home-account-status-actions {
        justify-content: flex-start;
    }
}

/* Version 6.3 — ensartet topmenu og robust loginmodal */
.primary-nav > a,
.primary-nav > button,
.primary-nav > .nav-dropdown > .nav-dropdown-toggle,
.primary-nav .nav-join-button,
.primary-nav .nav-login-button {
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .79rem !important;
    font-weight: 700 !important;
    line-height: 1.1;
}

.primary-nav .nav-join-button,
.primary-nav .nav-login-button {
    justify-content: center;
}


/* Version 6.4 — mega-menu, fast tilmeldingsknap og ugentlig tavshedspagt */
.header-inner {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 16px;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    color: #140f2b;
    background: linear-gradient(120deg, var(--acid), var(--cyan));
    box-shadow: 0 10px 26px rgba(0, 223, 245, .22), inset 0 0 0 1px rgba(255,255,255,.5);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .79rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.header-join-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 223, 245, .28), 0 0 18px rgba(200,255,52,.2);
}

.nav-mega-dropdown {
    position: static;
}

.nav-mega-menu {
    z-index: 90;
    top: calc(100% - 7px);
    left: 50%;
    width: min(1080px, calc(100vw - 36px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 0 0, rgba(0,223,245,.12), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(255,45,174,.1), transparent 30%),
        rgba(255,253,248,.985);
    transform: translateX(-50%);
}

.nav-dropdown.is-open .nav-mega-menu,
.nav-dropdown:focus-within .nav-mega-menu {
    display: grid;
}

.nav-mega-group {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(103,70,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.54);
}

.nav-mega-group h2 {
    margin: 0 0 8px;
    padding: 0 7px 8px;
    border-bottom: 1px solid rgba(103,70,255,.12);
    color: var(--magenta-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nav-mega-links {
    display: grid;
    gap: 3px;
}

.nav-mega-menu a {
    padding: 9px 8px;
}

.nav-mega-menu a strong {
    font-size: .79rem;
}

.nav-mega-menu a small {
    margin-top: 2px;
    font-size: .68rem;
    line-height: 1.35;
}

.privacy-promise-modal {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 30px;
    color: var(--ink);
    background: transparent;
    overflow: auto;
    scrollbar-width: none;
}

.privacy-promise-modal::-webkit-scrollbar,
.privacy-promise-shell::-webkit-scrollbar {
    display: none;
}

.privacy-promise-modal::backdrop {
    background: rgba(24, 10, 56, .7);
    backdrop-filter: blur(10px) saturate(1.1);
}

.privacy-promise-shell {
    position: relative;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: clamp(1.5rem, 4.5vw, 3.2rem);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0, rgba(0,223,245,.25), transparent 32%),
        radial-gradient(circle at 0 100%, rgba(255,43,194,.14), transparent 38%),
        #fffdf8;
    box-shadow: 0 36px 115px rgba(25, 8, 64, .42);
}

.privacy-promise-shell > .symbol {
    margin-bottom: .9rem;
}

.privacy-promise-shell h2 {
    margin: .35rem 0 .85rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.privacy-promise-lead {
    font-size: 1.08rem;
    line-height: 1.68;
}

.privacy-promise-points {
    display: grid;
    gap: .75rem;
    margin: 1.35rem 0;
}

.privacy-promise-points p {
    margin: 0;
    padding: .9rem 1rem;
    border: 1px solid rgba(103,70,255,.14);
    border-radius: 15px;
    background: rgba(255,255,255,.64);
    color: var(--muted);
    line-height: 1.55;
}

.privacy-promise-points strong {
    color: var(--violet-dark);
}

.privacy-promise-joke {
    margin: 1rem 0 0;
    color: var(--magenta-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 9px;
    }

    .primary-nav {
        top: 100%;
        right: 12px;
        left: 12px;
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .header-actions {
        grid-column: 2;
    }

    .nav-toggle {
        grid-column: 3;
        order: initial;
    }

    .header-actions .system-status {
        display: none;
    }

    .nav-mega-menu {
        position: static;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 7px;
        padding: 10px;
        border-radius: 16px;
        box-shadow: none;
        transform: none;
    }

    .nav-dropdown-toggle,
    .nav-login-button {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        padding: 11px 12px !important;
        border-radius: 11px !important;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 74px;
    }

    .brand {
        gap: 9px;
    }

    .brand .symbol-small {
        width: 36px;
        height: 36px;
    }

    .brand strong {
        font-size: .88rem;
    }

    .brand small {
        display: none;
    }

    .header-join-button {
        min-height: 36px;
        padding: 0 12px;
        font-size: .69rem;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-mega-menu {
        grid-template-columns: 1fr;
    }

    .nav-mega-group {
        padding: 8px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 6px;
    }

    .brand-copy strong {
        max-width: 98px;
        line-height: 1.05;
    }

    .header-join-button {
        padding: 0 9px;
        font-size: .63rem;
    }
}
