/* Northbank Dental: design system. Tokens, type, glass, objects, motion. One family: Manrope. */

:root {
  --ink: #0a0c0e;
  --ink-2: #16191d;
  --ink-3: #23272c;
  --paper: #f7f6f2;
  --paper-2: #efede7;
  --card: #ffffff;
  --muted: #676b72;
  --muted-2: #9a9ea5;
  --line: rgba(10, 12, 14, 0.09);
  --line-strong: rgba(10, 12, 14, 0.16);
  --on-dark: #f5f4f0;
  --on-dark-muted: rgba(245, 244, 240, 0.64);
  --line-dark: rgba(245, 244, 240, 0.14);
  --ok: #1f7a4d;

  --accent: #0f5c58;
  --accent-hover: #0b4a47;
  --selection: var(--accent);
  --hero-bg: #1d2328;

  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(10, 12, 14, 0.03), 0 12px 32px -16px rgba(10, 12, 14, 0.22);
  --shadow-lift: 0 2px 0 rgba(10, 12, 14, 0.03), 0 24px 48px -20px rgba(10, 12, 14, 0.32);
  --shadow-float: 0 20px 56px -18px rgba(0, 0, 0, 0.55);
  --shadow-sheet: 0 -18px 48px -24px rgba(10, 12, 14, 0.35);

  --glass-dark-bg: rgba(14, 16, 19, 0.38);
  --glass-dark-edge: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  --glass-light-bg: rgba(247, 246, 242, 0.74);
  --glass-light-edge: inset 0 0 0 0.5px rgba(10, 12, 14, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --glass-blur: blur(22px) saturate(180%);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: 16px;
  --section: 72px;
  --maxw: 1320px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --topbar-h: 60px;
  --tabbar-h: 56px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --section: 128px; --topbar-h: 76px; }
}
@media (min-width: 1600px) {
  :root { --gutter: 56px; --maxw: 1520px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--selection); color: #f5f4f0; }

/* ---------- Type: display 500 max, tight tracking, never wide or heavy ---------- */
.display, h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(34px, 4.6vw, 64px); }
.h2 { font-size: clamp(28px, 3.2vw, 48px); }
.h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.02em; line-height: 1.14; }
.lede { font-size: clamp(17px, 1.25vw, 20px); color: var(--muted); line-height: 1.5; max-width: 52ch; margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }
.on-dark { color: var(--on-dark); }
.on-dark .lede, .on-dark .eyebrow { color: var(--on-dark-muted); }
.ln { display: block; text-wrap: balance; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--paper2 { background: var(--paper-2); }

/* ---------- Pills / buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--accent); color: var(--on-dark); box-shadow: 0 10px 24px -12px rgba(10, 12, 14, 0.6); }
.btn--ink:hover { background: var(--accent-hover); }
.btn--paper { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.btn--line:hover { background: rgba(10, 12, 14, 0.04); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.4; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-dark-edge), var(--shadow-float);
  color: var(--on-dark);
}
.glass::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%);
}
.glass[data-refract-on] { -webkit-backdrop-filter: var(--refract) blur(10px) saturate(175%); backdrop-filter: var(--refract) blur(10px) saturate(175%); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  transition: transform 0.18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Objects ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.18s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--accent); color: var(--on-dark); box-shadow: none; }
.chip svg { width: 15px; height: 15px; }

.pressable { transition: transform 0.2s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.pressable:active { transform: scale(0.975); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
