/* Farmacin CZ — food supplement landing
 *
 * Direction: cyanotype. Anna Atkins printed botanical specimens as white
 * silhouettes on Prussian blue in the 1840s — the first photographic book was
 * a herbarium. The product is nine plants and a vitamin, and its packaging is
 * already deep blue, so the reference is not decoration: the composition IS
 * the subject, and the herbarium sheet is where the page spends its boldness.
 *
 * Monochrome on purpose. No second accent colour — cyanotype has none.
 * All pairs verified against WCAG AA before use.
 */

:root {
  --prussian:  #0A2E4A;   /* hero, herbarium, order — the print ground */
  --cyan-deep: #12496F;   /* raised surfaces on blue */
  --cyan-mid:  #3585B2;   /* rules and captions on blue — 3.4:1 */
  --paper:     #F2F5F4;   /* cool light sections, never cream */
  --print:     #FFFFFF;   /* the specimens themselves, CTA on blue */

  --ink:       #0B2233;
  --ink-soft:  #4A6273;
  --line:      #718B9C;   /* control borders — 3.6:1 on white */
  --line-soft: #D8E0E3;   /* decorative rules only */

  --focus:     var(--cyan-deep);

  --wrap:   1120px;
  --radius: 2px;          /* a print edge, not a pill */
  --gap:    clamp(2.25rem, 5vw, 4.5rem);

  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;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--print);
}

/* Optima/Candara: humanist, calligraphic stroke — botanical rather than
   pharmaceutical, and deliberately not the serif used on the other project. */
h1, h2, h3 {
  font-family: Optima, Candara, "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 .55em;
  font-weight: 600;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--cyan-deep); text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }

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

a, button, input, summary, label, [tabindex] {
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: 110px;
}
a, button, summary, label, input[type="checkbox"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(18, 73, 111, .16);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--print); color: var(--prussian); padding: .8rem 1.2rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- layout ---------- */

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow > * { max-width: 700px; }

.section { padding: var(--gap) 0; }
.section-paper { background: var(--paper); }
.section-note { color: var(--ink-soft); margin-top: -.3em; }
.note-light { color: #A9C3D2; }

/* Eyebrow doubles as the legal category label — it has a job, not a look. */
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-deep); margin: 0 0 .9rem;
}
/* On the blue ground --cyan-deep gives 1.5:1 — unreadable. Small text needs
   4.5:1, so the light variant is a lighter tint, not the mid tone (3.4:1). */
