/* Bare Aesthetics: palette taken from the mockup Brodie approved */
:root {
  --linen: #f1e8de;      /* page */
  --paper: #f8f3ed;      /* cards */
  --oat: #e3d6c9;        /* soft bands, borders */
  --taupe: #b9a594;      /* muted lines */
  --cocoa: #4a2c24;      /* primary brand brown */
  --espresso: #2f1c17;   /* text */
  --muted: #6e5850;
  --line: #8c776a;       /* form borders, 3:1+ on cream */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(47, 28, 23, .05), 0 12px 32px -12px rgba(47, 28, 23, .18);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--espresso);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cocoa); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.5rem;
  border-radius: var(--r-sm);
  font: 500 1.0625rem/1 var(--serif);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--cocoa); color: var(--paper); }
.btn-primary:hover { background: var(--espresso); }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.btn-ghost:hover { background: rgba(74, 44, 36, .07); }
.btn-text { background: none; border: 0; color: var(--muted); padding-inline: 0; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.btn-light { background: var(--paper); color: var(--cocoa); }
.btn-light:hover { background: #fff; }
.btn-outline-light { color: var(--paper); border-color: rgba(248, 243, 237, .55); }
.btn-outline-light:hover { background: rgba(248, 243, 237, .1); }
.btn-wide { width: 100%; }

/* Header */
.site-header { position: relative; z-index: 5; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.4rem; border-bottom: 1px solid var(--oat);
}
.wordmark { font-size: 1.75rem; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.nav { display: flex; gap: 2.25rem; }
.nav a { font-family: var(--sans); font-size: .875rem; text-decoration: none; padding-block: .4rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.nav a:hover { background-size: 100% 1px; }

/* Hero */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; grid-template-areas: "copy photo" "actions photo"; column-gap: 2rem; }
.hero-copy { grid-area: copy; align-self: end; }
.hero-actions { grid-area: actions; padding-bottom: clamp(5.5rem, 10vw, 8.5rem); }
.hero-photo { grid-area: photo; align-self: end; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 400; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; font-weight: 300; display: block; padding-bottom: .08em; }
.lede { font-size: 1.3rem; color: var(--muted); margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-photo { margin: 0; position: relative; justify-self: end; width: min(100%, 460px); }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: 999px 999px 0 0; /* arch, echoing the arched mirror and lamp in her room */
}
.hero-photo figcaption {
  position: absolute; left: -1.25rem; bottom: 6.5rem;
  font-family: var(--sans); font-size: .8125rem; letter-spacing: .02em;
  background: var(--paper); padding: .5rem .85rem; border-radius: 999px; box-shadow: var(--shadow);
}

/* Finder (signature quiz) */
.finder-section { margin-top: -4.25rem; position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.finder {
  background: var(--paper);
  border: 1px solid var(--oat);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 860px; margin-inline: auto;
}
.finder-count { font-style: italic; font-size: 1.0625rem; color: var(--muted); }
.progress { height: 8px; background: var(--oat); border-radius: 99px; margin-top: .6rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33.333%; background: var(--cocoa); border-radius: inherit; transition: width .5s var(--ease); }
.finder-body { margin-top: 1.75rem; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; padding: 0; letter-spacing: -0.015em; }
.step-hint { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: .4rem; }

.options { margin-top: 1.25rem; }
.options-stack { display: grid; gap: .6rem; }
.options-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: .85rem;
  border: 1px solid var(--oat); border-radius: var(--r-md);
  background: var(--linen);
  padding: .85rem 1.1rem; font-size: 1.125rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.opt span::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.opt input[type="checkbox"] + span::before { border-radius: 4px; }
.opt:hover span { border-color: var(--taupe); }
.opt input:checked + span { border-color: var(--cocoa); background: #ece0d4; }
.opt input:checked + span::before { border-color: var(--cocoa); box-shadow: inset 0 0 0 3.5px var(--paper), inset 0 0 0 9px var(--cocoa); }
.opt input[type="checkbox"]:checked + span::before { background: var(--cocoa); box-shadow: inset 0 0 0 3px var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--cocoa); outline-offset: 2px; }
.options-chips .opt span { padding: .6rem 1rem; font-size: 1.0625rem; border-radius: 99px; gap: .6rem; }

.note-field, .name-field { display: block; margin-top: 1.25rem; }
.note-field input, .name-field input {
  width: 100%; min-height: 48px; padding: .7rem 1rem;
  font: italic 1.0625rem var(--serif); color: var(--espresso);
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--r-md);
}
.name-field input { font-style: normal; }
.note-field input::placeholder, .name-field input::placeholder { color: #85716a; }
.note-field input:focus, .name-field input:focus { outline: 2px solid var(--cocoa); outline-offset: 1px; border-color: var(--cocoa); }
.name-field span, .note-field span { display: block; font-family: var(--sans); font-size: .875rem; margin-bottom: .4rem; }
.name-field em, .note-field em { color: var(--muted); font-style: normal; }

.step-error { font-family: var(--sans); font-size: .875rem; color: #8a2c1d; margin-top: .9rem; }
.step-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.75rem; }
.step-actions .btn-primary:not(.btn-wide) { flex: 1; max-width: 300px; }
.step-actions .btn-wide { max-width: 340px; }
.step-actions-start { justify-content: flex-start; margin-top: .75rem; }

/* Result */
.result { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.result-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
.result-text { margin-top: .9rem; color: var(--muted); }
.result-send { background: var(--linen); border-radius: var(--r-md); padding: 1.25rem; border: 1px solid var(--oat); }
.bubble-label { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.bubble {
  position: relative; background: #dcefd4; color: #1f2a1c;
  font: 400 .975rem/1.45 var(--sans);
  padding: .8rem .95rem 1.4rem; border-radius: 12px 12px 4px 12px;
  margin: 0 0 1.1rem 1.5rem; white-space: pre-line;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.bubble::after { content: "Ready to send"; position: absolute; right: .7rem; bottom: .35rem; font-size: .7rem; color: #5b6b56; }
.alt-contact { font-family: var(--sans); font-size: .875rem; text-align: center; margin-top: .85rem; color: var(--muted); }
.alt-contact a { color: var(--cocoa); }

/* How it works */
.steps-band { background: var(--cocoa); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.steps-band::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px;
  border: 1px solid rgba(248, 243, 237, .14); border-radius: 50%;
}
.steps-band h2 { text-align: center; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.75rem; }
.how li { display: flex; gap: 1rem; padding: 0 1.75rem; border-left: 1px solid rgba(248, 243, 237, .22); }
.how li:first-child { border-left: 0; padding-left: 0; }
.how-n { font-style: italic; font-size: 2.25rem; line-height: 1; opacity: .7; }
.how h3 { font-size: 1.25rem; }
.how p { margin-top: .45rem; font-size: 1rem; opacity: .8; }

/* Treatments */
.treatments { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-head p { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; margin-top: .9rem; }
/* 5 cards: 3 across, then 2 wider ones */
.t-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.t-card { grid-column: span 2; background: var(--paper); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--oat); display: flex; flex-direction: column; }
.t-card:nth-child(n+4) { grid-column: span 3; }
.t-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.t-body p { font-size: 1rem; color: var(--muted); margin-top: .45rem; }
.t-link { margin-top: auto; padding-top: 1rem; font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--cocoa); text-decoration: none; display: inline-flex; gap: .35rem; }
.t-link span { transition: transform .2s var(--ease); }
.t-link:hover span { transform: translateX(3px); }

/* Card photo sliders: native swipe via scroll-snap */
.t-media { position: relative; aspect-ratio: 4 / 3.6; background: var(--oat); }
.t-card:nth-child(n+4) .t-media { aspect-ratio: 16 / 10.5; }
.t-slides {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.t-slides::-webkit-scrollbar { display: none; }
.t-slides:focus-visible { outline: 2px solid var(--cocoa); outline-offset: -4px; }
.t-slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; scroll-snap-align: start; scroll-snap-stop: always; }
.t-dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.t-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgb(248 243 237 / .6); box-shadow: 0 0 0 1px rgb(47 28 23 / .25); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.t-dots span.is-on { background: var(--paper); transform: scale(1.25); }
.t-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgb(248 243 237 / .9); color: var(--cocoa); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; padding-bottom: 3px; cursor: pointer; opacity: 0;
  transition: opacity .2s var(--ease), background-color .2s var(--ease); box-shadow: var(--shadow);
}
.t-arrow:hover { background: var(--paper); }
.t-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.t-arrow-prev { left: .6rem; }
.t-arrow-next { right: .6rem; }
.t-media:hover .t-arrow, .t-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .t-arrow { display: none; } }

/* About */
.about { background: var(--oat); padding-block: clamp(4rem, 8vw, 6.5rem); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 60% 40%; border-radius: 999px 999px var(--r-md) var(--r-md); }
.about-copy h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.about-copy p:not(.eyebrow) { margin-top: 1.1rem; color: var(--muted); max-width: 470px; }
.about-copy .btn { margin-top: 2rem; }

/* Reviews */
.reviews { padding-block: clamp(4rem, 8vw, 6rem); text-align: center; }
.carousel { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 2.25rem; max-width: 820px; margin-inline: auto; }
.car-viewport { overflow: hidden; border-radius: var(--r-md); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel.is-dragging .car-viewport { cursor: grabbing; }
.car-track { display: flex; transition: transform .6s var(--ease); }
.reviews-sub { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.review { flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center; background: var(--paper); border: 1px solid var(--oat); border-radius: var(--r-md); padding: 2rem clamp(1.25rem, 4vw, 3rem); }
.review blockquote { margin: 0; font-size: clamp(1.125rem, 2.1vw, 1.45rem); font-style: italic; font-weight: 300; line-height: 1.4; }
.review-by { font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin-top: 1rem; letter-spacing: .04em; }
.car-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--taupe); background: var(--paper);
  font-size: 1.6rem; line-height: 1; color: var(--cocoa); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px;
  transition: background-color .2s var(--ease);
}
.car-btn:hover { background: #fff; }
.car-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.car-dots button { width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.car-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--cocoa); transition: background-color .2s; }
.car-dots button[aria-current="true"]::before { background: var(--cocoa); }

/* Closing */
.closing { background: var(--cocoa); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 5rem); text-align: center; }
.closing p { margin-top: .8rem; opacity: .85; }
.closing-actions { display: flex; justify-content: center; gap: .75rem; margin-top: 1.75rem; flex-wrap: wrap; }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: end; }
.footer-inner .wordmark { font-size: 1.5rem; }
.footer-loc { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: .35rem; }
.footer-links { display: flex; gap: 1.5rem; font-family: var(--sans); font-size: .9375rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-small { grid-column: 1 / -1; font-family: var(--sans); font-size: .75rem; color: var(--muted); border-top: 1px solid var(--oat); padding-top: 1.25rem; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.t-grid .reveal:nth-child(2) { transition-delay: .06s; }
.t-grid .reveal:nth-child(3) { transition-delay: .12s; }

/* Tablet */
@media (max-width: 900px) {
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .t-card, .t-card:nth-child(n+4) { grid-column: span 1; }
  .t-card:last-child { grid-column: 1 / -1; }
  .t-card:nth-child(n+4) .t-media { aspect-ratio: 4 / 3.6; }
  .t-card:last-child .t-media { aspect-ratio: 16 / 9; }
  .how { grid-template-columns: 1fr; gap: 1.5rem; max-width: 460px; margin-inline: auto; }
  .how li, .how li:first-child { border-left: 0; padding: 0; }
  .result { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: .8125rem; }
  .wordmark { font-size: 1.4rem; }
  .header-inner { padding-block: 1.1rem; }

  .hero-grid { grid-template-columns: 1fr 44%; grid-template-areas: "copy photo" "actions actions"; column-gap: .9rem; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .lede { font-size: 1.05rem; margin-top: .7rem; }
  .hero-copy { padding-bottom: .5rem; align-self: center; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 1.25rem; padding-bottom: 0; }
  .hero-actions .btn { padding-inline: 1rem; }
  .hero-actions .btn-ghost { display: none; }
  .hero-photo figcaption { display: none; }
  .hero-photo img { aspect-ratio: 3 / 4.3; object-position: 50% 15%; }
  .eyebrow { font-size: .6875rem; }

  .finder-section { margin-top: 1.5rem; }
  .finder { padding: 1.35rem 1.1rem 1.5rem; border-radius: 16px; }
  .opt span { font-size: 1.0625rem; padding: .8rem 1rem; }
  .options-chips .opt span { font-size: 1rem; padding: .55rem .85rem; }
  .step-actions .btn-ghost { flex: 0 0 auto; padding-inline: 1.1rem; }

  .t-grid { grid-template-columns: 1fr; }
  .t-card, .t-card:nth-child(n+4), .t-card:last-child { grid-column: auto; }
  .t-media, .t-card:nth-child(n+4) .t-media, .t-card:last-child .t-media { aspect-ratio: 4 / 4; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 4 / 4.2; }
  .carousel { grid-template-columns: 1fr; }
  .car-btn { display: none; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(241, 232, 222, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--oat);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .sticky-cta.is-shown { transform: none; }
  .site-footer { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html, .t-slides { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
