/* ============================================================
   KAROMASCENT — Karoma Pure
   Dark, refined, Tesla-minimalist luxury
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;1,400&family=Hanken+Grotesk:wght@300;400;500;600;700&family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* surfaces */
  --bg:        #0A0B0D;
  --bg-2:      #0E1014;
  --elev:      #131519;
  --surface:   #16181E;
  --surface-2: #1C1F26;

  /* lines */
  --line:        rgba(255,255,255,.07);
  --line-2:      rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.22);

  /* text */
  --text:    #F3F4F6;
  --dim:     #A2A6B0;
  --faint:   #6A6E79;
  --ghost:   #43474F;

  /* brand */
  --platinum: #EDEBE6;

  /* scent accents */
  --moonlight: #97A7CF;
  --blossom:   #DD90B6;
  --whitetea:  #ADCBA6;
  --ocean:     #71B9CB;

  /* physical product palette */
  --stone:   #E4DED2;
  --stone-2: #C6BFB0;
  --leather: #9A6A40;
  --leather-2: #6F4626;

  /* dynamic accent (overridden per-scent context) */
  --accent: var(--platinum);
  --accent-glow: rgba(237,235,230,.5);

  /* type */
  --serif: 'Schibsted Grotesk', system-ui, sans-serif;   /* display (clean) */
  --sans:  'Hanken Grotesk', system-ui, sans-serif;

  /* metrics */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain + vignette overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 8999;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--platinum); color: #0A0B0D; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }

.eyebrow {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--faint);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--line-strong);
}
.eyebrow--center::before { display: none; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.01em;
  font-size: clamp(48px, 9vw, 132px);
}
.display em { font-style: italic; color: var(--dim); }

h1,h2,h3,h4 { font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1; }

.title-xl { font-size: clamp(38px, 6vw, 76px); }
.title-lg { font-size: clamp(30px, 4.4vw, 54px); }
.title-md { font-size: clamp(23px, 2.6vw, 34px); }

.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--dim); line-height: 1.55; max-width: 56ch; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--platinum); color: #0A0B0D; box-shadow: 0 10px 40px -12px rgba(237,235,230,.5); }
.btn--primary:hover { box-shadow: 0 16px 50px -10px rgba(237,235,230,.65); }

.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.015); }
.btn--ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); }

.btn--amazon { border-color: var(--line-2); color: var(--dim); background: transparent; }
.btn--amazon:hover { border-color: var(--line-strong); color: var(--text); }

