/* =============================================================
   David Jacob · IT Consulting — Design System v2 (2026)
   Light Editorial / Stripe-inspired
   ============================================================= */

:root {
  /* Brand */
  --primary:        #0a2540;
  --primary-hover:  #143759;
  --primary-soft:   #1e3a5f;
  --accent:         #0ea5e9;
  --accent-hover:   #0284c7;
  --accent-warm:    #f97316;
  --accent-warm-soft:#fbbf77;

  /* Neutrals */
  --bg:             #f6f8fb;
  --bg-elev:        #ffffff;
  --bg-section:     #ffffff;
  --bg-accent:      #eef4ff;
  --bg-dark:        #0a1628;
  --text:           #0f172a;
  --text-muted:     #475569;
  --text-subtle:    #64748b;
  --text-on-dark:   #f1f5f9;
  --text-on-dark-muted:#94a3b8;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;
  --border-dark:    rgba(255,255,255,0.10);

  /* Effects */
  --radius-sm: 0.5rem;
  --radius:    0.85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03);
  --shadow:    0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.08), 0 8px 16px rgba(15,23,42,0.05);
  --shadow-xl: 0 32px 64px rgba(15,23,42,0.12), 0 12px 24px rgba(15,23,42,0.08);

  /* Typo */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  color-scheme: light;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(14,165,233,0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(249,115,22,0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* === Layout === */
.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.container-narrow {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
}
main { flex: 1 0 auto; }
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section + section { border-top: 1px solid var(--border); }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-soft  { background: var(--bg-accent); }
.bg-white { background: var(--bg-section); }
.bg-dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.bg-dark .text-muted { color: var(--text-on-dark-muted); }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,251,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(10,37,64,0.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-text .tagline {
  font-size: 0.74rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.93rem;
}
.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
  background: rgba(10,37,64,0.06);
}
.nav .nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0.5rem;
}
.nav .nav-cta:hover { background: var(--primary-hover); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  border-radius: 0.5rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.22s ease;
}

/* === Buttons === */
.btn,
.btn-secondary,
.btn-ghost,
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: transform 0.15s, background 0.18s, box-shadow 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 18px -8px rgba(10,37,64,0.6);
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 22px -8px rgba(10,37,64,0.7);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  padding: 0.7rem 0.9rem;
}
.btn-ghost:hover { background: rgba(10,37,64,0.05); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(14,165,233,0.7);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* === Typography === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.is-accent { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.7;
}
.display {
  margin: 1.1rem 0 1.2rem;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
}
.display .accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h3 { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38em;
}
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-center { text-align: center; }
.section-head { max-width: 44rem; margin: 0 auto 2.6rem; text-align: center; }
.section-head h2 { margin-top: 0.8rem; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

/* === Hero === */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(14,165,233,0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(249,115,22,0.08), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,0.95fr) minmax(0,1.12fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
}
.hero-copy { max-width: 38rem; }
.hero-copy p.lead { margin-top: 0.4rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(14,165,233,0.18); }
.hero-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  min-height: 340px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,22,40,0.35) 100%);
}
.hero-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.94);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* === Stats Bar === */
.stats {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  background: var(--bg-elev);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat .value {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}
.stat .value .unit { font-size: 0.72em; color: var(--text-muted); margin-left: 0.18em; font-weight: 700; }
.stat .label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}
.stat .hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }

/* === Cards === */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Optional media header on card */
.card .card-media {
  margin: -1.7rem -1.7rem 1.3rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-accent);
  overflow: hidden;
  position: relative;
}
.card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10,22,40,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.card .card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(0.92);
}
.card:hover .card-media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  background: var(--bg-accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 22px; height: 22px; }
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.65; }
.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card .card-link svg { width: 14px; height: 14px; transition: transform 0.18s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* === Grids === */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.4rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* === Pricing / Packages === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.6rem; }
.price-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.price-card.is-featured .badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card .name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card h3 { font-size: 1.4rem; margin: 0.6rem 0 0.4rem; }
.price-card .tagline { color: var(--text-muted); margin-bottom: 1.3rem; font-size: 0.97rem; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.price-card ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text);
  line-height: 1.55;
}
.price-card ul li::before {
  content: "";
  margin-top: 0.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/cover no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/cover no-repeat;
}
.price-card .price-cta { margin-top: auto; width: 100%; }
.price-card .price-meta {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
  text-align: center;
}

/* === Trust / Credentials === */
.credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.3rem;
}
.cred-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.cred-card .meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cred-card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.cred-card p { font-size: 0.92rem; line-height: 1.55; margin: 0; }
.cred-card .period {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding: 0.25rem 0.55rem;
  background: var(--bg-accent);
  border-radius: 999px;
}

