/* Public marketing + auth — Worship Web */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: 'DM Mono', 'Courier New', monospace;

    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #64748b;
    --paper: #ffffff;
    --paper-soft: #f1f5f9;
    --line: rgba(15, 23, 42, 0.08);

    --navy: #102a43;
    --navy-deep: #0b1c2e;
    --mint: #d4eef0;
    --accent: #2aadb5;
    --accent-hover: #1e9098;
    --accent-light: #5ec8cf;
    --app-accent: #4caf50;

    --glass: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.55);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 1.5rem;
    --shadow-soft: 0 16px 40px rgba(8, 14, 28, 0.1);
    --shadow-preview: 0 20px 50px rgba(8, 14, 28, 0.14);
    --header-h: 56px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --max: 72rem;
    --page-gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ── Buttons (Canva-compact) ────────────────────────────────────────── */

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background 160ms var(--ease),
        color 160ms var(--ease),
        border-color 160ms var(--ease),
        opacity 160ms var(--ease);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    user-select: none;
}

.site-btn:hover {
    text-decoration: none;
}

.site-btn:active {
    opacity: 0.88;
}

.site-btn--solid {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.site-btn--solid:hover {
    background: #f4f6f8;
}

.site-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.site-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.site-btn--accent {
    background: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
    min-height: 42px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.site-btn--accent:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff;
}

.auth-form .site-btn--accent,
.auth-done .site-btn--accent,
.auth-card > .site-btn--accent {
    width: 100%;
    min-height: 44px;
    background: var(--accent);
    border-color: var(--accent);
    border-radius: 999px;
}

.auth-form .site-btn--accent:hover,
.auth-done .site-btn--accent:hover,
.auth-card > .site-btn--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.auth-actions {
    display: flex;
    gap: 0.55rem;
}

.auth-actions .site-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    border-radius: 999px;
}

.auth-actions--stack {
    flex-direction: column;
}

.auth-actions--stack .site-btn {
    width: 100%;
    white-space: normal;
}

.auth-suggested {
    margin: 0.35rem 0 1.1rem;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
    word-break: break-word;
}

.auth-hint {
    margin: 1.1rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-faint);
    text-align: center;
}

.auth-actions .site-btn--ghost {
    color: var(--ink-soft);
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.65);
}

.auth-actions .site-btn--ghost:hover {
    color: var(--ink);
    border-color: rgba(15, 23, 42, 0.32);
    background: #fff;
}

.site-btn--cta {
    min-height: 42px;
    padding: 0.55rem 1.35rem;
    font-size: 0.9375rem;
}

.site-btn--on-light {
    background: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
}

.site-btn--on-light:hover {
    background: var(--navy);
    border-color: var(--navy);
}

/* ── Landing page ───────────────────────────────────────────────────── */

body.landing-page {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ink: #1a1815;
    --ink-soft: #6b6057;
    --ink-faint: #8a8076;
    --paper: #f7f4ef;
    --paper-soft: #ede9e3;
    --line: rgba(26, 24, 21, 0.11);
    --accent: #0d6b68;
    --accent-hover: #0a5e5b;
    --accent-light: #0f7a76;
    --muted: #ede9e3;
    --header-h: 3.5rem;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

html,
body.landing-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 24, 21, 0.28) transparent;
}

body.auth-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}

@supports not (scrollbar-color: auto) {
    html::-webkit-scrollbar,
    body.landing-page::-webkit-scrollbar,
    body.auth-page::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    html::-webkit-scrollbar-track,
    body.landing-page::-webkit-scrollbar-track,
    body.auth-page::-webkit-scrollbar-track,
    html::-webkit-scrollbar-track-piece,
    body.landing-page::-webkit-scrollbar-track-piece,
    body.auth-page::-webkit-scrollbar-track-piece,
    html::-webkit-scrollbar-corner,
    body.landing-page::-webkit-scrollbar-corner,
    body.auth-page::-webkit-scrollbar-corner {
        background: transparent;
    }

    html::-webkit-scrollbar-button,
    body.landing-page::-webkit-scrollbar-button,
    body.auth-page::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }

    html::-webkit-scrollbar-thumb,
    body.landing-page::-webkit-scrollbar-thumb,
    body.auth-page::-webkit-scrollbar-thumb {
        background-color: rgba(26, 24, 21, 0.28);
        border-radius: 999px;
    }
}

