:root {
    --ink: #17201f;
    --muted: #66706d;
    --line: #dce6e1;
    --paper: #f8faf7;
    --soft: #eef6f1;
    --field: #ffffff;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --accent-2: #c27a45;
    --danger: #b42318;
    --ok: #157347;
    --shadow: 0 18px 48px rgba(20, 40, 36, .10);
}

* {
    box-sizing: border-box;
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 14px auto 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(220, 230, 225, .86);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(20, 40, 36, .10);
    backdrop-filter: blur(16px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 900;
}

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

.site-nav a,
.site-footer a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 800;
}

.site-nav a {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
}

.site-nav a:hover {
    background: var(--soft);
}

.home-hero {
    position: relative;
    display: grid;
    align-items: end;
    width: min(1180px, calc(100% - 32px));
    min-height: min(640px, calc(100vh - 110px));
    margin: 16px auto 0;
    padding: clamp(28px, 6vw, 70px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(10, 34, 31, .96), rgba(15, 118, 110, .70) 48%, rgba(12, 42, 39, .24)),
        url("marriage-planning-hero.png") center / cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset-inline: clamp(28px, 6vw, 70px);
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-2), #f6d69c, transparent);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 10px;
    padding: 5px 10px;
    color: var(--accent-dark);
    background: #e8f5f0;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 900;
}

.home-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.home-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.8rem, 11vw, 8.5rem);
    line-height: .98;
    letter-spacing: 0;
}

.home-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-section,
.home-band,
.content-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.home-section {
    padding: 70px 0 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-heading h2,
.home-band h2,
.content-hero h1 {
    margin: 0;
    color: var(--accent-dark);
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.15;
    letter-spacing: 0;
}

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

.feature-card,
.path-card,
.policy-list article {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(17, 94, 89, .06);
}

.feature-card span {
    color: var(--accent-2);
    font-weight: 900;
}

.feature-card h3,
.path-card strong,
.policy-list h2 {
    display: block;
    margin: 8px 0;
    color: var(--accent-dark);
    font-size: 1.2rem;
}

.feature-card p,
.path-card span,
.home-band p,
.policy-list p,
.content-hero p {
    color: var(--muted);
}

.home-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 70px;
    padding: 30px;
    background: #102f2b;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-band .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.home-band h2,
.home-band p {
    color: #fff;
}

.path-card {
    min-height: 150px;
    color: inherit;
    text-decoration: none;
}

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

.content-hero {
    margin-top: 22px;
    padding: 42px 0 18px;
    border-bottom: 1px solid var(--line);
}

.policy-list {
    display: grid;
    gap: 16px;
    padding: 26px 0 70px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    margin: 70px auto 20px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer span {
    color: var(--accent-dark);
    font-weight: 900;
}

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

.page {
    width: min(1180px, calc(100% - 32px));
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    align-items: end;
    margin-top: 18px;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(12, 42, 39, .92), rgba(12, 42, 39, .66) 50%, rgba(12, 42, 39, .30)),
        url("marriage-planning-hero.png") center / cover;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline: 34px;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-2), #f3d09a, transparent);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.brand,
h1,
.intro,
.meta-box {
    color: inherit;
}

.brand {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
}

h1 {
    max-width: 820px;
    color: #fff;
    font-weight: 800;
}

.intro {
    color: rgba(255, 255, 255, .86);
}

.meta-box {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(12px);
}

.form-switch a,
.button.secondary {
    background: rgba(255, 255, 255, .88);
    color: var(--accent-dark);
    border-color: rgba(255, 255, 255, .28);
}

.form-switch a.active,
.button,
button,
.button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

button:hover,
.button:hover,
.form-switch a.active:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.section,
.panel {
    margin-top: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, .90);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(17, 94, 89, .06);
}

.section-title,
h2,
th,
.detail-item strong,
.stat strong {
    color: var(--accent-dark);
}

input,
textarea,
select,
.choice {
    background: #fff;
    border-color: var(--line);
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(15, 118, 110, .18);
    border-color: var(--accent);
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: #eefaf7;
}

