/* ============================================================
   Dr. Morepen HOME — official brand language
   Vibrant orange · warm cream · very rounded cards
   Type: Instrument Sans (weight-mixed, italic emphasis)
   ============================================================ */

:root {
  /* warm cream neutrals */
  --paper:      #F6F0E7;   /* page background */
  --paper-2:    #FCEAD9;   /* peach cards / stats */
  --paper-3:    #F3E7D5;   /* deeper sand */
  --white:      #FFFFFF;

  /* warm near-black ink */
  --ink:        #2A1E14;
  --ink-2:      #564738;
  --muted:      #8C7E70;

  /* brand orange */
  --brand:      #F47A1C;
  --brand-deep: #E2640A;
  --brand-tint: #FCE4CF;   /* light peach icon bg */
  --orange-soft:#FDEAD8;   /* badge bg */

  /* logo blue */
  --blue:       #0E5AA0;

  /* dark espresso (contrast bands) */
  --espresso:   #271A11;

  /* whatsapp green (kept only for genuine WA chrome) */
  --whatsapp:   #1FA855;
  --whatsapp-d: #178A45;

  --line:       rgba(60, 40, 20, .12);
  --line-2:     rgba(60, 40, 20, .22);

  --font-display: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-sans:    'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* signature gradients */
  --hero-grad: linear-gradient(157deg, #FBA64C 0%, #F57C1E 50%, #EE6910 100%);
  --blue-grad: linear-gradient(157deg, #2A86CE 0%, #0E5AA0 52%, #0A467F 100%);
  --num-grad:  linear-gradient(180deg, #2A1E14 0%, #7A5630 125%);
  --geo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='58'%3E%3Cpath d='M18 3 L40 3 L55 18 L55 40 L40 55 L18 55 L3 40 L3 18 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");

  --shadow-sm: 0 1px 2px rgba(80,50,20,.06), 0 3px 10px rgba(80,50,20,.06);
  --shadow-md: 0 8px 24px rgba(120,70,20,.12), 0 2px 6px rgba(120,70,20,.07);
  --shadow-lg: 0 20px 52px rgba(150,80,20,.20);
  --shadow-orange: 0 12px 26px rgba(244,122,28,.34);
  --shadow-blue:   0 12px 26px rgba(14,90,160,.34);
}

* { box-sizing: border-box; }

/* ---- phone-screen frame defaults (used inside artboards) ---- */
.screen {
  width: 390px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  position: relative;
}

.screen h1, .screen h2, .screen h3, .screen h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
}

.screen p { margin: 0; text-wrap: pretty; }

/* shared utility bits */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* gradient stat number */
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--num-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* cream badge pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange-soft);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  border: none; cursor: pointer;
  border-radius: 999px;
  padding: 15px 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }

/* primary = blue gradient */
.btn-wa, .btn-primary {
  background: var(--blue-grad); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-wa:hover, .btn-primary:hover { filter: brightness(.94); }

.btn-light { background: #fff; color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.6px var(--line-2); }

.wa-glyph { width: 19px; height: 19px; display: inline-block; }

/* floating WhatsApp message button — stays put at any scroll level */
.fab-wa {
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 26px rgba(31,168,85,.42), 0 2px 6px rgba(31,168,85,.3);
}
.fab-wa:hover { background: var(--whatsapp-d); }

/* section rhythm inside the full page */
.sec { padding: 52px 22px; }
.sec-tight { padding: 38px 22px; }

@keyframes pill-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes jrfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.marquee-track { display: flex; width: max-content; animation: pill-marquee 20s linear infinite; }
.marquee-mask { -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }

.kicker-row { display: flex; align-items: center; gap: 9px; }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

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

/* ---- Responsive CSS variables ---- */
:root {
  --hero-h1-size: 39px;
  --hero-span-size: 37px;
}

/* Full-width on phones wider than the design width (≥391px — e.g. iPhone Pro Max, Pixel) */
@media (min-width: 391px) {
  .screen { width: 100% !important; }
}

/* Smaller phones (≤374px — iPhone SE, Galaxy A series, older Androids) */
@media (max-width: 374px) {
  :root {
    --hero-h1-size: 28px;
    --hero-span-size: 26px;
  }
  .sec       { padding: 40px 16px; }
  .sec-tight { padding: 28px 16px; }
  .eyebrow   { font-size: 10px; letter-spacing: .10em; }
  .pill      { font-size: 12px; padding: 7px 14px; }
  .btn       { font-size: 14px; padding: 13px 18px; }
  .stat-num  { font-size: 19px !important; }
  .screen h2 { font-size: 21px !important; }
}
