/* =========================================================
   Bee Venom Eye Cream — Landing Page Styles
   Design tokens: honey/gold palette + honeycomb signature
   ========================================================= */

:root {
  /* Color tokens */
  --cream: #FBF3E2;
  --cream-deep: #F3E7CC;
  --paper: #FFFDF8;
  --ink: #3A2712;
  --ink-soft: #6B4E2E;
  --gold: #C79A3C;
  --gold-light: #E9C77E;
  --gold-dark: #9C7423;
  --emerald: #1F6E56;
  --emerald-dark: #16503F;
  --emerald-tint: #E4F1EC;
  --urgency: #B23A2E;
  --urgency-tint: #FBE7E4;
  --white: #FFFFFF;
  --star: #E3A62F;

  /* Type */
  --font-display: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  /* Layout */
  --max-w: 480px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px -12px rgba(58, 39, 18, 0.25);
  --shadow-card: 0 4px 16px -4px rgba(58, 39, 18, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-deep);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px; /* space for sticky CTA */
}

.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.35;
}

h2 { font-size: clamp(21px, 5.5vw, 25px); font-weight: 800; text-align: center; }
h2 span { color: var(--gold-dark); }
p { line-height: 1.75; margin: 0 0 12px; color: var(--ink-soft); }

/* ---------- Honeycomb divider (signature motif) ---------- */
.hex-divider {
  height: 22px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34' viewBox='0 0 40 34'%3E%3Cpolygon points='10,1 30,1 39,17 30,33 10,33 1,17' fill='none' stroke='%23C79A3C' stroke-width='1.4' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}

/* ---------- Urgency bar ---------- */
.urgency-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--urgency), #8f2c22);
  color: var(--white);
  text-align: center;
  padding: 9px 10px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.urgency-bar strong {
  background: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 20px 18px 22px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 900;
}
.hero h1 span { color: var(--gold-dark); }
.hero-sub {
  font-size: 15px;
  max-width: 380px;
  margin: 0 auto 16px;
}
.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--white);
  margin-bottom: 14px;
}
.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.rating-text { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }

.price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.price-old {
  font-size: 17px;
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: 0.7;
}
.price-new {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--emerald-dark);
}
.price-new span { font-size: 16px; font-weight: 700; }
.discount-badge {
  background: var(--urgency);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.cta-btn, .submit-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  padding: 16px 18px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px -6px rgba(31, 110, 86, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:active, .submit-btn:active { transform: scale(0.98); }
.cta-note {
  font-size: 12.5px;
  margin-top: 10px;
  color: var(--ink-soft);
}

/* ---------- Trust row ---------- */
.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: var(--paper);
}
.trust-item {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.trust-item span { font-size: 20px; }

/* ---------- Sections generic ---------- */
section { padding: 30px 18px; }
.section-sub {
  text-align: center;
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 18px;
}
.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.image-frame.small { max-width: 260px; margin: 18px auto 0; }
.caption {
  text-align: center;
  font-size: 13.5px;
  font-style: normal;
  color: var(--ink-soft);
}

/* ---------- Problem/Agitate ---------- */
.problem { background: var(--paper); }
.problem-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.hex-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.problem-solution {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--emerald-dark);
  font-size: 15.5px;
}

/* ---------- Before / After & Mechanism ---------- */
.before-after, .mechanism { text-align: center; }
.mechanism p { text-align: center; max-width: 380px; margin: 0 auto; }

/* ---------- Ingredients ---------- */
.ingredients { background: var(--paper); }
.ingredients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 6px;
}
.ingredient-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
}
.ingredient-icon.hex {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.ingredient-card h3 {
  font-size: 14.5px;
  margin-bottom: 4px;
}
.ingredient-card p {
  font-size: 12.5px;
  margin: 0;
}

/* ---------- How to use ---------- */
.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps-list li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  background: var(--gold);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* ---------- Reviews ---------- */
.reviews { background: var(--paper); }
.review-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.review-name { font-weight: 800; font-size: 14px; color: var(--ink); }
.review-city { font-size: 12px; color: var(--ink-soft); }
.review-card .stars { display: block; margin-bottom: 6px; font-size: 13px; }
.review-card p { font-size: 13.5px; margin: 0; color: var(--ink); }
.review-summary {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* ---------- Guarantee ---------- */
.guarantee-box {
  text-align: center;
  background: var(--emerald-tint);
  border: 1.5px dashed var(--emerald);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
}
.guarantee-icon { font-size: 32px; margin-bottom: 8px; }
.guarantee-box h3 { font-size: 16px; color: var(--emerald-dark); }
.guarantee-box p { font-size: 13.5px; margin: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  font-size: 13.5px;
  margin: 10px 0 0;
}

/* ---------- Order form ---------- */
.order { background: var(--paper); }
.stock-bar { margin-bottom: 16px; }
.stock-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--urgency);
  text-align: center;
  margin-bottom: 6px;
}
.stock-track {
  height: 9px;
  background: var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
}
.stock-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, var(--urgency), var(--gold));
  border-radius: 999px;
}

.order-price-recap {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.order-price-recap .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
}
.order-price-recap .strike { text-decoration: line-through; color: var(--ink-soft); }
.order-price-recap .highlight {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--emerald-dark);
  border-top: 1px dashed var(--gold);
  border-bottom: 1px dashed var(--gold);
}
.order-price-recap .save span:last-child { color: var(--urgency); font-weight: 700; }

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.order-form input,
.order-form select {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-deep);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  direction: rtl;
}
.order-form input:focus,
.order-form select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(31,110,86,0.15);
}
.order-form input::placeholder { color: #A98F6E; }
.field-error {
  font-size: 12px;
  color: var(--urgency);
  display: none;
}
.form-note {
  text-align: center;
  font-size: 12.5px;
  margin: 4px 0 0;
}
/* ---------- Thank-you page elements (shared with thanks.html) ---------- */
.ty-hex {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tyPop 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s both;
}
@keyframes tyPop {
  0% { transform: scale(0) rotate(-20deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.ty-check { color: var(--white); font-size: 28px; font-weight: 900; }
.ty-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.6;
}
.ty-recap {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: right;
  margin-bottom: 12px;
}
.ty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--cream-deep);
}
.ty-row:last-child { border-bottom: none; }
.ty-row span { color: var(--ink-soft); }
.ty-row strong { color: var(--ink); font-weight: 700; }
.ty-row.total strong { color: var(--emerald-dark); font-family: var(--font-display); }
.ty-note {
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.ty-btn {
  display: block;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ---------- Standalone thank-you page (thanks.html) ---------- */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background: var(--cream-deep);
}
.thanks-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 38px 24px 26px;
  text-align: center;
  transform: scale(0.92) translateY(10px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.35s ease;
}
.thanks-card.in { transform: scale(1) translateY(0); opacity: 1; }
.thanks-card h1 {
  font-size: 20px;
  margin: 0 0 8px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 22px 18px 30px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.footer-sub { margin-top: 4px; opacity: 0.8; }

/* ---------- Sticky bottom CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 60;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 -8px 24px -8px rgba(58,39,18,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--cream-deep);
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.sticky-cta.hidden { transform: translateY(110%); }
.sticky-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--emerald-dark);
  white-space: nowrap;
}
.sticky-price .strike {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  margin-left: 4px;
}
.sticky-btn {
  flex: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Desktop preview centering ---------- */
@media (min-width: 560px) {
  body { background: var(--cream-deep); padding-top: 24px; }
  .wrapper { border-radius: var(--radius-lg); }
  .sticky-cta { border-radius: var(--radius-lg) var(--radius-lg) 0 0; bottom: 0; }
}