.choice input {
    accent-color: var(--accent);
}

.alert,
.stat,
.detail-item,
.table-wrap {
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 94, 89, .05);
}

.topbar {
    border-color: var(--line);
}

body:has(.topbar) .page > .topbar {
    margin-top: 18px;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(12, 42, 39, .94), rgba(15, 118, 110, .78)),
        url("marriage-planning-hero.png") center / cover;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

body:has(.topbar) .page > .topbar h1,
body:has(.topbar) .page > .topbar p {
    color: #fff;
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.match-card {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 94, 89, .07);
}

.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 800;
}

.match-names {
    display: grid;
    gap: 4px;
    margin: 12px 0;
}

.reasons {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 12px 0;
    list-style: none;
    color: var(--muted);
}

.reasons li {
    padding: 8px 10px;
    background: var(--soft);
    border-radius: 8px;
}

.ai-box {
    margin-top: 18px;
    padding: 16px;
    background: #f4fbf8;
    border: 1px solid #cbe7dc;
    border-radius: 8px;
}

@media (max-width: 760px) {
    .site-header {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

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

    .home-hero {
        min-height: 610px;
        padding: 24px;
    }

    .feature-grid,
    .path-grid,
    .home-band {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 430px;
        padding: 24px;
    }

    .section,
    .panel {
        padding: 16px;
    }
}

/* Premium home experience */
.home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(22px, 5vw, 58px);
    align-items: center;
}

.home-hero-content {
    align-self: end;
}

.hero-insight {
    position: relative;
    z-index: 1;
    min-height: 340px;
}

.insight-card {
    position: absolute;
    display: grid;
    gap: 8px;
    width: 260px;
    padding: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.insight-card.main {
    top: 42px;
    inset-inline-end: 26px;
    width: 290px;
    min-height: 160px;
    animation: liftFloat 6s ease-in-out infinite;
}

.insight-card.floating {
    width: 210px;
    min-height: 92px;
    animation: liftFloat 7s ease-in-out infinite;
}

.insight-card.one {
    top: 220px;
    inset-inline-start: 8px;
    animation-delay: -2s;
}

.insight-card.two {
    top: 12px;
    inset-inline-start: 42px;
    animation-delay: -4s;
}

.mini-icon,
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.mini-icon svg,
.card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.insight-card small {
    color: rgba(255, 255, 255, .78);
}

.pulse-line {
    position: relative;
    display: block;
    width: 122px;
    height: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

.pulse-line.short {
    width: 86px;
}

.pulse-line::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -42%;
    width: 42%;
    background: linear-gradient(90deg, transparent, #f6d69c, transparent);
    animation: scanLine 2.4s ease-in-out infinite;
}

.section-heading p:not(.eyebrow) {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.premium-grid {
    align-items: stretch;
}

.benefit-card {
    position: relative;
    overflow: hidden;
    min-height: 246px;
}

.benefit-card::after {
    content: "";
    position: absolute;
    inset-inline: 22px;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(.22);
    transform-origin: right;
    transition: transform .25s ease;
}

.benefit-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    width: 52px;
    height: 52px;
    color: var(--accent-dark);
    background: linear-gradient(135deg, #e9f7f3, #fff7ea);
    border: 1px solid #d5e8df;
    border-radius: 8px;
}

.path-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

.path-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.path-mark {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 4px 9px;
    color: var(--accent-dark);
    background: var(--soft);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
}

.platform-benefits {
    padding-bottom: 28px;
}

@keyframes liftFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes scanLine {
    0% {
        inset-inline-start: -42%;
    }
    100% {
        inset-inline-start: 100%;
    }
}

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

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-insight {
        display: none;
    }
}

/* Creative premium layer */
.home-hero {
    position: relative;
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    pointer-events: none;
}

.home-hero-content {
    padding-block: 28px;
}

.home-hero h1 {
    position: relative;
    width: fit-content;
}

.home-hero h1::after {
    content: "";
    position: absolute;
    inset-inline-start: 6%;
    bottom: -12px;
    width: 58%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-2), rgba(255, 255, 255, .72), transparent);
    border-radius: 999px;
}