.landing-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1a3836;
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.landing-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.landing-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.22) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.landing-hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 10;
    width: 100%;
    height: 72px;
    color: var(--paper);
    pointer-events: none;
    line-height: 0;
}

.landing-hero__wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top);
    transition:
        background 300ms var(--ease),
        border-color 300ms var(--ease),
        box-shadow 300ms var(--ease),
        backdrop-filter 300ms var(--ease);
}

.landing-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 var(--page-gutter);
}

@media (min-width: 640px) {
    .landing-header__inner {
        height: var(--header-h);
    }
}

.landing-header.is-scrolled {
    background: rgba(247, 244, 239, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06);
}

.landing-brand {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #fff;
    flex-shrink: 0;
    transition: color 300ms var(--ease);
}

@media (min-width: 640px) {
    .landing-brand {
        font-size: 1.1rem;
    }
}

.landing-header.is-scrolled .landing-brand {
    color: var(--ink);
}

.landing-header__right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .landing-header__right {
        gap: 1rem;
    }
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .landing-header__actions {
        gap: 0.75rem;
    }
}

.landing-header__actions[hidden] {
    display: none !important;
}

.landing-page .landing-header .site-btn {
    min-height: 0;
    padding: 0.375rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .landing-page .landing-header .site-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

.landing-page .landing-header .site-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.landing-page .landing-header .site-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.landing-page .landing-header .site-btn--solid {
    background: #fff;
    color: #0d6b68;
    border-color: #fff;
    font-weight: 600;
}

.landing-page .landing-header .site-btn--solid:hover {
    background: rgba(255, 255, 255, 0.9);
}

.landing-page .landing-header.is-scrolled .site-btn--ghost {
    color: var(--ink);
    border-color: var(--line);
}

.landing-page .landing-header.is-scrolled .site-btn--ghost:hover {
    background: var(--muted);
}

.landing-page .landing-header.is-scrolled .site-btn--solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.landing-page .landing-header.is-scrolled .site-btn--solid:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

#landing-header-account {
    position: relative;
    height: 28px;
}

.landing-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: min(16rem, 52vw);
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans);
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: color 300ms var(--ease), opacity 150ms var(--ease);
    touch-action: manipulation;
}

.landing-header.is-scrolled .landing-account-btn {
    color: var(--ink);
}

.landing-account-btn:hover {
    opacity: 0.88;
}

.landing-account-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

.landing-header.is-scrolled .landing-account-btn:focus-visible {
    outline-color: rgba(13, 107, 104, 0.45);
}

.landing-account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.landing-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
    line-height: 0;
    font-size: 0.58rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.landing-account-avatar i {
    display: block;
    line-height: 1;
    width: 1em;
    text-align: center;
}

/* Same action-menu shell as app header download / edit menus */
.landing-page .edit-context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(26, 24, 21, 0.14);
    padding: 4px;
    z-index: 400;
    min-width: min(190px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.landing-page .edit-context-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-page .edit-ctx-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 7px;
    color: var(--ink);
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
}

.landing-page .edit-ctx-option:hover {
    background: rgba(26, 24, 21, 0.06);
}

.landing-page .edit-ctx-option i {
    width: 16px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 13px;
}

/* Language toggle — EN | LV */
.lang-switch {
    display: inline-flex;
    align-items: center;
    height: 28px;
    gap: 0;
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-height: 0;
    padding: 0 0.25rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    cursor: pointer;
    transition: color 150ms var(--ease);
    touch-action: manipulation;
}

@media (min-width: 640px) {
    .lang-switch__btn {
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
}

.lang-switch__btn + .lang-switch__btn {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 0.4rem;
    margin-left: 0.1rem;
}

.lang-switch__btn:hover {
    color: #fff;
}

.lang-switch__btn.is-active {
    color: #fff;
    font-weight: 600;
}

.lang-switch__btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
    border-radius: 3px;
}

.landing-header.is-scrolled .lang-switch__btn {
    color: var(--ink-soft);
}

.landing-header.is-scrolled .lang-switch__btn + .lang-switch__btn {
    border-left-color: var(--line);
}

.landing-header.is-scrolled .lang-switch__btn:hover {
    color: var(--ink);
}

.landing-header.is-scrolled .lang-switch__btn.is-active {
    color: var(--ink);
    font-weight: 600;
}

.landing-header.is-scrolled .lang-switch__btn:focus-visible {
    outline-color: rgba(13, 107, 104, 0.45);
}

