
/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

:root {
  --bg: #F3F8FC;
  --surface: #FFFFFF;
  --input-bg: #FFFFFF;
  --text: #16263D;
  --text-secondary: #41546B;
  --text-muted: #5A6B80;
  --accent: #0038A8;
  --accent-hover: #002E85;
  --sun: #FCD116;
  --track: #DCE7F2;
  --border: #D8E3EE;
  --success: #257A4E;
  --error: #CE1126;
  --flag-blue: #0038A8;
  --flag-red: #CE1126;
  --flag-yellow: #FCD116;
  --radius-sm: 8px;
  --radius-md: 12px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-7: 56px;
  --space-8: 64px;
  --dur-fast: 200ms;
  --dur-in: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.flagline {
  display: flex;
  height: 4px;
  width: 100%;
  overflow: hidden;
}
.flagline > span { display: block; height: 100%; }
.flagline .fl-blue { flex: 45 0 0; background: var(--flag-blue); }
.flagline .fl-yellow { flex: 10 0 0; background: var(--flag-yellow); }
.flagline .fl-red { flex: 45 0 0; background: var(--flag-red); }
.flagline-divider {
  width: 96px;
  height: 3px;
  margin: 0 auto var(--space-3);
  border-radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 520px at 50% -10%, rgba(252, 209, 22, 0.2), transparent 65%),
    radial-gradient(800px 480px at 88% 108%, rgba(0, 56, 168, 0.1), transparent 65%);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3);
  min-height: calc(100vh - 4px);
  min-height: calc(100svh - 4px);
  display: flex;
  flex-direction: column;
}

.site-header { padding: var(--space-1) 0 var(--space-7); }
.brand { align-items: center; }
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sun);
  flex: none;
}
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.status-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid transparent;
  background: var(--sun);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flag-red);
  flex: none;
  animation: pulse 2s ease-in-out infinite;
}

.hero { margin-top: var(--space-1); }
.eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-alt {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 12px + 8vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0 0 var(--space-7);
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 17px;
}


.banner {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  max-width: 640px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.banner-mount { position: relative; }

.banner-mat {
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border-radius: var(--radius-md);
  background: var(--flag-yellow);
}

.banner-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--track);
  aspect-ratio: 21 / 9;
}

.banner-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
}

.banner-flagline { position: absolute; left: 0; right: 0; bottom: 0; }

.banner-credit {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .banner-frame { aspect-ratio: 16 / 9; }
}

.notify {
  margin-top: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.notify h2 {
  margin: 0 0 var(--space-1);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.notify-sub { margin: 0 0 var(--space-3); color: var(--text-secondary); font-size: 16px; }
.field-label {
  display: block;
  margin: 0 0 var(--space-1);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-row { flex-wrap: wrap; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease-out;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus { border-color: var(--accent); outline: none; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input.is-invalid { border-color: var(--error); }
.btn {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
@media (hover: hover) {
  .btn:hover { background: var(--accent-hover); }
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: default; }
.btn-spinner { animation: spin 1s linear infinite; }
.field-error {
  margin: var(--space-1) 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--error);
}
.success {
  display: none;
  align-items: flex-start;
  gap: 12px;
}
.success.is-visible {
  display: flex;
  animation: rise var(--dur-in) var(--ease-out);
}
.success-icon { flex: none; margin-top: 2px; }
.success-title { margin: 0; font-size: 18px; font-weight: 500; }
.success-sub { margin: 4px 0 0; color: var(--text-secondary); }

.site-footer { margin-top: var(--space-8); }
.footer-row { justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }
.footer-row p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: rise var(--dur-in) var(--ease-out) forwards; }
.anim-d1 { animation-delay: 60ms; }
.anim-d2 { animation-delay: 120ms; }
.anim-d3 { animation-delay: 180ms; }
.anim-d4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim { animation: none; opacity: 1; transform: none; }
  .status-dot, .btn-spinner { animation: none; }
}

@media (max-width: 520px) {
  .form-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .lead { font-size: 16px; }
}

