/* ============================================================
   ChatGPT Ads for Beauty Brands — base styles
   Tokens shared with /ai-visibility/ for brand consistency.
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font-family: inherit; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Design tokens (verbatim from /ai-visibility/style.css) --- */
:root {
    --bg: #000;
    --fg: #fff;
    /* Imagery-derived palette (2026-07 redesign) */
    --amber: #B8722C;          /* sampled from the serum bottle */
    --amber-text: #D48C3F;     /* amber lifted to clear 4.5:1 for small text on dark surfaces */
    --glow-green: #A9E6BE;     /* sampled from the hero panel edge — reserved, unused by design */
    --stone: #B9AB92;          /* warm beige neutral from the backgrounds */
    --stone-dark: #17130E;     /* dark stone: scrims, frosted card */
    --hairline: rgba(185, 171, 146, 0.25);
    --accent: var(--amber);
    --accent-dim: rgba(184, 114, 44, 0.15);
    --warm: #F7F0E6;
    --grey-900: #0a0a0a;
    --grey-800: #141414;
    --grey-700: #1a1a1a;
    --grey-600: #2a2a2a;
    --grey-500: #4a4a4a;
    --grey-400: #7a7a7a;
    --grey-300: #aaa;
    --surface-elevated: linear-gradient(180deg, #1a1d21 0%, #14171b 100%);
    --surface-elevated-border: rgba(255, 255, 255, 0.1);
    --gutter: clamp(1rem, 4vw, 3rem);
    --max-width: 1440px;
    --nav-height: 64px;
    --font: 'Roboto', system-ui, -apple-system, sans-serif;
    --mono: 'SF Mono', 'Roboto Mono', ui-monospace, Menlo, monospace;
    --section-pad-y: clamp(4rem, 10vw, 8rem);
    --ease-snap: cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* --- Typography utilities --- */
.display-xl {
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    text-wrap: balance;
}
.display-m {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-wrap: balance;
}
.kinetic-line { display: block; }
.body-l {
    font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
    line-height: 1.5;
    color: var(--grey-300);
    font-weight: 300;
}
.body-m {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--grey-300);
}
.overline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-400);
}
.numeral {
    font-variant-numeric: tabular-nums;
    font-weight: 300;
    color: var(--grey-400);
    letter-spacing: 0.05em;
}

/* --- Layout helpers --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.section {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
}
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -48px; left: 16px;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--fg);
    color: var(--bg);
    border-radius: 4px;
    transition: top 150ms var(--ease-snap);
}
.skip-link:focus { top: 12px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 1rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 150ms var(--ease-snap), background 150ms var(--ease-snap), border-color 150ms var(--ease-snap), color 150ms var(--ease-snap);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--fg);
    color: var(--bg);
}
.btn-primary:hover { background: var(--warm); }
.btn-ghost {
    border-color: var(--grey-500);
    color: var(--fg);
}
.btn-ghost:hover { border-color: var(--amber); }

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--nav-height);
    transition: background 200ms var(--ease-snap), border-color 200ms var(--ease-snap);
    border-bottom: 1px solid transparent;
}
.nav--scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--grey-700);
}
.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__brand img { height: 32px; width: auto; }
.nav__cta { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}
.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(23, 19, 14, 0.68) 0%,
        rgba(23, 19, 14, 0.5) 42%,
        rgba(23, 19, 14, 0) 78%);
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
/* Sized so each of the three composed lines holds on one line from
   ~1000px up AND the eyebrow-to-CTA stack fits inside 100svh at
   1280x800 — the display-xl clamp is too large for that. */
.hero__headline { font-size: clamp(3rem, 5.5vw, 5.25rem); }
.hero__eyebrow { color: var(--stone); }
.hero__lede { max-width: 46ch; color: #E9DFD0; }
.hero__ctas {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.hero__scrolldown {
    color: var(--stone);
    font-size: 0.9375rem;
    transition: color 150ms var(--ease-snap);
}
.hero__scrolldown:hover { color: var(--amber); }

/* --- Section 01: Squeeze --- */
.squeeze { border-top: 1px solid var(--grey-700); }
.squeeze__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.squeeze__stat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-weight: 300;
}
.squeeze__figure {
    font-size: clamp(5rem, 16vw, 13rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--fg);
}
.squeeze__pct { color: var(--accent); }
.squeeze__suffix {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.15;
    max-width: 24em;
    text-wrap: balance;
}
/* Static before/after CPA chart — no animation by design */
.cpa {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 720px;
}
.cpa__row {
    display: grid;
    grid-template-columns: 3.25rem 1fr 6.5rem;
    align-items: center;
    gap: 1rem;
}
.cpa__year { font-size: 0.9375rem; }
.cpa__track {
    display: block;
    height: 28px;
    background: var(--grey-800);
    border-radius: 3px;
    overflow: hidden;
}
.cpa__bar {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--grey-400);
    border-radius: 3px;
}
.cpa__bar--amber { background: var(--amber); }
.cpa__val {
    font-variant-numeric: tabular-nums;
    font-size: 0.9375rem;
    color: var(--grey-300);
    white-space: nowrap;
}
.cpa__caption { margin-top: 0.25rem; }

