/* Merah — brand layer over the Karpa template
 * ------------------------------------------------------------------
 * Loaded last. Tokens from the Merah brand kit (Merah_Design_System.md):
 *   ink #2C1810 · terracotta #B85C2A · gold #C9A961 · cream #FFF5E8 · paper #EFE4D2
 * Light surfaces = paper/cream + ink + terracotta accent.
 * Dark surfaces  = ink + cream + gold accent.
 * Backdrop patterns stay at ~6% opacity: atmosphere, never foreground.
 */

:root{
  --ink:#2C1810;
  --ink-soft:#4A3526;
  --paper:#EFE4D2;
  --cream:#EFE4D2;          /* template name for the page background */
  --card:#FFF5E8;
  --cream-warm:#FFE8D0;
  --terracotta:#B85C2A;
  --terracotta-deep:#8B3A1A;
  --gold:#B85C2A;           /* template accent dots/rules -> terracotta on light */
  --gold-3:#C9A961;         /* template accent on dark -> brand gold */
  --gold-deep:#9C7E3F;
  --muted:#7A6753;
  --rule:rgba(44,24,16,.12);
  --pattern-medallion:url("../../images/brand/pattern-medallion.svg");
  --pattern-jali:url("../../images/brand/pattern-jali.svg");
  --header-h:64px;
  --annc-h:32px;
}
body{background:var(--paper);color:var(--ink)}
::selection{background:rgba(184,92,42,.22)}

/* reusable backdrop texture */
.mz-pattern{position:absolute;inset:0;pointer-events:none;background-image:var(--pattern-medallion);background-size:160px;opacity:.06}

/* dark surfaces: italic accents switch to gold */
.v2-how h2 em,.ft h2 em,.ft-word em,.ft-col em,.gp-h em,.cp-body h3 em{color:var(--gold-3)}
.ft-col a em{font-family:var(--font-serif);font-style:italic}

/* ===================== PRELOADER ===================== */
.pl{background:var(--paper);color:var(--ink)}
.pl::before{content:"";position:absolute;inset:0;background-image:var(--pattern-medallion);background-size:160px;opacity:.045}
.pl-glow{background:radial-gradient(closest-side,rgba(184,92,42,.14),rgba(184,92,42,0))}
.pl-logo{display:block;width:clamp(170px,20vw,244px);height:auto}
.pl-tag{font-family:var(--font-serif);font-style:italic;font-size:16px;letter-spacing:0;text-transform:none;color:var(--terracotta);margin-top:2px}
.pl-bar{background:rgba(44,24,16,.12)}
.pl-bar i{background:linear-gradient(90deg,transparent,var(--terracotta))}

/* ===================== HEADER (Hims / Midi pattern) =====================
   A rounded bar (bottom corners 24px, like Midi) that matches the pill
   buttons and rounded cards. Over the hero photo it is a dark glass bar
   with the cream wordmark; once scrolled it turns paper with the ink one. */
