:root {
    --bg: #f5f1e8;
    --panel: rgba(255, 252, 246, 0.86);
    --panel-strong: #fffdf8;
    --border: rgba(72, 53, 34, 0.12);
    --text: #2e241a;
    --muted: #6d5a46;
    --accent: #ba6c3d;
    --accent-dark: #8d4d28;
    --accent-soft: #f0dfcf;
    --success: #e1f1e3;
    --success-text: #32563a;
    --error: #fae2dd;
    --error-text: #7f3027;
    --info: #e8f0f7;
    --info-text: #33526f;
    --shadow: 0 24px 60px rgba(103, 77, 47, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    background:
        radial-gradient(circle at top left, rgba(237, 211, 183, 0.85), transparent 34%),
        radial-gradient(circle at right 10% top 20%, rgba(255, 255, 255, 0.65), transparent 22%),
        linear-gradient(180deg, #f8f4ec 0%, #f3ece2 100%);
    min-height: 100vh;
}

body.lightbox-open {
    overflow: hidden;
}

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

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

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

button {
    cursor: pointer;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.72);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 14px;
    z-index: 20;
    box-shadow: var(--shadow);
}

.brand-block p,
.hero-copy p,
.maker-card p,
.detail-copy p,
.list-row p,
.application-card p,
.install-card p,
.intro-panel p,
.auth-panel p {
    color: var(--muted);
}

.brand-mark {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: min(260px, 28vw);
    object-fit: contain;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.96rem;
}

.site-nav a {
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.main-content {
    display: grid;
    gap: 28px;
    padding-top: 28px;
}

.hero,
.detail-layout,
.split-panels,
.form-columns,
.dashboard-grid,
.install-grid {
    display: grid;
    gap: 24px;
}

.hero {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: stretch;
}

.hero-copy,
.panel,
.stat-card,
.maker-card,
.install-card,
.install-panel {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-copy {
    padding: 40px;
}

.hero-copy h1,
.detail-copy h1,
.panel h1,
.panel h2,
.install-card h1 {
    margin: 0 0 12px;
    font-family: var(--serif);
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    max-width: 11ch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--accent-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-actions,
.checkbox-row,
.tag-row,
.contact-grid,
.gallery-upload-form,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
.contact-card,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 12px 18px;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.contact-card:hover,
.gallery-card button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff7f1;
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary,
.contact-card {
    background: #fff7ef;
    border-color: var(--border);
}

.button-ghost {
    background: transparent;
    border-color: var(--border);
}

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

.stat-card {
    padding: 24px;
    display: grid;
    gap: 8px;
}

.stat-card strong {
    font-size: clamp(2rem, 3vw, 3rem);
    font-family: var(--serif);
}

.stat-card.large {
    min-height: 170px;
    align-content: end;
}

.panel,
.install-panel {
    padding: 28px;
}

.search-panel {
    padding-top: 26px;
}

.section-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.search-form,
.form-grid {
    display: grid;
    gap: 16px;
}

.search-form {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
}

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

.maker-card {
    overflow: hidden;
}

.maker-card-link {
    display: grid;
    min-height: 100%;
}

.maker-card-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1dcca, #fbf7f2);
}

.maker-card-image img,
.detail-visual img,
.gallery-card img,
.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maker-card-body {
    padding: 18px 20px 22px;
    display: grid;
    gap: 12px;
}

.meta-line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.tag,
.tag-option span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.9rem;
}

.detail-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.detail-hero {
    padding-top: 24px;
}

.detail-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5 / 6;
    background: linear-gradient(135deg, #f0d9c2, #f7f3ee);
}

.lead {
    font-size: 1.1rem;
}

.contact-grid {
    margin-top: 24px;
}

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

.gallery-card,
.gallery-card.static {
    border: 0;
    background: var(--panel-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0;
    text-align: left;
    box-shadow: inset 0 0 0 1px var(--border);
}

.gallery-card.static {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.gallery-card img,
.gallery-card button {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-card button {
    padding: 0;
}

.form-shell,
.auth-shell {
    display: grid;
    justify-content: center;
    gap: 18px;
}

.auth-panel,
.form-panel,
.install-card {
    width: min(100%, 1040px);
}

.auth-panel {
    min-width: min(100%, 470px);
}

.form-panel label,
.search-form label,
.gallery-upload-form label,
.inline-form input,
.auth-panel label {
    display: grid;
    gap: 8px;
}

label span,
label small {
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(85, 64, 42, 0.14);
    border-radius: 16px;
    background: #fffdf9;
    color: var(--text);
}

textarea {
    resize: vertical;
}

small {
    color: var(--error-text);
}

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

.tag-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-option {
    position: relative;
}

.tag-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tag-option input:checked + span {
    background: var(--accent);
    color: #fff7f1;
}

.checkbox-row,
.inline-check {
    align-items: center;
}

.checkbox-row label,
.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.checkbox-row input,
.inline-check input {
    width: auto;
}

.upload-preview {
    max-width: 280px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table-wrap {
    overflow-x: auto;
}

.list-stack {
    display: grid;
    gap: 14px;
}

.list-row,
.application-card,
.info-box {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel-strong);
}

.list-row,
.application-top {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.link-row:hover {
    background: #fffbf4;
}

.application-card {
    display: grid;
    gap: 14px;
}

.application-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.status-pill {
    padding: 8px 12px;
    font-size: 0.86rem;
}

.status-new {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.status-processed {
    background: var(--success);
    color: var(--success-text);
}

.flash {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--success);
    color: var(--success-text);
}

.flash-error {
    background: var(--error);
    color: var(--error-text);
}

.flash-info {
    background: var(--info);
    color: var(--info-text);
}

.empty-state {
    text-align: center;
    padding: 56px 28px;
}

.image-placeholder,
.detail-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--accent-dark);
}

.back-link,
.text-link {
    color: var(--accent-dark);
}

.install-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.install-card {
    padding: 34px;
}

.install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(32, 22, 13, 0.86);
    display: grid;
    place-items: center;
    padding: 40px;
    z-index: 100;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 82vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 28px;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
}

@media (max-width: 980px) {
    .site-header,
    .hero,
    .detail-layout,
    .search-form,
    .form-columns,
    .split-panels,
    .install-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        border-radius: 26px;
        position: static;
        display: grid;
        justify-items: start;
    }

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

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 18px, 100%);
    }

    .hero-copy,
    .panel,
    .install-card,
    .install-panel,
    .stat-card {
        padding: 22px;
    }

    .card-grid,
    .gallery-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .brand-logo {
        height: 48px;
        max-width: 220px;
    }
}

