/* APS — light editorial SaaS styles */
:root {
  --bg: #f6f1e8;
  --bg-elevated: #efe8dc;
  --bg-card: #fffcf7;
  --bg-card-hover: #ffffff;
  --navy: #1c3557;
  --border: rgba(28, 28, 24, 0.09);
  --border-strong: rgba(28, 28, 24, 0.16);
  --text: #171614;
  --text-muted: #5a574f;
  --text-dim: #7a766c;
  --gold: #9a7828;
  --gold-hover: #b08d32;
  --gold-pressed: #82641f;
  --gold-soft: rgba(154, 120, 40, 0.12);
  --focus: #9a7828;
  --success: #2f7a52;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow: 0 18px 40px rgba(40, 30, 10, 0.08);
  --shadow-sm: 0 8px 22px rgba(40, 30, 10, 0.06);
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 140ms ease;
}



/* Dark mode — charcoal editorial, crisp white logo */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12131a;
  --bg-elevated: #1a1c26;
  --bg-card: #1e2130;
  --bg-card-hover: #262a3c;
  --navy: #c4d4f0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3efe6;
  --text-muted: #b0aa9c;
  --text-dim: #8a8478;
  --gold: #c9a227;
  --gold-hover: #e0b83a;
  --gold-pressed: #a8861f;
  --gold-soft: rgba(201, 162, 39, 0.16);
  --focus: #c9a227;
  --success: #5cbc88;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .site-header {
  background: rgba(18, 19, 26, 0.88);
}
html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(18, 19, 26, 0.94);
}
html[data-theme="dark"] .btn-primary {
  background: var(--gold);
  color: #12131a;
}
html[data-theme="dark"] .btn-primary:hover {
  background: var(--gold-hover);
  color: #12131a;
}
html[data-theme="dark"] .logo-for-light { display: none !important; }
html[data-theme="dark"] .logo-for-dark { display: block !important; }
html:not([data-theme="dark"]) .logo-for-dark { display: none !important; }
html:not([data-theme="dark"]) .logo-for-light { display: block !important; }

/* Dark: footer + logo panels follow theme tokens */
html[data-theme="dark"] .site-footer {
  background: var(--bg-elevated);
}
html[data-theme="dark"] .about-logo-wrap {
  background: var(--bg-card);
}
.footer-brand {
  position: relative;
}
.footer-brand img.logo-for-light,
.footer-brand img.logo-for-dark,
.about-logo-wrap img.logo-for-light,
.about-logo-wrap img.logo-for-dark {
  max-width: 100%;
}


.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.brand-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-block;
}
.brand-icon-wrap img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.about-logo-wrap, .footer-brand {
  position: relative;
}
.footer-brand img.logo-for-light,
.footer-brand img.logo-for-dark,
.about-logo-wrap img.logo-for-light,
.about-logo-wrap img.logo-for-dark {
  /* keep normal flow for single visible logo */
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--text);
}

h1 { font-size: clamp(2.15rem, 4.8vw, 3.35rem); font-weight: 600; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; font-family: var(--font); font-weight: 650; }

p { margin: 0 0 0.9rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

ul { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 241, 232, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(40, 30, 10, 0.06);
  background: rgba(255, 252, 247, 0.94);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: opacity var(--transition-fast);
}
.brand:hover { color: var(--text); opacity: 0.88; }

.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform var(--transition);
}
.brand:hover .brand-icon { transform: translateY(-1px); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}
.brand-text .name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font);
}
.brand-text .name .ai {
  font-weight: 800;
  color: var(--navy);
}
.brand-text .name .rest {
  font-weight: 400;
  color: var(--text);
}
html[data-theme="dark"] .brand-text .name .ai {
  color: var(--gold);
}
html[data-theme="dark"] .brand-text .name .rest {
  font-weight: 400;
  color: var(--text);
  opacity: 0.82;
}
.brand-text .sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav a:hover { color: var(--text); background: rgba(28, 28, 24, 0.04); }
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(28, 28, 24, 0.06);
}

