:root {
    --sand: #fff4d1;
    --sand-deep: #efc46d;
    --sun-core: #ffd66b;
    --sun-glow: #ff9c3d;
    --coral: #ff7f62;
    --aqua: #1bc7d4;
    --aqua-dark: #046d84;
    --ocean: #025d78;
    --night: #083044;
    --white-glass: rgba(255, 255, 255, 0.8);
    --blue-glass: rgba(4, 125, 150, 0.16);
    --shadow: 0 28px 80px rgba(3, 55, 78, 0.22);
    --radius-xl: 34px;
    --flight-progress: 0.04;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--night);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #9de9f4 0%, #dbfbff 35%, #fff4d1 66%, #eefcff 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    left: -8vw;
    right: -8vw;
    pointer-events: none;
    z-index: -2;
}

body::before {
    bottom: -14vh;
    height: 42vh;
    background: linear-gradient(180deg, rgba(15, 185, 205, 0.72), rgba(2, 93, 120, 0.94));
    clip-path: polygon(0 27%, 9% 19%, 18% 27%, 28% 16%, 40% 29%, 52% 18%, 63% 28%, 74% 17%, 86% 28%, 100% 19%, 100% 100%, 0 100%);
    animation: oceanDrift 9s ease-in-out infinite alternate;
}

body::after {
    bottom: 0;
    height: 18vh;
    background: linear-gradient(180deg, rgba(255, 244, 209, 0.7), rgba(239, 196, 109, 0.78));
    clip-path: polygon(0 35%, 14% 42%, 29% 28%, 47% 40%, 66% 27%, 82% 38%, 100% 30%, 100% 100%, 0 100%);
    z-index: -1;
}

button,
input,
textarea,
a {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

code {
    padding: 0.15rem 0.38rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
}

.sky-noise {
    display: none;
}

.palm-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.palm-tree,
.palm-leaf {
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 18px 34px rgba(3, 55, 78, 0.16));
}

.palm-tree {
    right: clamp(1rem, 5vw, 4rem);
    bottom: clamp(1rem, 5vh, 3rem);
    width: clamp(12rem, 23vw, 21rem);
    height: clamp(15rem, 31vw, 27rem);
    background-image: url('/images/Palme/Palme.png');
    background-position: bottom center;
    transform-origin: bottom center;
    animation: palmSway 8s ease-in-out infinite;
}

.palm-leaf {
    background-image: url('/images/Palme/Blatt.png');
    opacity: 0.9;
}

.palm-leaf-right {
    top: clamp(10rem, 23vh, 15rem);
    right: clamp(-3.5rem, -2vw, -1rem);
    width: clamp(8rem, 14vw, 13rem);
    height: clamp(13rem, 22vw, 18rem);
    transform: rotate(-8deg);
    opacity: 0.72;
}

.palm-leaf-left {
    top: clamp(11rem, 26vh, 17rem);
    left: clamp(-3.5rem, -2vw, -1rem);
    width: clamp(8rem, 14vw, 13rem);
    height: clamp(13rem, 22vw, 18rem);
    transform: scaleX(-1) rotate(-10deg);
    opacity: 0.7;
}

.palm-leaf-bottom {
    left: clamp(-1.5rem, 1vw, 1rem);
    bottom: clamp(1rem, 4vh, 2.75rem);
    width: clamp(10rem, 16vw, 15rem);
    height: clamp(14rem, 24vw, 21rem);
    transform: scaleX(-1) rotate(8deg);
    opacity: 0.62;
}

.site-header,
.site-footer,
main,
section,
.landing-shell,
.missing-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    position: relative;
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.1rem;
    text-align: center;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-brand img,
.gate-logo {
    width: clamp(15rem, 26vw, 22rem);
    height: auto;
}

.site-header-note {
    margin: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: rgba(8, 48, 68, 0.78);
    font-size: 0.92rem;
    font-weight: 700;
}

.site-footer {
    position: relative;
    z-index: 22;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    padding: 2.4rem 0 3rem;
    color: rgba(8, 48, 68, 0.76);
    font-weight: 700;
}

