/* Reydeance bacteriostatic-water mini-site.
   Palette and framing taken from the live Reydeance storefront:
   paper #f7f5f2, navy #0b2748 / #011947, foil #ae0144, hairline #dde1e7. */

:root {
  --paper: #f7f5f2;
  --paper-lift: #ffffff;
  --panel: #e8ebf0;
  --panel-alt: #dde1e7;
  --ink: #172234;
  --navy: #0b2748;
  --navy-deep: #011947;
  --foil: #ae0144;
  --mid: #667080;
  --hairline: #dde1e7;
  --control: #667080;
  --danger: #8a3a2e;
  --ok: #4f6b4a;
  --radius-btn: 8px;
  --radius-card: 12px;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 16px 50px rgba(1, 25, 71, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

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

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-btn);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

/* ---- research-use strip + header ---------------------------------------- */
.strip { background: var(--foil); color: #fff; }
.strip p {
  margin: 0; padding-block: 8px;
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.45;
  text-transform: uppercase; letter-spacing: .1em; text-wrap: pretty;
}

.site-header { background: var(--paper-lift); border-bottom: 1px solid var(--hairline); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.lockup img { height: 30px; width: auto; }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.bar-link {
  display: none; font-size: .875rem; color: var(--mid); text-decoration: none;
}
.bar-link:hover { color: var(--navy-deep); text-decoration: underline; }
@media (min-width: 640px) { .bar-link { display: inline; } }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  border-radius: var(--radius-btn);
  font: inherit; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--control); }
.btn-ghost:hover { background: var(--panel); color: var(--navy-deep); border-color: var(--navy); }
.btn-foil { background: var(--foil); border-color: var(--foil); }
.btn-foil:hover { background: #8d0136; border-color: #8d0136; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---- type --------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--foil);
}
h1, h2, h3 { color: var(--navy-deep); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 400; letter-spacing: -.028em; line-height: 1; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.005em; }
.lede { font-size: 1.125rem; color: var(--ink); max-width: 34rem; margin: 18px 0 0; }
.muted { color: var(--mid); }
.small { font-size: .875rem; }

/* ---- hero --------------------------------------------------------------- */
.hero { padding-block: 36px 44px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } .hero { padding-block: 72px 80px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-pic {
  margin: 0 auto; width: min(100%, 360px);
  border-radius: 16px; overflow: hidden; background: var(--panel);
  box-shadow: 0 2px 4px rgba(23,34,52,.08), 0 12px 32px rgba(23,34,52,.12);
}
.hero-pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---- sections ----------------------------------------------------------- */
.section { padding-block: 44px; }
.section-alt { background: var(--paper-lift); border-block: 1px solid var(--hairline); }
.section-head { margin-bottom: 28px; max-width: 40rem; }

.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper-lift); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--font-mono); font-size: 1.25rem; color: var(--navy-deep); }
.card .btn { margin-top: 12px; }

.points { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.points li { border-top: 2px solid var(--navy); padding-top: 12px; }
.points strong { display: block; color: var(--navy-deep); margin-bottom: 4px; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 44rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; min-height: 52px; padding: 14px 32px 14px 0; position: relative;
  font-weight: 600; color: var(--navy-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.4rem; color: var(--foil);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--ink); max-width: 38rem; }

.cta-band { background: var(--navy-deep); color: #fff; padding-block: 52px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d1de; margin: 14px auto 26px; max-width: 32rem; }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #c9d1de; padding-block: 36px 28px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer img { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 20px; padding: 0; list-style: none; }
.footer-row a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-disclaimer {
  margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: #fff;
}

/* ---- order page --------------------------------------------------------- */
.order-head { padding-block: 28px 8px; }
.order-grid { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 22rem; align-items: start; gap: 40px; } }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.panel {
  background: var(--paper-lift); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.panel > legend, .panel-title {
  display: block; width: 100%; padding: 0; margin: 0 0 14px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--foil);
}
.legend-reset { float: left; width: 100%; }
.legend-reset + * { clear: both; }

.line {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--hairline);
}
.line:first-of-type { border-top: 0; padding-top: 0; }
.line img { width: 76px; height: 95px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.line-info { min-width: 0; }
.line-name { font-weight: 600; color: var(--navy-deep); }
.line-price { font-family: var(--font-mono); color: var(--navy-deep); }
.line-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--control); border-radius: var(--radius-btn); overflow: hidden; background: #fff; }
.stepper button {
  width: 44px; min-height: 44px; border: 0; background: var(--panel); color: var(--navy-deep);
  font: inherit; font-size: 1.25rem; cursor: pointer;
}
.stepper button:hover { background: var(--panel-alt); }
.stepper input {
  width: 56px; border: 0; text-align: center; font: inherit; font-family: var(--font-mono); color: var(--ink);
  background: #fff; -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-total { font-family: var(--font-mono); color: var(--ink); }

.fields { display: grid; gap: 16px; }
@media (min-width: 560px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .9rem; color: var(--navy-deep); }
.field .hint { font-size: .8rem; color: var(--mid); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--control); border-radius: var(--radius-btn);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--foil); outline-offset: 1px; border-color: var(--navy); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #fdf6f4; }
.field-error { margin: 0; font-size: .85rem; color: var(--danger); font-weight: 600; }
.field-error:empty { display: none; }
.dob { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; }

