/* =========================================================
   Kashvida — Neumorphic Light (Soft UI)
   "Deeper Ice" — a more saturated ice-blue base with depth carried
   entirely by dual soft shadows — no borders, no blur, no translucency.
   ========================================================= */
:root {
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --container: 1180px;

  --bg-1: #d7e3f5;
  --bg-2: #c0d5f2;
  --surface: #deeaf9;
  --surface-raised: #e9f1fb;

  --text: #16233d;
  --text-dim: #45577a;
  --text-faint: #7186ac;

  --accent: #2f68e0;
  --accent-deep: #1c4bc7;
  --accent-soft: #c9deff;
  --on-accent: #ffffff;

  --line: #b9cdec;

  --danger: #d64545;
  --danger-soft: #fbe4e4;
  --success: #1f9d63;
  --success-soft: #e2f6ec;

  /* the two light sources every soft-UI shadow pair is built from */
  --sh-light: #ffffff;
  --sh-dark: rgba(28,75,199,0.40);
  --sh-dark-hover: rgba(28,75,199,0.55);

  --sh-sm: 5px 5px 12px var(--sh-dark), -5px -5px 12px var(--sh-light);
  --sh-md: 9px 9px 20px var(--sh-dark), -9px -9px 20px var(--sh-light);
  --sh-lg: 14px 14px 32px var(--sh-dark), -12px -12px 28px var(--sh-light);
  --sh-inset: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
  --sh-inset-sm: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);

  /* darker versions used on hover, matching the button hover treatment */
  --sh-md-hover: 9px 9px 20px var(--sh-dark-hover), -9px -9px 20px var(--sh-light);
  --sh-lg-hover: 14px 14px 32px var(--sh-dark-hover), -12px -12px 28px var(--sh-light);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 14px;
}
p { margin: 0 0 16px; max-width: 68ch; color: var(--text-dim); }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* =========================================================
   Soft surface (formerly the glass panel) — same class name kept
   throughout the markup, redefined here as a neumorphic raised card:
   flat background near-identical to the page, depth from shadow only.
   ========================================================= */
.glass {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--sh-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.glass:hover { box-shadow: var(--sh-lg-hover); border-color: var(--accent); transform: translateY(-3px); }

.eyebrow, .coord {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
  display: inline-block;
  margin: 0 0 10px;
}

.grad { color: var(--accent-deep); }

.section { padding: 88px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head p { color: var(--text-dim); font-size: 17px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 6px 6px 16px rgba(28,75,199,0.40), -6px -6px 16px var(--sh-light);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 20px rgba(28,75,199,0.46), -8px -8px 20px var(--sh-light);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 10px rgba(15,39,104,0.4), inset -4px -4px 10px rgba(255,255,255,0.25);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 2px solid transparent;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-md-hover); border-color: var(--accent); }
.btn-ghost:active { transform: translateY(0); box-shadow: var(--sh-inset-sm); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header { position: sticky; top: 16px; z-index: 20; padding: 0 24px; }
.nav-bar {
  margin: 0 auto;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px 12px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--sh-sm), 0 0 0 1px rgba(47,104,224,0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.brand:hover { box-shadow: var(--sh-md-hover), 0 0 22px rgba(47,104,224,0.18); transform: translateY(-1px); }
.brand img { height: 40px; width: auto; }
.brand-mark { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--text); }
.brand-mark span { color: var(--accent-deep); }

.footer-brand .brand { display: inline-flex; margin-bottom: 4px; }
.footer-brand .brand img { height: 34px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a:not(.btn) {
  border: 2px solid transparent;
  border-radius: 8px;
  transition: color 0.2s, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav-links a:not(.btn):hover { box-shadow: var(--sh-sm); border-color: var(--accent); }
.nav-links a.btn-primary { color: var(--on-accent); }
.nav-links a.btn-primary:hover { color: var(--on-accent); }
.nav-links a.btn-ghost { color: var(--text); }
.nav-cta { margin-left: 4px; }

.nav-toggle-label { display: none; cursor: pointer; padding: 6px; border-radius: 8px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: transform .2s ease;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }
#nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header { top: 0; padding: 0; }
  .nav-bar { border-radius: 0; }
  .nav-toggle-label { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; display: none;
    margin-top: 8px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--sh-lg);
    z-index: 5;
  }
  .nav-links a { padding: 10px 8px; }
  .nav-cta { margin: 6px 8px 2px; }
  #nav-toggle:checked ~ .nav-links { display: flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 72px 0 88px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 18px; }
.hero .lede { font-size: 18px; color: var(--text-dim); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.hero-stat { padding: 16px 14px; }
.hero-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--text); }
.hero-stat .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }

.hero-card { padding: 30px; }
.hero-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.hero-card ul { display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: 14.5px; }
.hero-card li::before { content: "→"; color: var(--accent-deep); flex-shrink: 0; font-weight: 700; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0; } }

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar { padding: 30px 0; position: relative; z-index: 1; }
.trust-bar .container.glass { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 20px 26px; }
.trust-bar .trust-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
@media (min-width: 700px) { .trust-bar .trust-label { white-space: nowrap; } }
.trust-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex: 1; min-width: 0; }
.trust-logos img {
  height: 26px; width: auto;
  background: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  box-shadow: var(--sh-sm);
  transition: transform .15s ease;
}
.trust-logos img:hover { transform: translateY(-2px); }