.mh-header{color:var(--ink)}
.mh-header::before{display:none}
.mh-header .h2-header-inner{
  grid-template-columns:auto 1fr;height:var(--header-h);max-width:none;
  margin:0 clamp(0px,1vw,12px);border-radius:0 0 24px 24px;
  background:var(--nav-bg,rgba(239,228,210,.94));
  -webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);
  box-shadow:0 10px 30px -18px rgba(44,24,16,.35),inset 0 -1px 0 rgba(44,24,16,.06);
  transition:height .7s var(--ease-expo),background-color .3s linear,box-shadow .3s linear,color .3s linear;
}
.mh-header.is-scrolled .h2-header-inner{height:58px}
.mh-header.on-dark .h2-header-inner{color:var(--card);box-shadow:0 10px 30px -18px rgba(0,0,0,.5)}
.mh-header.on-photo .h2-header-inner{background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.mh-header .h2-logo{justify-self:start;position:relative}
.mh-header .h2-logo img,.mh-header.is-scrolled .h2-logo img{filter:none;height:48px;margin-left:-12px;transition:opacity .5s ease,height .7s var(--ease-expo)}
.mh-header.is-scrolled .h2-logo img{height:44px}
.mh-header .logo-light{position:absolute;left:0;top:50%;translate:0 -50%;opacity:0}
.mh-header.on-dark .logo-light{opacity:1}
.mh-header.on-dark .logo-dark{opacity:0}
.mh-header .h2-nav-right{gap:clamp(10px,1.4vw,18px)}
.mh-header .h2-link{font-size:14px;font-weight:500}

/* announcement bar: slides away with the rest of the header */
.annc{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:6px;
  min-height:var(--annc-h);padding:6px var(--pad-x);
  background:var(--gold-3);color:var(--ink);font-size:12.5px;line-height:1.3;text-align:center;
  transition:margin-top .6s var(--ease-expo);
}
.annc b{font-weight:600}
.annc .ac{font-weight:500}
.annc svg{flex:0 0 auto;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .5s var(--ease-expo)}
.annc:hover svg{transform:translateX(4px)}
.mh-header.is-scrolled .annc{margin-top:calc(-1 * var(--annc-h))}

.mh-burger{position:relative;width:44px;height:44px;border:0;border-radius:50%;background:transparent;cursor:pointer;color:inherit;transition:background-color .3s ease}
.mh-burger:hover{background:rgba(44,24,16,.06)}
.mh-burger span{position:absolute;left:12px;right:12px;height:1.6px;border-radius:2px;background:currentColor}
.mh-burger span:nth-child(1){top:15px}
.mh-burger span:nth-child(2){top:21px}
.mh-burger span:nth-child(3){top:27px}

/* ===================== MENU DRAWER ===================== */
.dr{position:fixed;inset:0;z-index:150;visibility:hidden;transition:visibility 0s .6s}
.dr.is-open{visibility:visible;transition:visibility 0s}
.dr-bg{position:absolute;inset:0;background:rgba(44,24,16,.42);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity .5s ease}
.dr.is-open .dr-bg{opacity:1}
.dr-panel{
  position:absolute;top:0;right:0;bottom:0;width:min(440px,100%);
  background:var(--paper);border-radius:24px 0 0 24px;overflow:hidden;
  box-shadow:-30px 0 80px -40px rgba(44,24,16,.5);
  transform:translate3d(104%,0,0);transition:transform .6s var(--ease-expo);
}
.dr.is-open .dr-panel{transform:none}
.dr-track{height:100%}
.dr-view{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 28px;transition:transform .55s var(--ease-expo),opacity .4s ease}
.dr-view[hidden]{display:none}
.dr-view.is-from-right{transform:translate3d(40px,0,0);opacity:0;transition:none}
.dr-view.is-from-left{transform:translate3d(-40px,0,0);opacity:0;transition:none}

.dr-head{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-bottom:10px;padding:0 4px}
.dr-head-r{display:flex;gap:4px}
.dr-title{font-family:var(--font-head);font-weight:500;font-size:24px;letter-spacing:-.02em}
.dr-ic{width:42px;height:42px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--ink);transition:background-color .3s ease}
.dr-ic:hover{background:rgba(44,24,16,.07)}
.dr-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.dr-card{background:var(--card);border-radius:22px;padding:18px 16px;box-shadow:0 4px 14px rgba(44,24,16,.04)}
.dr-card + .dr-card{margin-top:10px}
.dr-label{margin:0 0 8px;padding:0 4px;font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.dr-list ul{list-style:none;margin:0;padding:0}
.dr-row{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 4px;border:0;background:none;cursor:pointer;text-align:left;color:var(--ink);
  font-family:var(--font-head);font-size:21px;letter-spacing:-.02em;
}
.dr-row em,.dr-h em,.mq-chip em,.cat__title em,.v2-tabs em{font-style:italic;color:var(--terracotta)}
.dr-row svg,.dr-links svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s var(--ease-expo)}
.dr-row:hover svg,.dr-links a:hover svg{transform:translateX(4px)}
.dr-plain{border-top:1px solid var(--rule);margin-top:8px!important;padding-top:8px!important}
.dr-plain a{display:block;padding:10px 4px;font-size:16px;font-weight:500}

.dr-top-row{display:grid;grid-auto-flow:column;grid-auto-columns:138px;gap:10px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding-inline:16px;margin:0 -16px;padding:0 16px 2px}
.dr-top-row::-webkit-scrollbar{display:none}
.dr-top{position:relative;display:flex;flex-direction:column;justify-content:flex-end;height:190px;padding:12px;border-radius:16px;background:var(--paper);scroll-snap-align:start;overflow:hidden}
.dr-top-art{position:absolute;left:0;right:0;top:16px;height:118px;display:grid;place-items:center}
.dr-top-art .pa{height:118px}
.dr-top-name{position:relative;font-size:13px;font-weight:600;line-height:1.25}
.dr-rx{display:inline-grid;place-items:center;min-width:24px;height:20px;padding:0 6px;border-radius:999px;background:var(--card);border:1px solid rgba(184,92,42,.25);color:var(--terracotta);font-size:10.5px;font-weight:700}
.dr-top .dr-rx{position:absolute;top:10px;left:10px;z-index:1}
.dr-foot{padding:16px 2px 0}
.dr-foot .btn.btn{width:100%;min-height:52px}

.dr-sub{padding:0 4px}
.dr-h{margin:2px 0 16px;font-size:30px;line-height:1.1}
.dr-feature{
  position:relative;display:block;height:190px;padding:22px;border-radius:20px;overflow:hidden;isolation:isolate;
  background:var(--terracotta);color:var(--card);
}
.dr-feature::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--pattern-medallion);background-size:150px;opacity:.12;filter:invert(1)}
.dr-feature--peptides{background:var(--ink)}
.dr-feature--sexual{background:var(--terracotta-deep)}
.dr-feature--hair{background:var(--gold-deep)}
.dr-feature-txt{position:relative;z-index:1;display:block;max-width:60%;font-family:var(--font-head);font-size:20px;line-height:1.2;letter-spacing:-.02em}
.dr-feature-txt b{font-weight:500;font-style:italic;color:var(--gold-3)}
.dr-feature-art{position:absolute;right:-6px;bottom:-26px;width:150px;height:190px;transition:transform .8s var(--ease-expo)}
.dr-feature-art .pa{height:190px}
.dr-feature:hover .dr-feature-art{transform:translateY(-8px) rotate(-3deg)}
.dr-feature-go{position:absolute;left:22px;bottom:20px;width:40px;height:40px;border-radius:50%;background:var(--card);color:var(--ink);display:grid;place-items:center}
.dr-feature-go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dr-sub .dr-label{margin-top:24px}
.dr-links,.dr-txs{list-style:none;margin:0;padding:0}
.dr-links a{display:flex;align-items:center;justify-content:space-between;padding:12px 4px;font-family:var(--font-head);font-size:20px;letter-spacing:-.02em}
.dr-tx{display:flex;align-items:center;gap:8px;padding:11px 4px;font-size:15px;font-weight:500;border-bottom:1px solid var(--rule)}
.dr-tx:hover span:first-child{color:var(--terracotta)}
.dr-cmp{margin-left:auto;font-size:11px;color:var(--muted)}
.dr-note{margin:18px 4px 0;font-size:12px;line-height:1.6;color:var(--muted)}

