/* ==========================================================================
   Applied Assurance Technologies
   Design tokens and values extracted from the original Framer project.
   Mobile-first: base = phone, then >=810px tablet, >=1200px desktop.
   ========================================================================== */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;           /* variable font, one file covers all weights */
  font-display: swap;
  src: url("assets/fonts/public-sans-var.woff2") format("woff2");
}

:root {
  /* Brand */
  --brand-navy:        rgb(16, 42, 67);
  --brand-blue:        rgb(0, 94, 168);
  --brand-blue-dark:   rgb(23, 74, 124);
  --brand-blue-hover:  rgb(0, 75, 135);
  --brand-light-blue:  rgb(234, 244, 251);

  /* Surfaces */
  --bg-primary:        rgb(246, 248, 251);
  --bg-secondary:      rgb(255, 255, 255);

  /* Text */
  --text-primary:      rgb(16, 42, 67);
  --text-secondary:    rgb(72, 101, 129);
  --text-tertiary:     rgb(52, 68, 93);
  --text-on-dark:      rgb(255, 255, 255);

  /* Borders */
  --border:            rgb(220, 227, 236);
  --border-accent:     rgb(185, 215, 238);
  --border-subtle:     rgb(227, 234, 242);
  --border-strong:     rgb(183, 197, 212);

  /* Footer */
  --footer-bg:         rgb(10, 39, 68);
  --footer-border:     rgb(36, 69, 98);
  --footer-text:       rgb(231, 240, 247);
  --footer-text-muted: rgb(199, 214, 229);
  --footer-label:      rgb(141, 189, 225);

  --status:            rgb(0, 113, 188);

  /* Layout */
  --content-max: 1088px;
  --prose-max: 760px;
  --gutter: 20px;                 /* phone; overridden per breakpoint */
  --section-pad-y: 64px;
  --header-h: 68px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-note: 10px;
  --radius-btn: 7px;

  --ease: cubic-bezier(0.44, 0, 0.56, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

/* Accessible skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--brand-blue); color: #fff;
  font-weight: 700; border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users on every interactive element */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--footer-label); }

/* --------------------------------------------------------------------------
   Typography scale  (values from the Framer text style presets)
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-blue);
}
.small-label {
  font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--brand-navy);
}
h1, .h1 {
  font-size: 37px; font-weight: 700; line-height: 1.08; letter-spacing: -0.04em;
  color: var(--text-primary); text-wrap: balance;
}
h2, .h2 {
  font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--text-primary); text-wrap: balance;
}
h3, .h3 {
  font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -0.04em;
  color: var(--text-primary);
}
.body-lg { font-size: 16px; line-height: 1.5; letter-spacing: -0.02em; color: var(--text-secondary); }
.body    { font-size: 15px; line-height: 1.5; letter-spacing: -0.02em; color: var(--text-secondary); }
.body-sm { font-size: 13px; line-height: 1.5; letter-spacing: -0.02em; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.section {
  width: 100%;
  padding: var(--section-pad-y) var(--gutter);
}
.section__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.prose { width: 100%; max-width: var(--prose-max); display: flex; flex-direction: column; gap: 14px; }
.category { display: flex; align-items: center; gap: 10px; }
.category__marker { width: 28px; height: 2px; background: var(--brand-blue); flex: none; }

/* Card grids — single column on phone, widened per breakpoint */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card__icon { width: 24px; height: 24px; color: var(--brand-blue); flex: none; }
.card p { font-size: 13px; }

/* Callout note that closes several sections */
.note {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  width: 100%; max-width: var(--prose-max);
  padding: 14px 16px;
  background: var(--brand-light-blue);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-note);
  font-size: 15px; color: var(--text-secondary);
}
.note svg { width: 20px; height: 20px; color: var(--brand-blue); flex: none; }

/* Two-column split that stacks on small screens */
.split { display: flex; flex-direction: column; gap: 40px; }
.split > * { width: 100%; }

/* Bordered panel used for the workflow / authority / deployment graphics */
.panel {
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  line-height: 1; letter-spacing: -0.02em;
  border-radius: var(--radius-btn);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--brand-blue); color: var(--text-on-dark); }
.btn--primary:hover { background: var(--brand-blue-hover); }
.btn--secondary {
  background: var(--bg-secondary); color: var(--brand-blue-dark);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--brand-light-blue); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  padding-inline: var(--gutter);
  background: var(--bg-primary);
}
.site-header__inner {
  width: 100%; max-width: var(--content-max); margin-inline: auto;
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { opacity: .75; }
.brand__mark { width: 39px; height: 34px; flex: none; }
.brand__name {
  font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text-primary); max-width: 150px;   /* wraps to two lines on phone */
}
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--text-tertiary); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--status); }
.nav-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 14px; margin-right: -14px;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
  color: var(--brand-blue); background: none; border: 0; border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.menu-toggle:hover { background: var(--brand-light-blue); }