/* =========================================================
   Grids & Cards
   ========================================================= */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { padding: 28px; }
.card:hover { transform: translateY(-4px); }
.card h3 { font-weight: 600; font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; line-height: 1.6; margin: 0; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  box-shadow: 4px 4px 10px rgba(28,75,199,0.36), -4px -4px 10px var(--sh-light);
  margin-bottom: 18px;
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Differentiator list */
.diff-list { display: grid; gap: 14px; }
.diff-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; }
.diff-item > div { min-width: 0; }
.diff-item .num { font-family: var(--font-mono); color: var(--accent-deep); font-weight: 600; font-size: 0.8rem; padding-top: 2px; }
.diff-item h4 { margin: 0 0 4px; font-size: 15.5px; font-family: var(--font-display); font-weight: 600; }
.diff-item p { margin: 0; font-size: 14px; }

/* =========================================================
   Partner strip
   ========================================================= */
.strip-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px; }
.strip-label.spaced { margin-top: 28px; }
.state-strip, .partner-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.state-strip { grid-template-columns: repeat(3, 1fr); }
.partner-chip {
  padding: 22px 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.partner-chip.logo-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; }
.partner-chip.logo-chip img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.partner-chip.logo-chip span { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
@media (max-width: 780px) { .partner-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .partner-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .state-strip { grid-template-columns: repeat(1, 1fr); } }
@media (max-width: 480px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Process timeline
   ========================================================= */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step { padding: 30px 26px; position: relative; }
.process-step .step-num {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 4px 4px 10px rgba(28,75,199,0.36), -4px -4px 10px var(--sh-light);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; margin: 0; }
.process-connector {
  display: none;
  position: absolute;
  top: 49px; left: 100%;
  width: 22px; height: 2px;
  background: var(--line);
}
@media (min-width: 961px) { .process-step:not(:last-child) .process-connector { display: block; } }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* =========================================================
   Tabs (CSS-only, radio-driven)
   ========================================================= */
.tabset { display: block; }
.tabset input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabset label {
  cursor: pointer;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab-panel { display: none; }
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"] { color: var(--accent-deep); border-bottom-color: var(--accent); }
#tab1:checked ~ .tab-panels #panel1,
#tab2:checked ~ .tab-panels #panel2,
#tab3:checked ~ .tab-panels #panel3 { display: block; }

.tab-panel-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.tab-panel-grid img { border-radius: var(--radius-sm); box-shadow: var(--sh-lg); }
.tab-panel-grid ul { display: grid; gap: 10px; margin-top: 18px; }
.tab-panel-grid li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.tab-panel-grid li::before { content: "✓"; color: var(--accent-deep); font-weight: 700; flex-shrink: 0; }
@media (max-width: 760px) { .tab-panel-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Accordion
   ========================================================= */
.accordion { display: grid; gap: 14px; }
.accordion details.glass { padding: 4px 20px; }
.accordion summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; color: var(--accent-deep); transition: transform .15s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 0 18px; color: var(--text-dim); font-size: 14.5px; }

/* =========================================================
   Stats strip
   ========================================================= */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-strip .stat { padding: 26px 20px; text-align: center; }
.stat-strip .stat .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.9rem; font-weight: 800; color: var(--text); }
.stat-strip .stat .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Two-column media sections
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--sh-lg); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; } }