.button-outline {
    background: transparent;
    border-color: rgba(42, 42, 42, 0.14);
    color: #2b2b2b;
}

.button-teal {
    background: linear-gradient(135deg, #21c7c5, #1ea9cf);
    color: #fff;
}

.button-teal:hover {
    background: linear-gradient(135deg, #1db4b2, #198fbc);
}

.button-blue {
    background: linear-gradient(135deg, #2ea7f2, #1189dd);
    color: #fff;
}

.button-blue:hover {
    background: linear-gradient(135deg, #1f96e2, #0978c7);
}

.button-soft {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(42, 42, 42, 0.12);
    color: #292929;
}

.nav-cta,
.nav-login {
    padding: 11px 20px;
}

.nav-cta {
    background: linear-gradient(135deg, #2ea7f2, #1189dd);
    color: #fff;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #2397e5, #0c79c9);
}

.nav-login {
    background: rgba(255, 255, 255, 0.98);
}

.site-nav-public {
    align-items: center;
}

.site-nav-public a::after,
.site-nav-public .button::after {
    display: none;
}

.site-nav-public .button {
    transform: none;
}

.home-page {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), rgba(245, 239, 233, 0.9) 35%, rgba(234, 227, 220, 0.9) 100%),
        linear-gradient(180deg, #f8f4f0 0%, #f3ede8 100%);
}

.home-page .site-shell {
    width: min(1300px, calc(100% - 36px));
    padding-top: 44px;
}

.home-page .site-header {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 30px 30px 0 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
    box-shadow: 0 20px 55px rgba(132, 112, 91, 0.12);
}

.home-page .main-content {
    gap: 44px;
    padding-top: 0;
}

.landing-shell {
    display: grid;
    gap: 28px;
    padding: 0 0 34px;
    border: 1px solid rgba(90, 72, 53, 0.1);
    border-radius: 0 0 34px 34px;
    background: rgba(255, 251, 248, 0.88);
    box-shadow: 0 40px 90px rgba(124, 102, 81, 0.12);
}

.hero-stage {
    overflow: hidden;
    min-height: 470px;
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(90deg, rgba(255, 250, 246, 0.98) 0%, rgba(255, 248, 242, 0.94) 38%, rgba(255, 243, 235, 0.4) 58%, rgba(233, 218, 203, 0.1) 100%),
        linear-gradient(135deg, #ece2d9, #d8c6b7);
    position: relative;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.95), transparent 28%),
        radial-gradient(circle at 43% 60%, rgba(255, 255, 255, 0.55), transparent 24%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22));
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 0.94fr;
    align-items: stretch;
    min-height: inherit;
}

.hero-copy-reimagined {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 66px 58px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: none;
}

.hero-copy-reimagined h1 {
    max-width: 9.5ch;
    font-size: clamp(3.1rem, 5vw, 5.2rem);
    line-height: 0.98;
    color: #281d16;
    margin-bottom: 18px;
}

.hero-copy-reimagined p {
    max-width: 24ch;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #54463b;
    margin-bottom: 30px;
}

.hero-visual {
    min-height: 470px;
    position: relative;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.96) contrast(1.02);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 247, 241, 0.72) 0%, rgba(255, 247, 241, 0.1) 28%, transparent 48%);
    pointer-events: none;
}

