/* Pneuma Labs — landing page stylesheet.
   Tokens are copied verbatim from the Preachly brand brief
   (preachly/documentation/PREACHLY-BRAND-BRIEF.md, sections B9 and C7).
   Lora is loaded for headings by the brand owner's decision; see note below. */

/* --- Self-hosted faces (brief C1, C7) ---------------------------------- */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/nunito-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/nunito-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Lora: the brief reserves it for the logo tile. The brand owner chose to
   use it for headings on this parent-company page as a deliberate exception.
   Variable 400–700, latin + latin-ext, SIL OFL. */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens (brief B9) ------------------------------------------------- */

:root {
  --brand-50:  #F2F8F5;
  --brand-100: #E2EEE9;
  --brand-200: #C5DDD4;
  --brand-300: #9AC1B1;
  --brand-400: #6CA38D;
  --brand-500: #51816E; /* logo colour — fills only, never behind white text */
  --brand-600: #447461; /* interactive colour */
  --brand-700: #325D4C;
  --brand-800: #244739;
  --brand-900: #183026;

  --neutral-50:  #F9FBFA;
  --neutral-100: #F2F5F4;
  --neutral-200: #E3E8E6;
  --neutral-300: #C7D1CD;
  --neutral-400: #97A59F;
  --neutral-500: #6A7872;
  --neutral-600: #52605B;
  --neutral-700: #3A4541;
  --neutral-800: #252D2A;
  --neutral-900: #171C1A;

  --danger:       #C33822;
  --danger-tint:  #FBECE9;
  --success:      var(--brand-600);
  --success-tint: var(--brand-50);

  --surface-page:   var(--neutral-50);
  --surface-raised: #FFFFFF;
  --border-subtle:  var(--neutral-200);
  --border-strong:  var(--neutral-300);
  --text-primary:   var(--neutral-900);
  --text-body:      var(--neutral-700);
  --text-secondary: var(--neutral-600);
  --text-tertiary:  var(--neutral-500);
  --action-primary: var(--brand-600);
  --action-hover:   var(--brand-700);
  --action-active:  var(--brand-800);
  --link:           var(--brand-700);
  --focus-ring:     var(--brand-500);

  /* Typography (brief C7) */
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:    'Nunito Sans', system-ui, sans-serif;

  /* Headings: Lora in the wordmark grey (neutral-600, 156° at 8%, 6.6:1). */
  --heading-font:  var(--font-serif);
  --heading-color: var(--neutral-600);

  --text-display: 400 48px/58px var(--heading-font);
  --text-h1:      400 34px/44px var(--heading-font);
  --text-h2:      400 26px/34px var(--heading-font);
  --text-h3:      400 20px/28px var(--heading-font);
  --text-body-lg: 400 17px/27px var(--font-sans);
  --text-body:    400 15px/24px var(--font-sans);
  --text-sm:      400 13px/20px var(--font-sans);
  --text-label:   600 11px/16px var(--font-sans);

  --track-display: -0.01em;
  --track-h1:      -0.005em;
  --track-h2:       0;
  --track-h3:       0;
  --track-label:    0.10em;

  /* Radius scale (brief C9 suggests 4 / 8 / 12 / 16) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* --- Base --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font: var(--text-body-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-800); }

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tracked capitals: 11px, 600, +10%, three words max (brief C5). */
.eyebrow {
  font: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brand-600);
}

.display {
  font: var(--text-display);
  letter-spacing: var(--track-display);
  color: var(--heading-color);
}

.lede {
  font: var(--text-body-lg);
  color: var(--text-body);
}

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

/* --- Header ------------------------------------------------------------- */

.site-header {
  padding: 40px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  line-height: 0;
  border-radius: var(--radius-sm);
}

.logo-lockup {
  height: 52px;
  width: auto;
}

.site-nav a {
  font: 600 15px/24px var(--font-sans);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a:hover { color: var(--text-primary); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding: 176px 0 192px;
}



.hero .display {
  max-width: 18ch;
}

.hero-copy {
  margin-top: 36px;
  max-width: 52ch;
  display: grid;
  gap: 18px;
}

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

/* --- Partners ----------------------------------------------------------- */

.partners {
  border-top: 1px solid var(--border-subtle);
  padding: 144px 0 176px;
}

.partners .eyebrow { margin-bottom: 40px; }

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 64px;
}

.partner-list h3 {
  font: var(--text-h3);
  letter-spacing: var(--track-h3);
  color: var(--heading-color);
}

.partner-list p {
  margin-top: 10px;
  color: var(--text-secondary);
  max-width: 44ch;
}

/* --- Contact ------------------------------------------------------------ */

.contact {
  border-top: 1px solid var(--border-subtle);
  padding: 144px 0 176px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.contact-intro .eyebrow { margin-bottom: 16px; }

.contact-intro h2 {
  font: var(--text-h1);
  letter-spacing: var(--track-h1);
  color: var(--heading-color);
}

.contact-intro .muted {
  margin-top: 12px;
}

.form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font: 600 13px/20px var(--font-sans);
  color: var(--text-body);
}

.field input,
.field textarea {
  font: var(--text-body-lg);
  color: var(--text-primary);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--neutral-400);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--neutral-400);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

/* Honeypot: visually removed, still submittable by bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 65px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  font: 600 15px/24px var(--font-sans);
  color: #FFFFFF;
  background: var(--action-primary);
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.button:hover  { background: var(--action-hover); }
.button:active { background: var(--action-active); }
.button[disabled] { opacity: 0.6; cursor: default; }

.status {
  font: var(--text-sm);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  display: none;
}
.status[data-state="success"] {
  display: block;
  color: var(--brand-700);
  background: var(--success-tint);
  border: 1px solid var(--brand-200);
}
.status[data-state="error"] {
  display: block;
  color: var(--danger);
  background: var(--danger-tint);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font: var(--text-sm);
  color: var(--text-tertiary);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text-primary); text-decoration: underline; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .partner-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-header { padding: 24px 0; }
  .logo-lockup { height: 40px; }
  .hero { padding: 96px 0 112px; }
  .display { font: var(--text-h1); letter-spacing: var(--track-h1); }
  .partners { padding: 88px 0 96px; }
  .contact { padding: 88px 0 112px; }
  .contact-intro h2 { font: var(--text-h2); letter-spacing: var(--track-h2); }
  .button { width: 100%; }
}
