/* ============================================================
   Clearlii — Homepage sections
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-top: 50px; padding-bottom: 30px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px;
  min-height: 620px;
}
.hero-copy { position: relative; z-index: 3; max-width: 720px; }
.hero h1 { margin: 22px 0 0; max-width: 12ch; }
.hero .lead { margin-top: 26px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-trust .label { font-size: 10px; font-weight: 700; line-height: 1.6; max-width: 150px; color: #010205; text-transform: none; }
.hero-trust .logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trust-logo { height: 70px; width: auto; display: block; transition: transform .2s ease; }
.hero-trust .logos a:hover .trust-logo { transform: translateY(-2px); }
.trust-wordmark { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #1c1d23; opacity: .8; }
.trust-wordmark.thin { font-weight: 600; }

/* lens visual */
.hero-visual { position: relative; height: 100%; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.hero-glow, .hero-arc, .hero-lens { display: none; }
.hero-aura { position: absolute; z-index: 1; top: 0; left: 4%; width: 92%; height: 92%; }
.hero-products {
  position: relative; z-index: 3; width: 108%; max-width: none; right: -4%;
  filter: drop-shadow(0 36px 60px rgba(80,90,160,.22));
}

/* ---------- PARTNERS STRIP ---------- */
.partners { padding-block: 64px; }
.partners .intro { text-align: center; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 1000px; margin: 0 auto 20px; }
.partners-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.partner {
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #b9bcc4;
  transition: color .25s ease; white-space: nowrap; flex: 1 1 auto; text-align: center;
  filter: grayscale(1); display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.partner:hover { color: var(--purple); filter: grayscale(0); opacity: 1; }
.partner .heart { color: #e0607f; }
.partner.serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.partner.thin { font-weight: 600; }
.partner-logo { height: 110px; width: auto; display: block; }
.partner:has(.partner-logo) { filter: none; opacity: 1; transition: transform .2s ease; }
.partner:has(.partner-logo):hover { transform: translateY(-3px); }

/* ---------- COLLECTIONS / FEATURES ---------- */
.features { position: relative; overflow: hidden; }
.features-head { position: relative; text-align: center; padding-bottom: 30px; }
.watermark-word {
  font-size: clamp(80px, 13vw, 200px); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(120,33,129,.10);
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 0; user-select: none;
}
.features-head h2 { position: relative; z-index: 1; margin-top: 40px; }
.features-head p { position: relative; z-index: 1; max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 16px; }

.collections { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; }
.collection {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 44px 40px;
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
}
.collection .c-boxes { position: relative; z-index: 1; width: 78%; max-width: 460px; height: auto; margin: 0 auto 26px; filter: drop-shadow(0 26px 36px rgba(40,20,60,.25)); }
.collection.dark .c-boxes { filter: drop-shadow(0 26px 36px rgba(0,0,0,.55)); }
.collection.light { background: linear-gradient(150deg, #faf4f8, #f3f1f7 55%, #f6f6f9); }
.collection.dark { background: #16121c; color: #fff; }
.collection .blob {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 60%; height: 70%; border-radius: 80px; z-index: 0; filter: blur(8px); opacity: .9;
}
.collection.light .blob { background: radial-gradient(60% 60% at 30% 30%, rgba(230,170,220,.45), transparent 70%), radial-gradient(50% 50% at 75% 60%, rgba(180,150,240,.25), transparent 70%); inset: 0; width: auto; height: auto; transform: none; border-radius: 0; }
.collection.dark .blob { background: radial-gradient(120% 100% at 80% 60%, rgba(255,90,60,.5), rgba(120,30,160,.35) 55%, transparent 78%); }
.collection .c-inner { position: relative; z-index: 1; max-width: 520px; }
.collection h3 { margin: 0 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.collection.light h3 { color: var(--ink); }
.collection p { margin: 0 0 22px; font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; }
.collection.light p { color: var(--muted); }
.collection.dark p { color: #b7b7b7; }

/* tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.tech-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface);
  padding: 40px; min-height: 408px; display: flex; flex-direction: column; justify-content: center;
}
.tech-card.intro { justify-content: center; }
.tech-card.intro h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 18px; }
.tech-card.intro p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; }
.tech-card.icon { align-items: center; text-align: center; justify-content: center; }
.tech-ico { width: 240px; max-width: 80%; height: auto; }
.refmark { font-size: 11px; color: var(--muted-2); margin-left: 2px; }
.home-refs { margin-top: 56px; }
.home-refs h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.home-refs ol { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.7; color: var(--muted-2); }
.home-refs li { margin-bottom: 5px; }
.tech-visual {
  position: relative; width: 300px; height: 300px; max-width: 100%; margin: -20px auto 6px;
  display: grid; place-items: center;
}
.tech-visual .grid-bg {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(120,33,129,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,33,129,.08) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask: radial-gradient(circle at center, #000 38%, transparent 72%);
  mask: radial-gradient(circle at center, #000 38%, transparent 72%);
}
.tech-sphere {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #ededf0);
  box-shadow: 10px 24px 44px rgba(191,191,202,.35);
  display: grid; place-items: center;
}
.tech-mark {
  width: 64px; height: 64px; background: var(--grad-vitamin);
  -webkit-mask: url(../assets/tech-mark.svg) center/contain no-repeat;
  mask: url(../assets/tech-mark.svg) center/contain no-repeat;
}
.tech-card.icon h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 4px 0 8px; }
.tech-card.icon p { font-size: 15px; line-height: 1.46; color: var(--muted); margin: 0; max-width: 255px; }

/* ---------- FIND A PHARMACY ---------- */
.find { background: rgba(246,246,249,.8); }
.find-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.find-copy h2 { margin: 18px 0 20px; }
.find-copy p { color: #000; font-size: 15px; line-height: 1.6; max-width: 420px; margin: 0 0 28px; }
.find-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.find-map {
  border-radius: var(--r-md); overflow: hidden; box-shadow: 0 24px 60px rgba(40,53,131,.18);
  position: relative; aspect-ratio: 16 / 11;
}
.find-map img { width: 100%; height: 100%; object-fit: cover; }
.find-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; max-width: 560px; }
.stat .n { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat .n span { color: var(--purple); }
.stat .l { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- TESTIMONIALS ---------- */
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.testi-head .stars { display: flex; gap: 4px; color: #f5b301; margin-bottom: 14px; }
.testi-head .stars svg { width: 20px; height: 20px; }
.testi-head h2 { max-width: 14ch; }
.testi-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 46ch; }
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testi-card {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 56px 40px 40px;
  box-shadow: 10px 14px 84px rgba(0,0,0,.08); margin-top: 50px;
}
.testi-card .ava {
  position: absolute; top: -40px; left: 40px; width: 90px; height: 90px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.12);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 26px; letter-spacing: .02em;
  background: linear-gradient(150deg, var(--purple), var(--blue));
}
.testi-card.reveal:nth-of-type(2) .ava, .testi-card.d1 .ava { background: linear-gradient(150deg, #b31aef, #f6048d); }
.testi-card.reveal:nth-of-type(3) .ava, .testi-card.d2 .ava { background: linear-gradient(150deg, #2a6fdb, #16b1c9); }
.testi-card .stars { display: flex; gap: 3px; color: #f5b301; margin-bottom: 14px; }
.testi-card .stars svg { width: 17px; height: 17px; }
.testi-card blockquote { margin: 0 0 16px; font-style: italic; font-size: 16px; line-height: 1.8; color: #000; }
.testi-card cite { font-style: normal; font-size: 14px; color: var(--muted); letter-spacing: -0.02em; }
.testi-rail { height: 2px; background: #eceef3; margin-top: 50px; border-radius: 2px; overflow: hidden; }
.testi-rail i { display: block; height: 100%; width: 30%; background: #cc41e4; border-radius: 2px; transition: transform .4s ease; }

/* ---------- ABOUT / MISSION ---------- */
.about { position: relative; overflow: hidden; }
.about-card {
  position: relative; z-index: 2; background: #fff; border-radius: var(--r-md);
  box-shadow: 0 30px 70px rgba(20,20,40,.10); padding: 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: stretch;
}
.about-card h2 { margin: 22px 0 22px; }
.about-card .body { font-size: 16px; line-height: 1.65; color: #2b2b30; margin: 0 0 28px; }
.about-aside { border-left: 1px solid var(--line); padding-left: 56px; display: flex; align-items: center; }
.about-aside p { font-size: 16.5px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.7; color: var(--muted); margin: 0; }
.about-arc { position: absolute; right: -6%; top: -120px; width: 60%; z-index: 1; color: #cf7bff; opacity: .5; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.blog-col { display: flex; flex-direction: column; gap: 30px; }
.blog-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 35px;
  box-shadow: 0 4px 30px rgba(0,0,0,.10); isolation: isolate;
}
.blog-card .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.blog-card .scrim { position: absolute; inset: 0; z-index: -1; }
.blog-tag {
  position: absolute; top: 28px; align-self: flex-start; display: inline-flex; padding: 5px 12px;
  border-radius: var(--r-pill); font-size: 13px; color: #fff; font-weight: 500;
}
.blog-tag.purple { background: var(--purple); right: 28px; }
.blog-tag.blue { background: var(--blue); }
.blog-tag.left { left: 35px; right: auto; }
.blog-card h3 { margin: 0 0 10px; letter-spacing: -0.02em; }
.blog-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.blog-card .more .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; color: #fff; transition: transform .2s; }
.blog-card:hover .more .dot { transform: translateX(3px); }

/* image hero card (overlay text on photo) */
.blog-card.tall { min-height: 629px; }
.blog-card.tall .scrim { background: linear-gradient(180deg, rgba(40,53,131,0) 0%, rgba(40,53,131,.85) 65%); }
.blog-card.tall h3 { color: #fff; font-size: 31px; font-weight: 500; max-width: 12ch; }
.blog-card.tall .more { color: #fff; } .blog-card.tall .more .dot { background: var(--purple); }

.blog-card.wide { min-height: 302px; padding: 40px; }
.blog-card.wide .scrim { background: linear-gradient(68deg, #fff 42%, rgba(255,255,255,0) 80%); }
.blog-card.wide { border: 1px solid #e9e9e9; }
.blog-card.wide .inner { max-width: 56%; }
.blog-card.wide h3 { color: #212121; font-size: 30px; font-weight: 700; line-height: 1.25; }
.blog-card.wide p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.blog-card.wide .more { color: var(--purple); }

.blog-card.photo .scrim { background: linear-gradient(180deg, rgba(40,53,131,0) 25%, rgba(40,53,131,.8)); }
.blog-card.photo h3 { color: #fff; font-size: 30px; font-weight: 700; max-width: 12ch; }
.blog-card.plain { background: var(--surface); justify-content: center; }
.blog-card.plain .blog-tag { position: static; margin-bottom: 16px; }
.blog-card.plain h3 { color: #212121; font-size: 30px; font-weight: 700; line-height: 1.2; }
.blog-card.plain p { color: var(--muted); font-size: 18px; margin: 12px 0 18px; max-width: 44ch; }
.blog-card.plain .more { color: var(--purple); }

.blog-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 360px; order: -1; }
  .hero-lens { width: 60%; right: 6%; }
  .collections { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .find-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-card { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .about-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tech-grid { grid-template-columns: 1fr; }
  .find-stats { gap: 16px; }
  .stat .n { font-size: 42px; }
  .testi-track { grid-template-columns: 1fr; }
  .testi-card { margin-top: 56px; }
  .blog-card.wide .inner { max-width: 100%; }
  .blog-card.wide .scrim { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)); }
}