.hero-visual-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.52), transparent 16%),
        radial-gradient(circle at 58% 40%, rgba(255, 255, 255, 0.35), transparent 18%),
        linear-gradient(135deg, #d9c5b2 0%, #b58d68 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(68, 44, 24, 0.14);
}

.hero-shape-a {
    width: 220px;
    height: 280px;
    right: 12%;
    top: 12%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.46), rgba(145, 98, 55, 0.38));
    transform: rotate(7deg);
}

.hero-shape-b {
    width: 170px;
    height: 210px;
    right: 38%;
    bottom: 10%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(109, 73, 39, 0.28));
    transform: rotate(-11deg);
}

.hero-caption {
    position: absolute;
    left: 10%;
    bottom: 12%;
    max-width: 260px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 251, 247, 0.82);
    box-shadow: 0 24px 50px rgba(68, 44, 24, 0.12);
}

.hero-caption strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 1.35rem;
}

.hero-caption span {
    color: #5d4f44;
    line-height: 1.45;
}

.search-card {
    width: min(1120px, calc(100% - 92px));
    margin: -88px auto 0;
    padding: 30px 34px 26px;
    border-radius: 30px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 24px 55px rgba(138, 118, 98, 0.14);
}

.section-head-stacked {
    margin-bottom: 22px;
}

.section-head-stacked h2 {
    margin-bottom: 0;
}

.search-form-reimagined {
    grid-template-columns: 2.1fr 1.15fr 1.05fr auto;
}

.search-form-reimagined label span {
    font-size: 0.95rem;
    color: #5d5246;
}

.search-form-reimagined input,
.search-form-reimagined select {
    min-height: 60px;
    border-radius: 18px;
    border-color: rgba(82, 65, 48, 0.12);
    background: #fffdfb;
}

.search-form-reimagined button {
    min-height: 60px;
    padding-inline: 28px;
}

.benefit-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1120px, calc(100% - 92px));
    margin: 0 auto;
}

.benefit-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 8px;
    color: #2d2926;
    font-size: 1.02rem;
}

.benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

.benefit-icon-search {
    background: rgba(245, 225, 200, 0.7);
}

.benefit-icon-search::before {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #2f2f2f;
    border-radius: 50%;
    left: 9px;
    top: 8px;
}

.benefit-icon-search::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #2f2f2f;
    border-radius: 4px;
    transform: rotate(45deg);
    right: 8px;
    bottom: 9px;
}

.benefit-icon-pin {
    background: rgba(226, 234, 249, 0.75);
}

.benefit-icon-pin::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 7px;
    width: 14px;
    height: 18px;
    border: 2px solid #2f2f2f;
    border-radius: 10px 10px 10px 10px / 12px 12px 8px 8px;
    clip-path: polygon(50% 100%, 0 62%, 0 0, 100% 0, 100% 62%);
}

