:root {
  --espresso: #2b1912;
  --chestnut: #6e3b24;
  --caramel: #b9824a;
  --honey: #ddb781;
  --platinum: #f1e9dc;
  --white: #ffffff;
  --ink: #2b1912;
  --muted: #6f5f55;
  --line: #e7ddd2;
  --on-dark: #f1e9dc;
  --on-dark-muted: #c9b8a6;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Bodoni Moda loses its hairlines (even the hyphen) at high optical sizes.
   The `font` shorthand resets these two, hence !important. */
* { font-optical-sizing: none !important; font-variation-settings: "opsz" 16 !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* Language: only the active language is shown */
html[lang="en"] body [lang="pt"],
html[lang="pt"] body [lang="en"] { display: none !important; }

:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.model-note {
  background: var(--honey);
  color: var(--espresso);
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 16px/1 var(--text);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-small { min-height: 38px; padding: 0 18px; font-size: 15px; }
.btn-honey { background: var(--honey); color: var(--espresso); }
.btn-honey:hover { background: #e8c896; }
.btn-espresso { background: var(--espresso); color: var(--on-dark); }
.btn-espresso:hover { background: var(--chestnut); }
.btn-ghost-light { border-color: rgba(241, 233, 220, .45); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); }
.btn-outline { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn-outline:hover { background: var(--espresso); color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: var(--espresso);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(241, 233, 220, .12);
}
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wm-small { font: italic 400 14px/1 var(--display); color: var(--honey); }
.wm-name { font: 400 26px/1.05 var(--display); letter-spacing: .01em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 15px; color: var(--on-dark-muted); }
.main-nav a:hover { color: var(--on-dark); }
.header-tools { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1px solid rgba(241, 233, 220, .3); border-radius: 999px; padding: 2px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--on-dark-muted);
  font: 500 13px/1 var(--text); padding: 7px 10px; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--on-dark); color: var(--espresso); }
.bag-button {
  position: relative; border: 0; background: transparent; color: var(--on-dark);
  padding: 6px; cursor: pointer;
}
.bag-count {
  position: absolute; top: 0; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--honey); color: var(--espresso);
  font: 600 11px/18px var(--text); text-align: center;
}
.bag-count[data-empty="true"] { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(40px, 5vw, 72px);
  background: var(--espresso); color: var(--on-dark);
}
.hero h1 {
  font: 400 clamp(42px, 6vw, 84px)/1.02 var(--display);
  letter-spacing: -0.02em;
  max-width: 11em;
}
.hero-sub { margin-top: 28px; max-width: 34em; color: var(--on-dark-muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The color ring */
.ring { margin: 0; position: relative; padding-top: 18px; }
.ring-rod {
  height: 6px; border-radius: 3px; margin: 0 2%;
  background: linear-gradient(180deg, #e9e2d6, #9d948a 60%, #cfc7bb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
.ring-tresses {
  display: flex; justify-content: space-between;
  height: clamp(260px, 32vw, 440px);
  padding: 0 4%;
  margin-top: -12px;
}
.tress {
  position: relative;
  width: clamp(24px, 3.4vw, 46px);
  height: var(--len);
  transform-origin: 50% 0;
  animation: sway 2.6s cubic-bezier(.3, .1, .3, 1) both;
  animation-delay: calc(var(--d) * 70ms + 200ms);
}
/* clip ring the tress hangs from */
.tress::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 16px; height: 16px; margin-left: -8px;
  border: 2px solid #b8afa4; border-radius: 50%;
  background: var(--espresso);
}
/* the hair itself */
.tress::after {
  content: ""; position: absolute; top: 22px; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .10) 0 1px, transparent 1px 3px,
      rgba(0, 0, 0, .14) 3px 4px, transparent 4px 6px),
    linear-gradient(180deg,
      color-mix(in srgb, var(--c), #000 22%) 0%,
      var(--c) 22%,
      color-mix(in srgb, var(--c), #fff 14%) 62%,
      var(--c) 100%);
  clip-path: polygon(6% 0, 94% 0, 100% 8%, 96% 74%, 76% 100%, 58% 94%, 40% 100%, 22% 96%, 4% 74%, 0 8%);
}
.tress i {
  position: absolute; z-index: 1; top: 30px; left: 50%; transform: translateX(-50%);
  font: 600 11px/1 var(--text); font-style: normal;
  padding: 3px 4px; border-radius: 3px;
  background: rgba(241, 233, 220, .92); color: var(--espresso);
}
.ring figcaption {
  margin-top: 18px; font: italic 400 16px/1.4 var(--display);
  color: var(--on-dark-muted); text-align: center;
}
@keyframes sway {
  0%   { transform: rotate(9deg); }
  22%  { transform: rotate(-6deg); }
  44%  { transform: rotate(3.5deg); }
  64%  { transform: rotate(-1.8deg); }
  82%  { transform: rotate(.7deg); }
  100% { transform: rotate(0); }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font: 400 clamp(32px, 4vw, 52px)/1.08 var(--display); letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--muted); max-width: 36em; }

/* ---------- Methods ---------- */
.methods { padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(48px, 6vw, 80px); max-width: var(--max); margin: 0 auto; }
.method-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--espresso); }
.method { padding: 28px 28px 32px 0; }
.method + .method { padding-left: 28px; border-left: 1px solid var(--line); }
.method h3 { font: 400 30px/1.1 var(--display); }
.method-what { margin-top: 12px; color: var(--muted); min-height: 5.2em; }
.method dl { margin: 20px 0 0; }
.method dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.method dt { color: var(--muted); }
.method dd { margin: 0; text-align: right; font-weight: 500; }

.book-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 40px; padding: 28px 32px;
  background: var(--platinum); border-radius: 4px;
}
.book-strip h3 { font: 400 26px/1.2 var(--display); }
.book-strip p { margin-top: 6px; color: var(--muted); max-width: 40em; }
.book-strip .btn { flex-shrink: 0; }

