@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: 67rem; /* 1072px content, the landing page's 1120px column minus its 24px gutters */

  /* 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: #D5D8DD;
  --ns-radius-sm: 4px;
  --ns-radius-md: 8px;
  --ns-radius-lg: 12px;
  --ns-section: 56px;
  /* left/right page margin, measured inside a half-width section (the 50/50 rows below) */
  --ns-edge-half: max(var(--space), (200% - var(--max-width)) / 2);
}

/* Type: Montserrat headings, 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 { margin: 0; color: var(--ns-navy); font-weight: 700; }
h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
a { color: var(--ns-navy); text-underline-offset: 3px; }
a:hover { color: var(--ns-navy-700); }
.prose a { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ns-amber); 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.08em; }
.block { padding-block: var(--ns-section); }
.block__header { max-width: 45rem; margin-bottom: 32px; }
.block__title { font-size: clamp(28px, 4vw, 36px); line-height: 1.17; font-weight: 700; }
.block__intro { margin: 16px 0 0; color: var(--ns-ink); font-size: 18px; line-height: 28px; }

/* Sections sit in a wrapping flex row so two of them can share a row on wide screens (steps + sample, text + form) */
.umb-block-list { display: flex; flex-wrap: wrap; }
.umb-block-list > * { flex: 1 0 100%; min-width: 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border: 1px solid transparent; border-radius: var(--ns-radius-md); font-family: var(--font-body); font-size: 16px; line-height: 20px; 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: transparent; border-color: var(--ns-navy); color: var(--ns-navy); }
.button--secondary:hover { border-color: var(--ns-navy-700); color: var(--ns-navy-700); }

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

/* Hero: copy on white, then the photo band */
.ns-hero { background: var(--ns-surface); border: 0; padding-block: var(--ns-section); }
.ns-hero .container > * { max-width: 47.5rem; }
.ns-hero .hero__title { font-size: clamp(34px, 6vw, 48px); line-height: 1.09; letter-spacing: -1px; text-wrap: balance; }
.ns-hero .hero__lead { margin: 24px 0 0; color: var(--ns-ink); font-size: 18px; line-height: 28px; }
.ns-hero__note { margin: 24px 0 0; color: var(--ns-stone); }
.ns-hero .block__actions { margin-top: 24px; }
.ns-band { margin: 0; }
.ns-band img { width: 100%; height: 240px; object-fit: cover; }

/* Features, shared reset for the Norstane layouts (no boxed cards) */
.features .features__item { padding: 0; background: none; border: 0; border-radius: 0; gap: 8px; }
.features__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.features__text { margin: 0; color: var(--ns-stone); font-size: 16px; line-height: 24px; }

/* Problem cards: navy rule on top, line icon */
.ns-cards .features__list { display: flex; flex-wrap: wrap; gap: 24px; }
.ns-cards .features__item { flex: 1 1 280px; padding-top: 20px; border-top: 2px solid var(--ns-navy); }
.ns-icon { width: 28px; height: 28px; margin-bottom: 4px; color: var(--ns-navy); }

/* How it works: numbered steps */
.ns-steps { background: var(--ns-surface); }
.ns-steps .features__list { display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0; list-style: none; }
.ns-step__num { font-family: var(--font-heading); font-size: 24px; line-height: 30px; font-weight: 700; color: var(--ns-amber-text); }
.ns-steps:has(+ .ns-example) { padding-bottom: 32px; }

/* Sample customer request card */
.ns-example { background: var(--ns-surface); padding-top: 0; }
.ns-example__card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--ns-paper); border: 1px solid var(--ns-line); border-radius: var(--ns-radius-lg); }
.ns-example__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--ns-navy); font-size: 13px; line-height: 18px; font-weight: 600; }
.ns-example__label { color: var(--ns-stone); text-transform: uppercase; letter-spacing: 0.04em; }
.ns-example__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ns-example__item { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-radius-md); }
.ns-example__item strong { font-weight: 600; }
.ns-example__item span { color: var(--ns-stone); font-size: 14px; line-height: 20px; }
.ns-example__item.is-missing { border-color: var(--ns-amber); }
.ns-example__item.is-missing span { color: var(--ns-amber-text); font-weight: 600; }
.ns-example__note { margin: 12px 0 0; color: var(--ns-stone); font-size: 14px; line-height: 20px; }

