:root {
    --bg: #f7f3eb;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: #fffdf8;
    --ink: #172033;
    --muted: #5e687c;
    --line: rgba(23, 32, 51, 0.12);
    --accent: #b95c32;
    --accent-deep: #7c3112;
    --accent-soft: #f6d9c8;
    --success: #2d7a52;
    --radius: 24px;
    --shadow: 0 22px 56px rgba(23, 32, 51, 0.11);
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(185, 92, 50, 0.16), transparent 28rem),
        linear-gradient(180deg, #fcfaf6 0%, var(--bg) 60%, #f3ede3 100%);
    min-height: 100vh;
}

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

img {
    max-width: 100%;
}

.shell {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(247, 243, 235, 0.7);
    border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}

.site-header__inner,
.site-footer__inner,
.section,
.page-header,
.dashboard-grid,
.result-grid,
.pricing-grid,
.auth-grid,
.checkout-grid {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--accent), var(--accent-deep));
    color: white;
    box-shadow: 0 12px 24px rgba(124, 49, 18, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav__link {
    color: var(--muted);
    font-size: 0.96rem;
}

.lang-switch {
    display: inline-flex;
    gap: 0.4rem;
}

.lang-switch a {
    border: 1px solid var(--line);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--muted);
}

.lang-switch a.is-active {
    background: white;
    color: var(--ink);
}

.btn,
button,
input,
select {
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(145deg, var(--accent), var(--accent-deep));
    color: white;
    box-shadow: 0 16px 32px rgba(124, 49, 18, 0.2);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--line);
}

.btn--block {
    width: 100%;
}

.hero {
    padding: 4.5rem 0 2.6rem;
}

.hero__grid,
.feature-grid,
.story-grid,
.dashboard-grid,
.result-grid,
.checkout-grid,
.pricing-grid,
.auth-grid {
    display: grid;
    gap: 1.4rem;
}

.hero__grid {
    grid-template-columns: 1.25fr 0.95fr;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--line);
    color: var(--accent-deep);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
.display {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.03;
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    margin-top: 1rem;
}

h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.lead,
.section__lead,
.muted {
    color: var(--muted);
    line-height: 1.7;
}

.hero__actions,
.stack,
.inline-list {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-card,
.card,
.metric,
.pricing-card,
.result-card,
.dashboard-card,
.auth-card,
.checkout-card,
.status-banner {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    padding: 1.5rem;
}

.hero-card__row,
.metric-grid,
.card-grid {
    display: grid;
    gap: 1rem;
}

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

.hero-stat {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line);
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.section {
    padding: 2.6rem 0;
}

.section--tight {
    padding-top: 1rem;
}

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

.card,
.pricing-card,
.result-card,
.dashboard-card,
.auth-card,
.checkout-card {
    padding: 1.4rem;
}

.card h3,
.pricing-card h3,
.result-card h3,
.dashboard-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.trust-pill {
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-card--featured {
    background: linear-gradient(180deg, #fff7f0, #fffdf9);
    border-color: rgba(185, 92, 50, 0.22);
}

.price {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
}

.list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.list li {
    padding: 0.5rem 0 0.5rem 1.4rem;
    position: relative;
    color: var(--muted);
}

.list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--single {
    grid-template-columns: 1fr;
}

label {
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(23, 32, 51, 0.14);
    background: rgba(255,255,255,0.9);
    color: var(--ink);
}

.status-banner {
    padding: 1rem 1.2rem;
    margin: 1.2rem auto 0;
    width: min(100% - 2rem, var(--max));
    color: var(--accent-deep);
}

.page-header {
    padding: 3rem 0 1.4rem;
}

.dashboard-grid,
.result-grid,
.checkout-grid {
    grid-template-columns: 1.08fr 0.92fr;
    padding-bottom: 3rem;
}

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

.metric {
    padding: 1.1rem;
}

.metric strong {
    display: block;
    font-size: 2rem;
}

.result-score {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fffdf7, #f6e6dc);
    border: 1px solid rgba(185, 92, 50, 0.2);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.score-list {
    display: grid;
    gap: 0.7rem;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bar {
    flex: 1;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.08);
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #df936c);
}

.site-footer {
    padding: 2rem 0 3rem;
    color: var(--muted);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
}

.small {
    font-size: 0.92rem;
}

.hide {
    display: none;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.summary-table td {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.summary-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.summary-table tr:last-child td {
    font-size: 1.08rem;
    border-bottom: 0;
}

@media (max-width: 900px) {
    .hero__grid,
    .feature-grid,
    .pricing-grid,
    .dashboard-grid,
    .result-grid,
    .checkout-grid,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .form-grid,
    .trust-bar {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.3rem, 12vw, 4rem);
    }

    .site-header__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
