
:root {
  --paper: #f5f3ed;
  --surface: #fffdf8;
  --ink: #173431;
  --muted: #58706c;
  --teal: #176b64;
  --teal-dark: #0d4f4a;
  --line: #cbd8d3;
  --accent: #d6955b;
  --danger: #9c2f2f;
  --shadow: 0 18px 50px rgba(19, 52, 49, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(203, 216, 211, .72);
  background: rgba(245, 243, 237, .96);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--teal); font-family: Georgia, serif; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal-dark); }
.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 500; }
h2 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.7rem); font-weight: 500; }
h3 { margin: 0 0 10px; font-size: 1.1rem; }
.lede { max-width: 660px; margin: 24px 0 32px; color: var(--muted); font-size: 1.14rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: white;
  background: var(--teal);
  font: inherit;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.secondary { color: var(--teal-dark); background: transparent; }
.button.secondary:hover { color: white; background: var(--teal-dark); }
.button:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(214,149,91,.55); outline-offset: 3px; }
.hero-card { position: relative; min-height: 470px; overflow: hidden; border-radius: 180px 180px var(--radius) var(--radius); background: var(--teal-dark); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: 52px 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 140px 140px 18px 18px; }
.tooth { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-family: Georgia, serif; font-size: 9rem; }
.card-note { position: absolute; right: 20px; bottom: 20px; left: 20px; padding: 18px 22px; border-radius: 16px; color: var(--ink); background: var(--surface); }
.card-note strong { display: block; }
.card-note span { color: var(--muted); font-size: .92rem; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 34px; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .info-card, .record-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.service-card { padding: 28px; }
.service-number { display: inline-block; margin-bottom: 46px; color: var(--accent); font-family: Georgia, serif; font-size: 1.6rem; }
.service-card p { margin: 0; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 26px; }
.info-card p { margin: 0; color: var(--muted); }
.hours { display: grid; gap: 7px; }
.hours span { display: flex; justify-content: space-between; gap: 20px; }
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 52px; color: white; background: var(--teal-dark); }
.auth-aside h1 { max-width: 550px; font-size: clamp(2.8rem, 5vw, 5.3rem); }
.auth-main { display: grid; place-items: center; padding: 42px; background: var(--surface); }
.auth-panel { width: min(470px, 100%); }
.auth-panel h1 { margin-bottom: 12px; font-size: clamp(2.3rem, 5vw, 4rem); }
.auth-panel > p { color: var(--muted); }
.form { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
input { min-height: 50px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font: inherit; }
.form-hint { margin: -8px 0 0; color: var(--muted); font-size: .88rem; }
.error { padding: 12px 14px; border-left: 4px solid var(--danger); color: var(--danger); background: #fff1f1; }
.auth-switch { margin-top: 24px; }
.dashboard { min-height: 100vh; padding: 40px 0 80px; }
.dashboard-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 34px; }
.dashboard-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.role-badge { display: inline-flex; padding: 5px 11px; border-radius: 999px; color: var(--teal-dark); background: #dbece7; font-size: .82rem; font-weight: 800; }
.record-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.record-card { padding: 26px; }
.record-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.record-meta span { display: block; color: var(--muted); font-size: .82rem; }
.record-meta strong { display: block; margin-top: 3px; }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

@media (max-width: 900px) {
  .hero-grid, .auth-shell { grid-template-columns: 1fr; }
  .hero-card { min-height: 350px; border-radius: var(--radius); }
  .auth-aside { min-height: 320px; padding: 36px; }
  .service-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { position: static; }
  .nav { min-height: 66px; }
  .nav-links a:not(.button) { display: none; }
  .hero { padding: 54px 0 42px; }
  .hero-grid { gap: 36px; }
  .hero-card { min-height: 300px; }
  .tooth { font-size: 6rem; }
  .section { padding: 56px 0; }
  .section-head, .dashboard-head, .site-footer .container { display: grid; }
  .service-grid, .trust-grid, .record-grid, .record-meta { grid-template-columns: 1fr; }
  .service-number { margin-bottom: 24px; }
  .auth-aside { min-height: 260px; padding: 28px; }
  .auth-main { padding: 34px 20px; }
  .dashboard { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
