@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html,body { font-family: theme('fontFamily.body'); font-size: 18px; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; color: #0f172a; }
  h1 { font-family: theme('fontFamily.heading'); font-size: 56px; line-height: 1.05; margin: 0; }
  h2 { font-family: theme('fontFamily.heading'); font-size: 32px; line-height: 1.15; margin: 0; }
  h3 { font-family: theme('fontFamily.heading'); font-size: 21px; line-height: 1.25; margin: 0; }
  p { font-family: theme('fontFamily.body'); font-size: 18px; margin: 0; }
  .annot { font-family: theme('fontFamily.body'); font-size: 13px; line-height: 1.4; }
  button, .btn-text { font-size: 15px; }
}

.container { max-width: 1216px; }

.header-fixed-spacer { height: 84px; }

.header-visual { height: 62vh; }

.section-vertical { padding-top: 102px; padding-bottom: 96px; }

.spacing-18 { margin: 18px; }
.spacing-36 { margin: 36px; }
.spacing-70 { margin: 70px; }

.card-dim { width: 425px; height: 205px; }
.card-matrix-row { width: 100%; height: 116px; }

.divider-thin { border-top-width: 1px; margin-top: 34px; margin-bottom: 34px; border-color: #e6eefb; }

.header-height { height: 84px; }
.button-standard { height: 46px; padding-left: 24px; padding-right: 24px; border-radius: 12px; }

@media (max-width: 768px) {
  html,body { font-size: 16px; }
  h1 { font-size: 38px; }
  .section-vertical { padding-top: 60px; padding-bottom: 60px; }
  .card-dim { width: 100%; height: auto; }
  .card-matrix-row { width: 100%; height: 116px; }
}

.menu-overlay { transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.3,1); }
.menu-overlay-hidden { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.menu-overlay-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.no-scroll { overflow: hidden; }

.focus-ring { outline: 2px solid transparent; transition: box-shadow .15s; }
.focus-ring:focus-visible { box-shadow: 0 0 0 4px rgba(37,99,235,.16); border-radius: 12px; }

.cookie-box { width: 360px; }
@media (max-width: 640px) { .cookie-box { width: calc(100% - 32px); right: 16px; left: 16px; } }

@keyframes fade-in-up { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slow-beam { 0% { transform: translateX(-6%); opacity: .7; } 50% { transform: translateX(6%); opacity: .85; } 100% { transform: translateX(-6%); opacity: .7; } }

.animate-fade-up { animation: fade-in-up .6s cubic-bezier(.2,.9,.3,1) both; }
.animate-beam { animation: slow-beam 8s linear infinite; }

a { text-decoration: none; }

button:disabled, .btn-disabled { opacity: .5; cursor: not-allowed; }

.grid-6-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1024px) { .grid-6-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-6-6 { grid-template-columns: 1fr; } }

.shadow-soft { box-shadow: 0 6px 18px rgba(17,24,39,0.06); }

.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }

.text-contrast { color: #0f172a; }
.bg-muted { background-color: #fbfdff; }

.card-responsive { background-clip: padding-box; overflow: hidden; }

.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; }

.input-field { border: 1px solid #e6eefb; padding: 10px 12px; border-radius: 10px; font-size: 15px; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.maintain-contrast { color: #0f172a; background-color: #ffffff; }

html:focus-within { scroll-behavior: smooth; }