/* ===================== HERO (Midi pattern) ===================== */
/* full-bleed photo (IMAGE SLOT images/merah/hero.jpg) with the copy and card over it, like Midi */
.mh{
  position:relative;overflow:hidden;
  min-height:100vh;min-height:100svh;max-height:1080px;
  padding:calc(var(--header-h) + var(--annc-h) + clamp(16px,4vh,64px)) var(--pad-x) clamp(28px,6vh,88px);
  display:flex;align-items:center;background:var(--ink);color:var(--card);
}
.mh-media{position:absolute;inset:0;z-index:0}
.mh-media img{width:100%;height:100%;object-fit:cover;object-position:50% 12%} /* keep the couple's heads in frame on wide screens */
.mh-veil{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(44,24,16,.72) 0%,rgba(44,24,16,.48) 38%,rgba(44,24,16,.12) 70%,rgba(44,24,16,.05) 100%),
  linear-gradient(180deg,rgba(44,24,16,.4) 0%,rgba(44,24,16,0) 24%,rgba(44,24,16,0) 70%,rgba(44,24,16,.45) 100%)}
.mh-grid{position:relative;z-index:1;width:100%;max-width:1360px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(32px,5vw,80px);align-items:center}

/* hero eyebrow: tonal glass pill (Amble's 5%-tint idea, flipped for a dark photo):
   a faint cream tint + light blur so it sits inside the photo and the headline leads */
