/* Base reset, page shell and shared primitives */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

/* The hidden attribute must win over component display rules. Without this,
   `.case-card { display: flex }` beats the browser's own [hidden] rule
   (author origin > UA origin) and JS-hidden cards stay on screen. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------
   Layout shell: header + main + footer
   -------------------------------------------------- */

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page__main {
  flex: 1 0 auto;
}

/* Centred 1440px content rail with the Figma 64px gutter */
.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Reserve the header's height while its partial is still loading, so the
   page doesn't shift when the markup lands. */
[data-include*="header"] {
  min-height: var(--header-height);
}

/* Hidden visually but still focusable and announced — unlike [hidden],
   which removes the element from the tab order entirely. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------
   Shared primitives
   -------------------------------------------------- */

/* 12px bold uppercase label used by nav links and footer column headings */
.label {
  font-size: var(--label-size);
  font-weight: 700;
  line-height: var(--label-line);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

/* Pill button — Figma: bg #82e66d, ink #063734, fully rounded */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn--primary:hover {
  background-color: #94ec81;
}

.btn--primary:active {
  transform: translateY(1px);
}

/* The ↗ glyph is set larger than the label in the design (23px vs 16px) */
.btn__arrow {
  font-size: 23px;
  line-height: 24px;
}

/* Brand lockup — triangle mark + wordmark with the accent full stop */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__mark {
  display: block;
  flex: none;
  width: 25px;
  height: 20px;
}

.brand__mark img {
  width: 25px;
  height: 20px;
}

.brand__word {
  color: var(--color-text-strong);
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -2.4px;
  white-space: nowrap;
}

.brand__dot {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .brand__mark,
  .brand__mark img {
    width: 19px;
    height: 15px;
  }

  .brand__word {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -1.6px;
  }
}

/* --------------------------------------------------
   Shared section primitives (used by every page)
   -------------------------------------------------- */

/* Desktop-only line breaks: reproduce the Figma line wrapping exactly
   at the design width, then let the copy reflow on smaller screens. */
br.br-d {
  display: inline;
}

/* Shared eyebrow: Poppins Bold 12/16, 2.4px tracking, accent green */
.eyebrow {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

/* "MY PHILOSOPHY" is the one eyebrow set at 1.2px tracking */
.eyebrow--tight {
  letter-spacing: 1.2px;
}

/* Shared 80/84 display heading, -3.2px tracking */
.section-title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 80px;
  font-weight: 700;
  line-height: 84px;
  letter-spacing: -3.2px;
}

.section-title .dot,
.section-title .accent {
  color: var(--color-accent);
}

/* Shared 20/32 lead paragraph */
.lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.2px;
}

/* Shared 16/26 body paragraph */
.body-sm {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 26px;
}

/* --------------------------------------------------
   Demo main content (placeholder for page sections)
   -------------------------------------------------- */

.placeholder {
  padding-block: 160px 200px;
}

.placeholder__eyebrow {
  color: var(--color-text-teal);
  margin: 0 0 24px;
}

.placeholder__title {
  margin: 0 0 24px;
  max-width: 720px;
  color: var(--color-text-strong);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.placeholder__title em {
  color: var(--color-accent);
  font-style: italic;
}

.placeholder__text {
  margin: 0 0 40px;
  max-width: 520px;
  color: var(--color-text-muted);
}

.placeholder__cta {
  height: 56px;
  padding-inline: 24px;
}

/* --------------------------------------------------
   Closing CTA — 9077:1104 (1280 wide, centred)
   -------------------------------------------------- */

.closing {
  margin-top: 56px;
}

.closing__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 160px 64px;
  text-align: center;
}

.closing__title {
  margin: 0;
}

.closing__text {
  margin: 32px auto 0;
  max-width: 672px;
}

.closing__cta {
  width: 249px;
  height: 48px;
  margin-top: 48px;
}

@media (max-width: 1100px) {
  .closing {
    margin-top: 32px;
  }

  .closing__inner {
    padding: 96px 0;
  }
}

@media (max-width: 720px) {
  .closing__cta {
    width: auto;
    padding-inline: 24px;
  }
}
