/* 360 Whitening — Dentist site styles
   Light, clinical, restrained. Sister to the patient site:
   shares root tokens + fonts, swaps surface treatment. */

:root {
  /* Warm dark (shared) */
  --ink: #0E0B07;
  --ink-2: #1A130E;
  --ink-3: #2B201A;
  /* Cream + pearl (shared) */
  --pearl: #F6EFE3;
  --pearl-2: #ECE2D1;
  --pearl-3: #DDCEB6;
  /* Accents (shared) */
  --champagne: #D4B07A;
  --champagne-deep: #B5904F;
  --rose: #C9A58F;
  --rose-deep: #B58A72;
  /* Inks */
  --on-dark-60: rgba(246, 239, 227, 0.62);
  --on-dark-40: rgba(246, 239, 227, 0.40);
  --on-dark-15: rgba(246, 239, 227, 0.15);
  --on-dark-08: rgba(246, 239, 227, 0.08);
  --on-light-60: rgba(14, 11, 7, 0.62);
  --on-light-40: rgba(14, 11, 7, 0.40);
  --on-light-15: rgba(14, 11, 7, 0.15);
  --on-light-08: rgba(14, 11, 7, 0.08);

  --accent: var(--champagne-deep);
  --accent-tint: var(--champagne);

  --max-w: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec-y: clamp(96px, 10vw, 152px);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-light-60);
}
.on-dark .eyebrow { color: var(--on-dark-60); }

.h-display {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-wrap: balance;
}
.h-display em, .italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 320;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "opsz" 120, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-wrap: balance;
}
.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--on-light-60);
  text-wrap: pretty;
}
.on-dark .lead { color: var(--on-dark-60); }

/* Layout */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--sec-y); position: relative; }
.section--dark { background: var(--ink); color: var(--pearl); }
.section--dark.on-dark, .section--dark { color: var(--pearl); }
.section--cream-2 { background: var(--pearl-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  font-family: var(--font-body);
  white-space: nowrap;
  font-family: var(--font-mono);
}
.btn:hover { transform: translateY(-1px); }
.btn--big { padding: 18px 26px; font-size: 12px; }
.btn--primary {
  background: var(--ink);
  color: var(--pearl);
  border-color: var(--ink);
}
.btn--primary:hover { background: #1f1812; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--on-light-15);
}
.btn--ghost:hover { border-color: var(--ink); }
.on-dark .btn--ghost, .section--dark .btn--ghost {
  color: var(--pearl); border-color: var(--on-dark-15);
}
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover { border-color: var(--pearl); }
.btn--gold {
  background: var(--accent-tint);
  color: var(--ink);
  border-color: var(--accent-tint);
}
.btn--gold:hover { background: var(--accent); border-color: var(--accent); }

/* Slot placeholder */
.slot {
  position: relative;
  background: var(--pearl-2);
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
}
.section--dark .slot { background: var(--ink-2); }
.slot::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 24px, rgba(14,11,7,0.04) 24px 48px);
}
.section--dark .slot::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 24px, rgba(246,239,227,0.04) 24px 48px);
}
.slot__caption {
  position: absolute;
  left: 14px; top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--on-light-40);
  z-index: 2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section--dark .slot__caption { color: var(--on-dark-40); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Rule */
.rule { height: 1px; background: var(--on-light-15); border: 0; margin: 0; }
.on-dark .rule, .section--dark .rule { background: var(--on-dark-15); }

/* Spec sheet style table */
.spec {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.spec th, .spec td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--on-light-15);
  vertical-align: top;
}
.section--dark .spec th, .section--dark .spec td {
  border-color: var(--on-dark-15);
}
.spec th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--on-light-60);
}
.section--dark .spec th { color: var(--on-dark-60); }

/* Numbered counter for steps */
.num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

::selection { background: var(--accent-tint); color: var(--ink); }

/* Header responsive */
.hdr-nav { display: flex; gap: 28px; }
@media (max-width: 1180px) {
  .hdr-nav { gap: 20px; }
  .hdr-nav a:nth-child(n+4) { display: none; }
}
@media (max-width: 980px) {
  .hdr-nav { display: none; }
  .hdr-patients { display: none !important; }
}

/* Modal (sample kit form) */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 11, 7, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  padding: 24px;
}
.modal-scrim.is-on { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--pearl);
  color: var(--ink);
  border-radius: 6px;
  width: 100%; max-width: 580px;
  padding: clamp(28px, 4vw, 48px);
  transform: translateY(20px);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.modal-scrim.is-on .modal { transform: translateY(0); }
.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--on-light-15);
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
}

/* Field */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--on-light-60);
}
.field__input {
  border: 0; border-bottom: 1px solid var(--on-light-15);
  background: transparent; padding: 10px 0;
  font-size: 16px; font-family: var(--font-body);
  color: var(--ink); outline: none;
  transition: border-color .2s ease;
}
.field__input:focus { border-bottom-color: var(--accent); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }
