/* ==========================================================
   Lipedema Wellness Guide — soft mauve / rosé / sage palette
   ========================================================== */

:root {
    --primary: #a64a76;
    --primary-dark: #7f3459;
    --primary-soft: #f6e6ee;
    --accent: #e3a08f;
    --accent-soft: #fbece7;
    --sage: #5f8a72;
    --sage-soft: #e7f0ea;

    --background: #fcf8f6;
    --surface: #ffffff;
    --surface-tint: #f8eff1;
    --text-primary: #2b2130;
    --text-secondary: #6a5d6d;
    --text-muted: #8f8292;
    --border: #eee2e5;

    --radius-lg: 1.75rem;
    --radius-md: 1.25rem;
    --shadow-soft: 0 1px 2px rgba(43, 33, 48, 0.04), 0 14px 34px -20px rgba(127, 52, 89, 0.28);
    --shadow-lift: 0 2px 4px rgba(43, 33, 48, 0.05), 0 26px 50px -24px rgba(127, 52, 89, 0.4);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    color: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Shared type */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.6;
}

h1 em,
h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
}

.section-header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.section-title.align-left {
    text-align: left;
}

.section-description {
    font-size: 1.08rem;
    color: var(--text-secondary);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.1rem 2.4rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 12px 26px -10px rgba(127, 52, 89, 0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgba(127, 52, 89, 0.7);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 14px 30px -12px rgba(30, 15, 30, 0.45);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-small {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
}

.btn:hover .icon {
    transform: translateX(3px);
}

/* Top bar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(252, 248, 246, 0.85);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(238, 226, 229, 0.8);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-mark {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50% 50% 50% 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.topbar-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

/* Hero */

.hero-section {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, #f5dde7 0%, transparent 60%),
        radial-gradient(40rem 24rem at -10% 20%, var(--accent-soft) 0%, transparent 60%),
        var(--background);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 34rem;
    margin-bottom: 2.25rem;
}

.cta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.cta-note {
    max-width: 26rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.hero-media {
    position: relative;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--primary-soft) 100%);
    z-index: 0;
}

.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 9 / 7;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}

.floating-card {
    position: absolute;
    z-index: 2;
    left: -1.5rem;
    bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.2rem 0.9rem 0.9rem;
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: var(--shadow-lift);
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.floating-card strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.floating-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: var(--primary-soft);
    color: var(--primary);
}

.floating-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    margin-top: 4.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.trust-row svg {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--sage);
    stroke-width: 2.2;
}

/* About lipedema */

.problems-section {
    padding: 6rem 0;
    background: var(--surface);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.problem-card {
    position: relative;
    padding: 2.25rem 2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: #e4cdd6;
    box-shadow: var(--shadow-soft);
}

.card-number {
    position: absolute;
    top: 1.6rem;
    right: 1.75rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: #e6d3da;
}

.problem-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.problem-icon svg {
    width: 1.55rem;
    height: 1.55rem;
    stroke-width: 2;
}

.icon-mauve {
    background: var(--primary-soft);
    color: var(--primary);
}

.icon-rose {
    background: var(--accent-soft);
    color: #c06a55;
}

.icon-sage {
    background: var(--sage-soft);
    color: var(--sage);
}

.problem-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.problem-card p {
    font-size: 0.96rem;
    color: var(--text-secondary);
}

/* Self-care split */

.solution-section {
    padding: 6rem 0;
    background: var(--background);
}

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

.split-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 100% center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}

.solution-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    border-color: #e4cdd6;
    box-shadow: var(--shadow-soft);
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 0.8rem;
    background: var(--sage-soft);
    color: var(--sage);
}

.benefit-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2;
}

.benefit-item h4 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.benefit-item p {
    font-size: 0.93rem;
    color: var(--text-secondary);
}

/* Book */

.contents-section {
    padding: 6rem 0;
    background: var(--surface);
}

.book-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 54rem;
    margin: 0 auto 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--surface-tint) 0%, var(--accent-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.book-visual {
    display: grid;
    place-items: center;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 20px 40px -18px rgba(127, 52, 89, 0.7);
}

.book-visual svg {
    width: 3.5rem;
    height: 3.5rem;
    stroke-width: 1.6;
}

.book-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.book-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
}

.book-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 54rem;
    margin: 0 auto;
}

.content-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.6rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    border-color: #e4cdd6;
    box-shadow: var(--shadow-soft);
}

.content-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 0.8rem;
    background: var(--primary-soft);
    color: var(--primary);
}

.content-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2;
}

.content-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.content-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
}

/* Final CTA */

.final-cta-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background: linear-gradient(135deg, #6f2c4d 0%, #a64a76 55%, #d48c82 100%);
    color: #fff;
    text-align: center;
}

.final-cta-section::before,
.final-cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.final-cta-section::before {
    width: 28rem;
    height: 28rem;
    top: -12rem;
    left: -8rem;
}

.final-cta-section::after {
    width: 20rem;
    height: 20rem;
    bottom: -10rem;
    right: -5rem;
}

.cta-content {
    position: relative;
    max-width: 40rem;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.cta-description {
    font-size: 1.12rem;
    opacity: 0.92;
    margin-bottom: 2.25rem;
}

.guarantee-text {
    max-width: 30rem;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-style: italic;
    opacity: 0.88;
}

/* Footer */

.footer {
    padding: 3.5rem 0 2.5rem;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.disclaimer {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
}

.disclaimer p {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

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

.disclaimer strong {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Legal pages */

.legal-page {
    max-width: 46rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    line-height: 1.7;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.legal-page h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.legal-page a {
    color: var(--primary-dark);
}

/* Entrance animation */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-media {
    animation: fadeInUp 0.8s 0.15s ease-out both;
}

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

/* Responsive */

@media (max-width: 960px) {
    .hero-grid,
    .split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-description,
    .cta-note {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-block {
        align-items: center;
    }
    .hero-media {
        max-width: 36rem;
        margin: 0 auto;
        width: calc(100% - 1.5rem);
    }
    .split-media img {
        aspect-ratio: 4 / 3;
        object-position: center;
    }
    .problems-grid {
        grid-template-columns: 1fr;
        max-width: 36rem;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    .topbar-tag {
        display: none;
    }
    .hero-section {
        padding: 2.75rem 0 2.5rem;
    }
    .hero-media::before {
        inset: 1rem -0.75rem -0.75rem 1rem;
    }
    .floating-card {
        left: 0.75rem;
        bottom: 0.75rem;
    }
    .trust-row {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        margin-top: 3rem;
    }
    .problems-section,
    .solution-section,
    .contents-section,
    .final-cta-section {
        padding: 4rem 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .btn {
        width: 100%;
        padding: 1.05rem 1.5rem;
    }
    .book-feature {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.25rem;
    }
    .book-visual {
        width: 6.5rem;
        height: 6.5rem;
        border-radius: 1.5rem;
    }
    .contents-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .disclaimer {
        padding: 1.25rem;
    }
}