/* honeypot: off-canvas, never display:none */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.consent { border: 1px solid var(--hairline); border-radius: var(--radius-btn); margin-bottom: 14px; background: var(--paper); }
.consent-text {
  max-height: 13rem; overflow: auto; padding: 12px 14px; font-size: .84rem; line-height: 1.5; color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.consent-text p { margin: 0 0 6px; }
.consent-text p:last-child { margin-bottom: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy-deep); }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--navy); }
.consent.has-error { border-color: var(--danger); }

.sig-modes { display: flex; gap: 8px; margin-bottom: 10px; }
.sig-modes label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--control); border-radius: var(--radius-btn); cursor: pointer; font-weight: 600; background: #fff;
}
.sig-modes input { position: absolute; opacity: 0; pointer-events: none; }
.sig-modes input:checked + span { color: #fff; }
.sig-modes label:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.sig-modes label:has(input:focus-visible) { outline: 3px solid var(--foil); outline-offset: 2px; }
.sig-box { border: 1px solid var(--control); border-radius: var(--radius-btn); background: #fff; overflow: hidden; }
.sig-box canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; }
.sig-type input { border: 0 !important; border-radius: 0 !important; font-size: 1.4rem !important; font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive !important; min-height: 70px !important; }
.sig-clear { margin-top: 8px; }
[hidden] { display: none !important; }

/* summary */
.summary { position: sticky; top: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.summary dt { color: var(--mid); }
.summary dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.summary .total dt, .summary .total dd { color: var(--navy-deep); font-weight: 600; border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: 4px; }
.notice { font-size: .85rem; color: var(--mid); margin: 14px 0 0; }

.alert { border: 1px solid var(--danger); background: #fdf6f4; color: var(--danger); border-radius: var(--radius-btn); padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.alert:empty { display: none; }

.done { text-align: left; }
.done .ref {
  display: inline-block; margin: 14px 0; padding: 14px 20px; border: 2px solid var(--navy); border-radius: var(--radius-btn);
  font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: .08em; color: var(--navy-deep); word-break: break-all;
}

.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; }

/* ---- floating WhatsApp pill --------------------------------------------- */
.wa-pill {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; min-width: 48px; padding: 0 20px 0 16px;
  background: #0e7a5f; color: #fff; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none;
  box-shadow: 0 4px 14px rgba(1, 25, 71, .28);
  transition: background .15s, transform .15s;
}
.wa-pill:hover { background: #0a6450; color: #fff; transform: translateY(-1px); }
.wa-pill:focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 3px; }
.wa-pill svg { flex: none; width: 24px; height: 24px; }
/* very narrow screens: icon only, 48px round target */
@media (max-width: 359px) {
  .wa-pill { padding: 0; width: 48px; }
  .wa-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
/* keep the last content clear of the pill */
.site-footer { padding-bottom: calc(28px + 64px + env(safe-area-inset-bottom)); }
#submit { scroll-margin-bottom: 96px; }
@media (prefers-reduced-motion: reduce) { .wa-pill:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
