/* Ginger Moon — estil de la web.
   Identitat presa de l'etiqueta: negre, groc mostassa de les llunes, blanc;
   Montserrat (com el subtítol MEDITERRANEAN GINGER BEER) i una serif editorial. */
:root {
  --black: #0b0b0c;
  --black-2: #151517;
  --black-3: #1f1f22;
  --gold: #f0ba22;
  --gold-deep: #c8920f;
  --cream: #f5efe3;
  --cream-2: #ebe2d0;
  --ink: #17140f;
  --muted-dark: #a9a397;
  --muted-light: #5d564a;
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-light: rgba(23, 20, 15, 0.14);
  --ok: #2f8f5b;
  --err: #d9634a;
  --f-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: #f3f0ea;
  font: 400 16px/1.65 var(--f-ui);
  padding-top: env(safe-area-inset-top, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Idioma: el contingut porta les dues versions i se n'amaga una. */
html[data-lang="ca"] .l-es, html[data-lang="es"] .l-ca { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow {
  font: 600 11px/1 var(--f-ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.display {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold); }
.h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(32px, 4.6vw, 54px); }
.h3 { font: 600 15px/1.3 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; color: var(--muted-dark); }
.light .lead { color: var(--muted-light); }

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img.sym { width: 34px; }
.brand img.word { height: 20px; width: auto; }
.menu { display: flex; gap: 18px; white-space: nowrap; margin-left: auto; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.menu a { text-decoration: none; color: var(--muted-dark); padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; border-color: var(--gold); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line-dark); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted-dark); font: 600 11px var(--f-ui); padding: 7px 10px; cursor: pointer; letter-spacing: 0.08em; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--black); }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 12px;
  font: 600 12px var(--f-ui); color: #fff; background: none; cursor: pointer;
}
.icon-btn .count { background: var(--gold); color: var(--black); border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 11px; padding: 0 6px; }
.burger { display: none; }
@media (max-width: 1180px) {
  .menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line-dark);
    padding: 8px 20px 20px; display: none; margin: 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
  .burger { display: inline-flex; margin-left: auto; }
  .tools { margin-left: 0; }
  .brand img.word { height: 16px; }
}
@media (max-width: 480px) { .brand img.word { display: none; } .icon-btn .lbl { display: none; } }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px; border: 1px solid transparent;
  font: 600 13px/1 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #ffc93a; }
