/* Farmacin RO — supliment alimentar
 *
 * Third site in this project, third visual system. Arteolin HU is deep teal
 * with Palatino; Farmacin CZ is prussian-blue cyanotype with Optima; Farmacin
 * HU is plum on light with Futura + Georgia. This one is pine green with
 * Trebuchet, and leans on photography rather than typography.
 *
 * Romania is the strictest of the three markets: advertising material is
 * approved before it may run, so the page stays plain and verifiable. Vitamin C
 * is the only permitted claim and it gets its own dark band.
 *
 * All colour pairs verified against WCAG AA.
 */

:root {
  --pine:    #173A2A;
  --pine-dk: #0F2A1E;
  --moss:    #3E6B52;
  --sage:    #8FA898;
  --bone:    #F3F4F1;
  --card:    #FFFFFF;
  --ink:     #14201A;
  --muted:   #55655C;
  --hair:    #C6CEC8;
  --edge:    #7E8C84;

  --span: 70rem;
  --gap-v: clamp(2.6rem, 6vw, 5rem);
  --round: 3px;

  --head: "Trebuchet MS", "Lucida Grande", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .7rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.6vw, 3.1rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--moss); text-underline-offset: .16em; }
img, video { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

a, button, input, summary, label, [tabindex] { scroll-margin-top: 2rem; }
a, button, label, input[type="checkbox"], input[type="radio"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(62, 107, 82, .16);
}

.skip-to {
  position: absolute; left: -9999px; z-index: 60;
  background: var(--pine); color: #fff; padding: .8rem 1.2rem;
}
.skip-to:focus { left: 1rem; top: 1rem; }

/* ---------- containers ---------- */

.shell { width: min(var(--span), 100% - 2.6rem); margin-inline: auto; }
.zone { padding: var(--gap-v) 0; }
.zone-bone { background: var(--bone); }
.zone-pine { background: var(--pine); color: #DCE6DF; }
.zone-pine h2, .zone-pine b { color: #fff; }

.tag {
  font-family: var(--head);
  font-size: .76rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}
.tag-pale { color: var(--sage); }

.note { font-size: 1.12rem; color: var(--muted); }
.zone-pine .note { color: #B7C9BD; }

/* ---------- intro ---------- */

.intro {
  padding: calc(var(--gap-v) * .85) 0 var(--gap-v);
  background: var(--bone);
  border-bottom: 1px solid var(--hair);
}
.intro-layout {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
.intro-shot img { margin-inline: auto; max-width: 240px; }

.intro h1 { color: var(--pine); margin-bottom: .9rem; }
.intro .note { max-width: 32rem; }
.intro-act {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem;
  margin: 1.7rem 0 0;
}
.intro-aside { font-size: .93rem; color: var(--muted); }

.promises {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
}
.promises li {
  position: relative; padding-left: 1.1rem;
  font-size: .95rem; color: var(--muted);
}
.promises li::before {
  content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 700;
}
.promises-stacked { display: block; margin-top: 1.2rem; }
.promises-stacked li { margin-bottom: .4rem; }

/* ---------- action ---------- */

.go {
  display: inline-block; text-decoration: none; text-align: center;
  font: inherit; font-family: var(--head); font-weight: 700;
  background: var(--pine); color: #fff;
  padding: .85rem 1.8rem; min-height: 50px; line-height: 1.9;
  border: 2px solid var(--pine); border-radius: var(--round);
  cursor: pointer;
}
.go:hover { background: var(--pine-dk); border-color: var(--pine-dk); }
.go-plain { background: transparent; color: var(--pine); border-color: var(--edge); }
.go-plain:hover { background: var(--card); border-color: var(--pine); }
.go-block { width: 100%; font-size: 1.05rem; }

/* ---------- composition table ---------- */

.matrix {
  width: 100%; max-width: 36rem; border-collapse: collapse;
  margin-top: 1.5rem; font-variant-numeric: tabular-nums;
}
.matrix caption {
  text-align: left; caption-side: top;
  font-family: var(--head); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: .55rem;
}
.matrix th, .matrix td {
  padding: .55rem .4rem; border-bottom: 1px solid var(--hair);
  text-align: left; font-weight: 400;
}
.matrix td { text-align: right; color: var(--muted); white-space: nowrap; }
.matrix .row-key th { font-weight: 700; color: var(--pine); }
.matrix .row-key td { color: var(--pine); font-weight: 700; }

.ingredients-all {
  margin-top: 1.5rem; padding: 1rem 1.2rem;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--round);
}
.zone-bone .ingredients-all { background: var(--card); }
.ingredients-all summary { cursor: pointer; font-family: var(--head); font-weight: 700; font-size: .95rem; }
.ingredients-all p { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- attested claim ---------- */

.attested {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.55;
  max-width: 46rem; padding-left: 1.2rem;
  border-left: 3px solid var(--sage);
}
.attested p { margin: 0 0 .8rem; }
.attested p:last-child { margin-bottom: 0; }
.attested-note {
  margin: 1.5rem 0 0; font-size: .92rem; color: var(--sage);
  font-family: var(--head);
}

/* ---------- warnings ---------- */

.warn {
  margin-top: 1.8rem; padding: 1.3rem 1.5rem;
  background: var(--bone); border-radius: var(--round);
  border: 1px solid var(--hair);
}
.warn h3 { color: var(--pine); }
.warn ul { margin: 0; padding-left: 1.1rem; }
.warn li { font-size: .95rem; color: var(--muted); margin-bottom: .45rem; }
.warn li:last-child { margin-bottom: 0; }

/* ---------- packs ---------- */

.packs {
  list-style: none; padding: 0; margin: 1.8rem 0 0;
  display: grid; gap: 1.1rem;
}
.pack {
  background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--round); padding: 1.5rem 1.5rem 1.6rem;
  display: grid; align-content: start; gap: .3rem;
  position: relative;
}
.pack-name { font-family: var(--head); font-weight: 700; font-size: 1.05rem; margin: 0; }
.pack-price {
  font-family: var(--head); font-weight: 700; font-size: 1.95rem;
  margin: 0; color: var(--pine); font-variant-numeric: tabular-nums;
}
.pack-meta { margin: 0 0 1.1rem; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.pack .go { justify-self: start; }
.pack-common { border-color: var(--pine); border-width: 2px; }
.pack-mark {
  margin: 0 0 .35rem; font-family: var(--head); font-weight: 700;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss);
}
.packs-note { margin: 1.5rem 0 0; max-width: 46rem; font-size: .93rem; color: var(--muted); }

/* ---------- signup ---------- */

.signup-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.signup {
  background: var(--bone); border: 1px solid var(--hair);
  border-radius: var(--round); padding: 1.6rem;
}
.signup-row { margin: 0 0 1.1rem; }
.signup-row label {
  display: block; font-family: var(--head); font-weight: 700;
  font-size: .92rem; margin-bottom: .35rem;
}
.signup-row input {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; min-height: 50px;
  border: 1px solid var(--edge); border-radius: var(--round); background: var(--card);
}
.signup-row input:focus { border-color: var(--moss); }
.signup-row input[aria-invalid="true"] { border-color: #9E2B1E; border-width: 2px; }

.signup-pick { border: 0; margin: 0 0 1.2rem; padding: 0; }
.signup-pick legend {
  font-family: var(--head); font-weight: 700; font-size: .92rem;
  padding: 0; margin-bottom: .4rem;
}
.signup-pick label {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 0; min-height: 44px; cursor: pointer;
  border-bottom: 1px solid var(--hair);
}
.signup-pick label:last-child { border-bottom: 0; }
.signup-pick input { width: 22px; height: 22px; accent-color: var(--pine); }

.signup-agree {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .92rem; color: var(--muted); margin-bottom: 1.3rem;
}
.signup-agree input { width: 22px; height: 22px; flex: none; margin-top: .2rem; accent-color: var(--pine); }

.lure { position: absolute; left: -9999px; }

.signup-error {
  background: #FBEDEA; border-left: 3px solid #9E2B1E; color: #74190F;
  padding: .85rem 1.05rem; margin: 0 0 1.2rem; font-size: .95rem;
  border-radius: var(--round);
}
.signup-foot { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---------- media ---------- */

.shots { display: grid; gap: 1rem; margin-top: 1.7rem; }
.shots img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--hair); border-radius: var(--round);
}

.clip { margin-top: 2rem; max-width: 290px; }
.clip video {
  width: 100%; border: 1px solid var(--hair); border-radius: var(--round);
  background: var(--pine-dk);
}
.clip-note { margin: .65rem 0 0; font-size: .89rem; color: var(--muted); }

/* ---------- flow ---------- */

.flow { margin: 1.6rem 0 0; padding-left: 1.4rem; max-width: 46rem; }
.flow li { margin-bottom: .65rem; }
.flow b { font-family: var(--head); }
.flow::marker { color: var(--moss); }

/* ---------- Q&A ---------- */

.qa { margin: 1.6rem 0 0; max-width: 46rem; }
.qa dt {
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--hair);
}
.qa dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.qa dd { margin: .35rem 0 0; color: var(--muted); }

/* ---------- documents ---------- */

.paper { padding: var(--gap-v) 0 calc(var(--gap-v) * 1.15); }
.paper .shell > * { max-width: 47rem; }
.paper h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); color: var(--pine); margin-bottom: .35rem; }
.paper-meta {
  font-family: var(--head); font-size: .86rem; color: var(--muted);
  margin: 0 0 2.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hair);
}
.paper h2 {
  font-size: 1.18rem; margin: 2.2rem 0 .6rem;
  padding-top: 1rem; border-top: 1px solid var(--hair);
}
.paper h2:first-of-type { border-top: 0; padding-top: 0; }
.paper p, .paper li { font-size: .97rem; }
.paper ul, .paper ol { padding-left: 1.3rem; }
.paper li { margin-bottom: .4rem; }
.paper dl { margin: 0 0 1.3rem; }
.paper dt { font-family: var(--head); font-weight: 700; margin-top: .85rem; }
.paper dd { margin: .1rem 0 0; color: var(--muted); }

