/* ================================================================
   HUNTLOGIC COMPLIANCE STORE  |  style.css
   Palette: Teal #2A9D8F  |  Off-white #F7F9F8
   Font: Inter (Google Fonts)
   ================================================================ */

:root {
  --teal:        #2A9D8F;
  --teal-dark:   #1F7A70;
  --teal-hover:  #196159;
  --teal-light:  #E6F5F3;
  --teal-mid:    #4EBFB1;
  --offwhite:    #F7F9F8;
  --white:       #FFFFFF;
  --text-dark:   #1A2B29;
  --text-mid:    #4C6B65;
  --text-light:  #8AACAA;
  --border:      #D0E8E5;
  --shadow-sm:   0 1px 4px rgba(42,157,143,.08);
  --shadow-md:   0 4px 16px rgba(42,157,143,.13);
  --shadow-lg:   0 12px 40px rgba(42,157,143,.18);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --ease: all .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--teal); text-decoration: none; }

/* ── Utilities ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(247,249,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-mark svg { width: 20px; height: 20px; }

.nav__tagline {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 400;
  display: none;
}

@media (min-width: 540px) { .nav__tagline { display: block; } }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 80px;
  text-align: center;
  background: linear-gradient(160deg, var(--teal-light) 0%, var(--offwhite) 60%);
}

.hero__badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-dark);
  max-width: 720px;
  margin: 0 auto 18px;
}

.hero__title span { color: var(--teal); }

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
}

.hero__cta:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-mid);
  font-weight: 500;
}

.hero__trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ── SHOP SECTION ───────────────────────────────────────────────── */
.shop { padding: 64px 0 80px; }

.shop__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .shop__header { flex-direction: row; align-items: center; justify-content: space-between; }
}

.shop__title { font-size: 1.5rem; font-weight: 700; }

/* ── CATEGORY FILTERS ───────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
}

.filter-btn:hover { border-color: var(--teal); color: var(--teal); }

.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ── PRODUCT GRID ───────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── PRODUCT CARD ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card:hover::before { transform: scaleX(1); }

.card__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 14px;
  width: fit-content;
}

.card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card__desc {
  font-size: .875rem;
  color: var(--text-mid);
  flex: 1;
  line-height: 1.55;
  margin-bottom: 20px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
}

.card__price span { font-size: .8rem; font-weight: 500; color: var(--text-light); }

.card__btn {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: var(--r-sm);
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
}

.card__btn:hover { background: var(--teal); color: var(--white); }

/* ── DRAWER OVERLAY ─────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,43,41,.52);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.overlay.active { opacity: 1; pointer-events: all; }

/* ── PRODUCT DRAWER ─────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer__close {
  position: absolute;
  top: 16px; left: 16px;
  width: 36px; height: 36px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease);
  z-index: 10;
}

.drawer__close:hover { background: var(--teal-light); border-color: var(--teal); }

.drawer__header {
  padding: 56px 28px 24px;
  border-bottom: 1px solid var(--border);
}

.drawer__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 12px;
  width: fit-content;
}

.drawer__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}

.drawer__tagline {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.drawer__body { padding: 24px 28px; flex: 1; }

.drawer__section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.drawer__desc {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq { margin-bottom: 24px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 0;
}

.faq-q svg { flex-shrink: 0; transition: transform .2s ease; color: var(--teal); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding-top: 10px;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* ── DRAWER FOOTER (BUY) ────────────────────────────────────────── */
.drawer__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  bottom: 0;
}

.drawer__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.drawer__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal);
}

.drawer__format {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
}

.buy-btn {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.buy-btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.buy-btn:active { transform: translateY(0); }

.drawer__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--text-light);
}

/* ── HOW IT WORKS ───────────────────────────────────────────────── */
.how { padding: 72px 0; background: var(--teal-light); }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub { font-size: 1rem; color: var(--text-mid); max-width: 520px; line-height: 1.65; margin-bottom: 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step__desc  { font-size: .875rem; color: var(--text-mid); line-height: 1.55; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 640px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer__brand-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer__brand-desc { font-size: .875rem; line-height: 1.6; }

.footer__heading { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color .18s ease; }
.footer__links a:hover { color: var(--teal-mid); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .8rem;
}

@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer__pf {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ── SUCCESS PAGE ───────────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg { color: var(--teal); }

.success-title { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.success-sub   { font-size: 1rem; color: var(--text-mid); max-width: 480px; margin: 0 auto 40px; line-height: 1.65; }

.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  transition: var(--ease);
  max-width: 560px;
  width: 100%;
}

.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }

.download-card__info { flex: 1; }
.download-card__cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin-bottom: 4px; }
.download-card__name { font-size: .95rem; font-weight: 600; color: var(--text-dark); }

.dl-btn {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dl-btn:hover { background: var(--teal-dark); color: var(--white); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--text-mid);
  font-size: .9rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 20px;
  transition: var(--ease);
}

.back-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ── Scroll-reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── CHECKOUT MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,43,41,.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(20px);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease);
}
.modal__close:hover { background: var(--teal-light); border-color: var(--teal); }

.modal__product {
  background: var(--teal-light);
  border-radius: var(--r-sm);
  padding: .7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.modal__product-name { font-size: .875rem; font-weight: 600; color: var(--text-dark); }
.modal__product-price { font-size: 1rem; font-weight: 700; color: var(--teal); white-space: nowrap; }

.modal__title { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: .3rem; }
.modal__sub   { font-size: .85rem; color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.55; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .75rem;
}
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-dark); }
.form-required { color: var(--teal); }

.form-group input[type="text"],
.form-group input[type="email"] {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .625rem .75rem;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus { border-color: var(--teal); }
.form-group input.input-error { border-color: #E55353; }

.form-hint { font-size: .75rem; color: var(--text-light); min-height: 1rem; }
.form-hint.hint-error { color: #E55353; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}
.form-check label { font-size: .8125rem; color: var(--text-mid); cursor: pointer; line-height: 1.5; }

.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .3rem;
}
.role-btn {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--r-sm);
  padding: .65rem .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
  text-align: center;
  line-height: 1.35;
}
.role-btn small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}
.role-btn:hover              { border-color: var(--teal); color: var(--teal-dark); }
.role-btn:hover small        { color: var(--teal); }
.role-btn.selected           { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }
.role-btn.selected small     { color: var(--teal); }
.role-btn.role-btn-error     { border-color: #E55353; }

.modal__pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: .875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
}
.modal__pay-btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.modal__pay-btn:active { transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 48px 0 56px; }
  .hero__title { font-size: 1.7rem; }
  .drawer { width: 100vw; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 1.5rem; }
}
