/* Shared visual system. Page-specific compositions remain in style.css. */
:root {
  --red: #d32f2f;
  --red-dark: #b91c1c;
  --red-soft: #fff4f4;
  --ink: #111827;
  --muted: #667085;
  --line: #e3e7ed;
  --paper: #f7f8fa;
  --white: #fff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 5px 16px rgba(17, 24, 39, .045);
  --shadow-md: 0 16px 38px rgba(17, 24, 39, .075);
  --shadow: var(--shadow-md);
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --motion-enter: 560ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
body { color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

@keyframes ui-enter-up { from { opacity: 0; transform: translateY(18px); } }
.hero h1,
.page-hero h1 { animation: ui-enter-up var(--motion-enter) 60ms var(--motion-ease) both; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--motion-enter) var(--motion-ease), transform var(--motion-enter) var(--motion-ease);
}
.reveal.visible { opacity: 1; transform: none; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(211, 47, 47, .22);
  outline-offset: 3px;
}

.btn {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: -.01em;
}
.btn:active { transform: translateY(0) scale(.985); }

.card,
.side-card,
.form-card,
.table-wrap { border-color: var(--line); }

.section { padding-block: clamp(64px, 7vw, 96px); }
.section-head { margin-bottom: clamp(26px, 3vw, 40px); }
.section-head p { font-size: 16px; line-height: 1.7; }

.page-hero {
  padding-block: clamp(50px, 6vw, 76px);
  background-color: #fafbfc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%23e9edf2' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  background-position: center;
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); }
.page-hero .lead { line-height: 1.65; }

@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

@media (max-width: 720px) {
  .section { padding-block: 56px; }
  .page-hero { padding-block: 44px; background-size: 26px 26px; }
  .page-hero h1 { font-size: clamp(36px, 9vw, 46px); line-height: 1.08; }
  .lead { font-size: 17px; }
}

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