/* Bruiloft galerij website. Colors follow the app's legacy theme (Theme.legacy in the iOS app). */

:root {
    --cream: #fffaf8;
    --blush: #fbe9e7;
    --blush-deep: #f6dcd8;
    --rose-soft: #f3d6d7;
    --rose: #ba6b6c;
    --rose-dark: #96494b;
    --ink: #00251a;
    --ink-soft: #3d5a51;
    --muted: #5d706a;
    --line: rgba(0, 37, 26, 0.1);
    --white: #ffffff;

    --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 22px;
    /* Buttons and fields, same as Radius.standard in the iOS app */
    --radius-control: 14px;
    /* Smaller controls (40px and less): 14px would make them read as pills */
    --radius-control-small: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 37, 26, 0.06), 0 4px 14px -6px rgba(0, 37, 26, 0.12);
    --shadow-lg: 0 2px 6px rgba(0, 37, 26, 0.06), 0 30px 60px -24px rgba(0, 37, 26, 0.35);
    --gutter: 20px;
    --header-height: 68px;

    color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--rose-dark);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--rose-dark);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.container--narrow {
    max-width: 780px;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Buttons & badges ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-control);
    background: var(--ink);
    color: var(--cream);
    font: 600 16px/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
    background: #0b3a2c;
}

.btn:active {
    transform: scale(0.97);
}

.btn--small {
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-control-small);
    font-size: 15px;
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover {
    background: var(--white);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-badges--center {
    justify-content: center;
}

.store-badge {
    display: block;
    border-radius: 10px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge img {
    width: 150px;
    height: auto;
}

/* ---------- App banner (non-Safari phones) ---------- */

.app-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px max(14px, env(safe-area-inset-right)) 10px max(8px, env(safe-area-inset-left));
    background: var(--white);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.3;
}

.app-banner[hidden] {
    display: none;
}

.app-banner__close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.app-banner__close .icon {
    width: 16px;
    height: 16px;
}

.app-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--blush);
    box-shadow: 0 0 0 1px var(--line);
}

.app-banner__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.app-banner__text span {
    color: var(--muted);
    font-size: 13px;
}

.app-banner__open {
    padding: 7px 16px;
    border-radius: var(--radius-control-small);
    background: var(--rose);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 248, 0.82);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 36px;
    height: 36px;
    /* The app icon's own corner shape at this size */
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__link,
.site-nav__lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-control-small);
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__lang:hover {
    background: var(--blush);
    color: var(--ink);
}

.site-nav__lang .icon {
    width: 18px;
    height: 18px;
}

.site-nav__lang-short,
.site-nav__download-short {
    display: none;
}

.site-nav .btn {
    margin-left: 8px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 96px;
    background:
        radial-gradient(60% 70% at 85% 30%, rgba(221, 158, 158, 0.35), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(243, 214, 215, 0.9), transparent 70%),
        linear-gradient(180deg, var(--cream), var(--blush));
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
}

.hero__title {
    font-size: clamp(40px, 6vw, 68px);
}

.hero__lead {
    max-width: 34em;
    margin: 22px 0 32px;
    color: var(--ink-soft);
    font-size: clamp(18px, 2vw, 20px);
}

.hero__note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

/* Phone mockup of the albums screen */

.phone {
    position: relative;
    width: 290px;
    aspect-ratio: 9 / 19;
    padding: 10px;
    border-radius: 48px;
    background: #1b1b1d;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3a3d;
    transform: rotate(2deg);
}

.phone__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 38px;
    background: var(--blush);
}

.phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px 0;
    font-size: 13px;
    font-weight: 600;
}

.phone__island {
    width: 78px;
    height: 22px;
    border-radius: 999px;
    background: #1b1b1d;
}

.phone__signal {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 26px;
    height: 10px;
}

.phone__signal i {
    width: 4px;
    border-radius: 1px;
    background: var(--ink);
}

.phone__signal i:nth-child(1) { height: 5px; }
.phone__signal i:nth-child(2) { height: 7px; }
.phone__signal i:nth-child(3) { height: 10px; }

.phone__bar {
    padding: 14px 18px 12px;
    text-align: center;
}

.phone__bar strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
}

.phone__bar span {
    color: var(--muted);
    font-size: 12px;
}

