/* Looa: site styles. No inline styles anywhere; the CSP only allows this file. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Palette */
  --chalk: #F4F6F2;   /* page background */
  --paper: #FFFFFF;   /* report sheet */
  --mist: #E6EDE8;    /* tinted section band */
  --spruce: #12332D;  /* ink, contact band */
  --moss: #4B635C;    /* secondary text */
  --lichen: #D5DED8;  /* rules and borders */
  --amber: #FFBE2E;   /* highlighter and primary action */
  --amber-deep: #F5A800;
  --on-spruce: #F4F6F2;
  --on-spruce-soft: #C3D2CB;

  /* Severity (finding chip only) */
  --sev-high-bg: #FDE3CF;
  --sev-high-ink: #8A2C0B;

  /* Type */
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --measure: 34em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--spruce);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--spruce);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--amber);
  color: var(--spruce);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--spruce);
  color: var(--on-spruce);
  font-weight: 650;
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.skip-link:focus-visible {
  outline-color: var(--amber);
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 22px;
  background: var(--amber);
  color: var(--spruce);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--spruce);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--spruce);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.button:hover {
  background: var(--amber-deep);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--spruce);
}

.button--small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 1rem;
  box-shadow: 2px 2px 0 var(--spruce);
}

.button--small:active {
  transform: translate(2px, 2px);
}

.text-link {
  font-weight: 650;
}

/* Header */

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--spruce);
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 18px;
}

.brand__name {
  font-size: 1.6rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1;
}

.site-nav {
  grid-area: nav;
  justify-self: end;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-header__cta {
  grid-area: cta;
}

/* Hero */

.hero {
  padding-block: clamp(40px, 7vw, 104px) clamp(24px, 4vw, 48px);
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

/* Small label above a heading. The amber dot ties it to the highlighter. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 12px;
  background: var(--paper);
  border: 1px solid var(--lichen);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.3;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border: 1.5px solid var(--spruce);
  border-radius: 50%;
}

.eyebrow--on-dark {
  background: transparent;
  border-color: rgba(244, 246, 242, 0.28);
  color: var(--on-spruce);
}

.eyebrow--on-dark::before {
  border-color: var(--amber);
}

.hero h1 {
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11.5em;
}

.hero__lede {
  margin-top: 28px;
  max-width: var(--measure);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--moss);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}

/* Example finding: the one bold element */

.finding {
  position: relative;
  isolation: isolate;
}

.finding__sheet {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--lichen);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(18, 51, 45, 0.06), 0 28px 50px -30px rgba(18, 51, 45, 0.45);
}

/* A second page peeking out from under the first: it's a report. */
.finding__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border: 1px solid var(--lichen);
  border-radius: 4px;
  transform: translate(12px, 12px) rotate(1.4deg);
  box-shadow: 0 20px 40px -30px rgba(18, 51, 45, 0.4);
}

.finding__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lichen);
}

.finding__kind {
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--moss);
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  font-size: var(--step--1);
  font-weight: 700;
  border-radius: 999px;
}

.severity::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.severity--high {
  background: var(--sev-high-bg);
  color: var(--sev-high-ink);
}

.finding__title {
  margin-top: 18px;
  font-size: 1.4rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.finding__body {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.finding__body dt {
  font-size: var(--step--1);
  font-weight: 700;
}

.finding__body dd {
  margin-top: 2px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Who found it: AI raised the lead, a person proved it. */
.trail {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--chalk);
  border-radius: 4px;
  font-size: var(--step--1);
  line-height: 1.45;
}

.trail li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

/* Same-width tags, sized to one line of text so they sit level with it */
.trail__who {
  display: block;
  padding: 3px 0;
  border: 1.5px solid var(--spruce);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.trail__who--human {
  background: var(--spruce);
  color: var(--on-spruce);
}

.finding__effort {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--lichen);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--moss);
}

.finding figcaption {
  margin-top: 30px;
  max-width: 30em;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--moss);
}

