/* Elyxit Studio — retail pages. Tokens follow elyxit.com. */
:root {
  --bg: #F4EFE6;
  --surface: #FBF8F2;
  --ink: #1A1815;
  --soft: #6B665E;
  --line: #DDD6CB;
  --line-strong: #C9C4BC;
  --score: #B8901A;      /* SCORE (gold, darkened for text contrast) */
  --score-tint: #F3E7C2;
  --dist: #477CA8;       /* DISTRIBUTE */
  --dist-tint: #DCE6EF;
  --loyal: #C46A24;      /* Loyalty Club */
  --loyal-tint: #F5DFCB;
  --ok: #5C7A45;
  --olive: #5C7A45;
  --warn: #D9782D;
  --bad: #D63838;
  --gold: #C9A227;
  --silver: #8B8F96;
  --bronze: #9B6A45;
  --radius: 14px;
  --max: 560px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

/* Language: paired .en / .it elements */
html[lang="it"] .en, html[lang="en"] .it { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.logo { text-decoration: none; display: flex; align-items: baseline; margin-right: auto; padding-top: 2px; }
.logo .w { font-family: "Caveat", cursive; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.logo .p { font-family: "Caveat", cursive; font-weight: 700; font-size: 34px; line-height: 1; color: var(--olive); }

.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  border: 0; background: transparent; color: var(--soft);
  padding: 6px 9px; cursor: pointer; min-width: 34px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  border-radius: 999px; padding: 12px 20px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  min-height: 46px;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.small { font-size: 13px; padding: 7px 12px; min-height: 36px; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:focus-visible, .card:focus-visible, .lang button:focus-visible, .back:focus-visible { outline: 2px solid var(--dist); outline-offset: 2px; }

/* Landing hero */
.hero { padding: 22px 0 14px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0 0 8px; }
h1 { font-size: 26px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 8px; }
.lead { color: var(--soft); margin: 0; font-size: 15px; }
.lead strong { color: var(--ink); }

/* Product cards */
.cards { display: grid; gap: 10px; padding: 8px 0 6px; }
.card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:active { transform: scale(0.99); }
@media (hover: hover) { .card:hover { border-color: var(--line-strong); } }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
}
.card .ic svg { width: 32px; height: 32px; }
.card .ic.mark { display: grid; place-items: center; font-family: "Caveat", cursive; font-size: 38px; line-height: 1; }
/* Optical centring: Caveat's E. ink sits 1.7px right of its advance box */
.ic.mark b { display: block; font-weight: 700; line-height: 1; transform: translate(-1.7px, -0.5px); }
.ic.mark i { font-style: normal; color: var(--olive); }
.card .tx { flex: 1; min-width: 0; }
.card .t { font-weight: 800; font-size: 16px; letter-spacing: 0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .d { font-size: 13.5px; color: var(--soft); line-height: 1.35; margin-top: 2px; }
.card .go { width: 18px; height: 18px; color: var(--soft); flex: none; }
.ic.score { background: var(--score-tint); color: var(--score); }
.ic.dist { background: var(--dist-tint); color: var(--dist); }
.ic.loyal { background: var(--loyal-tint); color: var(--loyal); }
.ic.about { background: #E8E2D7; color: var(--ink); }

.tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.5;
}
.tag.live { color: var(--ok); }
.tag.dev { color: var(--dist); }
.tag.soon { color: var(--loyal); }

.actions { display: flex; gap: 10px; padding: 14px 0 4px; }
.actions .btn { flex: 1; font-size: 14px; padding: 12px 10px; white-space: nowrap; }

.trusted { padding: 18px 0 6px; text-align: center; }
.trusted p { margin: 0 0 8px; }
.logos { list-style: none; margin: 4px 0 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.logos li { display: flex; align-items: center; height: 48px; }
.logos img { width: auto; display: block; }
.trusted small { display: block; color: var(--soft); font-size: 12px; margin-top: 8px; line-height: 1.4; }

/* Sections */
section.block { padding: 26px 0 6px; }
h2 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 10px; font-weight: 800; }
.label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* Product page */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--soft); font-weight: 600; font-size: 14px; padding: 14px 0 4px; }
.back svg { width: 16px; height: 16px; }
.prod-head { padding: 8px 0 4px; }
.prod-name { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.prod-name .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.prod-name .ic svg { width: 26px; height: 26px; }
.prod-name b { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; }
.pain {
  font-size: 17px; line-height: 1.45; margin: 14px 0 0; padding: 12px 0 12px 14px;
  border-left: 3px solid var(--line-strong); color: #3A3631;
}
.pain.score { border-color: var(--score); }
.pain.dist { border-color: var(--dist); }
.pain.loyal { border-color: var(--loyal); }

.demo { margin: 18px 0 0; }
.demo figcaption { font-size: 12px; color: var(--soft); margin-top: 8px; text-align: center; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.list li b { display: block; }
.list li span.s { color: var(--soft); font-size: 14.5px; }
.list.score svg { color: var(--score); }
.list.dist svg { color: var(--dist); }
.list.loyal svg { color: var(--loyal); }

.mods { display: grid; gap: 10px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.mod h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.mod p { margin: 0; color: var(--soft); font-size: 14.5px; }

.flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.flow .pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.flow .op { color: var(--soft); font-weight: 600; }
.flow .res { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.roadmap { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; }
.roadmap p { margin: 0; font-size: 14.5px; color: #3A3631; }

.tech { font-size: 14.5px; }
.tech dl { margin: 0; display: grid; gap: 12px; }
.tech dt { font-weight: 800; font-size: 14px; }
.tech dd { margin: 2px 0 0; color: var(--soft); }

.cta { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 22px 18px; margin: 28px 0 0; text-align: center; }
.cta h2 { color: var(--bg); margin-bottom: 6px; }
.cta p { margin: 0 0 16px; color: #CFC8BC; font-size: 14.5px; }
.cta .row { display: grid; gap: 10px; }
.cta .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta .btn.ghost { background: transparent; color: var(--bg); border-color: #57524A; }

.banner {
  background: var(--loyal); color: #fff; text-align: center; font-weight: 800;
  font-size: 14px; letter-spacing: 0.02em; padding: 10px 16px;
}

/* Form */
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .fl { font-size: 14px; font-weight: 700; }
.req::before { content: "* "; color: var(--ink); }
.invalid .req::before, .invalid > label, .invalid > .fl { color: var(--bad); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff;
}
.invalid input, .invalid select { border-color: var(--bad); }
textarea { min-height: 76px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
details.more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--soft); list-style: none; padding: 4px 0; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "– "; }
details.more .inner { display: grid; gap: 14px; padding-top: 10px; }
.form-error { color: var(--bad); font-size: 14px; font-weight: 600; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 26px 16px; }
.done svg { width: 40px; height: 40px; color: var(--ok); margin: 0 auto 10px; }
.done h3 { margin: 0 0 6px; font-size: 19px; }
.done p { margin: 0 0 16px; color: var(--soft); }
.fine { font-size: 12px; color: var(--soft); margin: 0; }

footer { padding: 30px 0 36px; text-align: center; font-size: 13px; color: var(--soft); }
footer a { color: var(--soft); }

/* ---------- Demo mockups ---------- */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px -18px rgba(26,24,21,.35); overflow: hidden; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mock-head b { font-size: 14px; }
.mock-head span { font-size: 11px; color: var(--soft); font-weight: 600; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tile { background: var(--bg); border-radius: 10px; padding: 8px 9px; }
.tile .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.tile .v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.lb { position: relative; }
.lb-row, .lb-hd { display: grid; grid-template-columns: 26px 1fr 38px 38px 38px 46px; align-items: center; gap: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lb-hd { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.lb-hd span, .lb-row span { text-align: right; }
.lb-hd span:nth-child(2), .lb-row span:nth-child(2) { text-align: left; }
.lb-body { position: relative; }
.lb-row { position: absolute; left: 0; right: 0; height: 34px; border-bottom: 1px solid #F0EBE3; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.lb-row .rk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; justify-self: start; text-align: center; }
.lb-row .st { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .tot { font-weight: 800; }
.rk.r1 { background: var(--gold); color: #fff; }
.rk.r2 { background: var(--silver); color: #fff; }
.rk.r3 { background: var(--bronze); color: #fff; }
.rk.warn { color: var(--warn); }
.rk.bad { color: var(--bad); }
.flash { animation: flash .9s; }
@keyframes flash { 0% { background: var(--score-tint); } 100% { background: transparent; } }
.mock-foot { font-size: 10.5px; color: var(--soft); margin-top: 8px; }

/* Distribute grid */
.sz { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.sz th { font-size: 10px; font-weight: 700; color: var(--soft); padding: 4px 0; text-align: center; }
.sz th:first-child, .sz td:first-child { text-align: left; font-weight: 700; white-space: nowrap; padding-right: 4px; }
.sz td { text-align: center; padding: 3px 1px; }
.sz td .c { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg); transition: background .5s, color .5s, box-shadow .5s; }
.sz td .c.zero { background: #FBE3E1; color: var(--bad); font-weight: 800; box-shadow: inset 0 0 0 1px #F2B5B0; }
.sz td .c.out { background: var(--dist-tint); color: var(--dist); font-weight: 800; }
.sz td .c.in { background: #E1EBD9; color: var(--ok); font-weight: 800; }
.move { margin-top: 12px; border-radius: 12px; background: var(--dist-tint); padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; min-height: 54px; transition: opacity .4s; }
.move svg { width: 20px; height: 20px; color: var(--dist); flex: none; }
.move b { color: var(--dist); }
.stats2 { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--soft); margin-top: 10px; font-weight: 600; }
.stats2 b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Loyalty concept */
.concept { border: 2px dashed var(--loyal); border-radius: 18px; padding: 14px; position: relative; background: #fff; }
.concept .stamp { position: absolute; top: -11px; left: 14px; background: var(--loyal); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; padding: 3px 9px; border-radius: 999px; }
.member { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 16px; margin-top: 6px; }
.member .lv { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #D6A925; font-weight: 800; }
.member .pts { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.member .bar { height: 6px; border-radius: 6px; background: #3A3631; margin: 10px 0 6px; overflow: hidden; }
.member .bar i { display: block; height: 100%; width: 68%; background: #D6A925; border-radius: 6px; }
.member small { color: #CFC8BC; font-size: 11.5px; }
.offer { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.offer b { display: block; }
.offer span { color: var(--soft); }

@media (min-width: 640px) {
  h1 { font-size: 30px; }
  .cta .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .lb-row, .lb-hd { grid-template-columns: 24px 1fr 32px 32px 32px 40px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