.sheet-facts { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; }
.sheet-facts th, .sheet-facts td {
  text-align: left; padding: .6rem .45rem; vertical-align: top;
  border-bottom: 1px solid var(--hair); font-size: .94rem;
}
.sheet-facts th { font-family: var(--head); font-weight: 700; width: 34%; }
.sheet-facts td { color: var(--muted); }

.callout {
  background: var(--bone); border-left: 3px solid var(--moss);
  padding: 1.1rem 1.3rem; margin: 1.3rem 0; border-radius: var(--round);
}
.callout p:last-child { margin-bottom: 0; }

.paper-back { margin-top: 2.5rem; }

/* ---------- baseline ---------- */

.baseline { background: var(--pine-dk); color: #A9BCB0; padding: var(--gap-v) 0; }
.baseline-nav {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  padding-bottom: 1.3rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid #2A4636;
}
.baseline-nav a { color: #fff; font-size: .92rem; }
.baseline-anpc {
  margin: 0 0 1.3rem; padding-bottom: 1.3rem;
  border-bottom: 1px solid #2A4636; font-size: .92rem;
}
.baseline-anpc a { color: #fff; }
.baseline-legal p { font-size: .9rem; line-height: 1.72; }
.baseline-legal b { color: #fff; font-family: var(--head); }
.baseline-mark {
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid #2A4636; color: #fff;
}

/* ---------- cookie bar ---------- */

.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--pine-dk); color: #D3E0D8;
  border-top: 2px solid var(--moss);
  padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom));
}
.cookiebar-inner {
  width: min(var(--span), 100% - 2rem); margin-inline: auto;
  display: grid; gap: .9rem;
}
.cookiebar p { margin: 0; font-size: .9rem; line-height: 1.6; }
.cookiebar a { color: #fff; }
.cookiebar-actions { display: grid; gap: .55rem; }
.cookiebar-actions .btn {
  display: inline-block; text-align: center; cursor: pointer;
  font: inherit; font-family: var(--head); font-weight: 700; font-size: .95rem;
  padding: .7rem 1.3rem; min-height: 46px; border-radius: var(--round);
  border: 1px solid #5A7566; background: transparent; color: #fff;
}
.cookiebar-actions .btn-primary { background: #fff; color: var(--pine-dk); border-color: #fff; }

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
  .cookiebar-inner { grid-template-columns: 1fr auto; align-items: center; gap: 1.8rem; }
  .cookiebar-actions { grid-auto-flow: column; }
  .cookiebar-actions .btn { min-width: 130px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 820px) {
  .intro-layout { grid-template-columns: 1fr 300px; gap: 3.5rem; }
  .intro-shot img { max-width: 280px; }
  .packs { grid-template-columns: repeat(3, 1fr); }
  .signup-layout { grid-template-columns: 1fr 25rem; gap: 3rem; align-items: start; }
  .go-block { width: auto; min-width: 15rem; }
}
