/* ============================================
   Svayaa — Dermatology matching service
   Aesthetic: warm editorial · ivory · apricot · forest
   ============================================ */

:root {
  /* Palette — light warm */
  --ivory: #F6EFE6;
  --cream: #FBF6EE;
  --paper: #FFFCF7;
  --apricot: #E89B6C;
  --apricot-deep: #C76F3F;
  --peach: #F4C9A8;
  --sage: #8FA688;
  --sage-deep: #5C7256;
  --forest: #1F2E20;
  --forest-soft: #324234;
  --ink: #1B1A17;
  --ink-mute: #5C5750;
  --line: #E4D9C6;
  --rose: #D9A6A0;

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-xl: 48px;

  --shadow-sm: 0 1px 2px rgba(31, 46, 32, 0.04), 0 2px 8px rgba(31, 46, 32, 0.04);
  --shadow: 0 8px 28px rgba(31, 46, 32, 0.08), 0 2px 6px rgba(31, 46, 32, 0.04);
  --shadow-lg: 0 24px 60px rgba(31, 46, 32, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* Background grain + warm wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 155, 108, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(143, 166, 136, 0.14), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}

#root { position: relative; z-index: 2; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--forest);
}
.display em {
  font-style: italic;
  color: var(--apricot-deep);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--forest-soft);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.body-l { font-size: 18px; line-height: 1.55; color: var(--ink); }
.body-m { font-size: 15px; line-height: 1.6; color: var(--ink-mute); }
.body-s { font-size: 13px; line-height: 1.5; color: var(--ink-mute); }

/* ---------- Layout ---------- */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background 180ms,
              box-shadow 220ms;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 22px rgba(31, 46, 32, 0.22);
}
.btn-primary:hover {
  background: #15201A;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 28px rgba(31, 46, 32, 0.28);
}
.btn-primary .arr {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: var(--apricot);
  border-radius: 999px;
  color: var(--forest);
  margin-right: -10px;
  transition: transform 220ms;
}
.btn-primary:hover .arr { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--forest); }

.btn-apricot {
  background: var(--apricot);
  color: var(--forest);
}
.btn-apricot:hover { background: var(--apricot-deep); color: var(--paper); transform: translateY(-1px); }

/* ---------- Marquee ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Decorative ticker ---------- */
.tick-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--apricot);
  display: inline-block;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 220ms, transform 220ms, box-shadow 220ms;
}
.card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color 180ms, background 180ms;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  background: #fff;
}
.field input::placeholder { color: #B5AC9D; }

/* ---------- Pills (chips) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  color: var(--forest-soft);
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms;
  user-select: none;
}
.pill:hover { border-color: var(--forest); color: var(--forest); }
.pill.active {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.pill .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.pill.active .num { color: var(--peach); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section divider ---------- */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- Skin concern leaf shape ---------- */
.leaf {
  position: relative;
  background: var(--peach);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 56px !important;
  }
}

@media (max-width: 880px) {
  .shell { padding: 0 20px; }
}

/* ---------- Utility ---------- */
.flow > * + * { margin-top: var(--flow-y, 16px); }
.row { display: flex; gap: 16px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; }
.stack-2 { display: flex; flex-direction: column; gap: 8px; }
.stack-4 { display: flex; flex-direction: column; gap: 16px; }
.stack-6 { display: flex; flex-direction: column; gap: 24px; }
.grid { display: grid; gap: 24px; }
.muted { color: var(--ink-mute); }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }

/* No-break for long words */
.nowrap { white-space: nowrap; }

/* Check icon */
.check {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--sage);
  color: var(--paper);
  font-size: 11px;
  flex-shrink: 0;
}

/* hover image flutter */
@keyframes flutter {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}
