/* Self-hosted Red Hat fonts (SIL Open Font License 1.1) — no third-party font requests. */
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/red-hat-display-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/red-hat-text-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/red-hat-mono-latin-wght-normal.woff2') format('woff2'); }

/* Teleadmin — site styles
   Palette and type come from the Teleadmin logo: brand teal #82C8C8, brand blue #2660AF.
   Layers keep the cascade predictable: later layers always win. */
@layer reset, base, layout, components, sections, utilities;

:root {
  --blue: #2660AF;
  --blue-deep: #1A4785;
  --teal: #82C8C8;
  --teal-deep: #1D6E70;
  --teal-wash: #DDF0F0;
  --ink: #12233F;
  --ink-soft: #46566E;
  --mist: #EFF7F7;
  --line: #D5E2E5;
  --white: #FFFFFF;
  --danger: #9B2C2C;

  --font-display: 'Red Hat Display', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Red Hat Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Red Hat Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 120px);
  --radius: 22px;
  --shadow: 0 1px 2px rgb(18 35 63 / .06), 0 18px 40px -12px rgb(18 35 63 / .2);
  --header-h: 76px;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  fieldset { border: 0; padding: 0; min-width: 0; }
  address { font-style: normal; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; }
}

@layer base {
  body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    text-wrap: balance;
  }
  h1 { font-size: clamp(2.5rem, 1.55rem + 3.9vw, 4.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
  h2 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.9rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
  h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
  p { text-wrap: pretty; }
  a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
  ::selection { background: var(--teal); color: var(--ink); }

  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
}

@layer layout {
  .wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

  .band { padding-block: var(--band); }
  .band-mist { background: var(--mist); }
  .band-ink { background: var(--ink); color: var(--white); }

  .section-head { max-width: 46rem; display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
  .section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.125rem; }

  .split { display: grid; gap: clamp(36px, 6vw, 96px); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; }
  .split-even { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); }
  .split-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
  .split-aside p { color: var(--ink-soft); }

  @media (max-width: 900px) {
    .split, .split-even { grid-template-columns: minmax(0, 1fr); }
    .split-aside { position: static; }
  }
}

