/* DoctorPay.ca landing page. Tokens follow apps/web/app/globals.css (light theme; the logo is drawn for a light background). */
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #16202c;
  --muted: #5b6675;
  --border: #dde2e8;
  --brand: #062a6a;
  --brand-dark: #041d4a;
  --brand-soft: #e7edf7;
  --accent: #00793e;
  --accent-dark: #00602f;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--brand); }

.wrap { width: 100%; padding: 0 clamp(16px, 5vw, 80px); }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 200px; }
.top-nav { display: flex; align-items: center; gap: 16px; }
.link { text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; box-shadow: 0 0 0 2px var(--brand); }
.btn-sm { min-height: 38px; padding: 0 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.btn-outline:hover { background: var(--brand-soft); }

/* hero */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
h1 { margin: 0 0 16px; color: var(--brand); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 18px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.hero-art img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(6, 42, 106, .12); }

/* features */
.features { padding: 56px 0; }
h2 { margin: 0 0 24px; color: var(--brand); font-size: 28px; line-height: 1.25; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* contact */
.contact { background: var(--brand-soft); border-top: 1px solid var(--border); padding: 48px 0; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-box h2 { margin-bottom: 4px; }
.contact-box p { margin: 0; color: var(--muted); }

/* footer */
.foot { background: var(--brand); color: #dfe7f5; font-size: 14px; }
.foot a { color: #fff; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .top-row { min-height: 64px; }
  .hero { padding: 32px 0; }
  .hero-art { display: none; } /* the banner repeats the header logo; keep the buttons above the fold */
  .brand img { width: 150px; }
  .top-nav .link { display: none; }
  .lead { font-size: 17px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .features { padding: 40px 0; }
  h2 { font-size: 24px; margin-bottom: 16px; }
  .actions .btn { width: 100%; }
  .contact { padding: 32px 0; }
  .contact-box .btn { width: 100%; white-space: normal; }
  .foot-row { flex-direction: column; align-items: center; text-align: center; }
}

/* touch screens: tap targets of at least 44px */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .foot a { display: inline-block; padding: 12px 6px; }
}

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