.lang-switch--on-light .lang-switch__btn {
    color: rgba(15, 23, 42, 0.45);
}

.lang-switch--on-light .lang-switch__btn + .lang-switch__btn {
    border-left-color: rgba(15, 23, 42, 0.25);
}

.lang-switch--on-light .lang-switch__btn:hover {
    color: rgba(15, 23, 42, 0.75);
}

.lang-switch--on-light .lang-switch__btn.is-active {
    color: var(--ink);
}

.lang-switch--on-light .lang-switch__btn:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.35);
    outline-offset: 2px;
    border-radius: 3px;
}

.auth-lang {
    position: fixed;
    top: clamp(1rem, 3vw, 1.35rem);
    right: var(--page-gutter);
    z-index: 10;
}

.landing-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 6rem 1.5rem 5.5rem;
    max-width: 48rem;
    margin: 0 auto;
    animation: hero-rise 650ms var(--ease) both;
}

.landing-hero__title {
    margin: 0 0 1.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
    text-wrap: balance;
}

.landing-hero__copy {
    margin: 0 auto 2.5rem;
    max-width: 36rem;
    font-size: clamp(1rem, 2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    text-wrap: pretty;
}

.landing-hero__copy strong {
    color: #fff;
    font-weight: 600;
}

.landing-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: hero-rise 800ms var(--ease) 100ms both;
}

@media (min-width: 640px) {
    .landing-hero__cta {
        flex-direction: row;
    }
}

.landing-page .landing-hero .site-btn--cta {
    width: 100%;
    min-height: 0;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .landing-page .landing-hero .site-btn--cta {
        width: auto;
    }
}

.landing-page .landing-hero .site-btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.landing-page .landing-hero .site-btn--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.landing-page .landing-hero .site-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 500;
}

.landing-page .landing-hero .site-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-section {
    position: relative;
    z-index: 2;
    padding: clamp(4rem, 10vw, 8rem) var(--page-gutter);
    background: transparent;
}

.landing-section__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.landing-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .landing-section__inner.landing-split {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .landing-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5rem;
    }

    .landing-section__inner.landing-split {
        padding-left: 0;
        padding-right: 0;
    }
}

.landing-split__text {
    min-width: 0;
}

.landing-split__text h2 {
    margin: 0 0 1.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

.landing-split__text p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.75;
    max-width: none;
}

.landing-split__text p:last-child {
    margin-bottom: 0;
}

.landing-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--ink);
}

.landing-divider {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

.landing-divider__inner {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}

.landing-tablet-band {
    text-align: center;
    padding: 1rem var(--page-gutter) 2rem;
    background: var(--paper);
}

.landing-tablet-band__text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.landing-tablet-band__row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-tablet-band__row > i {
    font-size: 0.875rem;
    opacity: 0.85;
}

.landing-tablet-band__text strong {
    color: var(--ink);
    font-weight: 600;
}

.landing-tablet-band__text::after {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.6;
}

/* App screenshot preview */
.app-preview {
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-preview);
    background: #fff;
}

.app-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.landing-section--features {
    background: color-mix(in srgb, var(--muted) 35%, transparent);
    padding-top: clamp(4rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 10vw, 8rem);
}

.landing-features {
    max-width: var(--max);
    margin: 0 auto;
}

.landing-features__head {
    margin-bottom: 4rem;
    text-align: center;
}

.landing-features__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    text-wrap: balance;
}

.landing-accordion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

@media (min-width: 768px) {
    .landing-accordion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 4rem;
    }
}

@media (min-width: 1024px) {
    .landing-accordion {
        gap: 0 6rem;
    }
}

.landing-accordion__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.landing-accordion__item {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.landing-accordion__item:last-child {
    border-bottom: none;
}

.landing-accordion__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--ink);
    user-select: none;
}

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

.landing-accordion__item summary::after {
    content: '';
    flex: 0 0 auto;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid var(--ink-soft);
    border-bottom: 2px solid var(--ink-soft);
    transform: rotate(45deg);
    transition: transform 300ms ease;
    margin-top: -0.15rem;
    opacity: 0.85;
}

.landing-accordion__item[open] summary::after {
    transform: rotate(225deg);
    margin-top: 0.2rem;
}

.landing-accordion__item summary:hover {
    color: var(--accent);
}

