/* ==========================================================================
   LensCraft — product landing page
   Hand-written CSS, no frameworks.
   ========================================================================== */

:root {
  --ink: #1a1e33;
  --text: #575d72;
  --muted: #8a90a5;
  --accent: #2b5fdd;
  --accent-dark: #204bb5;
  --green: #1c9e5a;
  --green-dark: #15854a;
  --amber: #eda921;
  --tint: #f3f6fc;
  --tint-deep: #e7edfa;
  --border: #e4e8f1;
  --border-input: #d9dfec;
  --radius: 14px;
  --shadow-card: 0 12px 40px -14px rgba(26, 30, 51, 0.14);
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p {
  margin: 0;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

button {
  font-family: inherit;
}

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

/* --------------------------------------------------------------------------
   Announcement bar + header
   -------------------------------------------------------------------------- */

.announcement {
  background: var(--ink);
  color: #eef1fa;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px 16px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--accent);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 26px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint-deep);
  color: var(--accent);
}

.contact-icon svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 68px 0 58px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tint);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 13px;
  height: 13px;
  fill: var(--amber);
}

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Product section
   -------------------------------------------------------------------------- */

.product {
  padding: 24px 0 84px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 432px;
  gap: 60px;
  align-items: start;
}

/* Gallery */

.gallery-main {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--tint);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main.fit-contain img {
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 68%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  border-color: #b9c8ec;
}

.thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 95, 221, 0.14);
}

/* Copy under gallery */

.product-copy {
  margin-top: 40px;
}

.description {
  font-size: 1.02rem;
  line-height: 1.75;
}

.checklist-title {
  margin-top: 30px;
  font-size: 1.08rem;
  font-weight: 600;
}

.checklist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e2f4ea;
  color: var(--green);
}

.check-icon svg {
  width: 11px;
  height: 11px;
}

.checklist p {
  font-size: 0.98rem;
}

.checklist strong {
  color: var(--ink);
  font-weight: 600;
}

/* Buy box */

.buy-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.offer-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fdf3e0;
  color: #a86a0a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
}

.price-current {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-old {
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-note {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.variations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

/* Fields */

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #adb3c4;
}

.field input:hover,
.field select:hover {
  border-color: #bcc5da;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 95, 221, 0.13);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  cursor: pointer;
}

.step-panel .field {
  margin-top: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-row:has(.field-narrow) {
  grid-template-columns: 1.6fr 1fr;
}

.field-row .field {
  margin-top: 14px;
}

/* Checkout steps */

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 24px;
  padding: 5px;
  border-radius: 13px;
  background: var(--tint);
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.step.is-active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 30, 51, 0.08);
}

.step-number {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--tint-deep);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.step.is-active .step-number {
  background: var(--accent);
  color: #fff;
}

.step-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.step-desc {
  font-size: 12px;
  color: var(--muted);
}

.step-panel {
  display: none;
  margin-top: 8px;
}

.step-panel.is-active {
  display: block;
}

/* CTA */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(28, 158, 90, 0.55);
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.cta svg {
  width: 18px;
  height: 18px;
}

.back-link {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--ink);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.secure-note svg {
  width: 14px;
  height: 14px;
}

/* Trust row */

.trust-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
}

.trust-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.trust-row svg {
  width: 23px;
  height: 23px;
  color: #7d87a3;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews {
  background: var(--tint);
  padding: 76px 0 88px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-subtitle {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}

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

.review-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px -20px rgba(26, 30, 51, 0.18);
}

.stars-lg svg {
  width: 16px;
  height: 16px;
}

.stars-lg .star-muted {
  fill: #d7dbe7;
}

.review-text {
  flex-grow: 1;
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.7;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0f7;
}

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 600;
}

.review-card:nth-child(1) .avatar {
  background: #e3ecfc;
  color: var(--accent);
}

.review-card:nth-child(2) .avatar {
  background: #e2f4ea;
  color: #187f4a;
}

.review-card:nth-child(3) .avatar {
  background: #fdf3e0;
  color: #a86a0a;
}

.reviewer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.reviewer-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--green);
}

.verified svg {
  width: 11px;
  height: 11px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 46px 0 34px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 981px) {
  .buy-box {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .buy-column {
    max-width: 560px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 52px 0 44px;
  }

  .hero-title br {
    display: none;
  }

  .contact-email {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .buy-box {
    padding: 24px 20px;
  }

  .contact-text {
    display: none;
  }

  .field-row,
  .field-row:has(.field-narrow) {
    grid-template-columns: 1fr;
  }

  .field-row .field:first-child {
    margin-bottom: 0;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .step-desc {
    display: none;
  }

  .price-note {
    width: 100%;
    margin-left: 0;
  }

  .price-row {
    flex-wrap: wrap;
    row-gap: 2px;
  }
}