/* --- Section 02: Concentration + bars --- */
.concentration { border-top: 1px solid var(--grey-700); }
.concentration__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.concentration__header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
/* Editorial split header: statement left, evidence right */
.concentration__headgrid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem 4rem;
    align-items: start;
}
.concentration__lede { max-width: 62ch; }

/* Data panel: chart + mentions stat, the scene photo flush below.
   The metaphor (lone bottle out of the spotlight) is content, not
   background, and the captions name it. */
.concentration__card {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--grey-900);
    overflow: hidden;
}
.concentration__data {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: clamp(1.5rem, 3vw, 2.75rem);
}
.concentration__caphead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    flex-wrap: wrap;
}
.concentration__caphead .overline { color: var(--stone); }
.concentration__card .bars__val { color: var(--grey-300); }
.mentions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-700);
    color: var(--grey-300);
    font-size: 1.0625rem;
    line-height: 1.55;
}
.mentions__figure {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.mentions__text { flex: 1 1 24ch; max-width: 72ch; }
.scene { position: relative; }
.scene img { width: 100%; height: auto; display: block; }
.scene__caps {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    flex-wrap: wrap;
    padding: 3.5rem clamp(1.5rem, 3vw, 2.75rem) 1.5rem;
    /* caption legibility over the lit floor at any crop */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
    font-size: 0.9375rem;
    color: #E9DFD0;
}
.scene__cap--you { color: var(--amber-text); font-weight: 500; }

.bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bars__row {
    display: grid;
    grid-template-columns: minmax(110px, 160px) 1fr 64px;
    align-items: center;
    gap: 1rem;
}
.bars__label {
    font-size: 0.9375rem;
    color: var(--grey-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bars__track {
    display: block;
    height: 10px;
    background: var(--grey-800);
    border-radius: 3px;
    overflow: hidden;
}
.bars__fill {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--grey-400);
    border-radius: 3px;
    transform-origin: left center;
}
/* THE one scroll-triggered animation on the page. .bars--animate is
   JS-gated, so no-JS gets full static bars for free. */
@media (prefers-reduced-motion: no-preference) {
    .bars--animate .bars__fill {
        transform: scaleX(0);
        transition: transform 500ms ease-out;
    }
    .bars--animate.is-visible .bars__fill { transform: scaleX(1); }
    .bars--animate .bars__row:nth-child(2) .bars__fill { transition-delay: 60ms; }
    .bars--animate .bars__row:nth-child(3) .bars__fill { transition-delay: 120ms; }
    .bars--animate .bars__row:nth-child(4) .bars__fill { transition-delay: 180ms; }
    .bars--animate .bars__row:nth-child(5) .bars__fill { transition-delay: 240ms; }
    .bars--animate .bars__row:nth-child(6) .bars__fill { transition-delay: 300ms; }
    .bars--animate .bars__row:nth-child(7) .bars__fill { transition-delay: 360ms; }
    .bars--animate .bars__row:nth-child(8) .bars__fill { transition-delay: 420ms; }
    .bars--animate .bars__row:nth-child(9) .bars__fill { transition-delay: 480ms; }
    .bars--animate .bars__row:nth-child(10) .bars__fill { transition-delay: 540ms; }
    .bars--animate .bars__row:nth-child(11) .bars__fill { transition-delay: 600ms; }
}
.bars__val {
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    color: var(--grey-400);
    text-align: right;
    white-space: nowrap;
}
/* Emotional peak: label + track in amber, slightly larger weight.
   Text uses the lifted amber — base amber fails 4.5:1 over the frost. */
.bars__row--you .bars__label { color: var(--amber-text); font-weight: 500; font-size: 1rem; }
.bars__row--you .bars__val { color: var(--amber-text); font-weight: 500; }
.bars__row--you .bars__track { background: var(--accent-dim); }
.bars__fill--you { background: var(--amber); }

/* --- Section 03: Side door + facts grid --- */
.sidedoor { border-top: 1px solid var(--grey-700); }
.sidedoor__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.sidedoor__header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1100px;
}
.sidedoor__lede { max-width: 62ch; }
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--grey-700);
    border: 1px solid var(--grey-700);
    border-radius: 8px;
    overflow: hidden;
}
.fact {
    background: var(--grey-900);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.fact__figure {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--accent);
}
/* Stat grid + floating-overlap image (the only overlap on the page) */
.sidedoor__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.sidedoor__figure { max-width: 420px; }
.sidedoor__figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 760 / 950;
    object-fit: cover;
    border: 1px solid var(--hairline);
    border-radius: 8px;
}
@media (min-width: 1000px) {
    .sidedoor__body {
        grid-template-columns: minmax(0, 1fr) 48px 340px;
        align-items: start;
        gap: 0;
    }
    .sidedoor__body .facts {
        grid-column: 1 / 3;
        grid-row: 1;
        z-index: 1;
        grid-template-columns: repeat(2, 1fr);
    }
    .sidedoor__figure {
        grid-column: 2 / 4;
        grid-row: 1;
        max-width: none;
        /* stagger the image so the grid visibly breaks over it */
        margin-top: 7rem;
    }
}
/* Fine-print chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.chip {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--grey-900);
    flex: 1 1 240px;
}
.chip__icon { flex: none; color: var(--amber); margin-top: 0.125rem; }
.chip__text { display: flex; flex-direction: column; gap: 0.25rem; }
.chip__label { font-size: 0.9375rem; font-weight: 500; color: var(--fg); }
.chip__sub { font-size: 0.875rem; color: var(--grey-300); }
.sidedoor__note { max-width: 62ch; }

/* --- Section 04: Operation cards --- */
.operation { border-top: 1px solid var(--grey-700); }
.operation__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.operation__header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1100px;
}
.operation__lede { max-width: 62ch; }
.ops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem 2rem;
}
.op {
    display: block;
    padding-top: 1.25rem;
    border-top: 1px solid var(--grey-600);
}
.op__summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    cursor: default;
}
.op__summary::-webkit-details-marker { display: none; }
.op__summary::marker { content: none; }
.op__title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.op__body { max-width: 40ch; margin-top: 0.75rem; }
@media (max-width: 768px) {
    .op__summary {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
        cursor: pointer;
    }
    .op__summary::after {
        content: "+";
        margin-left: auto;
        font-size: 1.375rem;
        font-weight: 300;
        line-height: 1;
        color: var(--amber);
    }
    .op[open] .op__summary::after { content: "−"; }
}