.phone__albums {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.album {
    display: grid;
    flex: 1;
    place-items: center;
    color: var(--white);
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Soft "bokeh" photos, one mood per album */
.album--1 {
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.75), transparent 13%),
        radial-gradient(circle at 78% 22%, rgba(255, 248, 235, 0.6), transparent 16%),
        radial-gradient(circle at 64% 80%, rgba(255, 255, 255, 0.45), transparent 12%),
        linear-gradient(160deg, #ecd2c2, #c98f86 60%, #a86f6c);
}

.album--2 {
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 250, 225, 0.8), transparent 14%),
        radial-gradient(circle at 26% 70%, rgba(255, 236, 190, 0.55), transparent 18%),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.4), transparent 10%),
        linear-gradient(160deg, #e9cf9e, #c69a62 55%, #8f6a45);
}

.album--3 {
    background:
        radial-gradient(circle at 22% 40%, rgba(255, 196, 120, 0.85), transparent 9%),
        radial-gradient(circle at 46% 70%, rgba(255, 210, 150, 0.6), transparent 8%),
        radial-gradient(circle at 74% 34%, rgba(255, 180, 110, 0.7), transparent 10%),
        radial-gradient(circle at 88% 78%, rgba(255, 220, 170, 0.45), transparent 9%),
        linear-gradient(160deg, #6e4038, #3a2421 60%, #241614);
}

.album--4 {
    background:
        radial-gradient(circle at 16% 30%, rgba(243, 166, 180, 0.8), transparent 10%),
        radial-gradient(circle at 60% 22%, rgba(255, 214, 150, 0.7), transparent 8%),
        radial-gradient(circle at 82% 66%, rgba(186, 107, 108, 0.85), transparent 12%),
        radial-gradient(circle at 36% 80%, rgba(255, 236, 200, 0.5), transparent 9%),
        linear-gradient(160deg, #3d2c4b, #1f2333 60%, #10171f);
}

.phone__fab {
    position: absolute;
    right: 16px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 14px;
    line-height: 1.3;
    animation: float 6s ease-in-out infinite;
}

.float-card strong {
    display: block;
}

.float-card small {
    color: var(--muted);
    font-size: 12px;
}

.float-card__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--rose-soft);
    color: var(--rose-dark);
}

.float-card--toast {
    top: 18%;
    left: -4%;
}

.float-card--code {
    right: 0;
    bottom: 14%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    animation-delay: -3s;
}

.float-card--code strong {
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: 0.08em;
}

@keyframes float {
    50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(72px, 10vw, 120px) 0;
}

.section--tinted {
    background: var(--blush);
}

.section__header {
    max-width: 640px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.section__title {
    font-size: clamp(32px, 4.4vw, 48px);
}

.section__lead {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 18px;
}

/* How it works */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.step {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.step__number {
    display: block;
    margin-bottom: 24px;
    color: var(--rose);
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
}

.step h3,
.feature h3 {
    margin-bottom: 8px;
    font-size: 23px;
}

.step p,
.feature p {
    color: var(--ink-soft);
}

/* Features */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--rose-soft);
    color: var(--rose-dark);
}

/* Guests */

.section--dark {
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(186, 107, 108, 0.35), transparent 70%),
        var(--ink);
    color: var(--cream);
}

.section--dark .section__lead {
    color: rgba(255, 250, 248, 0.78);
}

.guests {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 56px;
}

.guests .section__lead {
    margin-bottom: 32px;
}

.code-card {
    padding: 36px 28px;
    border-radius: 28px;
    background: var(--blush);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
}

.logo-mark {
    display: block;
    color: var(--rose);
}

.code-card .logo-mark {
    margin: 0 auto 16px;
}

.code-card p {
    max-width: 18em;
    margin: 0 auto 20px;
    color: var(--ink-soft);
    font-size: 15px;
}

.code-card__digits {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.code-card__digits span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 52px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
}

/* FAQ */

.faq {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__toggle {
    color: var(--rose);
    transition: transform 0.2s ease;
}

.faq__item[open] .faq__toggle {
    transform: rotate(45deg);
}

.faq__item p {
    max-width: 40em;
    padding-bottom: 24px;
    color: var(--ink-soft);
}

/* Final call to action */

.section--cta {
    padding-top: 0;
}

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
    gap: 48px;
    padding: clamp(36px, 6vw, 72px);
    border-radius: 32px;
    background:
        radial-gradient(70% 90% at 100% 100%, rgba(221, 158, 158, 0.45), transparent 70%),
        var(--blush);
}

.cta .section__lead {
    margin-bottom: 32px;
}