/* Tools strip */
.tools-strip {
  margin-top: 2.4rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tools-strip .tools-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}
.tools-strip .tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tools-strip .tools-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-accent);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}
.tools-strip .tools-list li svg { width: 16px; height: 16px; }

/* === Process / Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg-accent);
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.05rem; }

/* === About / 2-col === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.split-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: stretch;
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card.is-dark {
  background: linear-gradient(155deg, var(--bg-dark), #102a44);
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.08);
}
.contact-card.is-dark h2,
.contact-card.is-dark h3 { color: #fff; }
.contact-card.is-dark p,
.contact-card.is-dark .text-muted { color: var(--text-on-dark-muted); }
.contact-card.is-dark .eyebrow { color: var(--accent-warm-soft); }
.contact-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.7rem;
  align-items: center;
}
.contact-list .lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-list .val { font-size: 1rem; font-weight: 600; color: var(--text); }
.contact-list a.val { color: var(--text); }
.contact-list a.val:hover { color: var(--primary); }
.contact-list .icon {
  width: 32px; height: 32px;
  border-radius: 0.5rem;
  background: var(--bg-accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-list .icon svg { width: 16px; height: 16px; }

.contact-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.contact-actions .btn-accent,
.contact-actions .btn-secondary,
.contact-actions .btn-ghost {
  width: 100%;
  text-align: center;
}
.contact-card.is-dark .contact-actions .btn-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

/* === Footer === */
.site-footer {
  margin-top: auto;
  background: #0a1628;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}
.site-footer h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid p, .footer-grid a { color: #94a3b8; font-size: 0.92rem; line-height: 1.7; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); box-shadow: none; }
.footer-brand .brand-text .name { color: #fff; }
.footer-brand .brand-text .tagline { color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: #64748b;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* === Misc === */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.2s;
  z-index: 60;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-hover); }
.back-to-top svg { width: 18px; height: 18px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.06s; }
.reveal.delay-2 { transition-delay: 0.12s; }
.reveal.delay-3 { transition-delay: 0.18s; }
.reveal.delay-4 { transition-delay: 0.24s; }

/* === Accessibility === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 0.6rem 0;
  font-weight: 700;
}
.skip-link:focus,
.skip-link:focus-visible { left: 0; outline: 3px solid var(--accent); outline-offset: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-accent:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.ext-icon {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.35em;
  vertical-align: -0.06em;
  opacity: 0.78;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* === Legal pages / Subpage hero === */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--bg-accent), var(--bg));
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.page-hero p { color: var(--text-muted); max-width: 44rem; }

/* 2-col subpage hero with image */
.page-hero.with-image .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.page-hero-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-elev);
}
.page-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,22,40,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Editorial feature block (Trust/About) */
.feature-media {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 2.6rem;
}
.feature-media .feature-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative;
}
.feature-media .feature-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
.feature-media .feature-text h2 { margin-top: 0.8rem; }
.feature-media .feature-text p { color: var(--text-muted); font-size: 1.06rem; }

.legal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.legal-card + .legal-card { margin-top: 1rem; }
.legal-card h2 { font-size: 1.25rem; margin-top: 0; }
.legal-card h3 { font-size: 1.02rem; margin-top: 1.2rem; }
.legal-card p, .legal-card li { font-size: 0.97rem; line-height: 1.7; color: var(--text-muted); }
.legal-card ul { padding-left: 1.2rem; margin: 0.6rem 0 1rem; }
.legal-card strong { color: var(--text); }
.legal-note { color: var(--text-subtle); font-size: 0.87rem; margin-top: 1.5rem; }

/* FAQ */
.faq-grid { display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--text-muted); line-height: 1.7; }

/* === Responsive === */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; margin: 0 auto; min-height: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pricing-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .pricing-grid .price-card.is-featured { order: -1; }
  .credentials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero.with-image .container { grid-template-columns: 1fr; }
  .page-hero-img { max-width: 540px; margin: 0 auto; }
  .feature-media { grid-template-columns: 1fr; }
  .feature-media .feature-img { max-width: 480px; margin: 0 auto; aspect-ratio: 4/3; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 2rem));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 100;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 0.7rem 0.85rem; }
  .nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  section { padding: clamp(2.5rem, 7vw, 4rem) 0; }
  .stats { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .display { font-size: clamp(2.2rem, 9vw, 3rem); }
  .brand-text .tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .nav-toggle, .hero-visual { display: none !important; }
  body { background: #fff; color: #000; }
  section { padding: 1rem 0; }
  .card, .price-card, .cred-card, .stat, .legal-card, .contact-card { box-shadow: none; border-color: #ddd; }
}
