/* NWC theme — base stylesheet (lean).
   Order matters: tokens first (defines the CSS variables everything
   else consumes), then reset/normalize, base element spacing, helpers. */

/* Design tokens — single source of truth (colours, type, spacing) */
/* ============================================================
   NWC DESIGN TOKENS — single source of truth
   ------------------------------------------------------------
   Colours are defined in the theme settings (fields.json >
   "NWC Brand Colours") and surfaced here as CSS variables.
   Type + spacing scales are defined here directly.
   EVERY module and partial consumes these variables only —
   no raw hex or font-family is declared anywhere else.
   Palette + type source: docs/03-brand-style-guide.md
   ============================================================ */

/* ---- Brand display font: Highrise (self-hosted) ----
   Drop the webfont files from the Drive "highrise-complete-family-
   webfont-full" package into:  nwc-theme/fonts/highrise/
   Expected filenames (woff2 preferred, woff fallback):
     highrise-regular.woff2   / highrise-regular.woff
     highrise-bold.woff2      / highrise-bold.woff
     highrise-condensed.woff2 / highrise-condensed.woff
   If your filenames differ, tell me and I'll update these rules. */
@font-face {
  font-family: "Highrise";
  src: url("https://23735179.fs1.hubspotusercontent-na1.net/hubfs/23735179/raw_assets/public/nwc-theme/fonts/highrise/highrise-regular.woff2") format("woff2"),
       url("https://23735179.fs1.hubspotusercontent-na1.net/hubfs/23735179/raw_assets/public/nwc-theme/fonts/highrise/highrise-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Highrise";
  src: url("https://23735179.fs1.hubspotusercontent-na1.net/hubfs/23735179/raw_assets/public/nwc-theme/fonts/highrise/highrise-bold.woff2") format("woff2"),
       url("https://23735179.fs1.hubspotusercontent-na1.net/hubfs/23735179/raw_assets/public/nwc-theme/fonts/highrise/highrise-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Highrise Condensed";
  src: url("https://23735179.fs1.hubspotusercontent-na1.net/hubfs/23735179/raw_assets/public/nwc-theme/fonts/highrise/highrise-condensed.woff2") format("woff2"),
       url("https://23735179.fs1.hubspotusercontent-na1.net/hubfs/23735179/raw_assets/public/nwc-theme/fonts/highrise/highrise-condensed.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Colours (from theme settings) ---- */
  --nwc-color-ink:          #090816;
  --nwc-color-surface-dark: #292835;
  --nwc-color-bg:           #F7F6F0;
  --nwc-color-primary:      #EF4135;
  --nwc-color-secondary:    #4AE0F9;
  --nwc-color-accent-soft:  #93F0FF;
  --nwc-color-accent-pink:  #FDD7DA;
  --nwc-color-accent-coral: #F07B73;
  --nwc-color-muted:        #C5C5C5;
  --nwc-color-on-dark:      #F7F6F0;

  /* ---- Type families ----
     Highrise for display/headings, Space Grotesk for body/UI,
     Anton available for maximum-impact hero lines. */
  --nwc-font-display: "Highrise", "Anton", "Arial Narrow", Arial, sans-serif;
  --nwc-font-hero:    "Anton", "Highrise", Impact, sans-serif;
  --nwc-font-body:    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Type scale (derived defaults, recorded for consistency) ---- */
  --nwc-fs-body:   1.0625rem;                    /* 17px base for legal reading */
  --nwc-fs-small:  0.875rem;
  --nwc-fs-meta:   0.8125rem;
  --nwc-fs-h1:     clamp(2.25rem, 5vw, 3.5rem);
  --nwc-fs-h2:     clamp(1.375rem, 2.4vw, 1.625rem);
  --nwc-fs-h3:     1.1875rem;
  --nwc-lh-body:   1.75;
  --nwc-lh-heading: 1.1;

  /* ---- Spacing scale ---- */
  --nwc-space-3xs: 0.25rem;
  --nwc-space-2xs: 0.5rem;
  --nwc-space-xs:  0.75rem;
  --nwc-space-sm:  1rem;
  --nwc-space-md:  1.75rem;
  --nwc-space-lg:  3rem;
  --nwc-space-xl:  5rem;

  /* ---- Layout ---- */
  --nwc-measure:    68ch;    /* comfortable legal reading line length */
  --nwc-container:  880px;   /* narrow orphan-page container */
  --nwc-radius:     4px;
  --nwc-border:     1px solid var(--nwc-color-muted);

  /* ---- Showcase tier (added for the marketing pages; T&C legal tier above is untouched) ---- */
  --nwc-container-wide: 1200px;      /* marketing-page container */
  --nwc-fs-lead:    clamp(1.125rem, 1.6vw, 1.375rem);
  --nwc-fs-title:   clamp(1.75rem, 3.4vw, 2.75rem);   /* big section / card headings */
  --nwc-fs-display: clamp(3rem, 9vw, 8rem);           /* hero + banner impact lines */
  --nwc-lh-tight:   1.02;
  --nwc-space-2xl:  8rem;
}

/* Generic — reset, normalize, box-sizing */
*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Elements — base HTML element spacing */
/* The overflow-wrap is meant to prevent long/large words from breaking the mobile responsiveness of a page (e.g. horizontal scrolling). It is preferred to reduce font sizes on mobile to address this, with this CSS specifically helping with extreme scenarios where a reduction in font size is not possible. */

body {
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Handles word breaking for a few specific languages which handle breaks in words differently. If your content is not translated into these languages, you can safely remove this.  */

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
  line-break: strict;
  overflow-wrap: normal;
  word-break: break-all;
}

/* Paragraphs */

p {
  font-size: 1rem;
  margin: 0 0 1.4rem;
}

/* Anchors */

a {
  cursor: pointer;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.4rem;
}

/* Lists */

ul,
ol {
  margin: 0 0 1.4rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0;
}

ul.no-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Code blocks */

pre {
  overflow: auto;
}

code {
  vertical-align: bottom;
}

/* Blockquotes */

blockquote {
  border-left: 2px solid;
  margin: 0 0 1.4rem;
  padding-left: 0.7rem;
}

/* Horizontal rules */

hr {
  border: none;
  border-bottom: 1px solid #CCC;
}

/* Image alt text */

img {
  font-size: 0.583rem;
  word-break: normal;
}

/* Utilities — helper classes */
/* For content that needs to be visually hidden but stay visible for screenreaders */

.show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@media (max-width: 767px) {
  .show-for-sr--mobile {
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }
}