.trust-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-rail span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.trust-rail span::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-end: 7px;
    background: #f6d69c;
    border-radius: 50%;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(1120px, calc(100% - 42px));
    margin: -34px auto 0;
    position: relative;
    z-index: 2;
}

.signal-strip div {
    min-height: 104px;
    padding: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(217, 228, 223, .92);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(20, 40, 36, .12);
    backdrop-filter: blur(14px);
}

.signal-strip strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-size: 1.1rem;
}

.signal-strip span {
    color: var(--muted);
    font-size: .95rem;
}

.experience-section {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: clamp(22px, 5vw, 70px);
    align-items: center;
    width: min(1200px, calc(100% - 28px));
    margin: 76px auto 0;
    padding: clamp(24px, 5vw, 52px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(237, 245, 241, .88));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.experience-copy h2 {
    margin: 0;
    color: var(--accent-dark);
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    line-height: 1.1;
}

.experience-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.07rem;
}

.experience-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(13, 118, 110, .08), transparent),
        #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.experience-visual::before,
.experience-visual::after {
    content: "";
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 118, 110, .42), rgba(197, 134, 74, .62), transparent);
    transform-origin: center;
}

.experience-visual::before {
    width: 62%;
    top: 42%;
    inset-inline-start: 16%;
    transform: rotate(-17deg);
}

.experience-visual::after {
    width: 48%;
    top: 58%;
    inset-inline-start: 31%;
    transform: rotate(18deg);
}

.flow-node {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, .92);
    border: 1px solid #cfe4dc;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(20, 40, 36, .12);
    animation: nodeFloat 6s ease-in-out infinite;
}

.flow-node svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.flow-node span {
    font-weight: 900;
}

.flow-node.large {
    width: 142px;
    height: 142px;
    top: 42px;
    inset-inline-start: 54px;
}

.flow-node.mid {
    width: 118px;
    height: 118px;
    top: 142px;
    inset-inline-end: 72px;
    animation-delay: -2s;
}

.flow-node.small {
    width: 104px;
    height: 104px;
    bottom: 46px;
    inset-inline-start: 42%;
    animation-delay: -4s;
}

@keyframes nodeFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.benefit-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 249, 239, .46));
}

.home-band {
    position: relative;
    overflow: hidden;
}

.home-band::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-2), #f6d69c, transparent);
}

@media (max-width: 960px) {
    .signal-strip,
    .experience-section {
        grid-template-columns: 1fr;
    }

    .signal-strip {
        width: min(100% - 28px, 1120px);
        margin-top: 14px;
    }
}

@media (max-width: 760px) {
    .home-hero::before {
        inset: 10px;
    }

    .trust-rail {
        display: grid;
        grid-template-columns: 1fr;
    }

    .signal-strip {
        gap: 10px;
    }

    .experience-section {
        width: min(100% - 20px, 1200px);
        margin-top: 46px;
        padding: 18px;
    }

    .experience-visual {
        min-height: 300px;
    }

    .flow-node.large {
        inset-inline-start: 22px;
    }

    .flow-node.mid {
        inset-inline-end: 24px;
    }

    .flow-node.small {
        inset-inline-start: 35%;
    }
}

/* Unified professional visual system */
:root {
    --ink: #14201f;
    --muted: #687774;
    --line: #d9e4df;
    --paper: #f7f9f6;
    --soft: #edf5f1;
    --field: #ffffff;
    --accent: #0d766e;
    --accent-dark: #0b4f4a;
    --accent-2: #c5864a;
    --cream: #fff9ef;
    --danger: #b42318;
    --ok: #157347;
    --shadow: 0 22px 60px rgba(20, 40, 36, .13);
    --soft-shadow: 0 12px 34px rgba(20, 40, 36, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 249, 239, .88), rgba(247, 249, 246, .96) 340px),
        linear-gradient(120deg, rgba(13, 118, 110, .08), transparent 38%),
        var(--paper);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20, 32, 31, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 31, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, black, transparent 70%);
}