.site-footer img {
    width: clamp(9rem, 20vw, 14rem);
    height: auto;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-shell {
    padding: 1.4rem 0 1.5rem;
}

.landing-hero,
.hero-section,
.gift-section {
    display: grid;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.landing-hero {
    grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
    align-items: start;
    min-height: min(60vh, 40rem);
    padding: clamp(1rem, 3vh, 2.25rem) 0 0.75rem;
}

.landing-copy h1,
.missing-card h1,
.hero-copy h1,
.section-heading h2,
.gift-copy h2,
.voucher-card h2 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.landing-copy .lead,
.landing-copy p,
.missing-card p,
.section-heading p:not(.eyebrow),
.personal-text,
.gift-copy p:not(.eyebrow),
.journey-card p,
.voucher-message,
.contact-hint {
    line-height: 1.72;
    color: rgba(8, 48, 68, 0.78);
}

.landing-card,
.form-alert,
.builder-form,
.journey-card,
.quiz-card,
.empty-gallery,
.voucher-card,
.gift-stage,
.missing-card,
.gate-card,
.boarding-card,
.collection-card,
.slug-preview-card {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-xl);
    background: var(--white-glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.landing-card {
    padding: clamp(1.3rem, 4vw, 2rem);
    align-self: center;
}

.process-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.slug-preview-card {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(233, 249, 252, 0.72));
}

.slug-preview-card span {
    color: rgba(8, 48, 68, 0.66);
    font-size: 0.9rem;
    font-weight: 700;
}

.slug-preview-link {
    color: var(--aqua-dark);
    font-size: 1.3rem;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    word-break: break-word;
}

.slug-preview-link:hover,
.slug-preview-link:focus-visible {
    color: var(--ocean);
}

.slug-preview-card small {
    color: rgba(8, 48, 68, 0.62);
    font-size: 0.9rem;
}

.slug-preview-card strong {
    font-size: 1.3rem;
}

.builder-section,
.checkout-shell,
.journey-section,
.destination-section,
.quiz-section,
.gift-section,
.voucher-section {
    padding: clamp(2.25rem, 6vh, 4.5rem) 0;
}

.checkout-shell {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
}

.checkout-card {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-xl);
    background: var(--white-glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: clamp(1.4rem, 4vw, 2.2rem);
}

.checkout-header,
.checkout-total-row,
.checkout-actions,
.order-table-head,
.order-table-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.checkout-header {
    margin-bottom: 1.6rem;
}

.checkout-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.status-pill {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--aqua-dark);
    font-weight: 850;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(5, 124, 145, 0.12);
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.checkout-summary div,
.payment-method-card,
.order-table-row {
    padding: 1rem 1.1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(5, 124, 145, 0.12);
}

.checkout-summary span,
.order-table-head span {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(8, 48, 68, 0.66);
    font-size: 0.9rem;
    font-weight: 700;
}

.checkout-summary strong {
    font-size: 1.05rem;
}

.checkout-section + .checkout-section {
    margin-top: 1.8rem;
}

.legal-info-card,
.legal-meta {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(5, 124, 145, 0.12);
}

.legal-info-card p,
.legal-meta {
    margin: 0;
    color: rgba(8, 48, 68, 0.76);
    line-height: 1.65;
}

.legal-link-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.checkout-form {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
}

.checkout-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: start;
}

.checkout-details-grid > .form-field-wide,
.checkout-details-grid > .checkout-section:last-child {
    grid-column: 1 / -1;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.payment-method-card {
    display: grid;
    gap: 0.55rem;
    cursor: pointer;
}

.payment-method-card input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--aqua-dark);
}

.payment-method-card span {
    font-weight: 850;
}

.payment-method-card small {
    color: rgba(8, 48, 68, 0.66);
}

.checkout-total-row {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(5, 124, 145, 0.12);
}

.checkout-total-row span {
    display: block;
    color: rgba(8, 48, 68, 0.66);
    font-size: 0.9rem;
    font-weight: 700;
}