.btn-line { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: none; }
.light .btn-line { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Seccions ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.light { background: var(--cream); color: var(--ink); }
.light .eyebrow { color: var(--gold-deep); }
.panel { background: var(--black-2); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .split { align-items: end; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 378 / 562; max-height: 640px; justify-self: end; width: min(100%, 440px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.phases { width: min(280px, 70%); margin: 28px 0 0; opacity: .95; }

.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line-dark); }
.page-hero .lead { margin-top: 18px; }

.claims { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; font: 600 12px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.claims span::before { content: "●"; color: var(--gold); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; background: var(--black-2); }
.light .card { border-color: var(--line-light); background: #fffaf0; }
.card .num { font: 500 44px/1 var(--f-serif); color: var(--gold); display: block; margin-bottom: 16px; }
.light .card .num { color: var(--gold-deep); }
.card p { color: var(--muted-dark); margin: 10px 0 0; font-size: 15px; }
.light .card p { color: var(--muted-light); }

.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.moments div { background: var(--black); padding: 28px 22px; }
.moments b { font: 500 26px var(--f-serif); display: block; margin-bottom: 6px; }
.moments span { color: var(--muted-dark); font-size: 14px; }
.moments b span { font: inherit; color: inherit; }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); margin-top: 40px; }
.facts div { padding: 22px 0; text-align: center; }
.facts b { display: block; font: 500 34px var(--f-serif); color: var(--gold); }
.facts span { font: 600 11px var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }

.timeline { list-style: none; padding: 0; margin: 44px 0 0; border-left: 1px solid var(--line-light); }
.timeline li { position: relative; padding: 0 0 34px 30px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.timeline li.next::before { background: none; border: 2px solid var(--gold-deep); }
.timeline time { font: 600 12px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.timeline h3 { font: 500 26px var(--f-serif); margin: 4px 0 6px; }
.timeline p { color: var(--muted-light); margin: 0; }

.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.quote { font: italic 500 clamp(28px, 4vw, 44px)/1.2 var(--f-serif); max-width: 22ch; }
.quote::before { content: "“"; color: var(--gold); }
.quote::after { content: "”"; color: var(--gold); }

.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; margin-top: 14px; }
.cta-band .actions { justify-content: center; }

.note { font-size: 13px; color: var(--muted-dark); }
.light .note { color: var(--muted-light); }

/* ---------- Productes ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }
.product { border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--black-2); display: grid; grid-template-rows: auto 1fr; }
.product .pimg { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.product .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product .pbody { padding: 26px; display: grid; gap: 14px; align-content: start; }
.product h3 { font: 500 30px var(--f-serif); }
.product p { color: var(--muted-dark); margin: 0; font-size: 15px; }
.price { font: 500 38px/1 var(--f-serif); color: #fff; }
.price small { font: 500 12px var(--f-ui); color: var(--muted-dark); letter-spacing: .04em; margin-left: 8px; }
.tiers { font-size: 13px; color: var(--gold); }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 999px; }
.qty button { width: 40px; height: 44px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.spec { display: flex; flex-wrap: wrap; gap: 8px; }
.spec span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; font: 600 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- Formularis ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted-dark); }
input, select, textarea {
  width: 100%; font: 400 16px var(--f-ui); color: #fff; background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 13px 14px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #ddd8cd; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px; cursor: pointer; display: grid; gap: 2px; }
.seg label:has(input:checked) { border-color: var(--gold); background: rgba(240, 186, 34, .08); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { font-size: 15px; }
.seg span { font-size: 13px; color: var(--muted-dark); }
.options { display: grid; gap: 10px; }
.opt { border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--gold); background: rgba(240, 186, 34, .08); }
.opt.disabled { opacity: .45; cursor: not-allowed; }
.opt input { margin-top: 4px; accent-color: var(--gold); width: auto; flex-shrink: 0; }
.opt b { display: block; }
.opt span { font-size: 13px; color: var(--muted-dark); }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.msg.err { background: rgba(217, 99, 74, .14); color: #f3b2a3; border: 1px solid rgba(217, 99, 74, .4); }
.msg.ok { background: rgba(47, 143, 91, .14); color: #a9e3c2; border: 1px solid rgba(47, 143, 91, .4); }
.pro-only { display: none; }
.form[data-type="professional"] .pro-only { display: grid; }

.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; margin-top: 36px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; background: var(--black-2); }
.box + .box { margin-top: 20px; }
.box h2 { font: 500 26px var(--f-serif); margin-bottom: 16px; }
.summary { position: sticky; top: 88px; }
.sline { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.sline.total { border: 0; font-size: 19px; font-weight: 700; padding-top: 14px; }
.sline .rm { background: none; border: 0; color: var(--muted-dark); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; margin-left: 8px; }

.tabs { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tabs button { background: none; border: 0; color: var(--muted-dark); font: 600 13px var(--f-ui); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--black); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
table.list th { color: var(--muted-dark); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.prose { max-width: 72ch; }
.prose h2 { font: 500 30px var(--f-serif); margin: 40px 0 12px; }
.prose h3 { font: 600 16px var(--f-ui); margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted-dark); }
.light .prose p, .light .prose li { color: var(--muted-light); }

.faq details { border-bottom: 1px solid var(--line-light); padding: 18px 0; }
.faq summary { cursor: pointer; font: 500 22px var(--f-serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-family: var(--f-ui); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted-light); }

/* ---------- Peu ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted-dark); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font: 600 11px var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; }
.responsible { color: var(--gold); font-weight: 600; letter-spacing: .06em; }

/* ---------- Avisos ---------- */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, .96); display: grid; place-items: center; padding: 24px; }
.age-gate .inner { max-width: 460px; text-align: center; }
.age-gate img { width: 64px; margin: 0 auto 26px; }
.age-gate h2 { font: 500 38px var(--f-serif); margin-bottom: 12px; }
.age-gate p { color: var(--muted-dark); }
.age-gate .actions { justify-content: center; }
.demo-banner { background: var(--gold); color: var(--black); font: 600 12px/1.4 var(--f-ui); text-align: center; padding: 8px 16px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #fff; color: var(--black); padding: 12px 20px; border-radius: 999px; font: 600 14px var(--f-ui); z-index: 90; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

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