/* Token layer, named after the measured design system (MEASURED_LIVE). */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --paper: #FDFCFC;
  --cream: #F5F3F1;

  --gray-25: #FDFCFC;
  --gray-50: #FAF8F8;
  --gray-100: #F5F3F1;
  --gray-200: #EBE8E4;
  --gray-300: #D7D2CC;
  --gray-400: #A59F97;
  --gray-500: #777169;
  --gray-600: #59544F;
  --gray-700: #44403B;
  --gray-800: #292524;
  --gray-900: #1C1917;
  --gray-950: #0C0A09;

  --text-primary: var(--black);
  --text-secondary: var(--gray-500);
  --text-secondary-on-cream: var(--gray-600);
  --text-muted: var(--gray-400);

  --focus: #2B7FFF;
  --error: #C10007;

  --hairline: 0.5px;
  --ring-subtle: rgba(0, 0, 0, 0.075);
  --border-solid: var(--gray-200);

  --font-display: "Geist", "Geist Fallback", sans-serif;
  --font-body: "Inter", "Inter Fallback", sans-serif;

  --container-width: min(100%, 81.5rem);
  --outer-gutter: 20px;
  --grid-gap: 48px;
  --section-pad: 96px;
  --header-height: 64px;

  --radius-input: 12px;
  --radius-card: 20px;
  --radius-panel: 24px;
  --radius-pill: 9999px;

  --dur: 0.15s;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 40rem) {
  :root { --outer-gutter: 40px; }
}

@media (min-width: 64rem) {
  :root { --section-pad: 160px; }
}

@media (min-width: 80rem) {
  :root { --outer-gutter: 64px; }
}

/* Metric-matched fallbacks, per the reference technique, to limit layout shift. */

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 92%;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
}

/* Base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28.8px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: calc(var(--container-width) - (2 * var(--outer-gutter)));
  max-width: 1176px;
  margin-inline: auto;
}

/* Typography */

h1 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 52px;
  font-weight: 300;
  letter-spacing: -0.96px;
  color: var(--text-primary);
  margin: 0 0 24px;
}

h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 42px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

h3 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0.18px;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0.15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.meta {
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.14px;
  color: var(--text-secondary);
}

.small {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}

.measure {
  max-width: 800px;
}

.secondary {
  color: var(--text-secondary);
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  z-index: 9998;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.18px;
  color: var(--text-primary);
}

.header-note {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-secondary);
}

main {
  padding-top: var(--header-height);
}

/* Sections */

.section {
  padding-block: var(--section-pad);
}

.band {
  background: var(--cream);
}

.section-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 64rem) {
  .section-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gap);
  }

  .col-head { grid-column: 1 / 6; }
  .col-body { grid-column: 6 / 13; }
  .col-hero-head { grid-column: 1 / 8; }
  .col-hero-side { grid-column: 8 / 13; align-self: end; }
}

/* Hero: full-bleed artwork band, type overlaid in the quiet left zone.
   Placement rules from the Claude Design direction note: object-position
   stays 50% 50% at every width, portrait source below 768px, swap on
   source rather than crop. */

.hero-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
  padding-block: 64px;
}

.hero-band .eyebrow,
.hero-band .meta {
  color: var(--text-secondary-on-cream);
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 32px;
}

.hero-meta {
  max-width: 46ch;
}

/* Grain overlay, the signature technique. 256px tile from the Claude Design
   delivery, applied by the page so grain scale stays constant sitewide. */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: url("img/grain-256.png");
  background-image: image-set(
    url("img/grain-256.webp") type("image/webp"),
    url("img/grain-256.png") type("image/png")
  );
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-standard),
    color var(--dur) var(--ease-standard),
    box-shadow var(--dur) var(--ease-standard),
    border-color var(--dur) var(--ease-standard);
}

@media (hover: hover) {
  .button:hover { background: var(--gray-700); }
}

.button:active {
  transform: scale(0.98);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 40rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  min-height: 200px;
  box-shadow: inset 0 0 0 var(--hairline) var(--ring-subtle);
}

.card p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
  color: var(--text-secondary-on-cream);
  margin: 0;
}

/* Definition rows (compliance) */

.def-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
  margin-top: 48px;
}

@media (min-width: 64rem) {
  .def-grid { grid-template-columns: repeat(2, 1fr); }
}

.def-item h3 {
  font-weight: 500;
  letter-spacing: 0.15px;
  font-size: 15px;
  line-height: 22px;
}

.def-item p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
  color: var(--text-secondary-on-cream);
  margin: 0;
}

/* Plan steps */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
  margin-top: 48px;
}

@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  border-top: 1px solid var(--border-solid);
  padding-top: 24px;
}

.step p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.16px;
  color: var(--text-secondary);
  margin: 0;
}

/* Agreement list */

.promises {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 800px;
}

.promises li {
  border-top: 1px solid var(--border-solid);
  padding: 20px 0;
  font-size: 18px;
  line-height: 28.8px;
}

.promises li:last-child {
  border-bottom: 1px solid var(--border-solid);
}

/* Form */

.form-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-panel);
  padding: 32px;
  box-shadow: inset 0 0 0 var(--hairline) var(--ring-subtle);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0.15px;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-input);
  background: var(--white);
  border: 1px solid var(--border-solid);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  caret-color: var(--black);
}

.field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus-visible,
.field textarea:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  font-size: 14px;
  line-height: 21px;
  color: var(--error);
  margin: 8px 0 0;
}

.notice {
  border-radius: var(--radius-input);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 24px;
  box-shadow: inset 0 0 0 var(--hairline) var(--ring-subtle);
}

.notice-error {
  color: var(--error);
  background: #FEF2F2;
}

.notice-success {
  background: var(--cream);
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Honeypot: visually removed, still present for bots. Not display none. */

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Links */

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--gray-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 2.125px;
  transition: color var(--dur) var(--ease-standard),
    text-decoration-color var(--dur) var(--ease-standard);
}

.button,
.skip-link,
.wordmark {
  text-decoration: none;
}

/* Footer */

.site-footer {
  margin-top: 64px;
  padding-bottom: 128px;
}

.site-footer p {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .button:active {
    transform: none;
  }
}
