/* ============================================
   instant.store — Design System
   ============================================ */

:root {
  /* Brand */
  --indigo-50:  #EEF0FF;
  --indigo-100: #DDE0FF;
  --indigo-200: #BCC2FF;
  --indigo-300: #9BA3FF;
  --indigo-400: #7B85FF;
  --indigo-500: #5B66F5;
  --indigo-600: #4F46E5;   /* primary */
  --indigo-700: #4338CA;
  --indigo-800: #312E81;
  --indigo-900: #1E1B4B;
  --indigo-950: #0F0E2E;

  /* Neutrals (slate-warm) */
  --ink-950: #0B0B16;
  --ink-900: #11121F;
  --ink-800: #1B1D2C;
  --ink-700: #2A2D40;
  --ink-600: #4B4F66;
  --ink-500: #6B6F87;
  --ink-400: #9094AB;
  --ink-300: #B8BCCE;
  --ink-200: #D8DBE7;
  --ink-100: #ECEEF4;
  --ink-50:  #F6F7FB;

  --paper: #FBFAFC;
  --white: #FFFFFF;

  /* Accents */
  --mint: #BAF7D0;
  --lime: #E2F76C;
  --peach: #FFD4B8;
  --rose:  #FFC2D1;
  --amber: #F6B73C;
  --cyan:  #B7E3FF;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-2xl: 44px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 18, 31, 0.06);
  --shadow-sm: 0 2px 6px rgba(17, 18, 31, 0.06), 0 1px 2px rgba(17, 18, 31, 0.04);
  --shadow:    0 12px 32px -12px rgba(28, 24, 110, 0.18), 0 4px 8px -4px rgba(17, 18, 31, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(28, 24, 110, 0.28), 0 10px 20px -8px rgba(17, 18, 31, 0.10);
  --shadow-indigo: 0 24px 48px -16px rgba(79, 70, 229, 0.45);

  --hairline: 1px solid var(--ink-200);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--indigo-200); color: var(--indigo-900); }

/* Typography ---------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: var(--ink-950); }
h1 { font-size: clamp(44px, 6.5vw, 84px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }

.serif-it { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

p { margin: 0; color: var(--ink-700); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-700); max-width: 62ch; }
.muted { color: var(--ink-500); }
.tiny  { font-size: 13px; line-height: 1.5; color: var(--ink-500); }
.mono  { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* Containers ---------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

/* Buttons ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-950);
  color: var(--white);
}
.btn-primary:hover { background: var(--indigo-700); }
.btn-indigo {
  background: var(--indigo-600);
  color: var(--white);
  box-shadow: var(--shadow-indigo);
}
.btn-indigo:hover { background: var(--indigo-700); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-light {
  background: var(--white);
  color: var(--ink-950);
  border-color: var(--ink-200);
}
.btn-light:hover { border-color: var(--ink-900); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Cards --------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-soft {
  background: var(--ink-50);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
}
.pill-indigo { background: var(--indigo-50); border-color: var(--indigo-100); color: var(--indigo-700); }
.dot { width: 6px; height: 6px; background: var(--indigo-600); border-radius: 999px; }

/* Header -------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 252, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(216, 219, 231, 0.55);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  flex-shrink: 0;
}
.brand-logo { width: 28px; height: 28px; display: block; }
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-name { font-weight: 500; letter-spacing: -0.025em; }
.brand-dot { color: var(--indigo-600); }
/* legacy support */
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink-950);
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.brand-mark.indigo { background: var(--indigo-600); }

.nav-links {
  display: flex; gap: 2px; align-items: center;
  font-size: 14px;
  color: var(--ink-700);
}
.nav-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent; border: none;
  color: var(--ink-700); font: inherit; font-size: 14px;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.nav-item svg { opacity: 0.6; transition: transform .2s ease; }
.nav-item:hover, .nav-item.on, .nav-item.active { background: var(--ink-100); color: var(--ink-950); }
.nav-item.on svg { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; background: transparent; border: 0; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink-900); border-radius: 1px; transition: transform .2s ease; }
.nav-burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.on span:nth-child(2) { opacity: 0; }
.nav-burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mega menu */
.mega-host {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 30px 60px -20px rgba(28,24,110,0.18);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.mega-host.on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.megamenu { display: none; }
.megamenu.on { display: block; }
.mega-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 32px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.mega-col .mega-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 500; margin-bottom: 14px;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mega-col a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .12s ease;
}
.mega-col a:hover { background: var(--ink-50); }
.mega-ic {
  width: 32px; height: 32px;
  background: var(--indigo-50); color: var(--indigo-700);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; flex-shrink: 0;
}
.mega-col b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-950); letter-spacing: -0.01em; }
.mega-d { display: block; font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.mega-promo {
  background: var(--ink-950); color: white;
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.mega-promo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 110%, rgba(79,70,229,0.5), transparent 50%);
}
.mega-promo-tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo-300); font-weight: 500; position: relative; z-index: 1;
}
.mega-promo p { color: var(--ink-300); font-size: 13px; position: relative; z-index: 1; line-height: 1.5; }
.mega-promo-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: white; margin-top: auto; font-weight: 500;
  position: relative; z-index: 1;
}
.mega-promo-cta:hover .arrow { transform: translateX(3px); }
.mega-promo-cta .arrow { transition: transform .15s ease; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 16px var(--gutter) 24px;
  background: var(--white);
  border-top: 1px solid var(--ink-100);
}
.mobile-menu.on { display: flex; }
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink-900);
}
.mobile-menu a:hover { background: var(--ink-50); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mega-host { display: none; }
}

