/* BTHHD Portal official website — one stylesheet, no web fonts, no scripts. */
:root {
  --brand: #1f5fb8;
  --brand-strong: #174a90;
  --accent: #f5b12e;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #4f5d70;
  --line: #dbe2ec;
  --bubble-them: #eef2f8;
  --bubble-me: #1f5fb8;
  --bubble-me-text: #ffffff;
  --focus: #f5b12e;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6ea3ef;
    --brand-strong: #9cc0f5;
    --bg: #0f1520;
    --bg-alt: #151d2b;
    --surface: #182233;
    --text: #e8edf5;
    --muted: #a9b5c6;
    --line: #2a3648;
    --bubble-them: #223047;
    --bubble-me: #2f6fca;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.75rem, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

@media (min-width: 52rem) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
}

.button:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .button,
  .button:hover {
    color: #0f1520;
  }
}

.button-small {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.button-quiet {
  background: transparent;
  color: var(--brand);
}

.button-quiet:hover {
  background: var(--bg-alt);
  color: var(--brand-strong);
}

@media (prefers-color-scheme: dark) {
  .button-quiet,
  .button-quiet:hover {
    color: var(--brand);
  }
}

.button-light,
.button-light:hover {
  background: #fff;
  border-color: #fff;
  color: #174a90;
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero {
    padding: 5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.fine {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.chat {
  width: 100%;
  max-width: 21rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px -20px rgb(23 74 144 / 35%);
}

.bubble {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 18px;
  font-size: 0.95rem;
}

.them {
  background: var(--bubble-them);
  border-bottom-left-radius: 6px;
}

.me {
  margin-left: auto;
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-bottom-right-radius: 6px;
}

.voice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 11rem;
}

.play {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentcolor;
}

.wave {
  flex: 1;
  height: 14px;
  background: repeating-linear-gradient(90deg, currentcolor 0 3px, transparent 3px 6px);
  opacity: 0.7;
  mask: linear-gradient(90deg, #000 30%, rgb(0 0 0 / 40%));
}

.time {
  font-size: 0.8rem;
}

.receipt {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-foot {
  margin-top: 2rem;
  color: var(--muted);
}

.features,
.facts,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .features,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.features li,
.facts li,
.steps li {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.features h3::before {
  content: '';
  display: block;
  width: 2rem;
  height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: var(--accent);
}

.features p,
.facts p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  margin-top: 1.5rem;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .steps li::before {
    color: #0f1520;
  }
}

/* Call to action */
.cta {
  padding: 3rem 0;
  background: #1f5fb8;
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta h2 {
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  overflow-wrap: anywhere;
}

/* Not-found page */
.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 0;
}
