/* ==========================================================================
   InstaRx home page — static rebuild of https://instarx.com (Framer) in plain
   HTML/CSS/JS for Vercel. Measurements and colors taken from the live page.
   ========================================================================== */

:root {
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-manrope: "Manrope", var(--font-body);
  --font-script: "Carattere", cursive;

  --black: #000;
  --ink: #171717;          /* headings, nav */
  --ink-2: #262626;        /* dark buttons, footer */
  --text: #525252;         /* paragraph */
  --text-muted: #6A6969;
  --text-faint: #A3A3A3;
  --text-footer-h: #707070;
  --surface: #F8F8F8;      /* cards */
  --surface-2: #F7F5F5;    /* ticker */
  --white: #fff;
  --link: #0099FF;

  --gold: #BD9F4F;
  --gold-2: #C49D46;
  --green: #64A074;
  --green-2: #4CA371;
  --violet: #5B49BF;
  --violet-2: #5F46C3;

  --ticker-h: 50px;
  --nav-h: 75px;
  --header-h: calc(var(--ticker-h) + var(--nav-h));
  --gutter: 64px;
  --radius: 16px;
  --pill: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--white); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ico { display: inline-block; width: 1em; height: 1em; flex: none; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--pill);
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink-2); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--white { background: var(--white); color: var(--ink-2); font-weight: 400; }
.btn--light { background: rgba(255,255,255,.9); color: var(--ink); height: 40px; padding: 0 24px; font-size: 15.2px; letter-spacing: -.03em; }
.btn--light:hover { background: #fff; }
.btn--glass { background: rgba(255,255,255,.3); color: var(--white); height: 40px; width: 100%; font-size: 15.2px; letter-spacing: -.03em; }
.btn--glass:hover { background: rgba(255,255,255,.42); }
.btn--sm { height: 35px; padding: 0 24px; font-size: 12.8px; font-weight: 500; }
.btn--lg { height: 44px; padding: 10px 16px 10px 32px; font-size: 20px; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--surface-2);
}
.ticker {
  height: var(--ticker-h);
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker__list {
  display: flex;
  gap: 85px;
  padding-right: 85px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.ticker__list li { display: inline-flex; align-items: center; gap: 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

.nav { background: var(--white); height: var(--nav-h); position: relative; }
.nav__inner {
  max-width: 1440px;
  margin-inline: auto;
  height: 100%;
  padding: 0 33px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__logo img { width: 110px; height: auto; }
.nav__links { display: flex; gap: 32px; font-family: var(--font-manrope); font-weight: 700; font-size: 16px; color: var(--ink); }
.nav__links a:hover { opacity: .7; }
.nav__login {
  justify-self: end;
  font-family: var(--font-manrope);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  height: 35px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  border: 1px solid #E5E5E5;
  background: var(--white);
}
.nav__login:hover { background: var(--surface); }
.nav__burger { display: none; justify-self: end; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.nav__burger .ico { width: 24px; height: 20px; }
.nav__burger .ico--close { display: none; width: 22px; height: 22px; }
.nav__burger[aria-expanded="true"] .ico--menu { display: none; }
.nav__burger[aria-expanded="true"] .ico--close { display: block; }
.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid #EEE;
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
}
.mobile-menu__login { border-bottom: 0 !important; color: var(--text) !important; font-weight: 500 !important; }

/* ---------- Page ---------- */
.page { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero { padding-top: 6px; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero__title { font-weight: 500; font-size: 69px; line-height: 1; letter-spacing: -.03em; color: var(--black); margin-top: 0; }
.rotator { display: grid; }
.rotator__word {
  grid-area: 1 / 1;
  color: var(--c);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
  white-space: nowrap;
}
.rotator__word.is-active { opacity: 1; transform: none; }
.hero__sub { display: block; margin-top: -8px; }
.hero__cta { margin-top: 44px; }
.hero__cta .ico { width: 32px; height: 24px; }
.hero__features {
  margin-top: 47px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
  flex: none;
}
.hero__features li { display: flex; align-items: center; gap: 10px; }
.hero__features .ico { color: var(--text); }

/* Product cards */
.products { position: relative; padding-top: 74px; }
.products__list { display: flex; gap: 32px; }
.products__list > li { flex: 1 1 0; min-width: 0; }
.product-card {
  position: relative;
  display: block;
  height: 232px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.product-card__img { position: absolute; top: 24px; right: 24px; width: 136px; height: 136px; object-fit: cover; }
.product-card__label {
  position: absolute;
  left: 24px; bottom: 25px;
  font-size: 25.6px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--black);
}
.product-card__go {
  position: absolute;
  right: 26px; bottom: 26px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--white);
  display: grid;
  place-items: center;
}
.product-card__go .ico { width: 12px; height: 12px; }

/* Carousel chrome (mobile only) */
.carousel__arrow {
  display: none;
  position: absolute;
  top: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.14);
  color: var(--white);
  z-index: 2;
}
.carousel__arrow .ico { width: 40px; height: 40px; }
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; }
.carousel__dots { display: none; }

/* ---------- How it works ---------- */
.how {
  position: relative;
  margin-top: 80px;
  height: 555px;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(50% 100% at 50% 0%, #9DBFD1 0.25%, #5F8DBA 100%);
  isolation: isolate;
}
.how__person {
  position: absolute;
  left: 50%; top: 33px;
  transform: translateX(-50%);
  width: 482px; height: 555px;
  object-fit: cover;
  object-position: top;
  z-index: 0;
  pointer-events: none;
}
.how__head {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px 24px 0;
}
.how__title {
  font-size: 48px; font-weight: 500; line-height: .7; color: #F7F7F7;
  display: flex; align-items: baseline; gap: 14px; margin-top: 26px;
}
.how__title em { font-family: var(--font-script); font-style: normal; font-weight: 400; font-size: 75px; line-height: .7; color: var(--white); }
.steps {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step__pill {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(82,82,82,.15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; line-height: 1; color: var(--white);
}
.step__card {
  position: relative;
  width: 100%;
  min-height: 195px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(82,82,82,.15);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  color: var(--white);
}
.step__icon { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; object-fit: contain; }
.step__title { font-size: 24px; font-weight: 600; line-height: 1.1; padding-right: 64px; }
.step__desc { margin-top: 13px; font-size: 14px; line-height: 1.1; color: #F5F5F5; max-width: 310px; }
.step__card .btn { margin-top: auto; padding-top: 0; }
.step__card .btn:not(:last-child) { margin-top: 0; }
.step__desc + .btn { margin-top: 24px; }

/* ---------- Popular treatments ---------- */
.treatments { padding-top: 144px; }
.section-title { font-size: 48px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.section-title--manrope { font-family: var(--font-manrope); }
.treatments__scroller { position: relative; margin-top: 38px; }
.treatments__list { display: flex; gap: 16px; padding-left: 9px; }
.treatment { width: 348px; flex: none; padding: 4px; display: flex; flex-direction: column; gap: 8px; }
.treatment__card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.treatment__card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.treatment__name { font-size: 20px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.treatment__img { width: 300px; height: 300px; object-fit: cover; border-radius: 15px; }
.treatment__actions { display: flex; gap: 8px; }
.treatment__actions .btn--white { width: 115px; padding: 0; }
.treatment__actions .btn--dark { flex: 1; }
.treatment__safety { font-family: var(--font-manrope); font-size: 12px; line-height: 1.1; color: var(--text-faint); text-align: center; }
.treatment__safety:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { padding-top: 64px; }
.faq__inner { max-width: 730px; margin-inline: auto; }
.faq__title { margin-bottom: 56px; text-align: center; }
.accordion { display: flex; flex-direction: column; gap: 11px; }
.accordion__item { background: var(--surface); }
.accordion__item summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { width: 20px; height: 20px; color: var(--text); display: grid; place-items: center; }
.accordion__icon .ico { width: 18px; height: 18px; }
.accordion__icon .i-minus { display: none; }
.accordion__item[open] .i-plus { display: none; }
.accordion__item[open] .i-minus { display: block; }
.accordion__body { padding: 0 16px 16px; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--text); }
.accordion__body p + p { margin-top: 21px; }
.faq__more { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.faq__more p { font-size: 14.4px; line-height: 1.4; letter-spacing: -.01em; color: var(--text-muted); }
.faq__more .btn { height: 37px; padding: 0 16px 0 20px; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 128px 56px 0;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  padding-left: 80px;
  background: linear-gradient(293deg, #F0F9FF 6%, #99D8FF 161%);
}
.cta__text { position: relative; z-index: 1; max-width: 462px; flex: none; }
.cta__kicker { font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.cta__title { font-size: 72px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.cta__desc { margin-top: 10px; max-width: 416px; font-size: 18.4px; line-height: 1.4; letter-spacing: -.01em; color: var(--text-muted); }
.cta__text .btn { margin-top: 10px; }
.cta__img { position: absolute; right: 0; top: 0; width: 700px; height: 500px; object-fit: cover; object-position: center; }

/* ---------- Disclaimer ---------- */
.disclaimer { padding: 80px 128px; font-size: 9px; line-height: 1.2; color: var(--text-muted); }
.disclaimer p + p { margin-top: 11px; }
.disclaimer a { color: var(--link); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: var(--white); }
.footer__inner { max-width: 1440px; margin-inline: auto; padding: 64px 116px 32px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-inline: 37px; }
.footer__brand img { width: 192px; height: auto; }
.footer__contact { margin-top: 32px; font-size: 16px; line-height: 1.6; letter-spacing: -.02em; color: #666; }
.footer__contact a { color: var(--link); }
.footer__cols { display: flex; gap: 0; }
.footer__col { display: flex; flex-direction: column; gap: 23px; min-width: 189px; }
.footer__col h4 { font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--text-footer-h); margin-bottom: -3px; }
.footer__col a { font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .005em; color: var(--surface); }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom {
  margin-top: 150px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.footer__copy { font-size: 8px; line-height: 1.2; color: var(--text-faint); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; font-size: 10px; font-weight: 500; line-height: 1.2; color: var(--text-faint); }
.footer__legal a:hover { color: var(--white); }
.footer__badges { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Large tablet / small desktop --- */
@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .hero__title { font-size: 56px; }
  .hero__features { margin-top: 36px; }
  .products__list { gap: 20px; }
  .product-card { height: 210px; }
  .product-card__img { width: 110px; height: 110px; }
  .product-card__label { font-size: 22px; }
  .steps { gap: 12px; }
  .step__title { font-size: 20px; }
  .treatments { padding-top: 96px; }
  .treatments__list { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; }
  .treatments__list::-webkit-scrollbar { display: none; }
  .treatment { scroll-snap-align: start; }
  .cta { margin-inline: 0; padding-left: 48px; }
  .cta__img { width: 50%; }
  .cta__title { font-size: 56px; }
  .disclaimer { padding-inline: 32px; }
  .footer__inner { padding-inline: 48px; }
  .footer__top { padding-inline: 0; }
  .footer__col { min-width: 150px; }
}

/* --- Tablet --- */
@media (max-width: 899px) {
  .nav__inner { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__top { flex-direction: column; gap: 24px; }
  .hero__features { margin-top: 0; }
  .how { height: auto; min-height: 0; padding-bottom: 32px; }
  .how__person { width: 100%; max-width: 520px; height: auto; top: 90px; object-position: top center; }
  .steps { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; gap: 16px; margin: 80px 16px 0; }
  .step__card { min-height: 0; }
  .cta { flex-direction: column; align-items: stretch; height: auto; padding: 32px 20px 0; }
  .cta__text { max-width: none; }
  .cta__img { position: static; width: 100%; height: 298px; margin-top: 24px; border-radius: 16px 16px 0 0; }
  .footer__top { flex-direction: column; align-items: center; text-align: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__cols { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: left; }
  .footer__col { min-width: 0; }
  .footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3A3A3A; flex-direction: column; align-items: center; }
  .footer__legal { order: 1; flex-direction: column; align-items: center; gap: 16px; }
  .footer__copy { order: 2; }
}

/* --- Mobile --- */
@media (max-width: 599px) {
  :root { --gutter: 20px; --ticker-h: 48px; --nav-h: 72px; }
  .nav__logo img { width: 96px; }
  /* Live mobile order: headline → feature list → card carousel → CTA button */
  .hero { display: flex; flex-direction: column; }
  .hero__top, .hero__text { display: contents; }
  .hero__title { order: 1; font-size: 40px; margin-top: 24px; }
  .hero__sub { font-size: 32px; margin-top: 4px; }
  .hero__features { order: 2; margin-top: 28px; gap: 21px; padding-left: 30px; }
  .products { order: 3; }
  .hero__cta { order: 4; margin-top: 24px; width: 100%; justify-content: center; height: 48px; padding-left: 24px; }
  .products { padding-top: 32px; margin-inline: calc(var(--gutter) * -1); }
  .products__list {
    gap: 16px; padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .products__list::-webkit-scrollbar { display: none; }
  .products__list > li { flex: 0 0 calc(100vw - var(--gutter) * 2); scroll-snap-align: start; }
  .product-card { height: 232px; }
  .product-card__img { width: 136px; height: 136px; }
  .product-card__label { font-size: 25.6px; }
  .carousel__arrow { display: grid; place-items: center; transform: translateY(calc(-50% + 16px)); }
  .carousel__arrow--prev { left: calc(var(--gutter) + 20px); }
  .carousel__arrow--next { right: calc(var(--gutter) + 20px); }
  .carousel__arrow[disabled] { display: none; }
  .carousel__dots {
    display: flex; gap: 6px; width: max-content; margin: 16px auto 0;
    padding: 6px 10px; border-radius: 20px; background: #E9E9E9;
  }
  .carousel__dots span { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
  .carousel__dots span.is-active { background: #8A8A8A; }
  .how { margin-top: 32px; }
  .how__head { padding: 16px 16px 0; flex-direction: row; }
  .how__title { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 29px; margin-top: 0; }
  .how__title em { font-size: 45px; }
  .how__cta { height: 36px; padding: 0 18px; font-size: 14px; margin-top: 10px; }
  .how__person { top: 60px; width: 100%; max-width: none; }
  .steps { margin-top: 56px; }
  .step__title { font-size: 24px; padding-right: 56px; }
  .treatments { padding-top: 64px; }
  .treatments__scroller { margin-top: 24px; margin-inline: calc(var(--gutter) * -1); }
  .treatments__list { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: 24px; }
  .treatment { width: 340px; padding: 0; }
  .section-title { font-size: 32px; }
  .faq { padding-top: 56px; }
  .faq__inner { padding-inline: 16px; }
  .faq__title { font-size: 34px; margin-bottom: 40px; }
  .cta { margin-top: 64px; border-radius: 20px; }
  .cta__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .cta__title { font-size: 48px; }
  .cta__desc { font-size: 16px; }
  .cta__img { height: 260px; }
  .disclaimer { padding: 48px 20px; }
  .footer__inner { padding: 48px 20px 32px; }
  .footer__cols { padding-inline: 0; }
}