.checkout-total-row strong {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.checkout-actions {
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.order-table {
    display: grid;
    gap: 0.85rem;
}

.order-table-head {
    padding: 0 1rem;
    color: rgba(8, 48, 68, 0.7);
    font-weight: 800;
}

.order-table-head span,
.order-table-row span,
.order-table-row > div {
    flex: 1 1 0;
    min-width: 0;
}

.order-table-row form {
    margin: 0;
}

.admin-order-actions {
    display: grid;
    gap: 0.65rem;
    align-items: start;
    justify-items: stretch;
    width: min(100%, 12rem);
    margin-left: auto;
}

.admin-order-actions form {
    width: 100%;
}

.admin-inline-action {
    border: 0;
    cursor: pointer;
}

.admin-action-button {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.order-cell {
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-number {
    font-weight: 800;
}

.order-email {
    word-break: break-word;
}

.danger-button {
    background: linear-gradient(135deg, #ef6a52, #d54732);
    box-shadow: 0 12px 24px rgba(213, 71, 50, 0.22);
}

.builder-heading {
    margin-bottom: 1.8rem;
}

.builder-form {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.compact-grid {
    margin-top: 1rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field span,
.editor-section-header h3,
.collection-card-head strong {
    font-weight: 800;
}

.form-field small {
    color: rgba(8, 48, 68, 0.64);
}

.field-error {
    color: #b33518;
    font-size: 0.92rem;
    font-weight: 700;
}

input.input-validation-error,
textarea.input-validation-error {
    border-color: rgba(179, 53, 24, 0.92);
    box-shadow: 0 0 0 4px rgba(179, 53, 24, 0.14);
}

.checkbox-field {
    gap: 0.55rem;
}

.section-toggle-field {
    margin-bottom: 0.8rem;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
}

.checkbox-row input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    padding: 0;
    border-radius: 0.35rem;
    box-shadow: none;
    accent-color: var(--aqua-dark);
    flex: 0 0 auto;
}

.checkbox-row a {
    color: var(--aqua-dark);
    font-weight: 900;
}

.collapsible-section {
    overflow: hidden;
}

.collapsible-section.is-collapsed {
    display: none;
}

.collapsible-body {
    display: grid;
    transition: grid-template-rows 0.28s ease, opacity 0.28s ease, margin-top 0.28s ease;
}

.collapsible-section.is-collapsed .collapsible-body {
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
}

.collapsible-section:not(.is-collapsed) .collapsible-body {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1rem;
}

.collapsible-body > .collection-list {
    min-height: 0;
}

.form-field input[type="file"] {
    padding: 0.45rem 0.55rem 0.45rem 0.45rem;
    border-style: dashed;
    border-color: rgba(5, 124, 145, 0.2);
    border-radius: 1.2rem;
    color: rgba(8, 48, 68, 0.8);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 251, 255, 0.84));
}

.form-field input[type="file"]::file-selector-button {
    margin-right: 0.9rem;
    border: none;
    border-radius: 999px;
    padding: 0.78rem 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--aqua-dark), var(--aqua));
    box-shadow: 0 10px 22px rgba(5, 124, 145, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.form-field input[type="file"]:hover::file-selector-button {
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 14px 26px rgba(5, 124, 145, 0.24);
}

.form-field input[type="file"]:focus::file-selector-button {
    outline: none;
}

.form-field-wide {
    grid-column: 1 / -1;
}

input,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(5, 124, 145, 0.22);
    border-radius: 1.2rem;
    padding: 0.95rem 1.05rem;
    color: var(--night);
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 4px rgba(27, 199, 212, 0.18);
}

button,
.primary-link,
.secondary-link,
#agencyLink {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.24rem;
    text-decoration: none;
    font-weight: 850;
    color: #063241;
    background: linear-gradient(135deg, var(--sun-core), #fff0a0 46%, var(--coral));
    box-shadow: 0 14px 30px rgba(255, 138, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover,
.primary-link:hover,
.secondary-link:hover,
#agencyLink:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 138, 0, 0.3);
    filter: saturate(1.06);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.64;
    transform: none;
}

.secondary-link {
    color: #fff;
    background: linear-gradient(135deg, var(--aqua-dark), var(--aqua));
    box-shadow: 0 14px 30px rgba(5, 124, 145, 0.22);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--aqua-dark);
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.form-alert {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding: 1rem 1.1rem;
}

.form-alert p,
.form-alert ul {
    margin: 0;
}

.submission-alert ul {
    padding-left: 1.2rem;
}

.hero-alert {
    margin-bottom: 1.5rem;
}

.is-hidden {
    display: none;
}

.form-alert.is-success {
    background: linear-gradient(135deg, rgba(236, 255, 243, 0.92), rgba(255, 255, 255, 0.86));
}

.form-alert.is-error {
    background: linear-gradient(135deg, rgba(255, 238, 237, 0.94), rgba(255, 255, 255, 0.86));
}

.generated-link-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.generated-link-row input {
    flex: 1 1 18rem;
    border-radius: 999px;
}

.editor-section + .editor-section {
    margin-top: 2rem;
}

.editor-section-header,
.collection-card-head,
.gate-form,
.quiz-answer-row,
.pin-panel,
.hero-actions,
.generated-link-row,
.builder-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.editor-section-header {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.editor-section-header h3 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.collection-list {
    display: grid;
    gap: 1rem;
}

.collection-card {
    padding: 1.1rem;
}

.collection-card-head {
    justify-content: space-between;
}

.collection-remove {
    padding: 0.7rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #b95045, #d67a58);
    box-shadow: 0 10px 24px rgba(185, 80, 69, 0.22);
}

.builder-actions {
    justify-content: flex-end;
    margin-top: 2rem;
}

.compact-alert {
    margin: 0;
    width: min(100%, 36rem);
}

.missing-shell {
    min-height: calc(100vh - 14rem);
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.missing-card {
    width: min(760px, 100%);
    padding: clamp(1.4rem, 5vw, 3rem);
    text-align: center;
}

.breeze-layer {
    display: none;
}

.scroll-plane {
    position: fixed;
    top: calc(8vh + var(--flight-progress) * 70vh);
    left: calc(88vw - var(--flight-progress) * 70vw);
    z-index: 15;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(calc(135deg + var(--flight-progress) * 18deg));
    opacity: 0;
    filter: drop-shadow(0 18px 16px rgba(2, 93, 120, 0.3));
    will-change: top, left, transform;
    transition: top 0.16s linear, left 0.16s linear, transform 0.16s linear, opacity 0.35s ease;
}

.scroll-plane.is-active {
    opacity: 1;
}

.plane-body {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(3.3rem, 7vw, 6rem);
    height: clamp(3.3rem, 7vw, 6rem);
    border-radius: 50%;
    font-size: clamp(2.2rem, 5.6vw, 4.8rem);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 76, 94, 0.44);
    background: linear-gradient(135deg, rgba(27, 199, 212, 0.84), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

.plane-trail {
    position: absolute;
    top: 50%;
    left: calc(50% - clamp(2.35rem, 4.8vw, 3.9rem));
    width: clamp(4.4rem, 9vw, 7.4rem);
    height: 0.4rem;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 44%, rgba(255, 255, 255, 0.24) 100%);
    transform: translate(-100%, -50%);
    transform-origin: right center;
    filter: blur(1.2px);
    opacity: 0.9;
}

.plane-trail::before,
.plane-trail::after {
    content: "";
    position: absolute;
    right: 0.2rem;
    width: 88%;
    height: 0.18rem;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(232, 250, 255, 0.88));
    opacity: 0.82;
}

.plane-trail::before {
    top: -0.22rem;
}

.plane-trail::after {
    bottom: -0.22rem;
}

.scroll-plane.is-active .plane-trail {
    animation: planeTrailPulse 1.8s ease-in-out infinite;
}

.gate-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.3rem;
    background:
        linear-gradient(145deg, rgba(0, 89, 119, 0.72), rgba(255, 200, 61, 0.34)),
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), transparent 18rem),
        linear-gradient(180deg, #72dfed, #fff0bd);
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.gate-screen.unlocked {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2rem) scale(1.02);
}

.gate-card {
    position: relative;
    width: min(100%, 760px);
    padding: clamp(1.4rem, 5vw, 4rem);
    overflow: hidden;
}

.gate-card::before {
    content: "";
    position: absolute;
    width: 24rem;
    aspect-ratio: 1;
    right: -8rem;
    bottom: -12rem;
    border-radius: 45% 55% 52% 48%;
    background: linear-gradient(135deg, rgba(27, 199, 212, 0.24), rgba(255, 200, 61, 0.35));
    animation: blobFloat 8s ease-in-out infinite;
}

.gate-card > * {
    position: relative;
}

.gate-logo {
    margin-bottom: 1.1rem;
}

.gate-card h1 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(2.1rem, 5.8vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.gate-card p {
    max-width: 58ch;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.gate-hint,
.hint {
    color: rgba(8, 48, 68, 0.72);
    font-size: 0.95rem;
}

.page-shell {
    opacity: 1;
    transition: opacity 0.65s ease, filter 0.65s ease;
}

.page-shell.locked {
    opacity: 0;
    pointer-events: none;
    filter: blur(16px);
    max-height: 100vh;
    overflow: hidden;
}

.legal-page {
    padding: clamp(2rem, 5vh, 4rem) 0;
}

.legal-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.legal-copy h2 {
    margin: 1.8rem 0 0.65rem;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.legal-copy p {
    margin: 0;
    line-height: 1.75;
    color: rgba(8, 48, 68, 0.78);
}

.hero-section {
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
    align-items: center;
    min-height: calc(100vh - 7rem);
    padding: clamp(4rem, 10vh, 7rem) 0 4rem;
}

.hero-copy h2 {
    margin: 1rem 0;
    color: var(--ocean);
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.personal-text {
    max-width: 62ch;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.boarding-card {
    position: relative;
    padding: clamp(1.3rem, 4vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 242, 207, 0.66)),
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(5, 124, 145, 0.08) 35px 36px);
    border: 1px dashed rgba(5, 124, 145, 0.42);
    transform: rotate(2deg);
}

.boarding-card::before {
    content: "";
    position: absolute;
    inset: 1rem auto 1rem 34%;
    width: 1px;
    border-left: 2px dashed rgba(5, 124, 145, 0.28);
}

.boarding-card > span {
    display: inline-block;
    color: var(--aqua-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.boarding-card strong {
    display: block;
    margin: 1rem 0 1.2rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.boarding-card dl {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.boarding-card div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.boarding-card dt {
    color: rgba(8, 48, 68, 0.62);
    font-weight: 800;
}

.boarding-card dd {
    margin: 0;
    font-weight: 900;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.journey-card {
    min-height: 15rem;
    padding: 1.2rem;
    transition-delay: var(--delay);
    overflow: hidden;
    position: relative;
}

.journey-card::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -3.4rem;
    width: 9rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 199, 212, 0.22), transparent 68%);
}

.journey-card span {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journey-card h3 {
    margin: 0.7rem 0;
    font-size: 1.35rem;
}

.destination-section {
    width: min(1260px, calc(100% - 2rem));
}

.destination-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(0.85rem, 2vw, 1.3rem);
    align-items: stretch;
}

.destination-photo {
    grid-column: span 4;
    min-height: 310px;
    margin: 0;
    border-radius: 2.1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 70px rgba(2, 93, 120, 0.26);
    transform: translateY(70px) rotate(var(--start-rotate, 0deg)) scale(0.92);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.9s ease;
    transition-delay: calc((var(--i) % 4) * 90ms);
}

.destination-photo:nth-child(3n + 1) {
    grid-column: span 5;
    --start-rotate: -2deg;
}

.destination-photo:nth-child(3n + 2) {
    grid-column: span 3;
    --start-rotate: 2.5deg;
}

.destination-photo.in-view {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
}

.destination-photo img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.4s ease;
}

.destination-photo.in-view img {
    transform: scale(1);
}

.destination-photo figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.78rem 0.9rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 850;
    background: rgba(5, 58, 77, 0.58);
    backdrop-filter: blur(14px);
}

.empty-gallery {
    padding: 2rem;
    text-align: center;
}

.quiz-panel {
    width: min(880px, 100%);
    margin: 0 auto;
}

.quiz-progress {
    height: 0.75rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 0 0 1px rgba(5, 124, 145, 0.13);
}

.quiz-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--aqua), var(--sun-core), var(--coral));
    transition: width 0.45s ease;
}

.quiz-progress-text {
    text-align: center;
    font-weight: 850;
    color: rgba(8, 48, 68, 0.72);
}

.quiz-card {
    padding: clamp(1.2rem, 4vw, 2.4rem);
}

.quiz-card h3 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(1.45rem, 3.5vw, 2.35rem);
}

.quiz-success {
    color: var(--aqua-dark);
    font-weight: 760;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0;
}

.quiz-option {
    color: var(--night);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
    border: 1px solid rgba(5, 124, 145, 0.16);
}

.quiz-option.active,
.quiz-option.correct {
    background: linear-gradient(135deg, var(--aqua), #e8ffff);
}

.quiz-feedback.is-error {
    color: #b33518;
    font-weight: 800;
}

.quiz-feedback.is-success {
    color: #0e7a51;
    font-weight: 850;
}

.quiz-next {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--aqua), #f6ffff);
}

.gift-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
}

.gift-section.locked-gift .gift-stage {
    opacity: 0.58;
    filter: saturate(0.65);
}

.gift-section.locked-gift .pin-panel {
    pointer-events: none;
}

.gift-copy h2 {
    font-size: clamp(2rem, 5.5vw, 4.6rem);
}

.gift-stage {
    display: grid;
    justify-items: center;
    padding: clamp(1.5rem, 5vw, 3rem);
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 200, 61, 0.32), transparent 16rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(227, 251, 255, 0.62));
}

