:root {
    --bg: #f3ede6;
    --bg-strong: #e4d7ca;
    --panel: rgba(255, 250, 245, 0.78);
    --ink: #181511;
    --muted: #64574b;
    --line: rgba(24, 21, 17, 0.1);
    --accent: #b56a4d;
    --shadow: 0 24px 80px rgba(68, 43, 22, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 34%),
        linear-gradient(180deg, #f7f2ec 0%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { min-height: 100vh; }
.site-header, .site-footer, .feature-strip, .analyzer-section, .steps-section, .types-section, .hairstyle-section, .reviews-section, .faq-section, .editorial-section, .blog-page, .article-page {
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(243, 237, 230, 0.68);
    border-bottom: 1px solid rgba(24, 21, 17, 0.06);
}
.wordmark {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.hero {
    min-height: calc(100svh - 82px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 4rem;
}
.hero-copy { max-width: 42rem; }
.eyebrow, .feature-strip span, .post-meta {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--muted);
}
.hero h1, .blog-hero h1, .article-shell h1, .section-heading h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.03em;
}
.hero h1 { font-size: clamp(3.4rem, 8vw, 6.9rem); max-width: 11ch; }
.hero-text, .blog-hero p, .article-lead { font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
}
.button-dark { background: var(--ink); color: #f8f2eb; }
.button-light { background: transparent; border-color: var(--line); }
.hero-visual { position: relative; min-height: 34rem; }
.portrait { position: absolute; border-radius: 2rem; box-shadow: var(--shadow); background-size: cover; background-position: center; }
.portrait-a {
    inset: 0 12% 18% 0;
    background: linear-gradient(180deg, rgba(39, 28, 18, 0.08), rgba(39, 28, 18, 0.28)),
    radial-gradient(circle at 52% 30%, rgba(250, 221, 194, 0.95), rgba(198, 126, 93, 0.82) 45%, rgba(87, 55, 42, 0.95) 100%);
}
.portrait-b {
    width: 42%;
    height: 48%;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(40, 20, 14, 0.1), rgba(40, 20, 14, 0.24)),
    radial-gradient(circle at 48% 32%, rgba(244, 212, 183, 0.98), rgba(209, 155, 121, 0.9) 42%, rgba(111, 76, 57, 0.96) 100%);
}
.hero-note {
    position: absolute;
    left: 6%;
    bottom: 8%;
    max-width: 18rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(255, 248, 241, 0.8);
    backdrop-filter: blur(20px);
}
.hero-note span, .hero-note small { display: block; }
.hero-note strong { display: block; margin: 0.25rem 0; font-size: 1.5rem; }
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}
.feature-strip p { margin: 0.6rem 0 0; line-height: 1.6; }
.analyzer-section, .steps-section, .types-section, .hairstyle-section, .reviews-section, .faq-section, .editorial-section, .blog-hero, .post-list, .article-shell { padding-top: 4rem; padding-bottom: 4rem; }
.section-heading { max-width: 44rem; margin-bottom: 2rem; }
.section-heading h2, .blog-hero h1, .article-shell h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); max-width: 12ch; }
.analyzer-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
.upload-panel, .results-panel, .post-card, .article-shell {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}
.upload-panel, .results-panel, .article-shell { border-radius: 2rem; }
.upload-panel, .results-panel { padding: 1.35rem; }
.step-card, .type-card, .review-card, .faq-list details {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
}
.upload-dropzone {
    display: grid;
    gap: 0.55rem;
    padding: 1.2rem;
    border: 1px dashed rgba(24, 21, 17, 0.18);
    border-radius: 1.5rem;
    min-height: 13rem;
    cursor: pointer;
    align-content: center;
}
.upload-dropzone input { display: none; }
.upload-kicker { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.api-banner {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(181, 106, 77, 0.12);
    color: var(--muted);
    line-height: 1.5;
}
.preview-shell { margin-top: 1rem; border-radius: 1.5rem; overflow: hidden; }
.preview-shell img, .annotated-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.submit-button { width: 100%; margin-top: 1rem; }
.form-status, .result-summary, .article-body p, .post-card p { color: var(--muted); line-height: 1.7; }
.results-panel h3 { margin: 0.25rem 0 0.75rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}
.metrics div { padding: 0.85rem 0.95rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.52); }
.metrics dt { margin-bottom: 0.2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.metrics dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.editorial-grid, .post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.steps-grid, .types-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.step-card, .type-card, .review-card {
    padding: 1.25rem;
}
.step-card span {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.step-card h3, .type-card h3, .review-card h3 {
    margin: 0 0 0.6rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
}
.step-card p, .type-card p, .review-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.hairstyle-table {
    display: grid;
    gap: 0.8rem;
}
.hair-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.hair-head {
    padding-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--muted);
}
.hair-row p, .hair-row strong {
    margin: 0;
}
.hair-row p {
    color: var(--muted);
    line-height: 1.7;
}
.stars {
    margin-bottom: 0.5rem !important;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.faq-list {
    display: grid;
    gap: 0.9rem;
}
.faq-list details {
    padding: 1rem 1.1rem;
}
.faq-list p {
    color: var(--muted);
    line-height: 1.7;
}
summary {
    cursor: pointer;
    font-weight: 700;
}
.editorial-grid article, .post-card { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.editorial-grid h3, .post-card h2, .article-body h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin: 0.35rem 0 0.75rem;
    line-height: 1.02;
}
.blog-hero, .article-page { max-width: 78rem; margin: 0 auto; }
.article-shell { padding: 2rem; }
.article-body { display: grid; gap: 1rem; margin-top: 2rem; }
.article-cta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.text-link { font-weight: 700; }
.site-footer { padding-top: 2rem; padding-bottom: 2.5rem; color: var(--muted); }
@media (max-width: 960px) {
    .hero, .analyzer-layout, .feature-strip, .editorial-grid, .post-list, .steps-grid, .types-grid, .reviews-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 1.5rem; }
    .hero-visual { min-height: 24rem; }
    .section-heading h2, .blog-hero h1, .article-shell h1 { max-width: none; }
    .hair-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (max-width: 640px) {
    .site-header { align-items: flex-start; gap: 0.8rem; flex-direction: column; }
    .wordmark { font-size: 1.5rem; }
    .hero h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
    .metrics { grid-template-columns: 1fr; }
    .article-shell { padding: 1.4rem; }
}