/* --- Credibility band: the studio behind it --- */
.studio {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.studio__bg {
    position: absolute;
    inset: 0;
}
.studio__bg picture { display: block; width: 100%; height: 100%; }
.studio__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22; /* muted band — visible texture, text legibility first */
}
.studio__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 3rem;
    align-items: center;
}
.studio__text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.studio__body { max-width: 62ch; }
.studio__link {
    color: var(--amber);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 150ms var(--ease-snap);
}
.studio__link:hover { color: var(--warm); }
.strip {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.strip__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(23, 19, 14, 0.6);
    color: var(--grey-300);
    font-size: 0.9375rem;
}
.strip__item svg { flex: none; color: var(--amber); }

/* --- Section 05: CTA --- */
.cta { border-top: 1px solid var(--grey-700); }
.cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: flex-start;
}
.cta__lede { max-width: 56ch; }
.cta__includes {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    color: var(--grey-300);
    font-size: 1.0625rem;
}
.cta__includes li { padding-left: 1.5rem; position: relative; }
.cta__includes li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Footer --- */
.foot {
    border-top: 1px solid var(--grey-700);
    padding: 2rem 0;
}
.foot__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.foot__copy { color: var(--grey-400); font-size: 0.9375rem; }
.foot__home { color: var(--grey-400); font-size: 0.9375rem; transition: color 150ms var(--ease-snap); }
.foot__home:hover { color: var(--fg); }
.foot__social { color: var(--grey-400); transition: color 150ms var(--ease-snap); }
.foot__social:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .facts { grid-template-columns: repeat(2, 1fr); }
    .concentration__headgrid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
        padding-top: 0; /* image tucks under the transparent nav; top scrim keeps the logo legible */
        padding-bottom: 3rem;
        background: var(--bg);
    }
    .hero__media {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    /* keep the glowing chat panel in frame: right-anchored crop */
    .hero__media img { object-position: right center; }
    .hero__scrim {
        background: linear-gradient(180deg,
            rgba(23, 19, 14, 0.55) 0%,
            rgba(23, 19, 14, 0) 32%);
    }
    .studio__inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
    .facts { grid-template-columns: 1fr; }
    .bars__row { grid-template-columns: minmax(90px, 110px) 1fr 56px; gap: 0.625rem; }
    /* Page is long and the only other CTAs are hero and footer-CTA —
       keep the nav CTA reachable, just compact. */
    .nav__cta { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
    .scene__caps { font-size: 0.8125rem; padding-bottom: 1rem; }
    .foot__inner { flex-direction: column; align-items: flex-start; }
}
