/* American Technologies — site styles */
:root {
  --blue: #0A2A8C;
  --blue-600: #0D34A8;
  --red: #C8102E;
  --red-700: #A50D26;
  --navy: #061B5E;
  --ink: #1C2431;
  --body: #2D3748;
  --muted: #4A5568;
  --line: #D5DAE1;
  --mist: #F3F5F9;
  --white: #FFFFFF;
  --wa: #1FA855;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--white); padding: 10px 16px;
  font-family: var(--sans); text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #DCE3F2; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: #FF8C9E; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--body); }
.rule { width: 48px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--radius); text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--mist); color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 190px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--red); }
.nav .btn { color: var(--white); border-bottom: 2px solid transparent; padding: 10px 18px; min-height: 44px; }
.nav .btn:hover { color: var(--white); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--blue); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .nav .btn { margin-top: 16px; border: 0; }
  .brand img { width: 160px; }
}

/* Hero */
.hero { background: var(--red); color: var(--white); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--navy);
}
.hero .wrap { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(80px, 11vw, 144px); position: relative; }
.hero .eyebrow { color: var(--white); opacity: .92; }
.hero h1 { color: var(--white); font-size: clamp(40px, 6.4vw, 76px); max-width: 15ch; letter-spacing: -0.03em; }
.hero .lead { color: rgba(255,255,255,.94); max-width: 60ch; margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.hero-star { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(46vw, 560px); opacity: .14; pointer-events: none; }
@media (max-width: 700px) { .hero-star { display: none; } }

.page-hero { background: var(--navy); color: #DCE3F2; position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 5.2vw, 60px); max-width: 18ch; }
.page-hero .eyebrow { color: #FF8C9E; }
.page-hero .lead { color: #DCE3F2; max-width: 62ch; margin-top: 22px; }
.page-hero--image { background-size: cover; background-position: center; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,27,94,.94) 0%, rgba(6,27,94,.78) 55%, rgba(6,27,94,.35) 100%); }

/* Split layout */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 46px); }
.split .lead { margin-top: 20px; }
.media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Section header */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head .lead { margin-top: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.section--mist .card { border-color: transparent; }
.card h3 { font-size: 21px; }
.card p { font-size: 16.5px; line-height: 1.55; color: var(--body); }
.card .num { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.card-link { margin-top: auto; padding-top: 6px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }

.icon {
  width: 48px; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #E8EDF9; color: var(--blue); flex: none;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--red { background: #FBE6EA; color: var(--red); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.stat { padding: 32px 24px 8px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.stat strong { display: block; font-family: var(--sans); font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--white); letter-spacing: -0.03em; }
.stat span { display: block; margin: 12px 0 24px; font-family: var(--sans); font-size: 16px; line-height: 1.4; color: #C9D3E8; max-width: 22ch; }
.stats-note { margin-top: 28px; font-size: 16px; color: #C9D3E8; }

/* Lifecycle */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; counter-reset: step; }
.lifecycle li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.lifecycle li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .08em; margin-bottom: 14px;
}
.lifecycle li::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; background: var(--blue); border-radius: 0 0 3px 3px; }
.lifecycle li:last-child::after { background: var(--red); }
.lifecycle h3 { font-size: 19px; margin-bottom: 8px; }
.lifecycle p { font-size: 16px; line-height: 1.5; }

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.cta-band p { color: #DCE3F2; margin-top: 12px; max-width: 52ch; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D3E8; font-family: var(--sans); font-size: 15px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.footer-grid h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #E6EBF5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { width: 200px; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; line-height: 1.5; }
address { font-style: normal; line-height: 1.6; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #AEB9D3; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: var(--white); text-decoration: none;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(6,27,94,.28);
}
.wa-float:hover { color: var(--white); background: #178A45; }
.wa-float svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 60px; justify-content: center; } }

/* Utility */
.mt-40 { margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.cards--5 { grid-template-columns: repeat(auto-fit, minmax(min(196px, 100%), 1fr)); gap: 16px; }
.cards--5 .card { padding: 24px 22px; }
@media (min-width: 701px) and (max-width: 1100px) { .cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Section sub-navigation (sticky, with scroll highlighting) */
.subnav { position: sticky; top: 76px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 16px 0 14px; font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
}
.subnav a:hover { color: var(--blue); }
.subnav a.is-active { color: var(--blue); border-bottom-color: var(--red); }
.subnav a:last-child { margin-left: auto; color: var(--blue); font-weight: 600; }
[id] { scroll-margin-top: 140px; }
@media (max-width: 900px) { .subnav a:last-child { margin-left: 0; } }

.split--text { align-items: start; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split--reverse > :first-child { order: 0; } }
.media--dark { background: #05060F; }
.mt-56 { margin-top: 56px; }
.body-text { margin-top: 18px; }

.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-family: var(--sans); font-size: 17px; color: var(--ink); line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #E8EDF9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%230A2A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 700px) { .ticks--2 { grid-template-columns: 1fr; } }

.outcome-strip { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.outcome-strip div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.outcome-strip strong { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.outcome-strip span { display: block; margin-top: 6px; font-size: 17px; color: var(--ink); line-height: 1.45; }

.list-title { margin-top: 56px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.finds { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.finds li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.finds span { color: var(--ink); font-size: 18px; }
.finds em { font-style: normal; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--red); letter-spacing: .04em; }

/* Tabs */
.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tablist::-webkit-scrollbar { display: none; }
.tablist button {
  flex: none; min-height: 52px; padding: 0 22px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tablist button:hover { color: var(--blue); }
.tablist button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--red); }
.tabpanel { background: var(--white); border-radius: 0 0 var(--radius) var(--radius); padding: clamp(28px, 4vw, 48px); }
.tabs:not(.is-ready) .tabpanel + .tabpanel { margin-top: 16px; border-radius: var(--radius); }
.tabs:not(.is-ready) .tablist { display: none; }
.tabs.is-ready .tabpanel[hidden] { display: none; }
.tabpanel-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.tabpanel-head .num { font-family: var(--sans); font-size: 28px; font-weight: 700; color: var(--red); }
.tabpanel-head h3 { font-size: clamp(24px, 3vw, 32px); }
.tabpanel .lead { max-width: 70ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.field, .field input, .field select, .field textarea { min-width: 0; }
.form-card h2, .contact-card h3 { font-size: 26px; }
.form-intro { margin: 8px 0 24px; font-size: 15px; color: var(--muted); }
.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #B8C0CC; border-radius: var(--radius);
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(10,42,140,.25); border-color: var(--blue); }
.form-note { font-size: 14px; color: var(--muted); }
.form .btn { justify-self: start; min-width: 200px; }
.contact-card { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.contact-item a, .contact-item address { font-family: var(--sans); font-size: 17px; color: var(--ink); }
.contact-item a { color: var(--blue); }
.contact-item address + a { display: inline-block; margin-top: 6px; font-size: 15px; }
.contact-wa { padding-top: 24px; border-top: 1px solid var(--line); }
.contact-wa h3 { font-size: 20px; }
.contact-wa p { font-size: 16px; margin: 6px 0 16px; }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #178A45; color: var(--white); }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose-date { margin-top: 40px !important; font-size: 15px; color: var(--muted); }
.footer-dir { margin-top: 10px; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 59; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--blue); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(6,27,94,.16);
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--mist); }
.to-top[hidden] { display: none; }
@media (max-width: 600px) { .to-top { right: 26px; bottom: 96px; } }
.contact-item > div { min-width: 0; } .contact-item a { overflow-wrap: anywhere; }
