:root {
  --ink: #111820;
  --ink-soft: #3d4a56;
  --navy: #0d2137;
  --green: #2d7a3a;
  --green-lt: #e8f5ea;
  --amber: #b35c00;
  --paper: #f8f5ef;
  --paper-dk: #ede9e0;
  --line: #d6cfc2;
  --white: #ffffff;
  --red-tag: #b91c1c;
}

/* ════════════════════════════════════
   RESET & BASE
════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════
   MASTHEAD
════════════════════════════════════ */
.masthead {
  background: var(--navy);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.masthead-name {
  font-family: "Merriweather", serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
}

.masthead-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════
   RUBRIC STRIPE
════════════════════════════════════ */
.rubric-stripe {
  background: var(--paper-dk);
  border-bottom: 2px solid var(--line);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.rubric-tag {
  background: var(--red-tag);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

/* ════════════════════════════════════
   LAYOUT
════════════════════════════════════ */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ════════════════════════════════════
   ARTICLE HEADLINE BLOCK
════════════════════════════════════ */
.headline-block {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.hl-kicker {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.hl-title {
  font-family: "Merriweather", serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hl-title em {
  font-style: italic;
  color: var(--navy);
}

.hl-deck {
  font-family: "Spectral", serif;
  font-size: clamp(17px, 2.5vw, 20px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--line);
}

.hl-byline {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hl-byline span {
  opacity: 0.5;
}

/* ════════════════════════════════════
   PHOTO SLOT — user drops photo here
════════════════════════════════════ */
.photo-slot {
  width: 100%;
  margin: 32px 0;
  background: var(--paper-dk);
  border: 2px dashed var(--line);
  position: relative;
  overflow: hidden;
}

.photo-slot img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.photo-slot.full {
  min-height: 340px;
}

.photo-slot.medium {
  min-height: 260px;
}

.photo-slot.portrait {
  min-height: 380px;
}

.photo-slot-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--line);
  font-size: 13px;
  pointer-events: none;
}

.photo-slot-label svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.photo-slot img ~ .photo-slot-label {
  display: none;
}

.photo-caption {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

/* ════════════════════════════════════
   BODY COPY
════════════════════════════════════ */
.body p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2.2vw, 18px);
}

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

.body p em {
  font-style: italic;
}

.section-title {
  font-family: "Merriweather", serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
  margin: 52px 0 20px;
  letter-spacing: -0.01em;
}

.section-rule {
  border: none;
  border-top: 3px double var(--line);
  margin: 48px 0;
}

/* ════════════════════════════════════
   PULL QUOTE
════════════════════════════════════ */
.pullquote {
  padding: 28px 0;
  margin: 36px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.pullquote p {
  font-family: "Merriweather", serif;
  font-size: clamp(19px, 3vw, 24px);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.pullquote cite {
  display: block;
  margin-top: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════
   DOCTOR PROFILE CARD
════════════════════════════════════ */
.doctor-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  padding: 24px;
  margin: 36px 0;
}

.doctor-photo {
  width: 110px;
  height: 110px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
  background: var(--paper-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctor-photo svg {
  width: 40px;
  opacity: 0.3;
}

.doctor-card img {
  width: 110px;
  height: 110px;
  border-radius: 4px;
  object-fit: cover;
  object-position: top;
}

.doctor-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.doctor-name {
  font-family: "Merriweather", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.doctor-bio {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ════════════════════════════════════
   CALLOUT — dark science box
════════════════════════════════════ */
.callout {
  background: var(--navy);
  color: var(--white);
  padding: 36px;
  margin: 40px 0;
}

.callout-title {
  font-family: "Merriweather", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.callout p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  line-height: 1.7;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--white);
}

.callout-list {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.callout-list li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

.callout-list li:last-child {
  border-bottom: none;
}

.callout-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #6fcf72;
  font-weight: 700;
}

/* ════════════════════════════════════
   TIMELINE — recovery days
════════════════════════════════════ */
.timeline {
  margin: 36px 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.timeline-header {
  background: var(--navy);
  color: var(--white);
  font-family: "Merriweather", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 20px;
}

.tl-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-bottom: 1px solid var(--line);
}

.tl-row:last-child {
  border-bottom: none;
}

.tl-day {
  background: var(--paper-dk);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.tl-num {
  font-family: "Merriweather", serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.tl-unit {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.tl-text {
  padding: 16px 18px;
}

.tl-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 600;
}

.tl-text p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════ */
.testi-block {
  margin: 40px 0;
}

.testi-block-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.testi {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.testi:last-child {
  border-bottom: none;
}

.testi-stars {
  color: #c47f17;
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.testi-text {
  font-family: "Spectral", serif;
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 10px;
}

.testi-author {
  font-size: 13px;
  color: var(--ink-soft);
}

.testi-author strong {
  color: var(--ink);
  font-style: normal;
  font-family: "DM Sans";
}

/* ════════════════════════════════════
   SOFT URGENCY
════════════════════════════════════ */
.urgency {
  background: #fffbf0;
  border: 1px solid #e8d5a0;
  border-left: 4px solid var(--amber);
  padding: 22px 24px;
  margin: 40px 0;
}

.urgency-title {
  font-family: "Merriweather", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

.urgency p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.65;
}

.urgency p:last-child {
  margin-bottom: 0;
}

/* ════════════════════════════════════
   QUIZ
════════════════════════════════════ */
.quiz-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  margin: 44px 0;
}

.quiz-head {
  background: var(--paper-dk);
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.quiz-head p {
  font-family: "Merriweather", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.quiz-head span {
  font-size: 13px;
  color: var(--ink-soft);
}

.quiz-body {
  padding: 24px;
}

.quiz-q {
  margin-bottom: 26px;
}

.quiz-q:last-of-type {
  margin-bottom: 0;
}

.quiz-q label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}

.quiz-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-opt {
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  font-family: "DM Sans", sans-serif;
  line-height: 1;
}

.quiz-opt:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.quiz-opt.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.quiz-result {
  display: none;
  background: var(--green);
  padding: 24px;
  margin-top: 20px;
}

.quiz-result.show {
  display: block;
}

.quiz-result p {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.quiz-result strong {
  color: var(--white);
}

.quiz-cta-link {
  display: block;
  background: var(--white);
  color: var(--green);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.15s;
  cursor: pointer;
}

.quiz-cta-link:hover {
  opacity: 0.9;
}

/* ════════════════════════════════════
   ORDER SECTION
════════════════════════════════════ */
.order-section {
  background: var(--navy);
  padding: 48px 36px;
  margin: 48px 0;
  text-align: center;
}

.order-product-img {
  max-width: 100%;
  display: block;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.order-headline {
  font-family: "Merriweather", serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.order-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
}

/* price */
.price-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 40px;
  margin-bottom: 28px;
}

.price-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.price-number {
  font-family: "Merriweather", serif;
  font-size: 60px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.price-currency {
  font-size: 24px;
  font-weight: 700;
  color: #6fcf72;
  margin-left: 4px;
}

.cod-pill {
  display: inline-block;
  margin-top: 10px;
  background: #2d7a3a;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 2px;
}

/* form */
.order-form {
  max-width: 380px;
  margin: 0 auto;
}

.form-field {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  color: var(--white);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-field:focus {
  border-color: #6fcf72;
}

.cta-button {
  display: block;
  width: 100%;
  background: #2d7a3a;
  color: var(--white);
  border: none;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 3px;
  transition:
    background 0.15s,
    transform 0.12s;
  box-shadow: 0 4px 24px rgba(45, 122, 58, 0.5);
}

.cta-button:hover {
  background: #26693a;
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 12px;
  line-height: 1.5;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-icon {
  color: #6fcf72;
  font-size: 16px;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  border-top: 2px solid var(--line);
  padding: 28px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ════════════════════════════════════
   CONFIRMED STATE
════════════════════════════════════ */
.confirmed-msg {
  display: none;
  padding: 20px;
  background: rgba(45, 122, 58, 0.15);
  border: 1px solid #6fcf72;
  border-radius: 3px;
  color: #a8e6b0;
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
}

.confirmed-msg.show {
  display: block;
}

/* ════════════════════════════════════
   FIELD ERROR
════════════════════════════════════ */
.form-field.err {
  border-color: #f87171;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 520px) {
  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-photo,
  .doctor-card img {
    width: 80px;
    height: 80px;
  }

  .tl-row {
    grid-template-columns: 72px 1fr;
  }

  .tl-num {
    font-size: 24px;
  }

  .order-section {
    padding: 36px 20px;
  }

  .price-number {
    font-size: 48px;
  }

  .callout {
    padding: 24px;
  }
}
