/* Allform Media — Digital Workshop / Blueprint.
   Shared dark surfaces, accessible text colors and brand v2.0 typography. */

@font-face { font-family: Poppins; src: url(fonts/Poppins-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --surface: #0b1b30; --surface-subtle: #10243e; --surface-raised: #142d4b; --line: #29486b;
  --ink: #f5f8ff; --ink-muted: #b7cbe5;
  --brand-blue: #2563eb; --brand-blue-strong: #1d4ed8; --on-brand: #ffffff; --brand-tint: #173761;
  --navy: #0f1d35; --light-blue: #7fa6f0; --accent: #75adff; --link: #90baff;

  --font-display: Poppins, "Helvetica Neue", Arial, sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Calibri, Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px; --content-max: 1120px;
  --radius-sm: 6px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 24px; --radius-full: 9999px;

  --shadow-sm: 0 1px 2px #0f1d350d, 0 1px 3px #0f1d3514;
  --shadow-lg: 0 8px 24px -4px #0f1d351f, 0 2px 6px #0f1d350f;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px #90baff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #c6dcff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: var(--radius-sm); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--surface-raised); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.container { max-width: calc(var(--content-max) + 2 * var(--space-8)); margin: 0 auto; padding: 0 var(--space-8); }
.section { padding: var(--space-24) 0; }
.section-subtle { background: var(--surface-subtle); }
@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
}

/* Type */
.display, .h1, .h2, .h3 { font-family: var(--font-display); margin: 0; color: inherit; }
.display { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.015em; }
.h2 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
.lead { font-size: 20px; line-height: 30px; margin: 0; max-width: 60ch; }
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 var(--space-3); }
.muted { color: var(--ink-muted); }
.caption { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media (max-width: 640px) {
  .display { font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
  .h1 { font-size: 28px; line-height: 36px; }
}

/* Logo */
.logo, .footer-brand { display: inline-flex; flex: none; padding: 6px 12px; background: transparent; border-radius: var(--radius-sm); }
.logo img { width: 200px; height: 44px; object-fit: cover; display: block; }

/* NavBar */
.nav { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 72px; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links > a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links > a:not(.btn):hover { color: var(--link); }
@media (max-width: 760px) { .nav-links > a:not(.btn) { display: none; } .nav .container { height: 64px; gap: 12px; } .logo { padding: 6px 8px; } .logo img { width: 150px; height: 34px; } .nav-links { gap: 12px; } .nav .btn-sm { padding: 0 12px; } }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-sans); font-weight: 600; text-decoration: none; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; font-size: 15px; line-height: 20px; height: 44px; padding: 0 var(--space-6); transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-sm { font-size: 14px; height: 36px; padding: 0 var(--space-4); }
.btn-lg { font-size: 16px; height: 52px; padding: 0 var(--space-8); }
.btn-primary { background: var(--brand-blue); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-blue-strong); color: var(--on-brand); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-light { background: #ffffff; color: var(--navy); }
.btn-light:hover { background: #eaf1fe; color: var(--navy); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn:focus-visible { border-radius: var(--radius-md); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Badge */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; line-height: 16px; }
.badge-brand { background: var(--brand-tint); color: #c6dcff; }
.badge-neutral { background: var(--surface-subtle); color: var(--ink); border: 1px solid var(--line); }

/* Card */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); }
@media (max-width: 640px) { .card { padding: var(--space-6); } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }


/* Closing band + footer */
.band { background: var(--brand-blue-strong); color: var(--on-brand); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0 0 0 65%; background: linear-gradient(45deg, transparent 50%, #ffffff0d 50%); pointer-events: none; }
.band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; padding-top: var(--space-16); padding-bottom: var(--space-16); }
.band p span { display: block; font-weight: 500; }
.band .contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.band .contact > span { font-size: 14px; }
.band .contact span a { color: #ffffff; }
.band p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; max-width: 26ch; }
.footer { background: #081526; color: var(--ink); border-top: 1px solid var(--line); }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.footer img { height: 28px; display: block; }
.footer .footer-brand img { width: 180px; height: 40px; object-fit: cover; }
.footer nav { display: flex; gap: var(--space-6); font-size: 14px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--link); }
.footer .caption { color: var(--ink-muted); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.made-in { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
/* Nudge so the state's visual center (area centroid) lines up with the text's. */
.footer .made-in img { width: 22px; height: 24px; transform: translateY(-1.1px); filter: brightness(0) invert(1); }
@media (max-width: 640px) { .footer-meta { align-items: flex-start; } }

/* Legal / support pages */
.prose { max-width: 720px; padding: var(--space-16) 0 var(--space-24); }
.prose h1 { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 28px; margin: var(--space-12) 0 var(--space-3); }
.prose .updated { color: var(--ink-muted); margin: 0 0 var(--space-8); }
.prose .note { background: var(--brand-tint); color: #c6dcff; border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); font-size: 15px; }
@media (max-width: 640px) { .prose h1 { font-size: 28px; line-height: 36px; } .prose { padding: var(--space-12) 0 var(--space-16); } }

/* Form */
.form { display: grid; gap: var(--space-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 15px; line-height: 20px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--ink-muted); }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); min-height: 44px; }
.input:hover { border-color: var(--ink-muted); }
.input:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-color: var(--brand-blue); }
textarea.input { min-height: 160px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--space-12); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--brand-tint); color: #c6dcff; }
.form-status.err { background: var(--surface-subtle); color: var(--ink); border: 1px solid var(--line); }
.form .fine { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0; }