.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 15.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14px; color: var(--text);
  letter-spacing: .01em;
}
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(10,11,13,.85), rgba(10,11,13,.55));
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.brand__name small { display: block; font-family: var(--sans); font-size: 8px; letter-spacing: .3em; color: var(--faint); margin-top: 4px; font-weight: 500; padding-left: 2px; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 14px; color: var(--dim); transition: color .25s; letter-spacing: .01em; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__cart { font-size: 14px; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.nav__model { position: relative; display: inline-flex; }
.nav__model select { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line-2); border-radius: 100px; padding: 9px 36px 9px 16px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .3s, background .3s; }
.nav__model select:hover { border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.nav__model::after { content: ""; position: absolute; right: 15px; top: 46%; width: 6px; height: 6px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: translateY(-50%) rotate(45deg); pointer-events: none; }
.nav__fitok { font-size: 12.5px; color: var(--whitetea); display: none; align-items: center; gap: 6px; white-space: nowrap; }
.nav__fitok.show { display: inline-flex; }
@media (max-width: 700px){ .nav__fitok { display: none !important; } }

.nav__burger { display: none; background: none; border: 0; color: var(--text); width: 42px; height: 42px; align-items: center; justify-content: center; margin-left: 2px; }
.nav__burger-open { display: block; }
.nav__burger-close { display: none; }
.nav__menu { display: none; }

@media (max-width: 880px) {
  .nav__links, .nav__cart, .nav__model, .nav__right .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.open .nav__burger-open { display: none; }
  .nav.open .nav__burger-close { display: block; }
  .nav__menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(10,11,13,.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    overflow: hidden; max-height: 0; transition: max-height .4s var(--ease);
  }
  .nav.open .nav__menu { max-height: 80vh; }
  .nav__menu-inner { display: flex; flex-direction: column; padding: 6px var(--gutter) 22px; }
  .nav__menu a { padding: 15px 2px; font-size: 16.5px; color: var(--dim); border-top: 1px solid var(--line); display: flex; align-items: center; }
  .nav__menu a:first-child { border-top: 0; }
  .nav__menu a[aria-current="page"] { color: var(--text); }
  .nav__menu .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- aura motif ---------- */
.aura {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .5;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  animation: drift 18s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4%, -5%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .aura { animation: none; } }

/* ---------- scent cards ---------- */
.scent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .scent-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .scent-grid { grid-template-columns: 1fr; } }

.scent {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 22px;
  transition: border-color .45s, transform .5s var(--ease);
  display: flex; flex-direction: column;
}
.scent:hover { border-color: var(--line-2); transform: translateY(-4px); }
.scent__halo {
  position: absolute; inset: -30% -10% auto -10%; height: 70%;
  background: radial-gradient(circle at 50% 30%, var(--accent) 0%, transparent 62%);
  opacity: .5; filter: blur(34px); transition: opacity .5s; pointer-events: none;
}
.scent:hover .scent__halo { opacity: .85; }
.scent__media { position: relative; z-index: 1; height: 150px; margin-bottom: 18px; border-radius: 12px; overflow: hidden; }
.scent__media image-slot { width: 100%; height: 100%; }
.scent__body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.bars { display: flex; flex-direction: column; gap: 9px; margin: 13px 0 18px; }
.bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; }
.bar__label { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.bar__track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transition: width 1.1s var(--ease); }
.reveal.in .bar__fill { width: var(--v, 50%); }
.scent__buy { font-size: 13px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.scent__buy svg { transition: transform .35s var(--ease); }
.scent__buy:hover svg { transform: translateX(4px); }
/* ---------- hanging diamond diffuser (CSS placeholder) ---------- */
.diffuser { --d: 132px; position: relative; display: flex; flex-direction: column; align-items: center; }
.diffuser__strap {
  width: 13px; height: 52px; border-radius: 7px; position: relative; margin-bottom: -7px; z-index: 1;
  background: linear-gradient(90deg, var(--leather-2), var(--leather) 45%, #b07c4c 60%, var(--leather-2));
  box-shadow: 0 3px 8px -3px rgba(0,0,0,.6), inset 0 0 2px rgba(255,255,255,.12);
}
.diffuser__strap::before { /* rivet */
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3eddd, #9a968c 70%, #6a665d);
}
.diffuser__strap::after { /* loop ring */
  content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--leather);
  background: var(--bg-2);
}
.diffuser__body {
  width: var(--d); height: var(--d); position: relative;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:
    repeating-linear-gradient(180deg, rgba(40,32,20,.13) 0 1px, transparent 1px 7px),
    linear-gradient(152deg, #ECE7DB 0%, var(--stone) 42%, var(--stone-2) 78%, #ABA392 100%);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.85);
}
.diffuser__body::before { /* embossed K */
  content: "K"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 500; font-size: calc(var(--d) * .42);
  color: rgba(74,62,44,.20); text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.diffuser--lg { --d: clamp(180px, 42vw, 320px); }
.diffuser--lg .diffuser__strap { width: 17px; height: 74px; }
.diffuser--lg .diffuser__strap::after { width: 24px; height: 24px; bottom: -13px; }
.scent__foot { position: relative; z-index: 1; }
.scent__name { font-family: var(--serif); font-size: 27px; line-height: 1; margin-bottom: 5px; }
.scent__notes { font-size: 12.5px; color: var(--faint); letter-spacing: .04em; margin-bottom: 16px; min-height: 2.4em; }
.scent__row { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.scent__price { font-size: 15px; color: var(--text); font-weight: 600; }
.scent__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

/* scent theming hooks */
.t-moon  { --accent: var(--moonlight); --accent-glow: rgba(151,167,207,.55); }
.t-berry { --accent: var(--blossom);   --accent-glow: rgba(221,144,182,.55); }
.t-tea   { --accent: var(--whitetea);  --accent-glow: rgba(173,203,166,.55); }
.t-ocean { --accent: var(--ocean);     --accent-glow: rgba(113,185,203,.55); }

/* ---------- feature rows ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px){ .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--bg); padding: 40px 34px; }
.feat__n { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--faint); }
.feat__big { font-family: var(--serif); font-size: clamp(40px,5vw,60px); line-height: 1; margin: 18px 0 14px; }
.feat__t { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feat__d { font-size: 14.5px; color: var(--dim); line-height: 1.55; }

/* ---------- fit finder ---------- */
.fit {
  border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden;
}
.fit__models { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 720px){ .fit__models { grid-template-columns: repeat(2,1fr);} }
.modelbtn {
  text-align: left; background: rgba(255,255,255,.02); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--dim);
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.modelbtn:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-2px); }
.modelbtn[aria-pressed="true"] { border-color: var(--platinum); background: rgba(237,235,230,.06); color: var(--text); }
.modelbtn b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.modelbtn span { font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }

.fit__result {
  margin-top: 26px; padding: 22px 24px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease);
}
.fit__result.show { opacity: 1; transform: none; }
.fit__check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(173,203,166,.14); color: var(--whitetea); border: 1px solid rgba(173,203,166,.3); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; color: var(--text); text-align: left;
  padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: clamp(17px,2vw,21px); font-weight: 500; letter-spacing: -.01em; }
.faq__q span.ic { flex: none; width: 22px; height: 22px; position: relative; transition: transform .4s var(--ease); }
.faq__q span.ic::before, .faq__q span.ic::after { content:""; position: absolute; background: var(--dim); inset: 0; margin: auto; }
.faq__q span.ic::before { width: 100%; height: 1.5px; }
.faq__q span.ic::after { width: 1.5px; height: 100%; transition: opacity .3s; }
.faq__item[data-open="true"] .faq__q span.ic { transform: rotate(180deg); }
.faq__item[data-open="true"] .faq__q span.ic::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq__a-inner { padding: 0 0 28px; color: var(--dim); font-size: 16px; line-height: 1.65; max-width: 70ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; background: var(--bg-2); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer h5 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 600; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14.5px; color: var(--dim); transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint); }
@media (max-width: 560px) { .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- misc ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line-2); font-size: 12px; letter-spacing: .04em; color: var(--dim); }
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.rule { height: 1px; background: var(--line); border: 0; }

.stars { display: inline-flex; gap: 2px; color: var(--platinum); }
.stars svg { width: 15px; height: 15px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,80px); align-items: center; }
@media (max-width: 880px){ .grid-2 { grid-template-columns: 1fr; } }

image-slot { border-radius: var(--radius); }