.cta__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    list-style: none;
    font-weight: 500;
}

.cta__list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta__list .icon {
    padding: 4px;
    border-radius: 50%;
    background: var(--rose-soft);
    color: var(--rose-dark);
    width: 28px;
    height: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 48px;
}

.site-footer__brand p {
    margin-top: 10px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-self: center;
}

.site-footer__links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.site-footer__meta {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

/* ---------- Install (invitation) page ---------- */

.page-install main {
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(221, 158, 158, 0.35), transparent 70%),
        linear-gradient(180deg, var(--cream), var(--blush));
}

.invite {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(32px, 8vw, 80px) var(--gutter) 64px;
}

.invite__card {
    width: 100%;
    max-width: 520px;
    padding: clamp(28px, 6vw, 48px);
    border-radius: 32px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.invite__logo {
    margin: 0 auto 20px;
}

.invite__title {
    margin-bottom: 16px;
    font-size: clamp(28px, 6vw, 36px);
}

.invite__card > p:not(.eyebrow) {
    color: var(--ink-soft);
}

.invite__code {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 20px 0 28px;
    padding: 18px;
    border-radius: 18px;
    background: var(--blush);
}

.invite__code strong {
    font-family: var(--serif);
    font-size: clamp(30px, 9vw, 40px);
    letter-spacing: 0.12em;
    word-break: break-all;
}

.invite__code .btn {
    background: var(--white);
}

.invite__card .invite__hint {
    margin-top: 24px;
    color: var(--muted);
    font-size: 15px;
}

.invite__own {
    margin-top: 28px;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

/* ---------- Legal pages ---------- */

.legal {
    padding-top: 56px;
    padding-bottom: 80px;
    color: var(--ink-soft);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.legal h1,
.legal h2,
.legal h3 {
    margin: 2em 0 0.6em;
    color: var(--ink);
}

.legal h1 {
    font-size: 30px;
}

.legal h1:first-child {
    margin-top: 0;
    font-size: clamp(36px, 6vw, 48px);
}

.legal h2 {
    font-size: 24px;
}

.legal h3 {
    font-size: 20px;
}

.legal p,
.legal ul {
    margin: 0 0 1em;
}

.legal ul {
    padding-left: 1.2em;
}

/* The company details, small at the very bottom of the terms. */
.legal .legal__imprint {
    margin-top: 4em;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero__inner,
    .guests,
    .cta {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero__copy {
        text-align: center;
    }

    .hero__lead {
        margin-inline: auto;
    }

    .hero .store-badges {
        justify-content: center;
    }

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

    .steps .step:last-child {
        grid-column: 1 / -1;
    }

    .guests {
        text-align: center;
    }

    .guests .store-badges {
        justify-content: center;
    }

    .code-card {
        width: 100%;
        max-width: 380px;
        margin-inline: auto;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 60px;
    }

    .site-nav__link {
        display: none;
    }

    .site-nav__lang-long,
    .site-nav__download-long {
        display: none;
    }

    .site-nav__lang-short,
    .site-nav__download-short {
        display: inline;
    }

    .site-nav .btn {
        margin-left: 4px;
    }

    .brand {
        font-size: 17px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .steps,
    .features {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps .step:last-child {
        grid-column: auto;
    }

    .step {
        padding: 24px;
    }

    .step__number {
        margin-bottom: 16px;
        font-size: 36px;
    }

    .feature {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 16px;
        padding: 22px;
    }

    .feature__icon {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .feature h3 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .faq__item summary {
        font-size: 19px;
    }

    .cta {
        gap: 32px;
        padding: 36px 20px 20px;
        border-radius: 24px;
    }

    .cta__copy {
        padding-inline: 8px;
    }

    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .phone {
        width: 250px;
        border-radius: 42px;
    }

    .phone__screen {
        border-radius: 33px;
    }

    .float-card {
        padding: 10px 12px;
        font-size: 13px;
    }

    .float-card--toast {
        left: -2%;
        top: 30%;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav__lang {
        padding-inline: 10px;
    }

    .site-nav__lang .icon {
        display: none;
    }

    .brand {
        gap: 8px;
        font-size: 16px;
    }

    .float-card--code strong {
        font-size: 20px;
    }

    .store-badge img {
        width: 140px;
    }

    .invite .store-badge img {
        width: 128px;
    }

    .code-card__digits span {
        width: 36px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .float-card {
        animation: none;
    }
}