.mobile-panel {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 18px 0 12px;
  border-top: 1px solid var(--border);
}
.mobile-panel[data-open="true"] { display: flex; }
.mobile-panel a {
  display: block; width: 100%;
  padding: 15px 16px; border-radius: 8px;
  font-size: 16px; font-weight: 700; line-height: 1.2;
  color: var(--text-primary); text-decoration: none;
  transition: background-color .2s var(--ease);
}
.mobile-panel a:hover { background: var(--brand-light-blue); }
.mobile-panel a.is-cta { background: var(--brand-blue); color: var(--text-on-dark); }
.mobile-panel a.is-cta:hover { background: var(--brand-blue-hover); }

/* Anchor targets must clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 0 var(--gutter) 56px; }
.hero__inner {
  width: 100%; max-width: var(--content-max); margin-inline: auto;
  display: flex; flex-direction: column; gap: 38px;
  padding-top: 48px;
}
.hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* Workflow diagram inside the hero */
.workflow__header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--brand-light-blue); color: var(--brand-blue-dark);
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status); flex: none; }
.flow { display: flex; flex-direction: column; gap: 6px; }
.flow__step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px; border-radius: 10px;
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
}
.flow__step--active { background: var(--brand-light-blue); border-color: var(--border-accent); }
.flow__step svg { width: 20px; height: 20px; color: var(--brand-blue); flex: none; margin-top: 1px; }
.flow__step h3 { margin-bottom: 3px; font-size: 14px; }
.flow__step p { font-size: 13px; line-height: 1.4; }
.flow__arrow { width: 16px; height: 16px; color: var(--border-strong); margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 10px; border-radius: 999px;
  background: var(--brand-light-blue); color: var(--brand-blue-dark);
  font-size: 12px; font-weight: 600;
}

/* Stacked "authority" / "deployment" diagrams */
.stack-list { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.stack-list__row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; border-radius: 10px;
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  font-size: 14px; font-weight: 700; color: var(--text-primary); text-align: center;
}
.stack-list__row--accent { background: var(--brand-light-blue); border-color: var(--border-accent); }
.stack-list__arrow { width: 18px; height: 18px; color: var(--border-strong); flex: none; }

/* Feature list (icon + heading + copy) used in PAC / Security sections */
.feature-list { display: flex; flex-direction: column; gap: 18px; }
.feature { display: flex; align-items: flex-start; gap: 12px; }
.feature svg { width: 22px; height: 22px; color: var(--brand-blue); flex: none; margin-top: 2px; }
.feature h3 { margin-bottom: 4px; }
.feature p { font-size: 14px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-topics { display: flex; flex-direction: column; gap: 10px; }
.contact-topic {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 14px;
}
.contact-topic svg { width: 20px; height: 20px; color: var(--brand-blue); flex: none; margin-top: 1px; }
.contact-details {
  padding: 14px 16px; border-radius: 10px;
  background: var(--brand-light-blue); border: 1px solid var(--border-accent);
  font-size: 14px; font-weight: 700; color: var(--brand-blue-dark);
  display: flex; flex-direction: column; gap: 4px;
}
.contact-details a { color: inherit; }

.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: var(--radius-panel);
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  font-family: inherit; font-size: 15px; line-height: 1.2;
  color: var(--text-primary); background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input, .field select { height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--text-secondary); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--brand-blue);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23486581' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-disclaimer { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }

/* Honeypot. Off-screen rather than display:none so naive bots still fill it.
   Must live in the stylesheet — an inline style attribute is blocked by our
   Content-Security-Policy, which would leave the field visible to real users. */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.form-status { font-size: 14px; font-weight: 700; }