/* ---------- Shop ---------- */
.shop { padding: clamp(56px, 7vw, 96px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.need-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.need {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: 500 15px/1 var(--text); color: var(--ink); cursor: pointer;
}
.need:hover { border-color: var(--espresso); }
.need[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--on-dark); }
.need-tress {
  width: 9px; height: 26px; border-radius: 4px 4px 5px 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 2px),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.shop-count { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }

.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 28px;
}
.product { display: flex; flex-direction: column; }
.product-img {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8%;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-img .img-missing { font: italic 18px/1.3 var(--display); color: var(--muted); text-align: center; }
.product-brand { margin-top: 16px; font-size: 13px; color: var(--muted); }
.product h3 { margin-top: 4px; font: 400 22px/1.2 var(--display); }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-more { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--chestnut); text-underline-offset: 3px; }
.product-items { margin-top: 6px; font-size: 14px; color: var(--muted); }
.product-tip {
  margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--honey);
  font-size: 14px; line-height: 1.45;
}
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.product-price { font: 500 18px/1 var(--text); }
.product-buy .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Kit ---------- */
.kit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  background: var(--espresso); color: var(--on-dark);
}
.kit h2 { font: 400 clamp(32px, 4vw, 52px)/1.08 var(--display); }
.kit-copy > p { margin-top: 18px; color: var(--on-dark-muted); max-width: 32em; }
.kit-steps { margin: 26px 0 0; padding: 0; list-style: none; }
.kit-steps li { padding: 12px 0; border-top: 1px solid rgba(241, 233, 220, .16); }
.kit-steps li:last-child { border-bottom: 1px solid rgba(241, 233, 220, .16); }
.kit-buy { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.kit-price { font: 400 34px/1 var(--display); color: var(--honey); }
.kit-note { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
.kit-shelf {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 4%; border-radius: 6px;
  background: var(--white);
}
.kit-shelf img { flex: 1 1 0; min-width: 0; }

/* ---------- Quiz ---------- */
.quiz { background: var(--honey); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.quiz-inner { max-width: 820px; margin: 0 auto; }
.quiz h2 { font: 400 clamp(32px, 4vw, 52px)/1.08 var(--display); }
.quiz-lede { margin-top: 12px; max-width: 34em; }
.quiz-box { margin-top: 32px; }
.quiz-step { font-size: 14px; color: var(--chestnut); font-weight: 600; }
.quiz-q { margin-top: 6px; font: 400 26px/1.25 var(--display); }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.quiz-options button {
  text-align: left; min-height: 56px; padding: 12px 18px;
  border: 1px solid rgba(43, 25, 18, .35); border-radius: 6px;
  background: rgba(255, 255, 255, .35); color: var(--espresso);
  font: 500 16px/1.3 var(--text); cursor: pointer;
}
.quiz-options button:hover { background: rgba(255, 255, 255, .7); border-color: var(--espresso); }
.quiz-result {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 24px; border-radius: 6px; background: var(--white);
}
.quiz-result img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.quiz-result h3 { font: 400 26px/1.2 var(--display); }
.quiz-result p { margin-top: 8px; color: var(--muted); }
.quiz-result .quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quiz-restart { margin-top: 14px; border: 0; background: none; padding: 0; color: var(--espresso); text-decoration: underline; font: 500 15px var(--text); cursor: pointer; }

/* ---------- Perks ---------- */
.perks { padding: clamp(56px, 7vw, 88px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.perks li { border-top: 1px solid var(--espresso); padding-top: 18px; }
.perks h3 { font: 400 22px/1.2 var(--display); }
.perks p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  background: var(--platinum);
}
.about h2 { font: italic 400 clamp(36px, 4.5vw, 60px)/1.05 var(--display); }
.about-copy p { margin-top: 18px; max-width: 34em; font-size: 18px; line-height: 1.65; }

/* Placeholder slots for Rosana's real photos */
.slot {
  display: grid; place-items: center; text-align: center;
  min-height: 260px; padding: 24px;
  border: 1.5px dashed rgba(43, 25, 18, .35); border-radius: 6px;
  color: var(--muted); font: italic 400 18px/1.35 var(--display);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(185, 130, 74, .07) 14px 15px);
}
.slot-portrait { aspect-ratio: 4 / 5; min-height: 0; }

/* ---------- Work ---------- */
.work { padding: clamp(56px, 7vw, 96px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-grid .slot { aspect-ratio: 4 / 5; min-height: 0; }
.work-grid .slot-wide { grid-column: 1 / -1; aspect-ratio: auto; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark); padding: 64px var(--gutter) 32px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto; }
.footer-wordmark { font: 400 30px/1.1 var(--display); }
.footer-wordmark .wm-small { display: block; }
.footer-addr { margin-top: 14px; color: var(--on-dark-muted); }
.site-footer h3 { font: 400 20px/1.2 var(--display); color: var(--honey); }
.site-footer h3 + p { margin-top: 10px; color: var(--on-dark-muted); line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-legal {
  max-width: var(--max); margin: 48px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(241, 233, 220, .14);
  font-size: 13px; color: var(--on-dark-muted);
}

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* ---------- Bag ---------- */
.bag-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(43, 25, 18, .45); }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: var(--white);
  transform: translateX(100%); transition: transform .28s ease;
}
.bag.is-open { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font: 400 26px/1 var(--display); }
.bag-close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.bag-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-empty { padding: 32px 0; color: var(--muted); }
.bag-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 64px; height: 64px; object-fit: contain; }
.bag-line h3 { font: 400 17px/1.2 var(--display); }
.bag-line small { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-size: 15px; }
.bag-line-price { font-weight: 500; }
.bag-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--platinum); }
.bag-foot fieldset { border: 0; margin: 0; padding: 0; }
.bag-foot legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.bag-foot label { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.bag-foot label span:first-child { display: flex; gap: 8px; align-items: center; }
.bag-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(43,25,18,.15); font: 500 18px var(--text); }
.bag-limit { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bag-foot .btn { width: 100%; margin-top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(480px, calc(100vw - 32px));
  padding: 14px 20px; border-radius: 6px;
  background: var(--espresso); color: var(--on-dark); font-size: 15px;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { gap: 18px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-tools { margin-left: auto; }
  .hero, .kit, .about { grid-template-columns: minmax(0, 1fr); }
  .ring-tresses { height: 260px; }
  .method-list { grid-template-columns: minmax(0, 1fr); }
  .method, .method + .method { padding: 24px 0; border-left: 0; }
  .method + .method { border-top: 1px solid var(--line); }
  .method-what { min-height: 0; }
  .book-strip { flex-direction: column; align-items: flex-start; padding: 24px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .work-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .slot-portrait { max-width: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { gap: 12px; padding: 10px 16px; }
  .wm-name { font-size: 21px; }
  .header-tools { gap: 8px; }
  .header-tools .btn-small { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ring-tresses { height: 220px; padding: 0 2%; }
  .tress::before { width: 12px; height: 12px; margin-left: -6px; }
  .tress i { font-size: 9px; padding: 2px 3px; top: 24px; }
  .product h3 { font-size: 19px; }
  .product-buy { flex-direction: column; align-items: stretch; }
  .product-buy .btn { width: 100%; }
  .quiz-options { grid-template-columns: minmax(0, 1fr); }
  .quiz-result { grid-template-columns: minmax(0, 1fr); }
  .quiz-result img { max-width: 160px; }
  .perks ul { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tress { animation: none; }
  .bag, .toast { transition: none; }
}