.landing-accordion__item summary:focus-visible {
    outline: 2px solid rgba(13, 107, 104, 0.45);
    outline-offset: -2px;
}

.landing-accordion__body > p {
    margin: 0;
    padding: 0 0 1.25rem;
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.65;
}

@supports (interpolate-size: allow-keywords) {
    .landing-accordion__item {
        interpolate-size: allow-keywords;
    }

    .landing-accordion__item::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.28s ease, content-visibility 0.28s allow-discrete;
    }

    .landing-accordion__item[open]::details-content {
        block-size: auto;
    }
}

.landing-donate {
    padding: clamp(3.5rem, 8vw, 7rem) var(--page-gutter);
}

.landing-donate__shell {
    max-width: var(--max);
    margin: 0 auto;
}

.landing-donate__card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(3.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #0a5e5b 0%, var(--accent) 50%, #0f7a76 100%);
    color: #fff;
}

.landing-donate__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 255, 255, 0.12), transparent);
}

.landing-donate__mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3rem;
    font-family: var(--font-display);
    font-size: clamp(10rem, 28vw, 22rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.landing-donate__content {
    position: relative;
    z-index: 1;
}

.landing-donate__heart {
    display: block;
    margin: 0 auto 1.5rem;
    font-size: 1.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.landing-donate__card h2 {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.875rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}

.landing-donate__card p {
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    line-height: 1.8;
    max-width: 28rem;
}

.landing-donate__card p:last-of-type {
    margin-bottom: 2.5rem;
}

.landing-page .site-btn--donate {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 0;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--accent);
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    transition: background 160ms var(--ease), transform 120ms var(--ease);
}

.landing-page .site-btn--donate:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
}

.landing-page .site-btn--donate:active {
    transform: scale(0.98);
}

.landing-page .site-btn--donate .fa-arrow-right {
    opacity: 0.6;
    font-size: 0.75rem;
}

.landing-page .site-btn--donate .fa-heart {
    font-size: 0.75rem;
}

.landing-footer {
    background: #091e1d;
    color: rgba(255, 255, 255, 0.45);
    padding: 2.5rem var(--page-gutter);
}

.landing-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .landing-footer__inner {
        flex-direction: row;
    }
}

.landing-footer__brand {
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.landing-footer__brand:hover {
    color: rgba(255, 255, 255, 0.9);
}

.landing-footer__credit {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
}

.landing-footer__link {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.landing-footer__link:hover {
    color: #fff;
}

/* Privacy policy page */
.legal-page {
    min-height: 100svh;
    background: var(--paper);
    color: var(--ink);
}

.legal-shell {
    max-width: 42rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--page-gutter) clamp(3rem, 6vw, 4.5rem);
}

.legal-shell h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.legal-shell .legal-updated {
    margin: 0 0 1.75rem;
    color: var(--ink-faint);
    font-size: 0.875rem;
}

.legal-shell h2 {
    margin: 1.75rem 0 0.55rem;
    font-size: 1.1rem;
}

.legal-shell p,
.legal-shell li {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-shell ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    color: var(--ink-faint);
    font-size: 0.875rem;
    font-weight: 500;
}

.legal-back:hover {
    color: var(--ink);
}

/* ── Auth pages (light theme over bright hero) ──────────────────────── */

body.auth-page {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: #e8eef4;
    overflow-x: hidden;
    /* Soft tie-in with landing — keep layout, nudge accent + display type */
    --accent: #0d6b68;
    --accent-hover: #0a5e5b;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.auth-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: blur(3.5px) brightness(1.02) contrast(0.98) saturate(1.02);
    transform: scale(1.06);
}

.auth-bg__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        linear-gradient(
            180deg,
            rgba(232, 238, 244, 0.35) 0%,
            rgba(248, 250, 252, 0.5) 48%,
            rgba(232, 238, 244, 0.62) 100%
        );
}

.auth-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2rem);
    width: 100%;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    color: var(--ink-faint);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 150ms var(--ease);
}

.auth-back:hover {
    color: var(--ink);
}

.auth-back__arrow {
    font-size: 0.7em;
    line-height: 1;
    width: 0.7em;
}