.form-status[data-state="ok"]    { color: var(--brand-blue); }
.form-status[data-state="error"] { color: #B42318; }

/* --------------------------------------------------------------------------
   Policy pages
   -------------------------------------------------------------------------- */
.policy { display: flex; flex-direction: column; gap: 36px; max-width: var(--prose-max); }
.policy__block { display: flex; flex-direction: column; gap: 12px; }
.policy__block p { font-size: 16px; line-height: 1.6; }
.policy__title { display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  padding: 40px var(--gutter);
  background: var(--footer-bg);
  color: var(--footer-text);
}
.site-footer__inner {
  width: 100%; max-width: var(--content-max); margin-inline: auto;
  display: flex; flex-direction: column; gap: 28px;
}
.footer-main { display: flex; flex-direction: column; gap: 26px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand__name {
  font-size: 18px; font-weight: 700; color: #fff; text-decoration: none;
}
.footer-brand p { font-size: 14px; color: var(--footer-text-muted); max-width: 46ch; }
.footer-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--footer-label);
}
.footer-label--spaced { margin-top: 10px; }

/* Constrains a standalone paragraph to the reading column */
.u-prose-width { max-width: var(--prose-max); }
.footer-col a { font-size: 14px; color: var(--footer-text); text-decoration: none; }
.footer-col a:hover { color: var(--footer-label); }
.footer-col strong { font-size: 14px; font-weight: 700; color: #fff; }
.footer-legal { font-size: 13px; color: var(--footer-text-muted); }
.footer-secondary {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--footer-border);
}
.footer-policy-links { display: flex; gap: 18px; }
.footer-policy-links a { font-size: 13px; font-weight: 500; color: var(--footer-text); text-decoration: none; }
.footer-policy-links a:hover { color: var(--footer-label); }
.footer-copyright { font-size: 13px; color: var(--footer-text-muted); }

/* ==========================================================================
   TABLET  >= 810px
   ========================================================================== */
@media (min-width: 810px) {
  :root { --gutter: 34px; --section-pad-y: 88px; --header-h: 70px; }

  h1, .h1 { font-size: 46px; line-height: 1.05; }
  h2, .h2 { font-size: 28px; line-height: 1.18; }
  h3, .h3 { font-size: 15px; line-height: 1.2; }
  .body-lg { font-size: 18px; line-height: 1.6; }
  .body { font-size: 16px; }
  .card p { font-size: 14px; }

  .section__inner { gap: 36px; }
  .prose { gap: 18px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { gap: 18px; padding: 22px; }
  .note { flex-direction: row; align-items: center; gap: 12px; padding: 18px 20px; font-size: 16px; }
  .split { gap: 40px; }
  .panel { gap: 26px; padding: 28px; }

  .hero { padding-bottom: 56px; }
  .hero__inner { gap: 48px; padding-top: 64px; }
  .hero__copy { gap: 24px; }
  .hero__actions { flex-direction: row; width: auto; gap: 14px; }
  .btn--block { width: auto; }

  .workflow__header { flex-direction: row; align-items: center; justify-content: space-between; }
  .flow { gap: 8px; }
  .flow__step { padding: 16px; }
  .flow__step h3 { font-size: 15px; }
  .stack-list__row { padding: 14px 18px; }

  /* Full text nav appears; the CTA button stays hidden — it does not fit at 810px */
  .nav-row { padding-block: 18px; }
  .brand__name { font-size: 18px; max-width: none; }
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-panel { display: none !important; }

  .site-footer { padding: 48px var(--gutter); }
  .footer-main { gap: 28px; }
  .footer-secondary { gap: 16px; }
}

/* ==========================================================================
   DESKTOP  >= 1200px
   ========================================================================== */
@media (min-width: 1200px) {
  :root { --gutter: 56px; --section-pad-y: 104px; --header-h: 85px; }

  h1, .h1 { font-size: 54px; }

  .section { padding-inline: 0; }
  .section__inner { max-width: var(--content-max); }
  .section--bleed { padding-inline: var(--gutter); }

  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card--tall { min-height: 230px; }
  .card--taller { min-height: 270px; }

  .split { flex-direction: row; gap: 64px; align-items: flex-start; }
  .split > * { width: auto; flex: 1 1 0; }
  .split--top { align-items: flex-start; }

  .hero { padding-bottom: 72px; }
  .hero__inner { flex-direction: row; align-items: center; gap: 64px; padding-top: 84px; }
  .hero__inner > * { flex: 1 1 0; }
  .hero__panel { min-height: 482px; }

  .nav-row { padding-block: 24px; }
  .nav-cta { display: inline-flex; }
  .nav-links--tablet-only { display: none; }

  .site-footer { padding: 56px var(--gutter); }
  .footer-main { flex-direction: row; gap: 56px; }
  .footer-main > .footer-brand { flex: 1 1 0; }
  .footer-main > .footer-nav { flex: 0 0 auto; }
  .footer-main > .footer-product { flex: 1 1 0; }
  .footer-secondary { flex-direction: row; align-items: center; justify-content: space-between; }
}
