@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&display=swap");

:root {
  /* Base tokens (base.css contract) mapped to the Norstane design system, light theme */
  --color-bg: #F5F6F8;
  --color-surface: #FFFFFF;
  --color-text: #1B1D21;
  --color-muted: #5F6875;
  --color-border: #D5D8DD;
  --color-primary: #14243B;
  --color-primary-contrast: #FFFFFF;
  --color-error: #B42318;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space: 16px;
  --radius: 8px;
  --max-width: 72rem;

  /* Norstane design system tokens (tokens.json) */
  --ns-navy: #14243B;
  --ns-navy-700: #23395B;
  --ns-amber: #C97A16;
  --ns-amber-text: #8F5408;
  --ns-ink: #1B1D21;
  --ns-stone: #5F6875;
  --ns-line: #D5D8DD;
  --ns-paper: #F5F6F8;
  --ns-surface: #FFFFFF;
  --ns-on-navy-muted: rgba(255, 255, 255, 0.78);
  --ns-space-1: 8px;
  --ns-space-2: 16px;
  --ns-space-3: 24px;
  --ns-space-4: 32px;
  --ns-space-6: 48px;
  --ns-radius-sm: 4px;
  --ns-radius-md: 8px;
  --ns-radius-lg: 12px;
}

/* Type: Montserrat headings (600-700, tight), Inter body 16/24 */
body { background: var(--ns-paper); color: var(--ns-ink); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ns-navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 36px); line-height: 1.17; }
h2 { font-size: 24px; line-height: 30px; font-weight: 600; }
h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
a { color: var(--ns-navy); text-underline-offset: 3px; }
a:hover { color: var(--ns-navy-700); }
.prose a { color: var(--ns-amber-text); font-weight: 500; }
.prose a:hover { color: var(--ns-navy); }
:focus-visible { outline: 2px solid var(--ns-navy); outline-offset: 2px; }
.skip-link { background: var(--ns-navy); color: var(--ns-surface); border-radius: var(--ns-radius-md); }
.eyebrow { color: var(--ns-amber-text); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.12em; }
.block__title { font-size: clamp(26px, 4vw, 36px); line-height: 1.17; font-weight: 700; }
.block__intro { color: var(--ns-stone); font-size: 18px; line-height: 28px; }

/* Section rhythm: space-6 */
.block { padding-block: var(--ns-space-6); }
.block__header { margin-bottom: var(--ns-space-3); }

/* Buttons: primary navy, secondary surface with line border */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--ns-space-1); padding: 12px var(--ns-space-3); border: 1px solid transparent; border-radius: var(--ns-radius-md); font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.button:hover { transform: none; }
.button--primary { background: var(--ns-navy); color: var(--ns-surface); }
.button--primary:hover { background: var(--ns-navy-700); color: var(--ns-surface); }
.button--secondary { background: var(--ns-surface); border-color: var(--ns-line); color: var(--ns-navy); }
.button--secondary:hover { border-color: var(--ns-navy); color: var(--ns-navy); }

/* Header: logo left, the one call to action right */
.ns-header { background: var(--ns-surface); border-bottom: 1px solid var(--ns-line); }
.ns-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ns-space-2); min-height: 72px; padding-block: 12px; }
.ns-header__logo { display: block; flex: none; color: var(--ns-navy); font-family: var(--font-heading); font-size: 22px; text-decoration: none; }
.ns-header__logo img { width: 132px; height: auto; }
.ns-header .button { padding: 8px var(--ns-space-2); font-size: 15px; line-height: 22px; }