.auth-card__title {
    margin: 0 0 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.auth-card--notice {
    text-align: center;
}

.auth-card--notice .auth-card__title {
    margin-bottom: 0.75rem;
}

.auth-card--notice .auth-card__subtitle {
    margin-bottom: 1.15rem;
}

.auth-card__title + .auth-card__subtitle {
    margin-top: -0.7rem;
}

.auth-card__subtitle {
    margin: 0 0 1.05rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.auth-brand {
    margin: 0 0 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.95rem, 3.5vw, 2.35rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    animation: hero-rise 450ms var(--ease) both;
}

.auth-card {
    width: min(100%, 400px);
    padding: clamp(1.35rem, 3.5vw, 1.75rem);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 48px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    color: var(--ink);
    animation: hero-rise 600ms var(--ease) 40ms both;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.auth-field input,
.auth-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    resize: vertical;
    transition:
        border-color 150ms var(--ease),
        background 150ms var(--ease),
        box-shadow 150ms var(--ease);
}

.auth-field textarea {
    min-height: 6.5rem;
    line-height: 1.45;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: rgba(15, 23, 42, 0.38);
}

.auth-field input:hover,
.auth-field textarea:hover {
    border-color: rgba(15, 23, 42, 0.26);
    background: #fff;
}

.auth-field input:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: rgba(13, 107, 104, 0.7);
    box-shadow: 0 0 0 3px rgba(13, 107, 104, 0.18);
    background: #fff;
}

.auth-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-alert {
    display: none;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.4;
}

.auth-alert.show {
    display: flex;
}

.auth-alert--error {
    background: rgba(254, 226, 226, 0.95);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #991b1b;
}

.auth-alert--success {
    background: rgba(209, 250, 229, 0.95);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #065f46;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--ink-faint);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
}

.auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    color: #202124;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.auth-google:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.auth-google svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-switch {
    margin: 1.1rem 0 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.875rem;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-switch a:hover {
    color: var(--accent-hover);
}

.auth-help {
    margin: 0.7rem 0 0;
    text-align: center;
}

.auth-help a {
    color: var(--ink-faint);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-help a:hover {
    color: var(--ink);
}

.auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin: 1.1rem 0 0;
    font-size: 0.8125rem;
}

.auth-footer-links a {
    color: var(--ink-faint);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(15, 23, 42, 0.22);
    text-underline-offset: 3px;
}

.auth-footer-links a:hover {
    color: var(--ink);
    text-decoration-color: rgba(15, 23, 42, 0.45);
}

.auth-footer-links__sep {
    color: rgba(15, 23, 42, 0.28);
    user-select: none;
}

.auth-done {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-done[hidden],
.auth-form[hidden],
.auth-switch[hidden] {
    display: none;
}

.auth-done__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.auth-loading {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 0.4rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: spin 0.75s linear infinite;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.auth-alert.shake {
    animation: shake 0.35s ease;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .landing-split__visual {
        display: flex;
        justify-content: center;
    }

    .landing-split--flip .landing-split__text {
        order: 1;
    }

    .landing-split--flip .landing-split__visual {
        order: 2;
    }

    .landing-accordion {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .landing-accordion__col {
        display: contents;
    }

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

    .landing-accordion__item--1 { order: 1; }
    .landing-accordion__item--2 { order: 2; }
    .landing-accordion__item--3 { order: 3; }
    .landing-accordion__item--4 { order: 4; }
    .landing-accordion__item--5 { order: 5; }
    .landing-accordion__item--6 { order: 6; }
    .landing-accordion__item--7 { order: 7; }
    .landing-accordion__item--8 { order: 8; }
    .landing-accordion__item--9 { order: 9; }
    .landing-accordion__item--10 { order: 10; }
}

@media (max-width: 520px) {
    :root {
        --page-gutter: 1rem;
    }

    .landing-brand {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .landing-account-name {
        font-size: 0.68rem;
        max-width: 5.5rem;
    }

    .landing-account-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.52rem;
    }

    .auth-brand {
        font-size: 1.7rem;
    }

    .auth-card {
        padding: 1.1rem;
        border-radius: 16px;
    }
}

@media (max-width: 380px) {
    .landing-header__right {
        gap: 0.35rem;
    }

    .landing-page .landing-header .site-btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.7rem;
    }

    .auth-actions .site-btn {
        white-space: normal;
        line-height: 1.2;
        font-size: 0.75rem;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .auth-shell {
        justify-content: flex-start;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .auth-brand {
        margin-bottom: 0.65rem;
        font-size: 1.45rem;
    }

    .auth-card {
        padding: 0.95rem 1.05rem;
    }

    .auth-card__subtitle {
        margin-bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