/* =========================================================
   Team / person card
   ========================================================= */
.person-card { display: flex; gap: 22px; align-items: center; padding: 26px; flex-wrap: wrap; }
.person-card > div:last-child { min-width: 0; flex: 1 1 220px; }
.person-card .avatar-ring {
  flex-shrink: 0; width: 88px; height: 88px; padding: 4px; border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.person-card img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.person-card h4 { margin: 0 0 2px; font-size: 16px; }
.person-card .role { color: var(--accent-deep); font-size: 13.5px; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.person-card p { margin: 8px 0 0; font-size: 14px; }

/* =========================================================
   Forms — inputs use the inset (pressed) neumorphic treatment,
   the classic Soft UI cue for an editable field.
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: var(--surface);
  box-shadow: var(--sh-inset-sm);
  color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.contact-card { display: grid; gap: 18px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .ic { color: var(--accent-deep); font-weight: 700; font-family: var(--font-mono); font-size: 0.72rem; padding-top: 3px; }
.contact-line h4 { margin: 0 0 3px; font-size: 14.5px; }
.contact-line p { margin: 0; font-size: 14.5px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  border-radius: var(--radius);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--surface);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; }
@media (max-width: 700px) { .cta-band { padding: 36px 24px; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: 64px 0 28px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-dim); font-size: 13.5px; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Page header (inner pages)
   ========================================================= */
.page-header { padding: 56px 0 48px; position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(28px, 4.2vw, 44px); }
.page-header p { max-width: 60ch; margin: 0; }

.subhead {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 18px;
}
.hero .subhead { font-size: 1.3rem; margin: -6px 0 18px; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: var(--sh-md);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { box-shadow: var(--sh-lg-hover); transform: translateY(-2px); }
.back-to-top:active { box-shadow: var(--sh-inset-sm); }
.back-to-top svg { width: 18px; height: 18px; }

/* =========================================================
   Careers — job cards, apply form, admin panel
   ========================================================= */
.job-list { display: grid; gap: 16px; }
.job-card { padding: 4px 28px; }
.job-card summary {
  cursor: pointer;
  padding: 24px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.job-card summary::-webkit-details-marker { display: none; }
.job-card summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-deep);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.job-card[open] summary::after { transform: rotate(45deg); }
.job-card summary h3 { margin: 0 0 4px; }
.job-summary-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.job-card-body { padding: 0 0 28px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.job-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.job-card-body p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 18px; }
.job-requirements { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; padding-left: 20px; }
.job-requirements li { margin-bottom: 4px; }
.job-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.job-card.job-card-highlighted { border-color: var(--accent); box-shadow: var(--sh-lg-hover); }
.job-empty { color: var(--text-dim); text-align: center; padding: 40px 0; }

.form-status { font-size: 14px; margin-top: 14px; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.visible { display: block; }
.form-status.is-success { background: var(--success-soft); color: var(--success); }
.form-status.is-error { background: var(--danger-soft); color: var(--danger); }

.status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.status-pill.status-rejected { background: var(--danger-soft); color: var(--danger); }
.status-pill.status-hired { background: var(--success-soft); color: var(--success); }
.status-pill.status-active { background: var(--success-soft); color: var(--success); }
.status-pill.status-inactive { background: var(--surface); color: var(--text-dim); box-shadow: var(--sh-inset-sm); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table select { font-family: var(--font-body); font-size: 13.5px; padding: 6px 10px; border-radius: 8px; border: none; background: var(--surface); box-shadow: var(--sh-inset-sm); color: var(--text); }

.admin-job-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-job-row:last-child { border-bottom: none; }
.admin-job-row h4 { margin: 0 0 4px; font-size: 15.5px; }
.admin-job-row .job-meta { margin: 0; }
.admin-job-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-section-toggle { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