@layer components {
  .skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px; }
  .skip-link:focus { top: 12px; }

  .eyebrow { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
  .band-ink .eyebrow { color: var(--teal); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1;
    padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  }
  .btn-primary { background: var(--blue); color: var(--white); }
  .btn-primary:hover { background: var(--blue-deep); }
  .btn-quiet { color: var(--ink); padding-inline: 8px; }
  .btn-quiet:hover { color: var(--blue); }
  .btn-small { padding: 12px 20px; font-size: .9375rem; }
  .btn[disabled] { cursor: default; opacity: .75; }
  .btn.is-done, .btn.is-done:hover { background: var(--teal-deep); color: var(--white); opacity: 1; }

  .text-link { font-weight: 600; color: var(--blue); text-decoration: none; justify-self: start; }
  .text-link:hover { text-decoration: underline; }

  .pill, .tag { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-radius: 999px; }
  .pill { background: var(--teal-wash); color: var(--teal-deep); padding: 7px 11px; }
  .tag { color: var(--teal-deep); border: 1px solid var(--teal); padding: 4px 8px; }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips li { font-size: .8125rem; line-height: 1.3; padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); }

  /* Header */
  .site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgb(255 255 255 / .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
  .header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
  .brand { flex: none; display: block; border-radius: 8px; }
  .brand img { width: auto; height: 46px; }
  .site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
  .site-nav a:not(.btn) { font-size: .9688rem; font-weight: 500; color: var(--ink); text-decoration: none; padding-block: 6px; }
  .site-nav a:not(.btn):hover { color: var(--blue); }
  .nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  @media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 24px 32px -24px rgb(18 35 63 / .25); }
    .site-nav[data-open="true"] { display: flex; }
    .site-nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
    .site-nav .btn { margin-top: 16px; }
  }

  /* Services rows */
  .svc { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
  .svc:last-child { border-bottom: 1px solid var(--line); }
  .svc-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-wash); color: var(--teal-deep); display: grid; place-items: center; }
  .svc-icon svg { width: 26px; height: 26px; }
  .svc-body { display: grid; gap: 10px; }
  .svc-body p { color: var(--ink-soft); }
  .svc-body .chips { margin-top: 6px; }
  .aside-note { font-size: .9375rem; padding: 14px 16px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); }

  @media (max-width: 520px) {
    .svc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  }

  /* Process */
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
  .step { position: relative; display: grid; gap: 12px; align-content: start; }
  .step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--teal); font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
  .step p { color: var(--ink-soft); font-size: 1rem; }
  @media (min-width: 1001px) {
    .step:not(:last-child)::before { content: ""; position: absolute; top: 27px; left: 68px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); }
  }
  @media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) {
    .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
    .step-num { grid-row: span 2; margin-bottom: 0; }
  }

  /* Reasons */
  .reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); }
  .reason { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); padding-top: 22px; }
  .reason p { color: var(--ink-soft); font-size: 1rem; }
  @media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .reasons { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

  /* Privacy checklist (on ink) */
  .band-ink h2, .band-ink h3 { color: var(--white); }
  .band-ink .split-aside p:not(.eyebrow) { color: rgb(255 255 255 / .8); }
  .band-ink :focus-visible { outline-color: var(--teal); }
  .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 44px); }
  .checks li { position: relative; padding-left: 42px; display: grid; gap: 6px; align-content: start; }
  .checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); }
  .checks li::after { content: ""; position: absolute; left: 9px; top: 6px; width: 8px; height: 13px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
  .checks h3 { font-size: 1.125rem; }
  .checks p { color: rgb(255 255 255 / .76); font-size: 1rem; }
  @media (max-width: 640px) { .checks { grid-template-columns: minmax(0, 1fr); } }

  /* FAQ */
  .faq { border-top: 1px solid var(--line); }
  .faq:last-child { border-bottom: 1px solid var(--line); }
  .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; transition: transform .2s ease; }
  .faq[open] summary::after { transform: rotate(45deg); }
  .faq summary:hover { color: var(--blue); }
  .faq-body { padding: 0 34px 22px 0; color: var(--ink-soft); }

  /* Contact */
  .contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
  .contact-copy { display: grid; gap: 18px; }
  .contact-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.125rem; }
  .contact-details { display: grid; gap: 20px; margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
  .contact-details dt { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 4px; }
  .contact-details dd { font-size: 1rem; line-height: 1.55; }
  .contact-details a { color: var(--blue); font-weight: 600; }
  .contact-form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.2vw, 36px); box-shadow: 0 1px 2px rgb(18 35 63 / .05); }
  .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field { display: grid; gap: 7px; align-content: start; }
  .field label, .field legend { font-size: .9063rem; font-weight: 600; line-height: 1.35; padding: 0; }
  .field legend { margin-bottom: 9px; }
  .optional { font-weight: 400; color: var(--ink-soft); }
  .field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1.5px solid #BFD1D6; border-radius: 12px; background: var(--white); line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
  .field textarea { resize: vertical; min-height: 112px; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: #8FB1B8; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(38 96 175 / .2); border-radius: 12px; }
  .field [aria-invalid="true"] { border-color: var(--danger); }
  .check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .check-chips label { position: relative; font-weight: 500; }
  .check-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
  .check-chips span { display: inline-block; font-size: .875rem; line-height: 1.3; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #BFD1D6; background: var(--white); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
  .check-chips input:hover + span { border-color: var(--blue); }
  .check-chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
  .check-chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
  .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-note { font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
  .form-note a { color: var(--blue); }
  .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
  .form-status { font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); flex: 1 1 240px; }
  .form-status.is-ok { color: var(--teal-deep); font-weight: 600; }
  .form-status.is-error { color: var(--danger); }
  .form-status a { color: var(--blue); font-weight: 600; }
  @media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

  /* Footer */
  .site-footer { background: var(--ink); color: rgb(255 255 255 / .78); font-size: .9688rem; }
  .site-footer :focus-visible { outline-color: var(--teal); }
  .footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.1fr); gap: 40px clamp(28px, 5vw, 72px); padding-block: clamp(48px, 6vw, 72px) 40px; }
  .footer-brand { display: grid; gap: 18px; align-content: start; }
  .footer-brand img { width: auto; height: 50px; }
  .logo-invert { filter: brightness(0) invert(1); }
  .footer-brand p { max-width: 30ch; }
  .footer-nav { display: grid; gap: 10px; align-content: start; }
  .footer-nav a, .footer-contact a { color: var(--white); text-decoration: none; }
  .footer-nav a:hover, .footer-contact a:hover { color: var(--teal); text-decoration: underline; }
  .footer-contact { display: grid; gap: 12px; align-content: start; line-height: 1.55; }
  .footer-contact a { font-weight: 600; }
  .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 22px 28px; border-top: 1px solid rgb(255 255 255 / .16); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .03em; color: rgb(255 255 255 / .7); }
  @media (max-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
  @media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

  /* Long-form pages (privacy policy, 404) */
  .doc { max-width: 46rem; display: grid; gap: 18px; }
  .doc h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); margin-bottom: 4px; }
  .doc h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin-top: 22px; }
  .doc p, .doc li { color: var(--ink-soft); }
  .doc ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
  .doc a { color: var(--blue); }
  .doc-meta { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
  .notfound { min-height: 56vh; display: grid; align-content: center; gap: 20px; justify-items: start; }
}

@layer sections {
  .hero { position: relative; overflow: hidden; overflow: clip; background: linear-gradient(180deg, var(--mist) 0%, var(--white) 78%); padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 64px); }
  .hero::before { content: ""; position: absolute; z-index: 0; right: -10vw; top: 50%; transform: translateY(-50%); width: clamp(280px, 40vw, 600px); aspect-ratio: 1; border-radius: 50%; background: var(--teal); opacity: .34; pointer-events: none; }
  .hero-inner { position: relative; z-index: 1; }
  .hero-copy { display: grid; gap: 24px; justify-items: start; max-width: 46rem; }
  .lede { font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
  .marker { background: linear-gradient(transparent 60%, rgb(130 200 200 / .6) 60%, rgb(130 200 200 / .6) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em; margin-inline: -.06em; }
  .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
  .hero-facts { display: grid; gap: 10px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
  .hero-facts li { position: relative; padding-left: 26px; font-size: 1rem; font-weight: 500; line-height: 1.45; }
  .hero-facts li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgb(130 200 200 / .3); }

  @media (max-width: 960px) {
    .hero::before { width: 56vw; right: -28vw; top: auto; bottom: -22vw; transform: none; opacity: .28; }
  }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .nowrap { white-space: nowrap; }
  [hidden] { display: none !important; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  }
}
