/* Savorpak — static site styles. No external fonts or requests. Compact layout: less scrolling. */

:root {
  --ink: #0a2a3a;
  --ink-soft: #3c5766;
  --water: #1abbe3;
  --water-deep: #0d6f92;
  --foam: #e6f8fc;
  --band: #d8f4fa;
  --white: #ffffff;
  --line: #c4e7f1;
  --radius: 14px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

img, svg { max-width: 100%; height: auto; }

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header ------------------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand img { display: block; height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--water); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: var(--water); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--water); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--water); color: var(--ink); }
.site-nav .btn-primary { color: var(--ink); padding: 8px 16px; }
.site-nav .btn-primary:hover { color: var(--white); text-decoration: none; }

/* Hero banner (slider) ---------------------------------------------- */

.hero { background: var(--foam); overflow: hidden; }

.hero .wrap { padding-top: 22px; padding-bottom: 12px; }

/* Slides share one grid cell so the height never jumps */
.slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.hero h1, .hero .slide-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 6.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
}

.hero p.lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.slide-visual { display: grid; place-items: center; }

.bottle { position: relative; display: block; width: 76px; aspect-ratio: 332 / 591; }
.bottle img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.b-water { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .b-water { animation: fill 2.8s cubic-bezier(.3, .6, .25, 1) 0.2s both; }
}
@keyframes fill {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.qr-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 10px 8px;
  width: 170px;
  text-align: center;
}
.qr-card img { display: block; width: 100%; }
.qr-card p { margin: 4px 0 0; font-weight: 800; font-size: 1rem; }

.slider-controls { display: none; align-items: center; gap: 6px; padding-top: 12px; }
.js .slider-controls { display: flex; }

.sl-arrow, .sl-pause {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.sl-arrow { width: 34px; height: 34px; font-size: 1.15rem; line-height: 1; }
.sl-pause { padding: 5px 14px; font-size: 0.9rem; margin-left: 6px; }
.sl-arrow:hover, .sl-pause:hover { background: var(--water); }

.sl-dots { display: flex; gap: 2px; }
.sl-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sl-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
}
.sl-dot[aria-current="true"]::before { background: var(--water); }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

/* Info: About + How it works side by side ---------------------------- */

.info { padding: 22px 0 26px; }
.info .wrap { display: grid; grid-template-columns: 1fr; gap: 18px; }

.info h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.info p { margin: 0; max-width: 52ch; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 34px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--water);
  color: var(--ink);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.3; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; max-width: 38ch; }

/* Get-the-app band ---------------------------------------------------- */

.band { background: var(--band); color: var(--ink); }
.band .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.band h2 { color: var(--ink); margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.band p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; line-height: 1.4; }

.qr {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 7px;
  width: 108px;
}
.qr img { display: block; width: 100%; }

/* Content pages ------------------------------------------------------ */

.page { padding: 26px 0 36px; }
.page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.page .intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 16px; font-size: 1.05rem; }
.page h2 { margin: 20px 0 4px; font-size: 1.15rem; letter-spacing: -0.01em; }
.page p, .page li { max-width: 72ch; margin-top: 0; margin-bottom: 8px; }
.page ul { padding-left: 1.2rem; margin: 0; }