.eyebrow-light,
.hero .eyebrow,
.herbar .eyebrow,
.section-order .eyebrow { color: #6FA8CC; }

/* ---------- header ---------- */

.site-header { background: var(--prussian); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.logo {
  font-family: Optima, Candara, "Segoe UI", system-ui, sans-serif;
  font-size: 1.45rem; font-weight: 700; color: var(--print);
  letter-spacing: .04em;
}
.header-cta {
  display: none;
  padding: .55rem 1.15rem; border-radius: var(--radius);
  background: var(--print); color: var(--prussian);
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.header-cta:hover { background: #DCE9F0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .95rem 1.9rem; min-height: 54px;
  border-radius: var(--radius); border: 2px solid transparent;
}
/* On blue the primary button is the white of the print itself. */
.btn-primary { background: var(--prussian); color: var(--print); }
.btn-primary:hover { background: #072337; }
.hero .btn-primary, .section-order .btn-primary, .sticky-cta .btn-primary {
  background: var(--print); color: var(--prussian);
}
.hero .btn-primary:hover, .section-order .btn-primary:hover,
.sticky-cta .btn-primary:hover { background: #DCE9F0; }
.btn-lg { width: 100%; font-size: 1.1rem; }

.cta-block { margin: 1.75rem 0; }
.cta-note { font-size: .92rem; color: var(--ink-soft); margin: .8rem 0 0; }
.hero .cta-note, .section-order .cta-note { color: #A9C3D2; }

/* ---------- hero ---------- */

.hero {
  background: var(--prussian);
  color: #D3E3EC;
  --focus: var(--print);
  padding: var(--gap) 0;
}
.hero-grid { display: grid; gap: var(--gap); align-items: center; }
.hero h1 { color: var(--print); }
.hero .lead { font-size: 1.15rem; color: #B7D0DE; max-width: 32em; }
.hero-media img { margin-inline: auto; max-width: 340px; }

.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 0; margin: 1.75rem 0 0;
}
.trust li {
  border: 1px solid rgba(255, 255, 255, .30);
  color: var(--print);
  padding: .4rem .85rem; border-radius: var(--radius);
  font-size: .9rem;
}

/* ---------- benefits ---------- */

.benefits {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.benefits li { background: var(--print); padding: 1.5rem 1.35rem; }
.benefits h3 { color: var(--cyan-deep); margin-bottom: .4em; }
.benefits p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- content ---------- */

.big { font-size: 1.15rem; }
.split { display: grid; gap: var(--gap); align-items: center; }
.split img { border-radius: var(--radius); }

/* The one authorised health claim on the page — marked so it never drifts. */
.claim {
  border-left: 3px solid var(--cyan-mid);
  padding-left: 1rem; margin-top: 1.5rem;
  font-size: .97rem; color: var(--ink-soft);
}

/* ---------- herbarium: the signature ---------- */

.herbar { background: var(--prussian); color: #D3E3EC; --focus: var(--print); }
.herbar h2 { color: var(--print); }

.plants {
  list-style: none; padding: 0; margin: var(--gap) 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
}
.plants li { text-align: center; }
.plants svg {
  width: 72px; height: 72px; margin: 0 auto .7rem;
  /* Cyanotype: the specimen blocks the light, so it prints white. */
  fill: rgba(255, 255, 255, .10);
  stroke: var(--print);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plants strong {
  display: block; color: var(--print); font-size: .98rem; font-weight: 600;
}
.plants em {
  display: block; margin-top: .1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem; font-style: normal; letter-spacing: .01em;
  color: var(--cyan-mid);
}

/* ---------- declaration table ---------- */

/* Monospace because this is data, and because it reads as a lab sheet —
   which is exactly the trust we want the composition to carry. */
.declaration {
  width: 100%; border-collapse: collapse; margin-top: 1.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9rem; font-variant-numeric: tabular-nums;
}
.declaration th, .declaration td {
  text-align: left; padding: .65rem .5rem;
  border-bottom: 1px solid var(--line-soft);
}
.declaration thead th {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid var(--ink);
}
.declaration td { text-align: right; color: var(--ink-soft); }
.declaration tbody th { font-weight: 400; color: var(--ink); }
.declaration .highlight th, .declaration .highlight td {
  background: #E4EDF2; color: var(--ink); font-weight: 700;
}
.table-note { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; }

details {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin-bottom: .65rem; background: var(--print);
}
details summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details[open] summary { margin-bottom: .65rem; }
details p { margin: 0; color: var(--ink-soft); }
.ingredients { margin-top: var(--gap); }
.ingredients p { font-size: .88rem; }

/* ---------- mandatory notice ---------- */

.notice {
  margin-top: var(--gap);
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 1.3rem 1.5rem;
}
.section-paper .notice { background: var(--print); }
.notice h3 { color: var(--cyan-deep); margin-bottom: .6em; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice li { font-size: .95rem; color: var(--ink-soft); margin-bottom: .45rem; }
.notice li:last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */

.gallery {
  list-style: none; padding: 0; margin: var(--gap) 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
}
/* Source photos mix portrait and landscape; without a fixed ratio the grid
   comes out ragged. Crop to a common frame instead. */
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

/* ---------- videos ---------- */

.videos {
  list-style: none; padding: 0; margin: var(--gap) 0 0;
  display: grid; gap: 1.5rem;
}
.videos video {
  width: 100%; max-width: 320px; height: auto; display: block;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--prussian);
}
.videos span {
  display: block; margin-top: .6rem; text-align: center;
  font-size: .9rem; color: var(--ink-soft);
}

/* ---------- steps ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: .2rem 1.1rem;
  align-items: start;
}
.steps .num {
  grid-row: span 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--cyan-mid); color: var(--cyan-deep);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
}
.steps strong { align-self: center; }
.steps span:not(.num) { color: var(--ink-soft); font-size: .95rem; }

/* ---------- packages ---------- */

.packages {
  list-style: none; padding: 0; margin: var(--gap) 0 0;
  display: grid; gap: 1.25rem;
}
.pkg {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.4rem; text-align: center; background: var(--print);
  display: flex; flex-direction: column; position: relative;
}
.pkg h3 { margin-bottom: .3em; }
.pkg .unit {
  color: var(--ink-soft); font-size: .92rem; margin-bottom: .5em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.pkg .total {
  font-family: Optima, Candara, "Segoe UI", system-ui, sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0 0 .3em;
  font-variant-numeric: tabular-nums;
}
.pkg .detail {
  font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.3rem;
  line-height: 1.55;
}
.pkg .btn { margin-top: auto; }

/* The recommended pack is the deep one — weight, not just a border. */
.pkg-best {
  background: var(--prussian); border-color: var(--prussian);
  color: #D3E3EC;
}
.pkg-best h3, .pkg-best .total { color: var(--print); }
.pkg-best .unit, .pkg-best .detail { color: #A9C3D2; }
.pkg-best .btn-primary { background: var(--print); color: var(--prussian); }
.pkg-best .btn-primary:hover { background: #DCE9F0; }

.badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--cyan-mid); color: var(--prussian);
  padding: .28rem 1rem; border-radius: var(--radius);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin: 0; white-space: nowrap;
}

.price-note {
  margin-top: 1.6rem; font-size: .93rem; color: var(--ink-soft);
  border-left: 3px solid var(--cyan-mid); padding-left: 1rem;
}

/* ---------- form ---------- */

.section-order { background: var(--prussian); color: #D3E3EC; --focus: var(--print); }
.section-order h2 { color: var(--print); }

.order-form {
  background: var(--print); color: var(--ink);
  border-radius: var(--radius); padding: clamp(1.35rem, 3vw, 2.1rem);
  margin-top: 1.6rem;
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; font: inherit; color: var(--ink);
  padding: .85rem 1rem; min-height: 52px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--print);
}
.field input:focus { border-color: var(--cyan-deep); }
.field input[aria-invalid="true"] { border-color: #A32717; }

.consent {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .93rem; color: var(--ink-soft); margin-bottom: 1.5rem;
}
.consent input { width: 24px; height: 24px; flex: none; margin-top: .15rem; accent-color: var(--cyan-deep); }

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

.form-error {
  background: #FBECE9; border-left: 3px solid #A32717; color: #7E1D10;
  padding: .9rem 1.1rem; margin-bottom: 1.25rem;
}

/* ---------- legal pages ---------- */

.legal { padding: var(--gap) 0 calc(var(--gap) * 1.2); }
.legal .wrap > * { max-width: 740px; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: .3em; }
.legal .updated {
  color: var(--ink-soft); font-size: .92rem; margin-bottom: 2.4rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft);
}
.legal h2 {
  font-size: 1.3rem; margin-top: 2.4rem; margin-bottom: .65em;
  padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal p, .legal li { font-size: .98rem; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 1.35rem; }
.legal li { margin-bottom: .45rem; }
.legal dl { margin: 0 0 1.4rem; }
.legal dt { font-weight: 700; margin-top: .85rem; }
.legal dd { margin: .1rem 0 0; color: var(--ink-soft); }

.legal table {
  border-collapse: collapse; width: 100%; margin: 1.1rem 0 1.7rem;
  font-size: .94rem;
}
.legal th, .legal td {
  text-align: left; padding: .65rem .55rem; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.legal th { font-weight: 700; width: 36%; }
.legal td { color: var(--ink-soft); }

.legal .box {
  background: var(--paper); border-left: 3px solid var(--cyan-mid);
  padding: 1.15rem 1.35rem; margin: 1.4rem 0;
}
.legal .box p:last-child { margin-bottom: 0; }

/* Unfilled data — loud on purpose so it cannot ship unnoticed. */
.todo {
  background: #FDF3DC; border-left: 3px solid #B07A12;
  padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: .93rem;
}
.todo strong { color: #7A5209; }
mark.todo-inline {
  background: #FBE6B4; color: #6B4708; padding: .1em .35em; font-weight: 600;
}

.legal-back { margin-top: 2.8rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--prussian); color: #A9C3D2; padding: var(--gap) 0; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid #1D4A6B;
}
.footer-nav a { color: var(--print); text-decoration: underline; font-size: .93rem; }
.footer-legal p { font-size: .9rem; line-height: 1.7; }
.footer-legal strong { color: var(--print); }
.disclaimer {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid #1D4A6B; color: var(--print); font-weight: 600;
}

/* ---------- sticky CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 46, 74, .97);
  border-top: 1px solid #1D4A6B;
}
.sticky-cta .btn { width: 100%; }
body { padding-bottom: 92px; }

/* ---------- cookie banner ---------- */

.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--prussian); color: #D3E3EC;
  border-top: 2px solid var(--print);
  padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
  --focus: var(--print);
}
.cookiebar-inner {
  width: min(var(--wrap), 100% - 2rem); margin-inline: auto;
  display: grid; gap: 1rem;
}
.cookiebar p { margin: 0; font-size: .92rem; line-height: 1.6; }
.cookiebar a { color: var(--print); }
.cookiebar-actions { display: grid; gap: .6rem; }
.cookiebar-actions .btn { width: 100%; min-height: 48px; padding: .75rem 1.3rem; }
.cookiebar .btn-outline {
  background: transparent; color: var(--print); border-color: #4A7797;
}
.cookiebar .btn-outline:hover { background: var(--cyan-deep); }
.cookiebar .btn-primary { background: var(--print); color: var(--prussian); }

body:has(.cookiebar) .sticky-cta { display: none; }

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

@media (min-width: 640px) {
  .cookiebar-inner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
  .cookiebar-actions { grid-auto-flow: column; }
  .cookiebar-actions .btn { width: auto; min-width: 140px; }
}

@media (min-width: 700px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .plants   { grid-template-columns: repeat(3, 1fr); }
  .steps    { grid-template-columns: repeat(2, 1fr); gap: 1.9rem 2.5rem; }
  .gallery  { grid-template-columns: repeat(3, 1fr); }
  .videos   { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 700px) {
  .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

@media (min-width: 861px) {
  .hero-grid  { grid-template-columns: 1fr 380px; }
  .split      { grid-template-columns: 1fr 1fr; }
  .benefits   { grid-template-columns: repeat(4, 1fr); }
  .header-cta { display: inline-block; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
  .btn-lg { width: auto; min-width: 280px; }
}
