/* Rxely homepage v3 — editorial clinical DTC */

:root {
  --teal: #0B7A6B;
  --teal-deep: #075F53;
  --page: #F4F8F7;
  --paper: #FFFFFF;
  --ink: #13261F;
  --ink-2: #44574F;
  --ink-3: #6E7F78;
  --line: #D5E5E1;
  --radius: 12px;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--paper);
  padding: 8px 12px;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 248, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

.brand {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }

.header-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  transition: background 0.15s ease;
}
.header-cta:hover { background: var(--teal-deep); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background 0.15s ease;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 15px 26px;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--page);
}

/* —— Hero —— */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  max-width: 28em;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 12ch;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.hero-price {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
}
.hero-price strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #E8EEEC;
  aspect-ratio: 16 / 10;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 36em;
}

/* —— Treatments —— */
.treatments {
  padding: clamp(64px, 10vw, 120px) 0;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 28em;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-photo {
  margin: 0;
  aspect-ratio: 16 / 11;
  background: #E8EEEC;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.card-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.card-body > p {
  color: var(--ink-2);
  font-size: 16px;
  flex: 1;
}

.card-meta {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
}

.card-meta .price {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card-meta .price span {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 4px;
}
.card-meta .link {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}
.card-meta .link:hover { text-decoration: underline; text-underline-offset: 3px; }

.treatments-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 56em;
  line-height: 1.55;
}

/* —— How it works —— */
.how {
  padding: clamp(72px, 11vw, 128px) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.how-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
  max-width: 10ch;
}

.how-head p {
  color: var(--ink-2);
  max-width: 26em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.step-n {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding-top: 4px;
  letter-spacing: 0.02em;
}

.step h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step p {
  grid-column: 2;
  color: var(--ink-2);
  max-width: 34em;
  font-size: 16px;
}

/* —— Care —— */
.care {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.care-inner {
  max-width: 40em;
}

.care h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.care p {
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 38em;
}
.care p:last-child { margin-bottom: 0; }
.care strong {
  color: var(--ink);
  font-weight: 500;
}

/* —— FAQ —— */
.faq {
  padding: clamp(72px, 11vw, 128px) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.faq-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-3);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
  max-width: 40em;
  font-size: 16px;
}

/* —— Closing CTA —— */
.closing {
  padding: clamp(64px, 9vw, 104px) 0;
  background: var(--ink);
  color: var(--page);
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px 48px;
}

.closing h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 14ch;
}

.closing .btn {
  background: var(--page);
  color: var(--ink);
}
.closing .btn:hover { background: #fff; }

/* —— Footer —— */
.site-footer {
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 32px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 32em;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-2);
}
.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclosures {
  padding-top: 32px;
  display: grid;
  gap: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 72em;
}

.disclosures b {
  color: var(--ink-2);
  font-weight: 500;
}

.legal-line {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.ph {
  color: #9A4A12;
  background: rgba(154, 74, 18, 0.08);
  border-radius: 3px;
  padding: 0 0.25em;
  font-size: 0.92em;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .how-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { max-width: none; }
  .how-head h2 { max-width: none; }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-body { padding: 22px 20px 26px; }

  .footer-top { grid-template-columns: 1fr; }

  .faq details p { padding-right: 0; }
}