/* The highlighter sweep: the page's single piece of ambient motion. */
.highlight {
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(
    176deg,
    transparent 14%,
    rgba(255, 190, 46, 0.75) 14%,
    rgba(255, 190, 46, 0.75) 90%,
    transparent 90%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  animation: highlight-sweep 1.4s cubic-bezier(0.6, 0, 0.3, 1) 0.5s both;
}

@keyframes highlight-sweep {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

/* Sections */

.section {
  padding-block: var(--section);
}

/* AI + people: the dark band that carries the main pitch */

.ai {
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: var(--section);
  background: var(--spruce);
  color: var(--on-spruce);
}

.ai h2 {
  max-width: 13em;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.ai__lede {
  margin-top: 24px;
  max-width: var(--measure);
  font-size: 1.25rem;
  color: var(--on-spruce-soft);
}

.ai__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 72px);
}

.ai__points li {
  padding-top: 18px;
  border-top: 3px solid var(--amber);
}

.ai__points p {
  margin-top: 10px;
  max-width: 30em;
  color: var(--on-spruce-soft);
}

.ai :focus-visible {
  outline-color: var(--amber);
}

.section--tint {
  background: var(--mist);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.split__aside {
  position: sticky;
  top: 32px;
}

.split__aside p {
  margin-top: 18px;
  max-width: 24em;
  color: var(--moss);
}

/* Services */

.service {
  padding-block: 30px;
  border-top: 1px solid var(--lichen);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service p {
  margin-top: 10px;
  max-width: var(--measure);
}

.service .service__gets {
  margin-top: 12px;
  color: var(--moss);
  font-size: 1rem;
}

.service__gets strong {
  color: var(--spruce);
  font-weight: 700;
}

/* Approach: a real sequence, so it's numbered */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 48px;
  counter-reset: step;
  position: relative;
}

/* The line the steps sit on */
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--spruce);
  opacity: 0.25;
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  background: var(--mist);
  border: 3px solid var(--spruce);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 760;
  position: relative;
}

.step p {
  margin-top: 10px;
  font-size: 1.0625rem;
}

/* Why Looa */

.split--why {
  align-items: start;
}

.split--why .split__aside p.statement {
  margin-top: 0;
  max-width: 14em;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--spruce);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}

.principles li {
  padding-top: 18px;
  border-top: 3px solid var(--spruce);
}

.principles p {
  margin-top: 10px;
  color: var(--moss);
}

/* Contact */

.contact {
  padding-block: var(--section);
  background: var(--spruce);
  color: var(--on-spruce);
}

.contact h2 {
  max-width: 16em;
}

.contact__lede {
  margin-top: 18px;
  max-width: var(--measure);
  color: var(--on-spruce-soft);
}

.contact__email {
  display: inline-block;
  margin-top: 40px;
  color: var(--amber);
  font-size: clamp(2.25rem, 1rem + 7vw, 6rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

.contact__email:hover {
  color: var(--on-spruce);
  text-decoration-thickness: 0.07em;
}

.contact__note {
  margin-top: 48px;
  max-width: var(--measure);
  font-size: 1rem;
  color: var(--on-spruce-soft);
}

.contact__note a {
  color: var(--on-spruce);
}

.contact :focus-visible {
  outline-color: var(--amber);
}

/* Footer */

.site-footer {
  padding-block: 28px;
  font-size: var(--step--1);
  color: var(--moss);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer ul {
  display: flex;
  gap: 24px;
}

/* 404 */

.not-found {
  padding-block: clamp(64px, 12vw, 160px);
}

.not-found h1 {
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 10em;
}

.not-found p {
  margin-top: 24px;
  max-width: var(--measure);
  font-size: 1.25rem;
  color: var(--moss);
}

.not-found .button {
  margin-top: 36px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .finding {
    max-width: 560px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__aside {
    position: static;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1.0625rem;
  }

  .site-header__inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    justify-content: space-between;
    row-gap: 14px;
    padding-block: 16px;
  }

  .site-nav {
    justify-self: stretch;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 14px;
    font-size: 0.9375rem;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero__lede {
    font-size: 1.125rem;
  }

  .finding__sheet::before {
    transform: translate(8px, 8px) rotate(1.2deg);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  /* Vertical timeline on small screens */
  .step {
    padding-left: 68px;
    padding-bottom: 32px;
  }

  .step::before {
    position: absolute;
    left: 0;
    top: -6px;
    margin: 0;
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 42px;
    bottom: -6px;
    width: 2px;
    background: var(--spruce);
    opacity: 0.25;
  }

  .principles,
  .ai__points {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .ai__lede {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .highlight {
    background-size: 100% 100%;
  }
}
