:root {
  --purple: #37208a;
  --purple-deep: #2d167e;
  --orange: #ff5a0a;
  --ink: #434343;
  --line: #dedede;
  --page: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: #ececec;
  font-family: "Lexend", sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 1122px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  border: 1px solid #ddd;
  border-radius: 13px;
  box-shadow: 0 12px 45px rgba(32, 23, 17, .08);
}

.site-header {
  height: 78px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  letter-spacing: -1.8px;
}

.brand-livpure { color: var(--purple); font-size: 29px; font-weight: 700; }
.brand-smart { color: var(--orange); font-size: 25px; font-weight: 400; margin-left: 4px; }
.brand-drop { display: inline-block; width: 19px; height: 19px; margin-left: 1px; transform: translateY(-8px); }
.brand-drop svg { width: 100%; fill: #ef4425; }
.brand-drop .drop-shine { fill: white; }

.plans-link {
  color: var(--purple-deep);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.plans-link:hover { color: var(--orange); }
.plans-link:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(255,90,10,.35); outline-offset: 3px; }

.hero {
  position: relative;
  height: 245px;
  border-bottom: 10px solid #b7bdc3;
  background-image: url("assets/purifier-hero.png");
  background-size: cover;
  background-position: center center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -10px;
  height: 5px;
  background: linear-gradient(90deg,#d9dde0 0 11%, #aab0b5 11% 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 53%;
  padding: 14px 0 0 36px;
}

.hero h1 {
  margin: 0;
  color: var(--purple);
  font-size: 37px;
  line-height: 1.18;
  letter-spacing: -1.7px;
  font-weight: 700;
}

.hero h1 span { color: var(--orange); white-space: nowrap; }
.hero h1 sup { font-size: .45em; top: -.9em; position: relative; }

.hero-copy > p {
  margin: 8px 0 10px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.6px;
}

.trust-badge {
  width: 240px;
  min-height: 58px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e7e0f7;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 0 20px rgba(74,39,146,.02);
  font-size: 12px;
  line-height: 1.6;
}

.trust-badge strong { display: block; color: var(--purple); font-size: 13px; }
.shield-icon { flex: 0 0 40px; }
.shield-icon svg { display: block; width: 40px; fill: none; stroke: var(--purple); stroke-width: 2.4; }

.conversion { padding: 25px 43px 28px; background: #fff; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.benefit-card {
  min-width: 0;
  min-height: 116px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #f0eeee;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(31,24,17,.11);
}

.benefit-icon {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fbf9ff 8%, #f2edfb 100%);
}
.benefit-icon svg { width: 55px; height: 55px; fill: none; stroke: #4b2a9c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card div { display: flex; flex-direction: column; color: var(--purple); }
.benefit-card strong { font-size: 30px; line-height: 1.05; font-weight: 600; }
.benefit-card div span { margin-top: 5px; font-size: 18px; white-space: nowrap; }

.primary-cta, .secondary-cta, .modal-submit {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.offer-tagline {
  margin: 24px 0 -20px;
  color: var(--purple-deep);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.primary-cta {
  width: 100%;
  max-width: 782px;
  min-height: 68px;
  margin: 31px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(105deg, #ff6208, #ff530a);
  box-shadow: 0 8px 20px rgba(255,85,9,.17);
  font-size: 27px;
}

.primary-cta:hover, .modal-submit:hover { transform: translateY(-2px); box-shadow: 0 11px 24px rgba(255,85,9,.24); }
.primary-cta:active, .secondary-cta:active, .modal-submit:active { transform: translateY(1px); }

.proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 17px;
  font-weight: 600;
}
.proof-item { display: inline-flex; align-items: center; gap: 13px; }
.mini-shield { width: 29px; fill: var(--purple); }
.mini-shield path:last-child { fill: none; stroke: #fff; stroke-width: 2; }
.play-icon { width: 29px; }
.proof-dot { font-size: 25px; }

.why-card {
  min-height: 254px;
  margin-top: 29px;
  padding: 30px 27px 27px;
  border-radius: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 16% 15%, rgba(223,211,255,.28), transparent 37%),
    radial-gradient(circle at 90% 80%, rgba(236,225,255,.34), transparent 38%),
    #fbf9ff;
}

.why-card h2 { margin: 0; color: var(--purple-deep); font-size: 31px; letter-spacing: -1px; }
.title-mark { display: block; width: 46px; height: 4px; margin: 12px auto 13px; border-radius: 999px; background: var(--orange); }
.why-card p { margin: 0; font-size: 18px; line-height: 1.5; }
.secondary-cta {
  min-width: 438px;
  min-height: 56px;
  margin-top: 20px;
  padding: 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 11px;
  color: var(--orange);
  background: #fff;
  font-size: 18px;
}
.secondary-cta:hover { color: #fff; background: var(--orange); }

.availability-modal { width: min(92vw, 480px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 26px 80px rgba(26,15,60,.28); }
.availability-modal::backdrop { background: rgba(25,20,39,.62); backdrop-filter: blur(4px); }
.modal-card { position: relative; padding: 35px 38px 38px; }
.modal-close { position: absolute; top: 13px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #555; background: transparent; cursor: pointer; font-size: 32px; }
.modal-close:hover { background: #f2eff9; }
.modal-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); font-size: 28px; }
.modal-card h2 { margin: 18px 0 7px; color: var(--purple); font-size: 27px; }
.modal-card > p { margin: 0 0 24px; line-height: 1.55; }
.modal-card label { display: block; margin: 0 0 8px; color: #292929; font-size: 14px; font-weight: 600; }
.modal-card input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid #c9c4d8; border-radius: 9px; font-size: 18px; }
.modal-card input:focus { border-color: var(--purple); outline: 3px solid rgba(55,32,138,.15); }
.modal-submit { width: 100%; height: 55px; margin-top: 16px; border-radius: 9px; color: #fff; background: var(--orange); font-size: 18px; }
.form-message { min-height: 22px; margin: 14px 0 0 !important; color: var(--purple); font-size: 14px; font-weight: 600; text-align: center; }

@media (max-width: 900px) {
  .page-shell { border-radius: 0; border: 0; }
  .site-header { padding: 0 26px; }
  .hero-copy { padding-left: 32px; width: 58%; }
  .hero h1 { font-size: clamp(39px, 6vw, 49px); }
  .hero-copy > p { font-size: 22px; }
  .conversion { padding-inline: 28px; }
  .benefit-grid { gap: 16px; }
  .benefit-card { padding: 15px 12px; gap: 10px; }
  .benefit-icon { width: 67px; height: 67px; flex-basis: 67px; }
  .benefit-icon svg { width: 50px; height: 50px; }
  .benefit-card strong { font-size: 29px; }
  .benefit-card div span { font-size: 16px; }
}

@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 15px; }
  .brand { letter-spacing: -1px; }
  .brand-livpure { font-size: 22px; }
  .brand-smart { font-size: 18px; margin-left: 3px; }
  .brand-drop { width: 14px; height: 14px; transform: translateY(-6px); }
  .plans-link { font-size: 11px; }
  .hero {
    height: 250px;
    border-bottom-width: 7px;
    background-size: auto 72%;
    background-position: 68% bottom;
    background-repeat: no-repeat;
    background-color: #faf9f7;
  }
  .hero::after { bottom: -7px; height: 4px; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0 48%, rgba(255,255,255,.86) 62%, transparent 100%); }
  .hero-copy { width: 74%; padding: 10px 10px 0; }
  .hero h1 { font-size: clamp(23px, 7vw, 30px); line-height: 1.14; letter-spacing: -1px; }
  .hero-copy > p { margin: 6px 0 7px; font-size: 12px; line-height: 1.3; }
  .trust-badge { width: 198px; min-height: 46px; padding: 4px 7px; gap: 7px; font-size: 9px; border-radius: 7px; }
  .trust-badge strong { font-size: 10px; }
  .shield-icon, .shield-icon svg { width: 30px; flex-basis: 30px; }
  .conversion { padding: 16px 12px 20px; }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .benefit-card { min-width: 0; min-height: 113px; padding: 9px 4px 8px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 11px; text-align: center; }
  .benefit-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .benefit-icon svg { width: 35px; height: 35px; }
  .benefit-card strong { font-size: 21px; }
  .benefit-card div span { margin-top: 2px; font-size: clamp(10px, 3vw, 12px); }
  .offer-tagline { margin: 17px 0 -11px; font-size: 14px; }
  .primary-cta { min-height: 56px; margin: 20px auto 15px; padding: 7px 13px; border-radius: 9px; font-size: 18px; line-height: 1.2; }
  .proof-row { flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
  .proof-dot { display: none; }
  .mini-shield, .play-icon { width: 22px; }
  .why-card { min-height: 0; margin-top: 20px; padding: 24px 14px; border-radius: 12px; }
  .why-card h2 { font-size: 23px; }
  .title-mark { width: 38px; margin-block: 10px; }
  .why-card p { font-size: 13px; }
  .secondary-cta { min-width: 0; width: 100%; min-height: 49px; margin-top: 17px; padding: 0 11px; font-size: 14px; }
  .modal-card { padding: 32px 23px 30px; }
}

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