.site-header.minimal .nav { padding-top: 20px; padding-bottom: 20px; }
.site-header.minimal .nav-cta { display: flex; }

/* Footer -------------------------------------- */
.site-footer {
  background: var(--ink-950);
  color: var(--ink-300);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.site-footer a { color: var(--ink-300); display: block; padding: 4px 0; font-size: 14px; transition: color .15s ease; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 64px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: var(--ink-400);
}
.footer-bottom a { display: inline; padding: 0; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bigword {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(80px, 16vw, 220px);
  line-height: 0.85;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  position: absolute;
  bottom: -30px; right: -10px;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Cookie banner ------------------------------ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 720px; margin: 0 auto;
  transform: translateY(140%); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.cookie-banner.on { transform: translateY(0); opacity: 1; }
.cookie-inner {
  display: flex; gap: 24px; align-items: center;
  padding: 20px 24px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text h4 { font-size: 14px; margin-bottom: 4px; color: var(--ink-950); font-weight: 500; }
.cookie-text p { font-size: 13px; color: var(--ink-600); line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-custom { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink-100); padding-top: 16px; }
.cookie-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.cookie-row b { font-size: 13px; color: var(--ink-950); }
.cookie-row small { color: var(--ink-500); font-size: 12px; }
.cookie-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--indigo-600); }

/* Auth pages ---------------------------- */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form-side {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-form-side .inner { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-form-side h1 { font-size: clamp(32px, 3.5vw, 44px); margin-bottom: 12px; }
.auth-form-side .lead { font-size: 16px; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.auth-form-side .input { padding: 14px 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-400); font-size: 12px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social .btn { width: 100%; }
.auth-foot { font-size: 14px; color: var(--ink-500); margin-top: 24px; text-align: center; }
.auth-foot a { color: var(--indigo-700); }
.auth-aside {
  background: var(--ink-950);
  color: white;
  padding: clamp(40px, 6vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(79,70,229,0.5), transparent 50%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: white; max-width: 14ch; }
.auth-aside p { color: var(--ink-300); }
.auth-quote { font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1.25; color: white; letter-spacing: -0.015em; }
@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-700); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--indigo-600); }
.password-strength { display: flex; gap: 4px; margin-top: 8px; }
.password-strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--ink-200); }
.password-strength i.on { background: var(--indigo-600); }

/* OTP */
.otp-row { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.otp-input {
  width: 52px; height: 60px; text-align: center;
  font-family: var(--font-mono); font-size: 22px;
  border: 1px solid var(--ink-200); border-radius: 12px;
  background: var(--white); color: var(--ink-950);
  transition: all .15s ease;
}
.otp-input:focus { border-color: var(--indigo-500); box-shadow: 0 0 0 4px var(--indigo-50); outline: none; }

/* Hero shared --------------------------------- */
.page-hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }

/* Grids --------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Utility ------------------------------------- */
.divider { height: 1px; background: var(--ink-200); width: 100%; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.flow > * + * { margin-top: var(--flow, 16px); }

/* Decorative grid bg */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(28,24,110,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,24,110,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-dotted {
  background-image: radial-gradient(rgba(28,24,110,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Logo strip --------------------------------- */
.logo-strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
  opacity: 0.7;
}
.logo-strip span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-700);
  letter-spacing: -0.01em;
}

/* Stats --------------------------------------- */
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink-950);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Featured quote */
.quote-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-950);
}

/* Doc / legal pages --------------------------- */
.doc {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 80px;
  font-size: 16px;
  color: var(--ink-800);
  line-height: 1.7;
}
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin-top: 48px; margin-bottom: 12px; color: var(--ink-950); }
.doc h3 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; color: var(--ink-950); }
.doc p, .doc li { color: var(--ink-700); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .doc-meta { color: var(--ink-500); font-size: 14px; margin-bottom: 32px; }
.doc strong { color: var(--ink-950); font-weight: 500; }
.doc a { color: var(--indigo-700); text-decoration: underline; text-underline-offset: 3px; }

.toc {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 40px;
}
.toc h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 12px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc a { color: var(--ink-800); text-decoration: none; }
.toc a:hover { color: var(--indigo-700); }

/* CTA banner ---------------------------------- */
.cta-banner {
  margin: 0 var(--gutter);
  background: var(--ink-950);
  color: var(--white);
  border-radius: var(--radius-2xl);
  padding: clamp(56px, 8vw, 96px) clamp(28px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); max-width: 14ch; }
.cta-banner .lead { color: var(--ink-300); }
.cta-banner .glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.55), rgba(79,70,229,0) 60%);
  top: -200px; right: -100px;
  pointer-events: none;
}

/* Form -------------------------------------- */
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ink-200);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--ink-950);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px var(--indigo-50);
}
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--ink-700); margin-bottom: 6px; font-weight: 500; }

/* Floating badge animation */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

/* ── Accessibility: focus ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="link"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus,
.sr-only:focus-visible {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