.travel-box {
    position: relative;
    width: min(64vw, 260px);
    height: 230px;
    margin: 1.2rem auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform-style: preserve-3d;
    transition: none;
}

.travel-box:hover,
.travel-box:focus-visible {
    transform: none;
    filter: none;
    box-shadow: none;
    outline: none;
}

.box-body,
.box-lid,
.box-tag {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
}

.box-body {
    bottom: 0;
    width: 78%;
    height: 58%;
    border-radius: 1.2rem 1.2rem 1.8rem 1.8rem;
    color: #fff;
    font-size: 3.8rem;
    background: linear-gradient(135deg, var(--aqua-dark), var(--aqua));
    box-shadow: 0 22px 55px rgba(2, 93, 120, 0.38), inset 0 0 0 7px rgba(255, 255, 255, 0.18);
}

.box-body::before,
.box-lid::before {
    content: "";
    position: absolute;
    inset: 0 43%;
    background: rgba(255, 200, 61, 0.9);
}

.box-lid {
    bottom: 54%;
    width: 88%;
    height: 22%;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, var(--coral), #ffad76);
    box-shadow: 0 16px 35px rgba(255, 111, 97, 0.26);
    transform-origin: 10% 100%;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.box-tag {
    top: 13%;
    width: 4rem;
    aspect-ratio: 1.22;
    border-radius: 0.8rem 0.8rem 0.8rem 0.2rem;
    color: var(--night);
    font-weight: 950;
    background: #fff7c9;
    box-shadow: 0 10px 26px rgba(8, 48, 68, 0.18);
    transform: translateX(1.9rem) rotate(8deg);
    z-index: 2;
}

.travel-box.opened .box-lid {
    transform: translateX(-50%) translateY(-4.6rem) rotate(-18deg);
}

.travel-box.opened .box-body {
    animation: boxGlow 1.4s ease infinite alternate;
}

.pin-reveal {
    width: 100%;
    margin: 0 0 0.35rem;
    font-weight: 850;
    color: var(--aqua-dark);
}

.voucher-section {
    padding-top: 2rem;
}

.voucher-section.hidden {
    display: none;
}

.voucher-card {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: clamp(1.6rem, 5vw, 3.4rem);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 242, 207, 0.72)),
        radial-gradient(circle at 15% 12%, rgba(255, 200, 61, 0.28), transparent 12rem);
}

