/* IT OnCall — site styles (home and contact pages; the platform pages use oncall.css) */

/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url(../fonts/fredoka-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(../fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

[hidden] { display: none !important; }

:root {
  --navy: #0B1F3A;
  --navy-deep: #071528;
  --navy-alt: #0A1A31;
  --card: #12294A;
  --tile: #1B3A5F;
  --line: #1F3B5E;
  --line-strong: #2A4A70;
  --green: #12B76A;
  --green-light: #6EE7B7;
  --text: #FFFFFF;
  --text-soft: #D5DEE9;
  --text-muted: #B8C4D4;
  --text-dim: #7C93AE;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--green-light); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 800; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--navy-alt); }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--green-light); }
.pill-label { align-self: flex-start; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-light); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; }
.h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 32em; }
.muted { color: var(--text-muted); }
.accent { color: var(--green); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: 12px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: #0FA35E; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--text); border-color: #3B5C82; }
.btn--ghost:hover { border-color: var(--green-light); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 58, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 16px; }
.nav__links a:not(.btn) { color: var(--text-soft); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--green-light); }
.nav__toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.mobile-menu a:not(.btn) { text-decoration: none; padding: 12px 4px; }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .site-header.is-open .mobile-menu { display: flex; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 72px); padding-block: clamp(56px, 9vw, 120px); }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.terminal { width: 100%; max-width: 460px; background: var(--navy-deep); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px 24px 26px; font-family: var(--font-mono); font-size: clamp(13px, 1.2vw, 15px); line-height: 1.9; color: var(--text-soft); }
.terminal__dots { display: flex; gap: 8px; margin-bottom: 14px; }
.terminal__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.terminal .c { color: var(--text-dim); }
.terminal .ok { color: var(--green-light); }
.terminal .p { color: var(--green); }

/* Grids & cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--text-muted); }
.icon-tile { width: 44px; height: 44px; border-radius: 10px; background: var(--tile); color: var(--green-light); font-family: var(--font-mono); font-weight: 500; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.step { border-top: 2px solid var(--line-strong); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step:first-child { border-top-color: var(--green); }
.step__num { font-family: var(--font-mono); font-weight: 500; color: var(--green-light); }
.step p { color: var(--text-muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 24px; color: var(--green); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-bottom: 18px; color: var(--text-muted); }

/* CTA band */
.cta { background: var(--card); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); color: var(--text-muted); }
.footer__inner { display: flex; flex-direction: column; gap: 40px; padding-block: clamp(48px, 7vw, 80px) 28px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer__col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col--brand { flex-basis: 260px; gap: 14px; }
.footer__col h2 { font-family: var(--font-body); font-size: 15px; font-weight: 800; color: var(--text); }
.footer__col a { color: var(--text-muted); }
.footer__col a:hover { color: var(--green-light); }
.footer__tag { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.qr-card { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px; color: var(--text); text-decoration: none; }
.qr-card:hover { color: var(--text); border-color: var(--green); }
.qr-card img { width: 116px; height: 116px; border-radius: 10px; }
.qr-card__text { display: flex; flex-direction: column; gap: 4px; max-width: 140px; }
.qr-card__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.15; }
.qr-card__sub { font-size: 14px; color: var(--text-muted); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Contact page */
.contact { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; padding-block: clamp(40px, 7vw, 88px); }
.contact__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__intro .h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.info-card span { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.info-card a, .info-card strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; text-decoration: none; overflow-wrap: anywhere; color: var(--text); }
.form-card { flex: 1 1 520px; min-width: 0; background: var(--card); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--navy-deep); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.checks { border: 0; margin: 0; padding: 0; }
.checks legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.checks__list { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.check:has(input:checked) { border-color: var(--green); background: rgba(18, 183, 106, .12); }
.form .btn { align-self: flex-start; }
.form__note { font-size: 14px; color: var(--text-muted); }
.hidden { display: none; }

/* Thank-you */
.thanks { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-block: var(--section-y); max-width: 640px; }
.thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(18, 183, 106, .16); display: flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
