:root,
[data-ivc-theme="light"] {
  --ivc-canvas: #faf6f4;
  --ivc-surface: #ffffff;
  --ivc-surface-soft: #f2e8e4;
  --ivc-surface-alt: #ebf2f6;
  --ivc-ink: #1e1716;
  --ivc-ink-muted: #554744;
  --ivc-accent: #b92922;
  --ivc-accent-hover: #961f19;
  --ivc-accent-ink: #ffffff;
  --ivc-secondary: #175c85;
  --ivc-secondary-hover: #104666;
  --ivc-secondary-ink: #ffffff;
  --ivc-border: rgba(30, 23, 22, 0.12);
  --ivc-border-strong: rgba(30, 23, 22, 0.22);
  --ivc-cabinet: #1a232b;
  --ivc-cabinet-bezel: #26333e;
  --ivc-clay-shadow: 0 12px 28px -14px rgba(30, 23, 22, 0.2), 0 4px 10px -4px rgba(30, 23, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --ivc-clay-shadow-sm: 0 6px 16px -8px rgba(30, 23, 22, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --ivc-focus: #175c85;
  --ivc-radius-lg: 24px;
  --ivc-radius-md: 18px;
  --ivc-radius-sm: 12px;
  --ivc-radius-pill: 999px;
  --ivc-max-w: 1180px;
  --ivc-font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ivc-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-ivc-theme="dark"] {
  --ivc-canvas: #151213;
  --ivc-surface: #211c1d;
  --ivc-surface-soft: #2c2527;
  --ivc-surface-alt: #1b2731;
  --ivc-ink: #f6efed;
  --ivc-ink-muted: #c8b9b5;
  --ivc-accent: #c93830;
  --ivc-accent-hover: #df4b43;
  --ivc-accent-ink: #ffffff;
  --ivc-secondary: #2a78a6;
  --ivc-secondary-hover: #368bbd;
  --ivc-secondary-ink: #ffffff;
  --ivc-border: rgba(246, 239, 237, 0.13);
  --ivc-border-strong: rgba(246, 239, 237, 0.25);
  --ivc-cabinet: #11181f;
  --ivc-cabinet-bezel: #1d2833;
  --ivc-clay-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ivc-clay-shadow-sm: 0 8px 18px -8px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ivc-focus: #6ec0f0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.ivc-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ivc-canvas);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(185, 41, 34, 0.06), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(23, 92, 133, 0.07), transparent 40%);
  color: var(--ivc-ink);
  font-family: var(--ivc-font-sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
canvas {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ivc-secondary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ivc-accent);
}

:focus-visible {
  outline: 3px solid var(--ivc-focus);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--ivc-font-display);
  color: var(--ivc-ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); font-weight: 600; }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.4rem); font-weight: 600; }

p {
  margin: 0 0 1rem;
  color: var(--ivc-ink-muted);
}

.ivc-skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--ivc-accent);
  color: var(--ivc-accent-ink);
  border-radius: var(--ivc-radius-pill);
  font-weight: 600;
  text-decoration: none;
}

.ivc-skip-link:focus {
  top: 14px;
}

.ivc-main {
  flex: 1 0 auto;
}

.ivc-container {
  width: 100%;
  max-width: var(--ivc-max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.ivc-section {
  padding: 52px 0;
}

.ivc-section--tinted {
  background: var(--ivc-surface-soft);
  border-top: 1px solid var(--ivc-border);
  border-bottom: 1px solid var(--ivc-border);
}

.ivc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivc-accent);
  margin-bottom: 10px;
}

.ivc-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.ivc-section-head p {
  max-width: 62ch;
  margin-bottom: 0;
}

.ivc-clay-card {
  background: var(--ivc-surface);
  border: 1px solid var(--ivc-border);
  border-radius: var(--ivc-radius-lg);
  box-shadow: var(--ivc-clay-shadow);
  padding: 26px;
}

.ivc-clay-card--soft {
  background: var(--ivc-surface-soft);
  box-shadow: var(--ivc-clay-shadow-sm);
}

.ivc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--ivc-radius-pill);
  border: 1px solid transparent;
  font-family: var(--ivc-font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.ivc-btn:active {
  transform: translateY(1px) scale(0.99);
}

.ivc-btn--sm {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.86rem;
}

.ivc-btn--primary {
  background: var(--ivc-accent);
  color: var(--ivc-accent-ink);
  box-shadow: 0 8px 18px -10px rgba(185, 41, 34, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ivc-btn--primary:hover {
  background: var(--ivc-accent-hover);
  color: var(--ivc-accent-ink);
}

.ivc-btn--secondary {
  background: var(--ivc-secondary);
  color: var(--ivc-secondary-ink);
  box-shadow: 0 8px 18px -10px rgba(23, 92, 133, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ivc-btn--secondary:hover {
  background: var(--ivc-secondary-hover);
  color: var(--ivc-secondary-ink);
}

.ivc-btn--soft {
  background: var(--ivc-surface-soft);
  color: var(--ivc-ink);
  border-color: var(--ivc-border);
  box-shadow: var(--ivc-clay-shadow-sm);
}

.ivc-btn--soft:hover {
  background: var(--ivc-surface-alt);
  color: var(--ivc-ink);
}

.ivc-btn--ghost {
  background: transparent;
  color: var(--ivc-ink);
  border-color: var(--ivc-border-strong);
}

.ivc-btn--ghost:hover {
  background: var(--ivc-surface-soft);
  color: var(--ivc-ink);
}

.ivc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ivc-radius-pill);
  border: 1px solid var(--ivc-border);
  background: var(--ivc-surface-soft);
  color: var(--ivc-ink);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--ivc-clay-shadow-sm);
}

.ivc-icon-btn:hover {
  background: var(--ivc-surface-alt);
}

.ivc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ivc-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ivc-ink);
}

.ivc-input,
.ivc-select,
.ivc-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--ivc-radius-sm);
  border: 1px solid var(--ivc-border-strong);
  background: var(--ivc-surface);
  color: var(--ivc-ink);
  font-family: var(--ivc-font-sans);
  font-size: 0.95rem;
}

.ivc-textarea {
  min-height: 120px;
  resize: vertical;
}

.ivc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--ivc-ink-muted);
  cursor: pointer;
}

.ivc-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ivc-accent);
}

.ivc-alert {
  padding: 14px 18px;
  border-radius: var(--ivc-radius-md);
  border: 1px solid var(--ivc-border-strong);
  background: var(--ivc-surface-soft);
  color: var(--ivc-ink);
  margin-bottom: 18px;
  font-size: 0.93rem;
}

.ivc-alert--ok {
  border-color: rgba(23, 92, 133, 0.4);
  background: var(--ivc-surface-alt);
}

.ivc-alert--warn {
  border-color: rgba(185, 41, 34, 0.45);
  background: rgba(185, 41, 34, 0.08);
}

.ivc-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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