.site-header {
    width: min(1200px, calc(100% - 28px));
    min-height: 76px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(217, 228, 223, .92);
    box-shadow: 0 18px 48px rgba(20, 40, 36, .11);
}

.site-brand {
    gap: 9px;
    min-width: 132px;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 12px 24px rgba(13, 118, 110, .24);
}

.site-brand::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(197, 134, 74, .18);
}

.site-nav {
    justify-content: flex-end;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #263936;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover {
    color: var(--accent-dark);
    background: #edf7f4;
    border-color: #d4e9e2;
    transform: translateY(-1px);
}

.site-nav a[href="admin.php"],
.site-nav a[href="logout.php"],
.site-nav a[href="dashboard.php"] {
    color: #fff;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.site-nav a[href="admin.php"]:hover,
.site-nav a[href="logout.php"]:hover,
.site-nav a[href="dashboard.php"]:hover {
    color: #fff;
    background: var(--accent);
}

.home-hero,
.hero,
body:has(.topbar) .page > .topbar {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-hero {
    width: min(1200px, calc(100% - 28px));
    min-height: min(650px, calc(100vh - 116px));
    background:
        linear-gradient(90deg, rgba(7, 31, 29, .96), rgba(13, 118, 110, .74) 48%, rgba(7, 31, 29, .20)),
        url("marriage-planning-hero.png") center / cover;
}

.home-hero h1 {
    font-weight: 900;
    text-shadow: 0 12px 42px rgba(0, 0, 0, .28);
}

.button,
button {
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(13, 118, 110, .18);
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: .58;
    box-shadow: none;
}

.button.secondary,
.form-switch a {
    background: #fff;
    border-color: var(--line);
    color: var(--accent-dark);
    box-shadow: none;
}

.section,
.panel,
.feature-card,
.path-card,
.policy-list article,
.match-card,
.detail-item,
.stat,
.table-wrap {
    border-radius: 8px;
    border-color: rgba(217, 228, 223, .92);
    box-shadow: var(--soft-shadow);
}

.feature-card,
.path-card,
.policy-list article,
.panel {
    background: rgba(255, 255, 255, .92);
}

.feature-card,
.path-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover,
.path-card:hover {
    transform: translateY(-3px);
    border-color: #b9d8cf;
    box-shadow: 0 18px 44px rgba(20, 40, 36, .12);
}

.content-page.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: 24px;
    align-items: start;
    padding-top: 30px;
}

.auth-page .content-hero {
    min-height: 420px;
    margin-top: 0;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 31, 29, .94), rgba(13, 118, 110, .78)),
        url("marriage-planning-hero.png") center / cover;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-page .content-hero h1,
.auth-page .content-hero p {
    color: #fff;
}

.auth-page .content-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.auth-page .panel.login {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 26px;
}

.login form {
    display: grid;
    gap: 12px;
}

.login form p {
    margin: 4px 0 0;
}

label {
    color: #243633;
}

input,
textarea,
select {
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(13, 118, 110, .11);
}

.topbar .actions .button.secondary[href$="groom.php"],
.topbar .actions .button.secondary[href$="bride.php"] {
    background: rgba(255, 255, 255, .9);
}

.site-footer {
    width: min(1200px, calc(100% - 28px));
    padding-bottom: 18px;
}

@media (max-width: 900px) {
    .content-page.auth-page {
        grid-template-columns: 1fr;
    }

    .auth-page .content-hero {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .site-header {
        width: min(100% - 20px, 1200px);
        min-height: 0;
    }

    .site-brand {
        width: 100%;
    }

    .site-nav {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .site-nav a {
        min-height: 42px;
        background: rgba(255, 255, 255, .72);
        border-color: var(--line);
    }

    .home-hero {
        width: min(100% - 20px, 1200px);
        min-height: 620px;
    }

    .content-page.auth-page,
    .content-page,
    .home-section,
    .home-band,
    .page {
        width: min(100% - 20px, 1200px);
    }
}