.benefit-icon-grid {
    background: rgba(229, 235, 220, 0.78);
}

.benefit-icon-grid::before,
.benefit-icon-grid::after {
    content: "";
    position: absolute;
    background: #2f2f2f;
}

.benefit-icon-grid::before {
    inset: 9px;
    background:
        linear-gradient(#2f2f2f, #2f2f2f) 0 0 / 8px 8px no-repeat,
        linear-gradient(#2f2f2f, #2f2f2f) 100% 0 / 8px 8px no-repeat,
        linear-gradient(#2f2f2f, #2f2f2f) 0 100% / 8px 8px no-repeat,
        linear-gradient(#2f2f2f, #2f2f2f) 100% 100% / 8px 8px no-repeat;
}

.profiles-showcase,
.results-panel,
.community-cta {
    width: min(1120px, calc(100% - 92px));
    margin: 0 auto;
}

.profiles-showcase h2,
.community-copy h2 {
    font-size: clamp(2.1rem, 3vw, 3.5rem);
}

.card-grid-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.maker-card-reimagined {
    border-radius: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.maker-card-reimagined .maker-card-link {
    gap: 0;
}

.maker-card-image-showcase {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(144, 121, 99, 0.15);
}

.maker-card-body-showcase {
    padding: 14px 4px 0;
}

.maker-card-body-showcase h3 {
    margin: 0 0 4px;
    font-size: 1.6rem;
    line-height: 1.04;
}

.maker-location {
    margin-bottom: 10px;
    color: #5a5148;
    font-size: 0.98rem;
}

.maker-card-body-showcase p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.tag-pastel-1 {
    background: #cfeee4;
    color: #276b61;
}

.tag-pastel-2 {
    background: #cfe8f6;
    color: #2d6e87;
}

.tag-pastel-3 {
    background: #f5ddbc;
    color: #8a5d2a;
}

.tag-pastel-4 {
    background: #dddaf4;
    color: #5d5890;
}

.showcase-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.results-panel {
    padding: 32px;
    border-radius: 32px;
    background: rgba(255, 253, 251, 0.9);
}

.results-stats {
    display: flex;
    gap: 16px;
    color: #6a5d4f;
    flex-wrap: wrap;
}

.community-cta {
    text-align: center;
    padding: 32px 20px 64px;
}

.community-copy {
    max-width: 860px;
    margin: 0 auto;
}

.community-copy h2 {
    margin: 0 0 20px;
    font-family: var(--serif);
    line-height: 1.06;
}

.community-copy p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #5d5147;
    font-size: 1.12rem;
    line-height: 1.65;
}

.community-copy .button {
    min-width: 280px;
    min-height: 62px;
    font-size: 1.05rem;
}

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

    .hero-visual {
        min-height: 340px;
    }

    .search-card,
    .benefit-row,
    .profiles-showcase,
    .results-panel,
    .community-cta {
        width: min(100% - 42px, 1120px);
    }

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

@media (max-width: 860px) {
    .home-page .site-header {
        border-radius: 26px;
        position: static;
        display: grid;
        justify-items: start;
        gap: 16px;
    }

    .site-nav-public {
        gap: 10px;
    }

    .hero-copy-reimagined {
        padding: 34px 24px 28px;
    }

    .hero-copy-reimagined h1 {
        font-size: 2.85rem;
        max-width: 12ch;
    }

    .search-card {
        margin-top: -34px;
        padding: 24px 20px;
    }

    .search-form-reimagined,
    .benefit-row {
        grid-template-columns: 1fr;
    }

    .results-panel {
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    .home-page .site-shell {
        width: min(100% - 16px, 100%);
        padding-top: 18px;
    }

    .landing-shell {
        border-radius: 0 0 24px 24px;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-copy-reimagined h1,
    .profiles-showcase h2,
    .community-copy h2 {
        font-size: 2.3rem;
    }

    .hero-copy-reimagined p {
        font-size: 1rem;
    }

    .search-card,
    .benefit-row,
    .profiles-showcase,
    .results-panel,
    .community-cta {
        width: min(100% - 22px, 1120px);
    }

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

    .community-copy .button {
        width: 100%;
        min-width: 0;
    }
}