.mh .hero2-tag{
  padding:6px 16px;min-height:32px;border:0;border-radius:999px;
  background:rgba(255,245,232,.12);color:var(--card);
  font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
/* type and spacing also scale with screen height, so headline + buttons fit a laptop's first screen */
.mh .hero2-title{margin-top:clamp(14px,2.4vh,24px);font-size:clamp(2.6rem,min(5.5vw,9vh),5.4rem);line-height:1.02;max-width:14ch;color:var(--card);text-shadow:0 2px 40px rgba(20,10,4,.25)}
.mh .hero2-actions{margin-top:clamp(20px,3.6vh,36px)}
.mh .hero2-title em{color:var(--gold-3);display:block} /* "Treat for it." always gets its own line */
.mh .hero2-desc{color:rgba(255,245,232,.86);text-shadow:0 1px 18px rgba(20,10,4,.35);max-width:46ch}
.mh .hero2-actions{gap:12px}
html.js:not(.motion-off) .mq{opacity:0}

/* quote card */
.mq{
  position:relative;padding:clamp(22px,2.4vw,32px);border-radius:28px;
  background:var(--card);border:1px solid rgba(184,92,42,.14);
  box-shadow:0 40px 80px -50px rgba(44,24,16,.45),0 4px 14px rgba(44,24,16,.04);
}
.mq{color:var(--ink)}
.mq-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px}
.mq-chip{font-family:var(--font-head);font-size:15px;color:var(--ink-soft)}
.mq-arrows{display:flex;gap:8px}
.mq-arrow{width:40px;height:40px;border-radius:12px;border:1px solid var(--rule);background:var(--paper);display:grid;place-items:center;cursor:pointer;color:var(--ink);transition:background-color .3s ease,border-color .3s ease,color .3s ease}
.mq-arrow:hover{background:var(--ink);border-color:var(--ink);color:var(--card)}
.mq-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mq-quote{
  margin:clamp(10px,1.6vh,18px) 0 0;min-height:3.3em;
  font-family:var(--font-head);font-weight:600;font-size:clamp(1.45rem,min(2.5vw,4.2vh),2.25rem);line-height:1.12;letter-spacing:-.025em;
  text-wrap:balance;color:var(--ink);
}
.mq-label{margin:clamp(14px,2.6vh,36px) 0 12px;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.mq-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mq-tile{
  position:relative;display:flex;flex-direction:column;justify-content:flex-end;
  height:clamp(130px,min(17vw,24vh),190px);padding:12px 12px 14px;border-radius:18px;overflow:hidden;isolation:isolate;
  background:var(--paper);transition:transform .6s var(--ease-expo),box-shadow .6s var(--ease-expo);
}
.mq-tile{gap:6px}
.mq-art{position:relative;flex:1 1 0;min-height:0;display:grid;place-items:center;transition:transform .8s var(--ease-expo)}
.mq-art .pa{position:absolute;top:0;bottom:0;left:50%;width:auto;height:100%;max-width:none;aspect-ratio:1/1;margin:0;transform:translateX(-50%)} /* square, so the printed label lands on the vial's label */
.mq-tile > b{position:relative}
.mq-art .pa img{filter:drop-shadow(0 14px 14px rgba(44,24,16,.18))}
.mq-tile > b{color:var(--ink);font-family:var(--font-head);font-weight:500;font-size:16px;line-height:1.15;letter-spacing:-.01em}
.mq-tile--visit{background:var(--cream-warm)}
.mq-visit-ic{position:absolute;left:50%;top:38%;width:56px;height:56px;transform:translate(-50%,-50%);fill:none;stroke:var(--terracotta);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mq-progress{position:absolute;left:28px;right:28px;bottom:0;height:3px;border-radius:3px;overflow:hidden;background:transparent}
.mq-progress i{position:absolute;inset:0;background:var(--terracotta);transform:scaleX(0);transform-origin:left;border-radius:3px}

/* ===================== PATH TO TREATMENT (template 2 cards) ===================== */
.pt{padding:clamp(80px,9vw,130px) 0 clamp(70px,8vw,110px);background:var(--paper)}
.pt-head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;flex-wrap:wrap;margin-bottom:44px}
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
/* photo card (IMAGE SLOT images/merah/cat-*.webp), template 2 treatment:
   frosted blur fading out from the top-left + a soft ink tint so text always reads */
.cat{
  position:relative;display:block;height:440px;border-radius:28px;overflow:hidden;isolation:isolate;
  color:var(--card);background:var(--ink);transform:translateZ(0);
}
.cat__media{position:absolute;inset:0;z-index:-2}
.cat__media img{width:100%;height:100%;object-fit:cover;object-position:center 62%;transform:scale(1.04);transition:transform 1.4s var(--ease-expo)}
.cat:hover .cat__media img{transform:scale(1.1)}
.cat::before,.cat::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.cat::before{
  -webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);
  -webkit-mask-image:radial-gradient(140% 62% at 0% 0%,#000 22%,rgba(0,0,0,.55) 42%,transparent 66%);
          mask-image:radial-gradient(140% 62% at 0% 0%,#000 22%,rgba(0,0,0,.55) 42%,transparent 66%);
}
.cat::after{background:
  radial-gradient(150% 68% at 0% 0%,rgba(44,24,16,.62) 0%,rgba(44,24,16,.34) 34%,rgba(44,24,16,0) 66%),
  linear-gradient(0deg,rgba(44,24,16,.3) 0%,rgba(44,24,16,0) 32%)}
.cat__body{position:relative;height:100%;padding:28px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}
.cat__title{margin:0;font-size:clamp(28px,2.5vw,36px);line-height:1.05;letter-spacing:-.025em;font-weight:400}
.cat__title em{color:var(--gold-3)!important}
.cat__desc{display:block;margin-top:8px;font-size:14px;opacity:.85}
.arrow-btn{
  width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,245,232,.16);border:1px solid rgba(255,245,232,.4);
  -webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);
  color:var(--card);transition:background-color .4s,border-color .4s,color .4s;
}
.arrow-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .6s var(--ease-expo)}
.cat:hover .arrow-btn{background:var(--card);border-color:var(--card);color:var(--ink)}
.cat:hover .arrow-btn svg{transform:rotate(45deg)}