.nav-cta { margin-left: 0.45rem; }

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.menu-toggle:hover {
  border-color: rgba(28, 28, 24, 0.28);
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--text);
  color: #faf7f1;
  border-color: var(--text);
  box-shadow: none;
}
.btn-primary:hover {
  background: #2a2824;
  border-color: #2a2824;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: rgba(28, 28, 24, 0.35);
  color: var(--text);
  background: rgba(28, 28, 24, 0.03);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.75rem, 5.5vw, 4.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 45% at 92% 0%, rgba(154, 120, 40, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(28, 53, 87, 0.06), transparent 50%),
    var(--bg);
}
.hero::before { display: none; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-family: var(--font);
}
.eyebrow::before {
  content: "";
  width: 1.15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.hero h1 { margin-bottom: 1rem; max-width: 14ch; }
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 1.15rem;
}
.trust-item {
  font-size: 0.86rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-item span {
  color: var(--gold);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-visual:hover img { transform: scale(1.03); }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(23, 22, 20, 0.45) 100%),
    linear-gradient(90deg, rgba(23, 22, 20, 0.08), transparent 40%);
  pointer-events: none;
}
.hero-visual-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.85rem 1rem;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.hero-visual-caption strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-family: var(--font);
}
.hero-visual-caption span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.hero-panel h2 {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-dim);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.problem-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.8rem;
  background: rgba(28, 28, 24, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.problem-list li:hover {
  border-color: rgba(154, 120, 40, 0.28);
  background: var(--gold-soft);
  transform: translateX(2px);
}
.problem-list .num {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 5.5vw, 4.25rem) 0;
}
.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.section-header {
  max-width: 38rem;
  margin-bottom: 2rem;
}
.section-header p { font-size: 1.05rem; }
.section-compact { padding: clamp(2.15rem, 4.5vw, 3.15rem) 0; }

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.45rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(154, 120, 40, 0.28);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}
.card:hover .card-icon {
  transform: scale(1.05);
  background: rgba(154, 120, 40, 0.18);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.96rem; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card-actions { margin-top: 1rem; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-media:hover img { transform: scale(1.03); }

.pill-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pill-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.pill-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.badge:hover {
  border-color: var(--gold);
  color: var(--text);
  background: var(--gold-soft);
}
html[data-theme="dark"] .badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text-muted);
}
html[data-theme="dark"] .badge:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--text);
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(154, 120, 40, 0.1), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.6rem, 3.5vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cta-band:hover {
  border-color: rgba(154, 120, 40, 0.3);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 0.35rem; }
.cta-band p { margin: 0; max-width: 34rem; }