/* What it covers: Now / Next / Later track */
.ns-stages .features__list { display: flex; flex-wrap: wrap; gap: 24px 0; margin: 0; padding: 0; list-style: none; }
.ns-stages .features__item { flex: 1 1 200px; gap: 12px; }
.ns-stage__track { display: flex; align-items: center; gap: 8px; width: 100%; }
.ns-stage__track::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ns-stone); }
.ns-stage__track::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--ns-line); }
.ns-stages .features__item:first-child .ns-stage__track::before,
.ns-stages .features__item:first-child .ns-stage__track::after { background: var(--ns-navy); }
.ns-stage__label { color: var(--ns-stone); font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Rich text on white: heading above the text */
.rich-text { background: var(--ns-surface); }
.rich-text .block__header { margin-bottom: 16px; }
.rich-text .block__header + .prose { margin-top: 0; }
.rich-text .prose { max-width: 45rem; font-size: 18px; line-height: 28px; }
.rich-text .prose p { margin: 0 0 16px; }
.rich-text .prose > :last-child { margin-bottom: 0; }

/* "Try it with one real request" (the block the header/footer buttons link to): navy band */
#b-f4821089af60480c9a5053da1a5f5975 { scroll-margin-top: 16px; color: var(--ns-surface); }
.rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) { background: var(--ns-navy); }
.rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) .prose { font-size: 16px; line-height: 24px; }
.rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) .prose p { color: var(--ns-on-navy-muted); }
.rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) .prose p:first-child { color: var(--ns-surface); font-size: 18px; line-height: 28px; }
.rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) .prose a { color: var(--ns-surface); }
.rich-text:has(#b-f4821089af60480c9a5053da1a5f5975):has(+ .atomicx-form) { padding-bottom: 32px; }

/* Form: white card on the navy band. The navy is the form's own background, the card is its ::before. */
.umb-block-list > .atomicx-form { margin: 0; }
.atomicx-form { --card-x: 16px; --card-b: var(--ns-section); position: relative; isolation: isolate; display: grid; gap: 16px; max-width: none; padding: 24px calc(var(--card-x) + 24px) calc(var(--card-b) + 24px); background: var(--ns-navy); border: 0; border-radius: 0; }
.atomicx-form::before { content: ""; position: absolute; z-index: -1; inset: 0 var(--card-x) var(--card-b); background: var(--ns-surface); 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 select { height: 44px; padding: 0 12px; }
.form-field textarea { padding: 10px 12px; resize: vertical; }
.form-field input, .form-field textarea, .form-field select { 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-amber); outline-offset: 2px; }
.form-field--checkbox input { accent-color: var(--ns-navy); }
.atomicx-form .button { justify-self: stretch; height: 48px; }

/* 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); border-top: 1px solid #3A4A63; }
.ns-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 40px; }
.ns-footer__logo { display: block; color: var(--ns-surface); font-family: var(--font-heading); font-size: 20px; text-decoration: none; }
.ns-footer__logo img { width: auto; height: 24px; filter: brightness(0) invert(1); }
.ns-footer p { margin: 0; font-size: 14px; line-height: 20px; }
.ns-footer a { color: var(--ns-surface); }
.ns-footer :focus-visible { outline-color: var(--ns-surface); }

@media (min-width: 40rem) {
  .atomicx-form { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .atomicx-form > * { grid-column: 1 / -1; }
  .atomicx-form > .form-field:has([name=company]), .atomicx-form > .form-field:has([name=country]) { grid-column: auto; }
}
@media (min-width: 48rem) {
  :root { --ns-section: 80px; }
  .ns-band img { height: 380px; }
  .atomicx-form { --card-x: max(var(--space), (100% - var(--max-width)) / 2); padding: 32px calc(var(--card-x) + 32px) calc(var(--card-b) + 32px); }
}
@media (min-width: 64rem) {
  /* Steps beside the sample request, text beside the form: two half-width sections whose content lines up with the page column */
  .ns-steps:has(+ .ns-example), .ns-steps + .ns-example,
  .rich-text:has(#b-f4821089af60480c9a5053da1a5f5975):has(+ .atomicx-form), .rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) + .atomicx-form { flex: 0 0 50%; }
  .ns-steps:has(+ .ns-example) { padding-bottom: var(--ns-section); }
  .ns-steps:has(+ .ns-example) > .container,
  .rich-text:has(#b-f4821089af60480c9a5053da1a5f5975):has(+ .atomicx-form) > .container { width: auto; margin: 0 24px 0 var(--ns-edge-half); }
  .ns-steps + .ns-example > .container { width: auto; margin: 0 var(--ns-edge-half) 0 24px; }
  .ns-steps + .ns-example { padding-top: calc(var(--ns-section) + 42px + 32px); padding-bottom: var(--ns-section); }
  .rich-text:has(#b-f4821089af60480c9a5053da1a5f5975):has(+ .atomicx-form) { padding-bottom: var(--ns-section); }
  .rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) + .atomicx-form { --card-b: var(--ns-section); padding: calc(var(--ns-section) + 32px) calc(max(var(--space), (100% - var(--max-width)) / 2) + 32px) calc(var(--ns-section) + 32px) calc(24px + 32px); }
  .rich-text:has(#b-f4821089af60480c9a5053da1a5f5975) + .atomicx-form::before { inset: var(--ns-section) var(--ns-edge-half) var(--ns-section) 24px; }
}