/* Hero on paper: left-aligned display heading with a short amber mark */
.hero { background: var(--ns-paper); border-bottom: 1px solid var(--ns-line); padding-block: var(--ns-space-6) 56px; }
.hero .eyebrow { margin-bottom: var(--ns-space-2); }
.hero__title { max-width: 17ch; color: var(--ns-navy); font-size: clamp(34px, 6.5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.hero__title::after { content: ""; display: block; width: 48px; height: 4px; margin-top: var(--ns-space-3); background: var(--ns-amber); border-radius: 2px; }
.hero__lead { max-width: 40rem; margin-top: var(--ns-space-3); color: var(--ns-stone); font-size: 18px; line-height: 28px; }
.hero .block__actions { margin-top: var(--ns-space-4); }

/* Rich text: the problem band on surface; heading beside the text on wide screens */
.rich-text .prose { font-size: 17px; line-height: 27px; }
.rich-text .prose p { margin-bottom: var(--ns-space-2); }
.hero + .rich-text { background: var(--ns-surface); border-bottom: 1px solid var(--ns-line); }
.features + .rich-text { border-top: 1px solid var(--ns-line); }

/* Features as three numbered cards */
.features__list { gap: var(--ns-space-3); }
.features__item { gap: 12px; padding: var(--ns-space-3); background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-radius-md); }
.features__icon { width: 40px; min-width: 40px; height: 40px; margin-bottom: var(--ns-space-1); padding: 0; border-radius: 50%; background: var(--ns-navy); color: var(--ns-surface); font-family: var(--font-heading); font-size: 16px; }
.features__title { font-size: 18px; line-height: 24px; font-weight: 600; }
.features__text { color: var(--ns-stone); font-size: 15px; line-height: 22px; }

/* Form: white panel on paper, stone input borders (3:1+), radius-sm inputs */
.umb-block-list > .atomicx-form { margin-block: var(--ns-space-4) 64px; }
.atomicx-form { max-width: 44rem; gap: var(--ns-space-2); padding: var(--ns-space-3) var(--ns-space-2); background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-radius-lg); }
.form-field { gap: 6px; }
.form-field label { color: var(--ns-ink); font-size: 14px; line-height: 20px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select { padding: 10px 12px; color: var(--ns-ink); background: var(--ns-surface); border: 1px solid var(--ns-stone); border-radius: var(--ns-radius-sm); font-size: 16px; line-height: 24px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ns-stone); opacity: 1; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ns-navy); outline: 2px solid var(--ns-navy); outline-offset: 1px; }
.form-field--checkbox input { accent-color: var(--ns-navy); }
.atomicx-form .button { justify-self: stretch; }

/* Footer on navy: logo shown white (approved colour) via filter on the navy file */
.ns-footer { background: var(--ns-navy); color: var(--ns-on-navy-muted); font-size: 15px; line-height: 22px; }
.ns-footer__inner { display: grid; gap: var(--ns-space-4); padding-block: var(--ns-space-6) var(--ns-space-4); }
.ns-footer p { margin: 0 0 var(--ns-space-1); }
.ns-footer a { color: var(--ns-surface); }
.ns-footer a:hover { color: var(--ns-surface); text-decoration-thickness: 2px; }
.ns-footer :focus-visible { outline-color: var(--ns-surface); }
.ns-footer__logo { display: inline-block; margin-bottom: var(--ns-space-2); color: var(--ns-surface); font-family: var(--font-heading); font-size: 22px; text-decoration: none; }
.ns-footer__logo img { width: 132px; height: auto; filter: brightness(0) invert(1); }
.ns-footer__tagline { color: var(--ns-surface); font-family: var(--font-heading); font-weight: 600; }
.ns-footer__legal { padding-block: var(--ns-space-3); border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 14px; line-height: 20px; }
.ns-footer__legal p { margin: 0; }

@media (min-width: 40rem) {
  .atomicx-form { grid-template-columns: 1fr 1fr; column-gap: var(--ns-space-2); padding: var(--ns-space-4); }
  .form-field--textarea, .form-field--checkbox, .atomicx-form .button { grid-column: 1 / -1; }
  .atomicx-form .button { justify-self: start; }
}
@media (min-width: 48rem) {
  .block { padding-block: 72px; }
  .hero { padding-block: 96px; }
  .ns-header__logo img, .ns-footer__logo img { width: 156px; }
  .ns-header .button { padding: 10px var(--ns-space-3); font-size: 16px; line-height: 24px; }
  .ns-footer__inner { grid-template-columns: 2fr 1fr; align-items: end; }
}
@media (min-width: 56rem) {
  .rich-text .container { display: grid; grid-template-columns: 2fr 3fr; gap: var(--ns-space-6); align-items: start; }
  .rich-text .block__header { margin-bottom: 0; }
  .rich-text .block__header + .prose { margin-top: 0; }
  .rich-text--plain .container { display: block; }
}
