/* DBProfile site styles. Plain CSS, no build step. Sizes in rem so large text settings scale everything. */
:root {
  --ink: #16202e;          /* body text: 15.9:1 on --bg */
  --muted: #475467;        /* secondary text: 7.6:1 on --bg */
  --brand: #1d4e89;        /* links, buttons: 8.0:1 on --bg, white on it 8.0:1 */
  --brand-strong: #133a68;
  --brand-tint: #eaf1fa;
  --accent: #0e7c6b;       /* small accents: 5.0:1 on --bg */
  --bg: #ffffff;
  --surface: #f6f8fb;
  --line: #d9e0ea;
  --radius: 14px;
  --max: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 0.6em; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 1rem; top: -10rem;
  background: var(--brand); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand:hover { color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
.site-nav a {
  display: inline-block; padding: 0.45rem 0.75rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 550;
}
.site-nav a:hover { background: var(--surface); color: var(--brand-strong); }
.site-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-strong); }

/* Sections */
main { display: block; }
.section { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 40em; }
.measure { max-width: 42em; }

.hero { padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero h1 { max-width: 18em; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: 999px;
  font-weight: 650; text-decoration: none; border: 2px solid var(--brand);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); }

/* Cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon {
  width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--brand-tint);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--brand);
}
.icon svg { width: 1.5rem; height: 1.5rem; }

.list { padding-left: 1.2rem; margin: 0 0 1em; }
.list li { margin-bottom: 0.35em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.25rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.steps strong { display: block; }

/* App feature */
.app-feature { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .app-feature { grid-template-columns: 1.3fr 1fr; } }
.app-title { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.app-title img { width: 4rem; height: 4rem; border-radius: 18px; background: #f3e9f6; padding: 0.35rem; }
.app-title h2 { margin: 0; }
.tagline { font-size: 1.25rem; font-weight: 650; color: #4b1d5c; margin-bottom: 0.75rem; }
.badge { display: inline-block; font-size: 0.9rem; font-weight: 650; padding: 0.3rem 0.8rem; border-radius: 999px; background: #fff1d9; color: #7a3f00; border: 1px solid #f2d3a0; }
.phone {
  justify-self: center; width: min(100%, 19rem); border-radius: 2rem; padding: 0.6rem;
  background: #16202e; box-shadow: 0 20px 40px -20px rgba(22, 32, 46, 0.45);
}
.phone img { border-radius: 1.5rem; width: 100%; }
figcaption { font-size: 0.95rem; color: var(--muted); text-align: center; margin-top: 0.9rem; }

/* Contact */
.contact-card { max-width: 36rem; }
.email { font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.45rem); font-weight: 700; overflow-wrap: anywhere; }

/* Policy */
.policy { max-width: 46em; }
.policy h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.policy h3 { margin-top: 1.4rem; }
.policy table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.98rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border: 1px solid var(--line); }
.policy th { background: var(--surface); }
.table-scroll { overflow-x: auto; }
.meta { color: var(--muted); font-size: 0.98rem; }
.note { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2rem 0 2.5rem; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.legal { margin: 0; max-width: 52em; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: background-color 0.15s ease, color 0.15s ease; }
}

.h3 { font-size: 1.2rem; }
.phone-figure { margin: 0; justify-self: center; width: min(100%, 19rem); }
.phone-figure .phone { width: 100%; }
/* Long email addresses and URLs wrap instead of forcing sideways scrolling at large text sizes. */
.btn, p a, li a { overflow-wrap: anywhere; }
.btn { max-width: 100%; text-align: center; }
