:root {
  --ink: #1d2a22;
  --muted: #5b6b60;
  --bg: #f7f4ee;
  --card: #ffffff;
  --line: #e2ddd2;
  --brand: #2f5d3a;
  --accent: #f28c28;
  --error: #b3263c;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.lead { font-size: 1.15rem; color: var(--muted); }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--ink); letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.logo-mark { width: 1.6em; height: auto; margin-right: .35em; fill: currentColor; }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; }
.basket { display: inline-flex; align-items: center; gap: 6px; }
.basket svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.basket:hover svg { color: var(--brand); }
.count {
  min-width: 1.6em; padding: 0 .45em; border-radius: 999px; font-size: .85rem; font-weight: 700;
  line-height: 1.6em; text-align: center; color: var(--muted); background: var(--line);
}
.count.filled { color: #fff; background: var(--accent); }

.btn {
  display: inline-block; border: 2px solid var(--brand); background: var(--brand); color: #fff;
  padding: .75em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; color: var(--brand); }

.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0; background: linear-gradient(160deg, #e9efe2, var(--bg) 60%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand); }

.gels, .about, .checkout, .thanks, .product, .page { padding: 64px 0; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page .btn { margin-top: 1em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative;
}
.card .sachet { width: 96px; margin: 0 auto 16px; display: block; }
.card .specs { color: var(--muted); margin: 0 0 12px; }
.card .price { font-size: 1.3rem; font-weight: 800; margin-top: auto; }
.card .price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
/* The name link stretches over the whole card, so clicking anywhere opens the gel. */
.card .card-link { color: inherit; text-decoration: none; }
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .card-link:focus-visible { outline: none; }
.card:has(.card-link) { cursor: pointer; transition: background-color .15s; }
.card:has(.card-link):hover, .card:has(.card-link:focus-visible) { background: color-mix(in srgb, var(--card) 94%, #000); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .frozen { position: absolute; z-index: 1; top: 12px; right: 14px; color: #3a8fd6; font-size: 1.4rem; line-height: 1; cursor: help; }
.soldout { color: var(--muted); font-style: italic; }

.crumbs { margin: 0 0 24px; }
.crumbs a { text-decoration: none; }
.product-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.product-visual { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 40px; }
.product-visual .sachet { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.frozen-inline { color: #3a8fd6; }
.product .price { font-size: 1.6rem; font-weight: 800; margin: 0 0 20px; }
.product .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points { padding-left: 1.2em; font-size: 1.1rem; }
.points li { margin-bottom: .6em; }

form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 20px; margin: 0 0 20px; }
legend { font-weight: 800; padding: 0 6px; }
form label { display: block; margin-bottom: 14px; font-weight: 600; }
form small { font-weight: 400; color: var(--muted); }
input, textarea {
  display: block; width: 100%; margin-top: 4px; padding: .65em .75em; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }

.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line label { display: flex; align-items: center; gap: 10px; margin: 0; }
.line .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input { width: 64px; text-align: center; margin: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); font-size: 1.2rem; cursor: pointer; color: var(--ink);
}
.stepper .remove { border: none; background: none; color: var(--muted); }
.stepper .remove:hover { color: var(--error); }
.line a { color: inherit; }
.add-more { margin: 12px 0 0; }
.total { margin: 16px 0 0; font-size: 1.1rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0 0 16px; min-height: 65px; }
.error { color: var(--error); font-weight: 600; }

.site-footer { padding: 32px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }
.hint { color: var(--muted); font-size: .95rem; }

@media (max-width: 520px) {
  nav a:not(.basket) { display: none; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-visual { padding: 24px; }
  .product-visual .sachet { max-width: 140px; }
}

.flask-stage { position: relative; aspect-ratio: 4 / 5; max-height: 70vh; margin: 24px auto 0; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 40%, #fdfdfc, #ecedeb 75%); overflow: hidden; touch-action: none; }
.flask-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; cursor: grab; }
.flask-stage canvas:active { cursor: grabbing; }
.flask-controls { display: flex; flex-wrap: wrap; gap: 12px; }