/* Services page */
.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-block:hover {
  border-color: rgba(154, 120, 40, 0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-block:last-child { margin-bottom: 0; }
.service-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 2rem;
  padding-top: 0.15rem;
  font-family: var(--font-display);
}
.service-block h3 { margin-bottom: 0.35rem; }
.service-block p { margin-bottom: 0.65rem; }
.service-meta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

/* About */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.about-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.about-logo-wrap:hover {
  border-color: rgba(154, 120, 40, 0.28);
  box-shadow: var(--shadow);
}
.about-logo-wrap img {
  max-height: 300px;
  width: auto;
  margin: 0 auto;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.value {
  padding: 1.2rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--gold);
  transition: background var(--transition), transform var(--transition);
}
.value:hover {
  background: var(--bg-card-hover);
  transform: translateX(3px);
}
.value h3 { margin-bottom: 0.35rem; }
.value p { font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-item {
  padding: 0.95rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-item:hover {
  border-color: rgba(154, 120, 40, 0.25);
  transform: translateX(2px);
}
.contact-item dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.contact-item dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--gold); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.55rem;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { margin-bottom: 0.3rem; }
.form-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: rgba(28, 28, 24, 0.28);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(154, 120, 40, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 120, 40, 0.12);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}
.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.3em;
  margin-top: 0.65rem;
}
.form-status.ok { color: var(--success); }
.form-status.err { color: #b04040; }

.page-hero {
  padding: clamp(2rem, 4.5vw, 3rem) 0 0.25rem;
}
.page-hero h1 { margin-bottom: 0.75rem; max-width: 18ch; }
.page-hero .lead {
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.5rem 0 1.4rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
.footer-brand {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}
.footer-brand .name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.footer-brand p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}
.footer-col h3 {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-family: var(--font);
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.4rem; color: var(--text-muted); font-size: 0.94rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* 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;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1), transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .about-hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse { direction: ltr; }
  .grid-3 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-brand img { width: 56px; }
  .hero-visual { max-width: 560px; }
  .hero h1, .page-hero h1 { max-width: none; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 252, 247, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem 1rem;
    gap: 0.2rem;
    box-shadow: 0 16px 36px rgba(40, 30, 10, 0.1);
    animation: navIn 180ms ease;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-cta { margin-left: 0; margin-top: 0.4rem; }
  .nav-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .brand-text .sub { max-width: 11rem; }
  .section { padding: clamp(2.15rem, 6vw, 3rem) 0; }
  .page-hero { padding-top: 1.5rem; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

/* Guide pages */
.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.05rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.guide-toc:hover { border-color: var(--border-strong); }

.guide-toc h2 {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
  font-family: var(--font);
  font-weight: 700;
}

.guide-toc ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.guide-toc a:hover { color: var(--gold); }

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.guide-meta .sep { opacity: 0.4; }

.guide-body { max-width: 46rem; }

.guide-body > section {
  margin-bottom: 2.4rem;
  padding-bottom: 2.15rem;
  border-bottom: 1px solid var(--border);
}
.guide-body > section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-body h2 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  margin-bottom: 0.75rem;
}
.guide-body h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.guide-body ol,
.guide-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.3rem;
}
.guide-body li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.guide-body li strong { color: var(--text); }

.callout {
  margin: 1.1rem 0;
  padding: 0.95rem 1.15rem;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}
.callout .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.can-cant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.1rem 0;
}
.can-cant .col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  transition: border-color var(--transition);
}
.can-cant .col:hover { border-color: var(--border-strong); }
.can-cant h3 {
  margin-top: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.can-cant .col.can h3 { color: var(--success); }
.can-cant .col.cant h3 { color: #b04040; }
.can-cant ul {
  margin: 0;
  padding-left: 1.05rem;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.1rem 0;
}
.framework-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  transition: border-color var(--transition), transform var(--transition);
}
.framework-item:hover {
  border-color: rgba(154, 120, 40, 0.28);
  transform: translateY(-2px);
}
.framework-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
}
.framework-item p {
  margin: 0;
  font-size: 0.9rem;
}

.checklist-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  margin-top: 0.85rem;
}
.checklist-box h2 { margin-bottom: 0.3rem; }
.checklist-box .intro {
  font-size: 0.94rem;
  margin-bottom: 1rem;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}
.checklist .box {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border: 2px solid var(--gold);
  border-radius: 3px;
  flex-shrink: 0;
  background: transparent;
}

.guide-promo {
  border-color: rgba(154, 120, 40, 0.35);
  background: linear-gradient(160deg, var(--bg-card) 0%, #f3ead6 100%);
}
.guide-promo .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .can-cant,
  .framework-grid { grid-template-columns: 1fr; }
}

@media print {
  .skip-link,
  .site-header,
  .menu-toggle,
  .guide-toc,
  .cta-band,
  .site-footer,
  .hero-actions,
  .no-print,
  .hero-visual,
  .feature-media {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
    line-height: 1.45;
  }
  h1, h2, h3, strong { color: #111; }
  p, li, ul, ol { color: #222; }
  a { color: #111; text-decoration: underline; }
  a[href]::after { content: none; }
  .page-hero,
  .section,
  .guide-body > section {
    padding: 0;
    margin-bottom: 1.25rem;
    border: none;
    page-break-inside: avoid;
  }
  .callout,
  .framework-item,
  .can-cant .col,
  .checklist-box {
    background: #f7f7f7;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .checklist .box {
    border-color: #333;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .container {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .guide-layout { display: block; }
  .checklist-box {
    page-break-before: auto;
    page-break-inside: avoid;
  }
}


.framework-item h3 .mono {
  display: inline-block;
  margin-right: 0.35rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  vertical-align: middle;
}
.hero h1 em {
  font-style: italic;
  font-weight: inherit;
  color: var(--text);
}