.voucher-card h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
}

.voucher-message {
    max-width: 62ch;
    margin: 1.2rem auto;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.voucher-value {
    width: min(420px, 100%);
    margin: 1rem auto 1.3rem;
    padding: 1rem 1.4rem;
    border-radius: 1.4rem;
    color: #fff;
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--aqua-dark), var(--aqua), var(--sun-core));
    box-shadow: 0 24px 60px rgba(5, 124, 145, 0.24);
}

.reveal,
.reveal-now {
    opacity: 0;
    transform: translateY(34px);
}

.reveal.in-view,
.reveal-now {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.confetti-piece {
    position: fixed;
    left: var(--x);
    top: var(--y);
    z-index: 120;
    width: var(--size);
    height: calc(var(--size) * 0.66);
    border-radius: 999px;
    pointer-events: none;
    background: var(--confetti-color);
    animation: confettiFly var(--duration) ease-out forwards;
}

@keyframes oceanDrift {
    to {
        transform: translateX(3vw) translateY(1.4vh);
    }
}

@keyframes sparkleDrift {
    to {
        background-position: 220px 160px, -180px 140px;
    }
}

@keyframes palmSway {
    50% {
        transform: translateY(-5px) rotate(-4deg);
    }
}

@keyframes blobFloat {
    50% {
        transform: translate(-1rem, -1rem) rotate(18deg);
        border-radius: 55% 45% 48% 52%;
    }
}

@keyframes boxGlow {
    to {
        box-shadow: 0 32px 80px rgba(255, 200, 61, 0.44), inset 0 0 0 7px rgba(255, 255, 255, 0.26);
    }
}

@keyframes planeTrailPulse {
    0%,
    100% {
        opacity: 0.82;
        transform: translate(-100%, -50%) scaleX(0.96);
    }

    50% {
        opacity: 1;
        transform: translate(-100%, -50%) scaleX(1.04);
    }
}

@keyframes confettiFly {
    to {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .landing-hero,
    .hero-section,
    .gift-section,
    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destination-photo,
    .destination-photo:nth-child(3n + 1),
    .destination-photo:nth-child(3n + 2) {
        grid-column: span 6;
    }
}

@media (max-width: 700px) {
    .site-header {
        align-items: center;
    }

    .builder-grid,
    .journey-grid,
    .checkout-summary,
    .checkout-details-grid {
        grid-template-columns: 1fr;
    }

    .generated-link-row,
    .checkout-header,
    .checkout-total-row,
    .checkout-actions,
    .order-table-head,
    .order-table-row,
    .editor-section-header,
    .collection-card-head,
    .gate-form,
    .quiz-answer-row,
    .pin-panel,
    .hero-actions,
    .builder-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    button,
    .primary-link,
    .secondary-link,
    #agencyLink {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .palm-tree {
        right: -0.35rem;
        bottom: 2.25rem;
        width: 9.5rem;
        height: 12.5rem;
        opacity: 0.88;
    }

    .palm-leaf-right,
    .palm-leaf-left,
    .palm-leaf-bottom {
        width: 7rem;
        height: 10rem;
    }

    .palm-leaf-right {
        top: 10.5rem;
        right: -2.25rem;
    }

    .palm-leaf-left {
        top: 12rem;
        left: -2.4rem;
    }

    .palm-leaf-bottom {
        left: -2rem;
        bottom: 1.8rem;
    }

    .site-header,
    .site-footer,
    section,
    .landing-shell,
    .missing-shell {
        width: min(100% - 1rem, 1180px);
    }

    .site-header {
        padding-top: 0.9rem;
        gap: 0.6rem;
    }

    .site-brand img {
        width: min(17rem, 72vw);
    }

    .landing-shell {
        padding-top: 0.75rem;
    }

    .landing-hero {
        min-height: 0;
        gap: 1rem;
        padding: 0.5rem 0 0.75rem;
    }

    .landing-card {
        align-self: start;
    }

    .builder-section {
        padding-top: 1.75rem;
    }

    .landing-card,
    .form-alert,
    .builder-form,
    .checkout-card,
    .journey-card,
    .quiz-card,
    .gift-stage,
    .voucher-card,
    .missing-card,
    .gate-card,
    .collection-card,
    .slug-preview-card {
        border-radius: 1.4rem;
    }

    .destination-gallery {
        grid-template-columns: 1fr;
    }

    .destination-photo,
    .destination-photo:nth-child(3n + 1),
    .destination-photo:nth-child(3n + 2) {
        grid-column: auto;
    }

    .boarding-card::before {
        display: none;
    }

    .scroll-plane {
        opacity: 0.58;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
