/* attainai.io — static site styles. No external requests: fonts are self-hosted. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Brand tokens — the green is a placeholder until the attainai green is chosen. */
  --ink: #23272B;
  --ink-soft: #4A5056;
  --muted: #5A6168;
  --line: #E3E6E8;
  --line-soft: #EEF0F1;
  --ground: #FFFFFF;
  --ground-alt: #F6F7F7;
  --accent: #21A060;        /* brand green: logo, numbers, arrows, rules (large text / graphics) */
  --accent-text: #187A49;   /* darker green for small text, e.g. link hover */
  --accent-on-ink: #6FCF97;
  --on-ink: #F4F5F6;
  --on-ink-soft: #C9CDD1;
  --rule-on-ink: #8A9198;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 88px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ai { color: var(--accent); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 600; list-style: none; margin: 0; padding: 0; }

/* Shared section styles */
.section { border-top: 1px solid var(--line); }
.section .wrap { padding-top: 88px; padding-bottom: 88px; }
.section.alt { background: var(--ground-alt); }
.section h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.lede { margin-top: 14px; max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* Hero */
.hero .wrap { padding-top: 96px; padding-bottom: 72px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hero h1 { max-width: 900px; font-size: 60px; line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; }
.hero p.intro { margin-top: 28px; max-width: 720px; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }

/* Building blocks */
.blocks { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; list-style: none; padding: 0; }
.block { background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.block .num { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent); }
.block h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25; }
.block p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.block .io { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Flow */
.flow { margin: 48px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.flow li { flex: 1 1 150px; display: flex; gap: 12px; align-items: center; }
.flow .step { flex: 1 1 auto; border: 1.5px solid var(--ink); border-radius: 8px; padding: 18px 16px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.flow .step strong { font-size: 16px; font-weight: 700; }
.flow .step span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.flow .arrow { flex: none; width: 18px; height: 18px; stroke: var(--accent); }
.flow li:last-child .arrow { display: none; }

/* AI + rules */
.dark { background: var(--ink); color: var(--on-ink); border-top: 0; }
.dark .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.dark h2 { color: #FFFFFF; }
.dark .lede { color: var(--on-ink-soft); margin-top: 18px; }
.pillars { display: flex; flex-direction: column; gap: 28px; }
.pillar { border-top: 2px solid var(--rule-on-ink); padding-top: 18px; }
.pillar.ai-pillar { border-top-color: var(--accent-on-ink); }
.pillar h3 { font-size: 20px; font-weight: 700; color: #FFFFFF; }
.pillar p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--on-ink-soft); }

/* Products */
.products { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.product { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
a.product:hover { border-color: var(--ink); color: var(--ink); }
.product .product-logo { display: block; height: 40px; width: auto; }
/* attain digital marketing wordmark: Outfit 400, uppercase, tracked to match the ATTAIN logo */
.product .name.name-attain { display: block; font-family: "Outfit", var(--sans); font-weight: 400; font-size: 24px; line-height: 1.35; letter-spacing: 0.18em; text-transform: uppercase; min-height: 40px; color: #07508C; /* ATTAIN blue, from attain.uk.com header */ }
.product .name { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.product p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.product .url { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Contact */
.contact { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 48px; }
.contact h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.contact p, .contact address { margin-top: 10px; font-size: 18px; line-height: 1.6; font-style: normal; }
.contact a { font-weight: 700; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ground-alt); }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer strong { color: var(--ink); }
.site-footer .legal { max-width: 640px; line-height: 1.6; }

/* 404 */
.notfound .wrap { padding-top: 120px; padding-bottom: 120px; }
.notfound h1 { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.notfound p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }
.notfound a { color: var(--accent-text); font-weight: 700; }

/* Small screens */
@media (max-width: 720px) {
  .hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .hero p.intro { font-size: 18px; }
  .section .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section h2 { font-size: 30px; }
  .site-header { position: static; }
  .blocks, .products, .dark .wrap, .contact { grid-template-columns: 1fr; }
  .block, .product { padding: 24px; }
  .flow { flex-direction: column; }
  .flow li { flex: none; flex-direction: column; align-items: stretch; }
  .flow .step { min-height: 0; }
  .flow .arrow { align-self: center; transform: rotate(90deg); }
}
