/* ==========================================================================
   Zufaa Inc - site styles
   Colors are taken from the company logo: #0033FF and #0066FF.
   Mobile first. Dark mode follows the visitor's system setting.
   ========================================================================== */

:root {
  --brand:        #0033FF;
  --brand-hover:  #0028CC;
  --brand-light:  #0066FF;
  --deep:         #0A1540;
  --deep-2:       #121E52;

  --bg:           #F6F7FB;
  --panel:        #FFFFFF;
  --panel-2:      #EEF1FA;
  --ink:          #0E1430;
  --muted:        #4E566F;
  --line:         #D9DEEC;

  --on-deep:      #FFFFFF;
  --on-deep-mute: #B6C2E8;

  --ok-bg:        #E7F6EE;
  --ok-ink:       #14532D;
  --err-bg:       #FDECEC;
  --err-ink:      #8A1C1C;

  --f-head: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-ui:   'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --maxw:   1100px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #090D1F;
    --panel:     #121833;
    --panel-2:   #19204A;
    --ink:       #E8ECF8;
    --muted:     #A3AECB;
    --line:      #27305A;
    --deep:      #060A1C;
    --deep-2:    #0E1636;
    --brand:     #5B8CFF;
    --brand-hover: #7FA6FF;
    --ok-bg:     #10301F;
    --ok-ink:    #9FE6BE;
    --err-bg:    #3A1414;
    --err-ink:   #FFB4B4;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(32px, 7vw, 54px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(25px, 4.6vw, 36px); letter-spacing: -.01em; }
h3 { font-size: clamp(19px, 2.6vw, 23px); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }

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

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px;
  text-decoration: none; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--deep);
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 66px; position: relative;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-family: var(--f-head);
  font-weight: 800; font-size: 21px; letter-spacing: -.01em;
  padding: 6px 2px; flex-shrink: 0;
}
.brand-link:hover { color: #fff; }
.brand-link img { width: 32px; height: 28px; display: block; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px; padding: 9px 13px; font: 600 15px var(--f-ui); cursor: pointer;
  min-height: 44px;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle svg { width: 18px; height: 18px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; color: var(--on-deep-mute); text-decoration: none;
  font-weight: 600; padding: 12px 2px;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; }

@media (max-width: 799px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--deep-2); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 8px var(--gutter) 18px; z-index: 60;
  }
  .site-nav.is-open { display: block; }
  .site-nav li + li { border-top: 1px solid rgba(255,255,255,.08); }
  .site-nav a { padding: 14px 2px; }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav ul { display: flex; align-items: center; gap: 26px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-light); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 16px/1.2 var(--f-ui); text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 11px; border: 2px solid transparent;
  min-height: 48px; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-on-deep { background: #fff; color: var(--deep); border-color: #fff; }
.btn-on-deep:hover { background: var(--panel-2); color: var(--deep); }
.btn-ghost-deep { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-deep:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 0 0 56px; }
.kicker {
  font: 700 13px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--deep); color: var(--on-deep); padding: 52px 0 60px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: var(--on-deep-mute); font-size: 19px; max-width: 56ch; }
.hero .kicker { color: var(--brand-light); }
.hero-logo { width: 104px; height: auto; margin-bottom: 24px; display: block; }

.page-head { background: var(--deep); color: var(--on-deep); padding: 44px 0 46px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: var(--on-deep-mute); max-width: 60ch; margin: 0; font-size: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card > :last-child { margin-bottom: 0; }

.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.app-card { display: flex; flex-direction: column; }
.app-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px; flex-shrink: 0;
}
.app-icon svg { width: 28px; height: 28px; color: #fff; }
.app-card p { color: var(--muted); }
.app-card .btn-row { margin-top: auto; padding-top: 10px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1em; }
.feature-list li {
  position: relative; padding-left: 28px; margin-bottom: .55em; color: var(--muted);
}
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--brand);
}

.split { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; gap: 44px; } }

dl.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
dl.facts dt {
  color: var(--muted); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px;
}
dl.facts dd { margin: 0; font-weight: 600; }

/* ---------- Contact / forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field .hint { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font: 400 16px var(--f-ui); color: var(--ink);
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 13px 14px; min-height: 48px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--brand); outline: 3px solid var(--brand); outline-offset: 1px;
}
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.required-mark { color: var(--brand); }
.form-note { font-size: 15px; color: var(--muted); }

.alert {
  border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
  border: 1.5px solid currentColor; font-weight: 500;
}
.alert-ok  { background: var(--ok-bg);  color: var(--ok-ink); }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert > :last-child { margin-bottom: 0; }
.alert a { color: inherit; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 600; font-family: var(--f-head);
  font-size: 18px; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--brand); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--panel-2); }
.faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-body > :last-child { margin-bottom: 0; }

/* ---------- Callout strip ---------- */
.strip {
  background: var(--deep); color: var(--on-deep); border-radius: 18px; padding: 32px 26px;
}
.strip h2 { color: #fff; }
.strip p { color: var(--on-deep-mute); max-width: 54ch; }
.strip > :last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep); color: var(--on-deep-mute);
  padding: 44px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  margin-top: 56px; font-size: 16px;
}
.site-footer a { color: var(--on-deep-mute); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; } }
.footer-grid h2 {
  font-size: 15px; color: #fff; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 14px; font-weight: 700; font-family: var(--f-ui);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 26px; }
.footer-brand span { font-family: var(--f-head); font-weight: 800; font-size: 19px; color: #fff; }
.footer-contact { font-style: normal; }
.footer-contact p { margin-bottom: .5em; }
.footer-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 15px;
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 70px 0 20px; }
.error-page .code {
  font-family: var(--f-head); font-weight: 800; font-size: clamp(64px, 16vw, 120px);
  line-height: 1; color: var(--brand); margin-bottom: 8px;
}
.error-page .btn-row { justify-content: center; }
.error-page .lead { margin-left: auto; margin-right: auto; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.m-0  { margin: 0; }
.mt-2 { margin-top: 20px; }
.pt-0 { padding-top: 0; }
.flush { margin-top: 0; padding-top: 0; border-top: 0; }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