.page .contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 520px; }
.contact-list li { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 0; }
.contact-list strong { display: block; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.contact-list a, .contact-list .contact-text { font-size: 1.15rem; font-weight: 700; }
.contact-list a.btn { font-size: 1rem; margin-top: 4px; }

.updated { color: var(--ink-soft); font-size: 0.95rem; }

/* Footer ------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); padding: 14px 0 18px; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* Larger screens ---------------------------------------------------- */

@media (min-width: 820px) {
  .hero .wrap { padding-top: 26px; padding-bottom: 12px; }
  .slide { grid-template-columns: 1.3fr 1fr; gap: 32px; }
  .slide-visual { justify-items: end; }
  .bottle { width: 112px; }

  .info { padding: 26px 0 30px; }
  .info .wrap { grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: start; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px 28px; }

  .band .wrap { padding-top: 20px; padding-bottom: 20px; }
  .qr { width: 120px; }
}

/* Floating WhatsApp button, bottom right of every page ------------- */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 18px rgba(10, 42, 58, 0.35);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Keep the footer links clear of the floating button */
.site-footer { padding-bottom: 76px; }

/* Sign-up page ------------------------------------------------------- */

[hidden] { display: none !important; }

/* Offer bar on the sign-up page: orange tag + words */
.promo-reg { background: linear-gradient(90deg, #14b6e0, #5fd3f0 60%, #8fe0f5); }
.promo-reg p { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 16px; }
.promo-tag {
  display: inline-block;
  padding: 4px 14px 4px 12px;
  background: linear-gradient(180deg, #ff8a2a, #e85d04);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  transform: rotate(-3deg);
  clip-path: polygon(0 4%, 100% 0, 97% 100%, 3% 96%);
}
.promo-text { font-weight: 800; font-size: 1.15rem; color: var(--ink); }

.reg {
  position: relative;
  padding: 140px 0 34px;
  background: #d4f4fd url("reg-bg.jpg") center top / 100% auto no-repeat;
  overflow: hidden;
}
@media (min-width: 900px) {
  .reg { padding-top: 90px; }
}
.reg .wrap { position: relative; z-index: 1; }

.reg-card {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 52px 22px 96px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfeaf4;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(13, 111, 146, 0.16);
}
.reg-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: url("reg-wave.svg") bottom / 100% 100% no-repeat;
  border-radius: 0 0 28px 28px;
  pointer-events: none;
}
.reg-card > * { position: relative; z-index: 1; }

.reg-avatar {
  position: absolute !important;
  top: -42px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 84px;
  display: grid; place-items: center;
  background: #d8f4fa;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(13, 111, 146, 0.18);
  z-index: 2;
}
.reg-avatar svg { width: 40px; height: 40px; fill: none; stroke: #0f93b5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.reg-card h1 { margin: 0 0 6px; text-align: center; font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.reg-card p { margin: 0 0 12px; max-width: 60ch; }
.reg-sub { color: var(--ink); text-align: center; margin-left: auto !important; margin-right: auto !important; }

.reg-badge {
  width: fit-content;
  margin: 0 auto 12px !important;
  padding: 4px 14px;
  background: #d8f4fa;
  border: 2px solid #0f93b5;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.reg-alert {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #fdecea;
  border: 2px solid #b3261e;
  border-radius: 14px;
  color: #7a1510;
  font-weight: 600;
}

.reg-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
.reg-field label { display: block; margin: 0 0 4px 4px; font-weight: 800; font-size: 0.97rem; }

.reg-input { position: relative; }
.reg-ico {
  position: absolute; left: 16px; top: 50%;
  width: 22px; height: 22px;
  transform: translateY(-50%);
  fill: none; stroke: #0f93b5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.reg-input input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px 10px 50px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #bfdff0;
  border-radius: 999px;
}
.reg-input.has-toggle input { padding-right: 52px; }
.reg-input input::placeholder { color: #5d7886; }
.reg-input input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.reg-input input.is-invalid { border-color: #b3261e; }

.reg-toggle {
  position: absolute; right: 6px; top: 50%;
  width: 40px; height: 40px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.reg-toggle:hover { background: #e6f8fc; }
.reg-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.reg-toggle svg { width: 24px; height: 24px; fill: none; stroke: #0f93b5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reg-toggle .eye-off { display: none; }
.reg-toggle[aria-pressed="true"] .eye-open { display: none; }
.reg-toggle[aria-pressed="true"] .eye-off { display: block; }

.reg-error { margin: 4px 0 0 6px !important; color: #b3261e; font-size: 0.9rem; font-weight: 600; }

.reg-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 2px 8px; }
.reg-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #0f93b5; }
.reg-check label { font-size: 0.93rem; }

.reg-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 20px;
  font: inherit; font-weight: 800; font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #0f9cbc, #0a7d9a);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(10, 125, 154, 0.3);
  cursor: pointer;
}
.reg-submit:hover { filter: brightness(1.06); }
.reg-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.reg-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.reg-submit svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.reg-login { margin: 14px 0 0 !important; text-align: center; color: var(--ink); font-size: 1rem; }
.reg-login a { color: #0b5fb0; font-weight: 800; text-decoration: none; }
.reg-login a:hover, .reg-login a:focus-visible { text-decoration: underline; }

.reg-done { padding-bottom: 96px; }
.reg-done p { text-align: center; margin-left: auto; margin-right: auto; }

@media (min-width: 620px) {
  .reg-card { padding: 54px 34px 100px; }
}

/* Device-aware: QR codes and "scan" wording only on desktop-style screens ---
   A phone or tablet (touch, no mouse) or a narrow window gets a plain
   "download" message instead, because scanning a code on the same phone makes no sense. */

.scan-only { display: none; }
.download-only { display: inline; }

@media (hover: hover) and (pointer: fine) and (min-width: 820px) {
  .scan-only { display: inline; }
  .qr.scan-only { display: block; }
  .slide-visual.scan-only { display: grid; }
  .download-only { display: none; }
  .band .wrap { grid-template-columns: 1fr auto; }
}

/* Promo bar --------------------------------------------------------- */

.promo { background: var(--water); color: var(--ink); text-align: center; }
.promo p { margin: 0; padding: 7px 20px; font-size: 15px; line-height: 1.3; }
.promo a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.promo a:hover { text-decoration: none; }

/* Home-page offer badge --------------------------------------------- */

.hero .wrap { position: relative; }
.promo-badge {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 14px;
  width: 100px;
  transform: rotate(8deg);
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 6px rgba(10, 42, 58, 0.25));
}
.promo-badge svg { display: block; width: 100%; height: auto; }
.promo-badge:hover { transform: rotate(0deg) scale(1.05); }

/* Phones and small tablets: the headline sits on three short lines, which leaves room for the badge
   beside the bottle (left of its cap and neck). Laptops are not affected. */
.m-br { display: none; }
@media (max-width: 819px) {
  .m-br { display: block; }
  .promo-badge { width: clamp(64px, calc(49vw - 112px), 112px); top: 8px; right: 80px; }
  .bottle { margin-top: 18px; }
  /* slide 2 has no picture, so the badge moves to the right edge and its words stop short of it */
  .hero:has(.slide:nth-child(2).is-active) .promo-badge { right: 20px; }
  .slide:nth-child(2) .slide-title { padding-right: calc(clamp(64px, calc(49vw - 112px), 112px) + 36px); }
  .slide:nth-child(2) p.lead { max-width: none; }
}

/* Tablets and computers: the badge sits between the words and the picture / QR code */
@media (min-width: 820px) {
  .promo-badge { width: 130px; right: 210px; top: 16px; transform: rotate(-8deg); }
  .promo-badge:hover { transform: rotate(0deg) scale(1.05); }
}
@media (min-width: 1200px) {
  .promo-badge { width: 170px; right: 250px; top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-badge { transition: none; }
}