.more{margin-top:48px}
.more__head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.more__label{margin:0;font-size:16px;font-weight:600}
.link-arrow{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--terracotta)}
.link-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s var(--ease-expo)}
.link-arrow:hover svg{transform:translateX(4px)}
.minis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.mini{
  position:relative;display:flex;align-items:flex-start;height:190px;padding:22px;border-radius:22px;overflow:hidden;isolation:isolate;
  border:1px solid rgba(184,92,42,.12);transition:transform .6s var(--ease-expo),box-shadow .6s var(--ease-expo);
}
.mini::before{content:"";position:absolute;width:220px;height:220px;right:-60px;bottom:-90px;border-radius:50%;background:rgba(255,245,232,.7);filter:blur(4px);z-index:-1;transition:transform .8s var(--ease-expo)}
.mini--cream{background:#F4DCCB}
.mini--warm{background:var(--cream-warm)}
.mini--paper{background:#E6D6BE}
.mini--gold{background:#E9D9B4}
.mini__title{margin:0;max-width:56%;font-size:22px;line-height:1.12;letter-spacing:-.02em;font-weight:400;color:var(--ink)}
.mini__vial{position:absolute;right:6px;bottom:-14px;width:168px;height:168px;transform:rotate(6deg);transform-origin:50% 100%;transition:transform .8s var(--ease-expo)}
.mini__vial .pa{height:100%;margin:0 0 0 auto}
.mini:hover{transform:translateY(-4px);box-shadow:0 24px 40px -26px rgba(44,24,16,.45)}
.mini:hover .mini__vial{transform:rotate(0deg) translateY(-10px)}
.mini:hover::before{transform:scale(1.25)}

/* template 2 reveal: rise + unclip */
.pt-wait > *{clip-path:inset(18% 0 0 0 round 28px);opacity:0;transform:translateY(40px);
  transition:clip-path 1.2s var(--ease-expo) calc(var(--i) * .1s + .1s),opacity .8s var(--ease-out) calc(var(--i) * .1s + .1s),transform 1.2s var(--ease-expo) calc(var(--i) * .1s + .1s),box-shadow .6s var(--ease-expo)}
.pt-wait.is-in > *{clip-path:inset(0 0 0 0 round 28px);opacity:1;transform:none}
.pt-wait.is-in > .mini:hover{transform:translateY(-4px);transition-delay:0s}

/* ===================== SECTIONS ===================== */
.v2-statement,.v2-cat,.pk{background:var(--paper)}
.st-tag{color:var(--muted)}
.st-text .ac{font-size:1em}
.v2-care,.v2-faq{background:var(--card)}

/* catalog */
.v2-tabs{background:rgba(44,24,16,.07)}
.v2-tabs button{font-family:var(--font-head);font-size:15px;color:var(--ink-soft)}
.v2-tabs button.active{color:var(--card)}
.v2-tabs button.active em{color:var(--gold-3)}
.v2-tab-thumb{background:var(--ink)}
.tx{background:linear-gradient(165deg,rgba(255,245,232,.95) 0%,rgba(255,245,232,.6) 100%);border-color:rgba(184,92,42,.14)}
.tx-tag{background:rgba(184,92,42,.1);border-color:rgba(184,92,42,.26);color:var(--terracotta-deep);font-size:12px}
.tx-link{color:var(--terracotta);font-weight:600;font-size:13px;letter-spacing:.04em;text-transform:uppercase}

/* how it works: photo (IMAGE SLOT images/merah/how-bg.jpg) under an ink veil */
.v2-how{background:var(--ink)}
.v2-how-bg span{background:linear-gradient(180deg,rgba(44,24,16,.8),rgba(44,24,16,.72) 50%,rgba(44,24,16,.84))}
.v2-how-bg img{filter:blur(2px) saturate(.9)}
.v2-icon .acc{stroke:var(--gold-3);fill:var(--gold-3)}
.v2-icon .acc-ink{stroke:var(--ink)}
.v2-eyebrow::before{background:var(--gold-3)}

/* care promises: photo panels (IMAGE SLOTS images/merah/care-1..4.jpg), ink fallback while loading */
.cp{background:var(--ink)}

/* FAQ */
.faq-help{background:var(--paper);border-color:var(--rule)}
.faq-help-img img{border-color:var(--card)}
.fq-a a,.faq-help a{color:var(--terracotta-deep)}

/* footer */
.ft{background:var(--ink)}
.ft::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:var(--pattern-medallion);background-size:160px;opacity:.05;filter:invert(1)}
.ft > *{position:relative}
.ft-logo img{filter:none;height:60px;margin-left:-12px}
.ft-brand p{font-family:var(--font-serif);font-size:18px;line-height:1.4;color:rgba(255,245,232,.8)}
.ft-legal a{color:rgba(255,245,232,.85);text-decoration:underline;text-underline-offset:3px}
.ft-word{background:linear-gradient(180deg,rgba(201,169,97,.22) 0%,rgba(201,169,97,.03) 100%);-webkit-background-clip:text;background-clip:text}

/* goal picker */
.gp{background:radial-gradient(90% 60% at 50% 0%,rgba(184,92,42,.28),transparent 65%),var(--ink)}
.gp-card{background:linear-gradient(90deg,var(--card) 45%,var(--cream-warm))}

/* legal pages */
.legal-body{background:var(--paper)}
.legal-body .mh-header .h2-header-inner{height:72px}

/* ===================== BUTTONS (Hims hero buttons, Merah colours) =====================
   Measured from hims.com: 52px pill, 16px x 24px padding, label 16px / 500,
   colour changes ease over .3s, nothing moves.
     .btn          primary: solid terracotta + arrow -> one shade darker on hover
     .btn.b-glass  secondary on photo/dark: near-clear glass, hairline border, 20px blur
                   -> dark ink glass on hover
     .btn.b-sec    secondary on light: same idea flipped -> fills ink on hover
   Replaces the template's liquid fill + label roll (global.css). */
.btn.btn{
  position:relative;overflow:hidden;-webkit-mask-image:none;mask-image:none;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:52px;padding:0 24px;border-radius:48px;
  border:.8px solid transparent;
  background:var(--terracotta);color:var(--card);box-shadow:none;
  font-family:var(--font-body)!important;font-weight:500!important;font-size:16px!important;
  text-transform:none;letter-spacing:0;line-height:1;white-space:nowrap;
  transition:color .3s ease,background-color .3s ease,border-color .3s ease,backdrop-filter .3s ease,box-shadow .3s ease!important;
}
.btn.btn::before{display:none}
/* the arrow: always shown on primary buttons, like "Get started ->" */
.btn.btn::after{
  content:"";flex:0 0 auto;width:16px;height:16px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center/16px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center/16px no-repeat;
}
.btn.btn:hover,.btn.btn:focus-visible{background:var(--terracotta-deep);color:var(--card)}
.btn.btn:focus-visible{outline:2px solid var(--terracotta);outline-offset:3px}
.btn.btn:active{background:var(--terracotta-deep)}
/* the template's label roll: keep one static label */
.btn .btn-label{display:inline;overflow:visible;margin:0;padding:0}
.btn .btn-label > span{transform:none!important;transition:none}
.btn .btn-label > span + span{display:none}

/* secondary buttons: no arrow */
.btn.b-glass::after,.btn.b-sec::after{display:none}
.btn.b-glass{
  background:rgba(255,245,232,.07);border-color:rgba(255,245,232,.17);color:var(--card);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
}
.btn.b-glass:hover,.btn.b-glass:focus-visible{background:rgba(44,24,16,.33);border-color:rgba(255,245,232,.17);color:var(--card)}
.btn.b-sec{background:rgba(44,24,16,.04);border-color:rgba(44,24,16,.17);color:var(--ink)}
.btn.b-sec:hover,.btn.b-sec:focus-visible{background:var(--ink);border-color:var(--ink);color:var(--card)}

/* smaller pill in the header */
.mh-header .btn.h2-cta{min-height:40px;padding:0 18px;font-size:14px!important;background:var(--terracotta);color:var(--card);border-color:transparent}
.mh-header .btn.h2-cta:hover,.mh-header .btn.h2-cta:focus-visible{background:var(--terracotta-deep)}
.mh-header .btn.h2-cta::after{width:14px;height:14px;-webkit-mask-size:14px;mask-size:14px}

/* ===================== RESPONSIVE ===================== */
@media(max-width:1100px){
  .mh-grid{grid-template-columns:1fr;max-width:720px}
  .mh{min-height:0;max-height:none;align-items:flex-start}
  .mh .hero2-title{max-width:14ch}
  .mq-quote{min-height:2.3em} /* wide card: quotes run 1-2 lines */
  .minis{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:960px){
  .cats{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:46%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(-1 * var(--pad-x));padding:0 var(--pad-x)}
  .cats::-webkit-scrollbar{display:none}
  .cat{scroll-snap-align:start}
}
@media(max-width:900px){
  :root{--header-h:60px}
  .mh-header .h2-logo img,.mh-header.is-scrolled .h2-logo img{height:42px}
  .mh-header .h2-portal,.mh-hide-sm{display:none}
}
@media(max-width:640px){
  :root{--annc-h:32px}
  .annc{font-size:12px}
  .annc > span:first-child{display:none}
  .mh-header .h2-cta{min-height:38px;padding:8px 14px}
  .mh{padding-top:calc(var(--header-h) + var(--annc-h) + 20px)}
  .mh .hero2-title{font-size:clamp(2.5rem,11vw,3.3rem)}
  .mh .hero2-actions{gap:18px}
  .mq{padding:20px 16px 22px;border-radius:24px}
  .mq-quote{font-size:1.45rem;min-height:3.4em}
  .mq-tiles{gap:8px}
  .mq-tile{height:140px;padding:10px;border-radius:14px}
  .mq-tile > b{font-size:13.5px}
  .mq-progress{left:20px;right:20px}
  .cats{grid-auto-columns:84%}
  .cat{height:400px}
  .minis{gap:10px}
  .mini{height:168px;padding:16px}
  .mini__title{font-size:18px;max-width:62%}
  .mini__vial{width:140px;height:140px}
  .dr-panel{border-radius:0}
}


/* ===================== FAQ LAYOUTS =====================
   v1 = the template's split layout. v2 = Amble: centred heading, full-width
   rounded question cards with a plain +, "Still have questions?" + button below.
   Same markup for both; [data-layout] on #faq picks one. */
.faq-more{display:none}


.v2-faq[data-layout="v2"] .faq-grid{display:flex;flex-direction:column;align-items:center;gap:0;max-width:1200px}
.v2-faq[data-layout="v2"] .faq-side{display:contents}
.v2-faq[data-layout="v2"] .section-kicker{order:1}
.v2-faq[data-layout="v2"] .section-heading{order:2;margin-top:14px;max-width:none;text-align:center}
.v2-faq[data-layout="v2"] .section-intro,
.v2-faq[data-layout="v2"] .faq-help{display:none}
.v2-faq[data-layout="v2"] .faq-list{order:3;width:100%;margin-top:clamp(32px,4vw,48px);border:0;display:grid;gap:16px}
.v2-faq[data-layout="v2"] .fq{border:0;border-radius:18px;background:var(--paper);transition:background-color .3s ease}
.v2-faq[data-layout="v2"] .fq:hover{background:#E9DCC6}
.v2-faq[data-layout="v2"] .fq-q{grid-template-columns:1fr 32px;padding:24px 28px}
.v2-faq[data-layout="v2"] .fq-n{display:none}
.v2-faq[data-layout="v2"] .fq-t{font-family:var(--font-body);font-size:clamp(1rem,1.4vw,1.2rem);font-weight:500;letter-spacing:-.01em}
.v2-faq[data-layout="v2"] .fq-q:hover .fq-t{transform:none}
.v2-faq[data-layout="v2"] .fq-x,.v2-faq[data-layout="v2"] .fq.is-open .fq-x{width:24px;height:24px;border:0;background:none;color:var(--ink)}
.v2-faq[data-layout="v2"] .fq.is-open .fq-x{transform:rotate(45deg)}
.v2-faq[data-layout="v2"] .fq.is-open .fq-x::after{transform:translate(-50%,-50%) rotate(90deg)}
.v2-faq[data-layout="v2"] .fq-a p{padding:0 72px 26px 28px}
.v2-faq[data-layout="v2"] .faq-more{order:4;display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:clamp(36px,4vw,56px)}
.v2-faq[data-layout="v2"] .faq-more p{margin:0;font-size:16px;color:var(--muted)}
@media(max-width:640px){
  .v2-faq[data-layout="v2"] .fq-q{padding:20px}
  .v2-faq[data-layout="v2"] .fq-a p{padding:0 20px 22px}
}

/* care panels: keep each person in view when a panel collapses to a strip */
.cp:nth-child(1) img{object-position:64% 45%}
.cp:nth-child(2) img{object-position:48% 40%}
.cp:nth-child(3) img{object-position:42% 45%}
.cp:nth-child(4) img{object-position:56% 50%}

/* ===================== BACKGROUND THEME: paper (default) / cream =====================
   html[data-bg="cream"] makes cream #FFF5E8 the page and uses paper #EFE4D2 for the
   alternate sections and the cards that sat on cream, so contrast is kept.
   Picked with config.js -> bgTheme. */
html[data-bg="cream"] body,
html[data-bg="cream"] .pl,
html[data-bg="cream"] .pt,
html[data-bg="cream"] .v2-statement,
html[data-bg="cream"] .v2-cat,
html[data-bg="cream"] .pk,
html[data-bg="cream"] .legal-body,
html[data-bg="cream"] .dr-panel{background:#FFF5E8}
html[data-bg="cream"] .v2-care,
html[data-bg="cream"] .v2-faq{background:#EFE4D2}
html[data-bg="cream"] .dr-card,
html[data-bg="cream"] .faq-help{background:#EFE4D2}
html[data-bg="cream"] .dr-top{background:#FFF5E8}
html[data-bg="cream"] .tx{background:linear-gradient(165deg,rgba(239,228,210,.95) 0%,rgba(239,228,210,.6) 100%)}
html[data-bg="cream"] .v2-faq .faq-help{background:#FFF5E8}
html[data-bg="cream"] .v2-faq[data-layout="v2"] .fq{background:#FFF5E8}
html[data-bg="cream"] .v2-faq[data-layout="v2"] .fq:hover{background:#FFFAF2}


/* loose pills in the small goal cards (Hair loss, ED) */
.mini__pills{position:absolute;right:18px;bottom:18px;width:150px;height:auto;filter:drop-shadow(0 12px 12px rgba(44,24,16,.18));transform:rotate(-4deg);transform-origin:100% 100%;transition:transform .8s var(--ease-expo)}
.mini:hover .mini__pills{transform:rotate(0deg) translateY(-8px)}
@media(max-width:640px){.mini__pills{width:112px;right:12px;bottom:12px}}

/* hero pill: slowly turning 8-point star (Opalya idea, calmer: one turn every 8s) */
.mh .hero2-tag{display:inline-flex;align-items:center;gap:8px}
.tag-star{flex:0 0 auto;width:13px;height:13px;fill:var(--gold-3);animation:tag-star-spin 8s linear infinite}
@keyframes tag-star-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.tag-star{animation:none}}

/* category photos: a square frame (cover-sized) so the printed label stays on the photo's label */
.cat__media{container-type:size;overflow:hidden}
.cat__frame{position:absolute;left:50%;top:50%;width:max(100cqw,100cqh);aspect-ratio:1/1;transform:translate(-50%,-50%) scale(1.02);transition:transform 1.4s var(--ease-expo)}
.cat__frame img,.cat:hover .cat__media img{width:100%;height:100%;object-fit:cover;transform:none}
.cat:hover .cat__frame{transform:translate(-50%,-50%) scale(1.07)}

/* ===================== EYEBROWS: the hero pill is the standard =====================
   Tonal pill (Amble's 5% tint), sentence case, slowly turning 8-point star.
   Light sections: ink tint + terracotta star. Dark sections (how it works, footer): cream tint + gold star. */
.section-kicker,.v2-eyebrow,.ft-eyebrow{
  display:inline-flex;align-items:center;gap:8px;width:max-content;
  min-height:32px;padding:6px 16px;border:0;border-radius:999px;
  background:rgba(44,24,16,.06);color:var(--ink);
  font-family:var(--font-body);font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.v2-eyebrow,.ft-eyebrow{background:rgba(255,245,232,.12);color:var(--card);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.section-kicker::before,.v2-eyebrow::before,.ft-eyebrow::before{
  content:"";flex:0 0 auto;width:13px;height:13px;border-radius:0;background:var(--terracotta);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l1.79 6.5 5.27-4.21-2.38 6.31 6.74-.31L17.8 12l5.63 3.71-6.74-.31 2.38 6.31-5.27-4.21L12 24l-1.79-6.5-5.27 4.21 2.38-6.31-6.74.31L6.23 12 .6 8.29l6.74.31L4.96 2.29l5.27 4.21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l1.79 6.5 5.27-4.21-2.38 6.31 6.74-.31L17.8 12l5.63 3.71-6.74-.31 2.38 6.31-5.27-4.21L12 24l-1.79-6.5-5.27 4.21 2.38-6.31-6.74.31L6.23 12 .6 8.29l6.74.31L4.96 2.29l5.27 4.21z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:tag-star-spin 8s linear infinite;
}
.v2-eyebrow::before,.ft-eyebrow::before{background:var(--gold-3)}
.section-heading{margin-top:16px}
@media(prefers-reduced-motion:reduce){.section-kicker::before,.v2-eyebrow::before,.ft-eyebrow::before{animation:none}}

/* small packs (hero tiles, goal cards, menu): the label band is ~45px wide, so print the
   treatment name only, bigger, instead of four tiny lines that blur */
.mq-art .pa-label small,.mq-art .pa-label i,.mq-art .pa-label em,
.mini__vial .pa-label small,.mini__vial .pa-label i,.mini__vial .pa-label em,
.dr-top-art .pa-label small,.dr-top-art .pa-label i,.dr-top-art .pa-label em{display:none}
.mq-art .pa-label b,.mini__vial .pa-label b,.dr-top-art .pa-label b{margin:0;font-weight:600;letter-spacing:-.01em;font-size:min(30cqh,155cqw / var(--n))}

/* small-pack labels, round 2: a serif breaks down below ~8px, so these use Inter semibold at the
   full label width, darker, and the hero tile vials are drawn larger in their tile */
.mq-art .pa-label,.mini__vial .pa-label,.dr-top-art .pa-label{padding:0 3%;mix-blend-mode:normal;color:#2C1810}
.mq-art .pa-label b,.mini__vial .pa-label b,.dr-top-art .pa-label b{font-family:var(--font-body);font-weight:700;letter-spacing:-.02em;line-height:1;font-size:min(26cqh,178cqw / var(--n))}
.mq-art{inset:auto;top:2px}
.mq-art .pa{height:118%;top:-9%;bottom:auto}

/* footer legal text must be readable on desktop and mobile (Karpa / LegitScript) */
.ft-legal p{font-size:14px;line-height:1.7;color:rgba(255,245,232,.82)}
.ft-legal .ft-disclaimer{color:var(--card)}
/* right-hand legal column: AI-images note + emergency note stacked with normal spacing */
.ft-legal .ft-legal-col{display:grid;gap:24px;align-content:start}

/* small vial labels show "Compounded" above the name again (Karpa: name compounded products as compounded) */
.mq-art .pa-label small,.mini__vial .pa-label small,.dr-top-art .pa-label small{display:block;margin:0 0 4%;font-family:var(--font-body);font-weight:700;letter-spacing:.06em;opacity:.8;font-size:min(13cqh,74cqw / 10)}
.mq-art .pa-label b,.mini__vial .pa-label b,.dr-top-art .pa-label b{font-size:min(24cqh,170cqw / var(--n))}
/* catalog cards: show the whole neutral description (it carries the required "not FDA-approved" line) */
.tx-meta{display:block;-webkit-line-clamp:unset;overflow:visible}
/* hero tiles: full compounded names run to two lines */
.mq-tile > b{font-size:14.5px;line-height:1.2}
.pk-seg button{white-space:normal;line-height:1.25}

/* "not FDA-approved" lines next to products (Karpa / LegitScript) */
.mq-note{margin:12px 2px 0;font-size:11.5px;line-height:1.5;color:var(--muted)}
.pt-note{margin:20px 4px 0;font-size:12.5px;line-height:1.6;color:var(--muted);max-width:110ch}

/* ===================== HERO: Karpa template layout (Midi card removed) =====================
   Copy sits at the bottom-left over the photo, buttons bottom-right (template data-layout="bottom"). */
.mh{align-items:flex-end;padding-bottom:clamp(52px,8vh,88px)}
.mh-grid{display:block}
.mh .hero2-copy{display:grid;grid-template-columns:minmax(0,820px) auto;justify-content:space-between;align-items:end;column-gap:48px}
.mh .hero2-copy > :not(.hero2-actions){grid-column:1}
.mh .hero2-tag{justify-self:start}
.mh .hero2-title{font-size:clamp(3rem,min(6vw,10.5vh),6.2rem);line-height:.98;max-width:none}
.mh .hero2-desc{margin:22px 0 0;max-width:52ch;font-size:clamp(16px,1.25vw,18.5px)}
.mh .hero2-actions{grid-column:2;grid-row:1 / span 3;align-self:end;justify-content:flex-end;margin-top:0;padding-bottom:6px;flex-wrap:nowrap}
.mh-veil{background:
  linear-gradient(180deg,rgba(44,24,16,.42) 0%,rgba(44,24,16,.06) 22%,rgba(44,24,16,0) 40%,rgba(44,24,16,.5) 68%,rgba(44,24,16,.86) 100%),
  linear-gradient(90deg,rgba(44,24,16,.3) 0%,rgba(44,24,16,0) 55%)}
@media(max-width:1100px){
  .mh{min-height:100vh;min-height:100svh;align-items:flex-end}
}
@media(max-width:900px){
  .mh .hero2-copy{grid-template-columns:1fr}
  .mh .hero2-actions{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:26px;padding-bottom:0;flex-wrap:wrap}
}
@media(max-width:640px){
  .mh{padding-bottom:40px}
  .mh .hero2-title{font-size:clamp(2.5rem,11vw,3.4rem)}
  .mh .hero2-desc{font-size:15.5px}
}
