/* ======================================================
   Moonspire Labs Design System
   ======================================text================ */

/* ===== Local Fonts ===== */

/* Plus Jakarta Sans — latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-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;
}

/* Plus Jakarta Sans — latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-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;
}

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-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;
}

/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-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;
}

/* Lora — latin-ext (400–700, variable) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/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;
}

/* Lora — latin (400–700, variable) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/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;
}

:root {
  /* ===== Teal Scale (primary) ===== */
  --teal-50:  hsl(185, 50%, 96%);
  --teal-100: hsl(185, 48%, 90%);
  --teal-200: hsl(185, 46%, 78%);
  --teal-300: hsl(185, 50%, 62%);
  --teal-400: hsl(185, 52%, 52%);
  --teal-500: hsl(185, 55%, 45%);   /* mid-range teal — accents, highlights */
  --teal-600: hsl(185, 50%, 38%);
  --teal-700: hsl(185, 45%, 35%);   /* deep muted teal — primary structural */
  --teal-800: hsl(185, 42%, 28%);
  --teal-900: hsl(185, 40%, 20%);

  /* ===== Dark Teal (hero / header) ===== */
  --dark-teal: hsl(190, 30%, 12%);
  --dark-teal-lighter: hsl(190, 28%, 18%);

  /* ===== Amber / Golden Yellow (accent — use sparingly) ===== */
  --amber-50:  hsl(38, 100%, 96%);
  --amber-100: hsl(38, 95%, 88%);
  --amber-200: hsl(38, 92%, 75%);
  --amber-300: hsl(38, 90%, 62%);
  --amber-400: hsl(38, 90%, 55%);   /* primary CTA, highlights */
  --amber-500: hsl(38, 88%, 48%);
  --amber-600: hsl(38, 85%, 40%);

  /* ===== Warm Grey Scale (cool tint removed) ===== */
  --grey-50:  hsl(40, 20%, 97%);    /* warm off-white background */
  --grey-100: hsl(38, 16%, 93%);
  --grey-200: hsl(36, 14%, 86%);
  --grey-300: hsl(34, 12%, 76%);
  --grey-400: hsl(32, 10%, 60%);
  --grey-500: hsl(30, 8%,  46%);
  --grey-600: hsl(28, 10%, 36%);
  --grey-700: hsl(26, 12%, 26%);
  --grey-800: hsl(24, 14%, 18%);
  --grey-900: hsl(22, 16%, 12%);

  /* ===== Semantic Colors ===== */
  --color-bg:              var(--grey-50);
  --color-bg-muted:        var(--grey-100);
  --color-surface:         hsl(0, 0%, 100%);
  --color-surface-elevated: hsl(0, 0%, 100%);

  --color-text:            var(--grey-900);
  --color-text-secondary:  var(--grey-600);
  --color-text-tertiary:   var(--grey-400);

  --color-border:          var(--grey-200);
  --color-border-subtle:   var(--grey-100);

  /* Primary = deep muted teal */
  --color-primary:         var(--teal-700);
  --color-primary-hover:   var(--teal-800);
  --color-primary-light:   var(--teal-50);

  /* Accent = mid-range teal (highlights, links, hover states) */
  --color-accent:          var(--teal-500);
  --color-accent-hover:    var(--teal-600);
  --color-accent-light:    var(--teal-100);

  /* CTA = amber (buttons, sparingly) */
  --color-cta:             var(--amber-400);
  --color-cta-hover:       var(--amber-500);
  --color-cta-text:        var(--dark-teal);   /* dark text on amber for contrast */

  /* ===== Spacing Scale (base 4px) ===== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ===== Shadow System ===== */
  --shadow-1:
    0 1px 3px hsla(190, 30%, 12%, 0.10),
    0 1px 2px hsla(190, 30%, 12%, 0.06);

  --shadow-2:
    0 3px 6px hsla(190, 30%, 12%, 0.10),
    0 2px 4px hsla(190, 30%, 12%, 0.06);

  --shadow-3:
    0 10px 20px hsla(190, 30%, 12%, 0.12),
    0 3px 6px  hsla(190, 30%, 12%, 0.08);

  --shadow-4:
    0 15px 35px hsla(190, 30%, 12%, 0.15),
    0 5px  15px hsla(190, 30%, 12%, 0.10);

  --shadow-5:
    0 25px 50px hsla(190, 30%, 12%, 0.20),
    0 10px 20px hsla(190, 30%, 12%, 0.12);

  /* ===== Typography Scale ===== */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* ===== Font Families ===== */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-ui:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'SF Mono', 'Cascadia Code', 'Fira Code', Monaco, 'Courier New', monospace;

  /* ===== Font Weights ===== */
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ===== Line Heights ===== */
  --leading-tight:   1.25;
  --leading-snug:    1.375;
  --leading-normal:  1.5;
  --leading-relaxed: 1.625;
  --leading-loose:   2;

  /* ===== Border Radius ===== */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ===== Layout ===== */
  --container-wide:   1200px;
  --container-medium: 900px;
  --container-narrow: 680px;
  --container-text:   65ch;

  /* ===== Transitions ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================================
   Base Reset & Global Styles
   ====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

/* ======================================================
   Typography System
   ====================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-8);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-6);
  max-width: var(--container-text);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  font-weight: var(--weight-normal);
}

.large {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* ===== Links ===== */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: var(--weight-medium);
}

a:hover {
  color: var(--color-accent-hover);
}

p a,
li a {
  text-decoration: underline;
  text-decoration-color: var(--teal-200);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

p a:hover,
li a:hover {
  text-decoration-color: var(--color-accent);
}

/* ======================================================
   Layout System
   ====================================================== */

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container--medium {
  max-width: var(--container-medium);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--text {
  max-width: var(--container-text);
}

/* Left-aligned constrained column — starts from .container's left edge */
.content--medium {
  max-width: var(--container-medium);
}

main {
  flex: 1;
}

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

section {
  padding: var(--space-12) 0;
}

section + section {
  padding-top: var(--space-8);
}

.section--compact {
  padding: var(--space-12) 0;
}

.section--spacious {
  padding: var(--space-24) 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--surface {
  background: var(--color-surface);
}

/* ======================================================
   Header
   ====================================================== */

.screen-reader-text,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--dark-teal);
  color: var(--grey-50);
  border-bottom: 1px solid var(--teal-900);
  box-shadow: var(--shadow-1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
}

.site-logo {
  font-family: var(--font-ui);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  line-height: 1; /* prevent extra leading from misaligning with nav links */
  color: var(--grey-50);
  transition: color var(--transition-fast);
  letter-spacing: 0.15em;
}

.site-logo:hover {
  color: var(--teal-300);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.main-nav a {
  display: block;
  color: var(--teal-200);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.main-nav a:hover {
  color: var(--grey-50);
  background: var(--dark-teal-lighter);
}

/* ======================================================
   Footer
   ====================================================== */

.site-footer {
  background: var(--dark-teal);
  color: var(--grey-200);
  padding: var(--space-12) 0;
  font-size: var(--text-sm);
  text-align: center;
  clear: both;
  width: 100%;
}

.site-footer__inner {
  text-align: center;
}

/* Prevent base p { max-width } from left-anchoring the footer line */
.site-footer p {
  max-width: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

/* ======================================================
   Buttons
   ====================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Primary CTA — amber */
.btn--primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  padding: 12px 28px;
  box-shadow: var(--shadow-1);
  letter-spacing: 0.01em;
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
  color: var(--color-cta-text);
}

/* Secondary — teal outline */
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  padding: 11px 27px;
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--teal-50);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* Tertiary / Ghost */
.btn--tertiary {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 12px 24px;
}

.btn--tertiary:hover {
  background: var(--grey-100);
  color: var(--color-text);
}

/* Button Sizes */
.btn--small {
  padding: 8px 16px;
  font-size: var(--text-sm);
}

.btn--large {
  padding: 16px 36px;
  font-size: var(--text-lg);
}

/* ======================================================
   Cards & Panels
   ====================================================== */

.card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-2);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

.card--subtle {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  box-shadow: none;
}

.card--subtle:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-1);
}

.card--featured {
  border-top: 4px solid var(--color-accent);
  box-shadow: var(--shadow-3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* Panel */
.panel {
  background: var(--teal-50);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

.panel h3 {
  margin-top: 0;
  color: var(--teal-800);
}

/* ======================================================
   Lists
   ====================================================== */

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

li {
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

li::marker {
  color: var(--color-accent);
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: var(--space-4);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--weight-bold);
}

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

form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-5);
}

label {
  display: block;
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-sm);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  transition: all var(--transition-fast);
  background: var(--color-surface);
  color: var(--color-text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--teal-100);
}

input::placeholder,
textarea::placeholder {
  color: var(--grey-400);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ======================================================
   Hero Section
   ====================================================== */

.hero {
  background: linear-gradient(165deg, var(--dark-teal) 0%, var(--dark-teal-lighter) 100%);
  color: var(--grey-50);
  padding: var(--space-32) 0 var(--space-24);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--amber-400) 50%,
    transparent 100%
  );
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--grey-50);
  font-size: var(--text-6xl);
  line-height: 1.1;
  margin-bottom: var(--space-8);
  max-width: 900px;
}

.hero p {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--teal-200);
  max-width: 700px;
}

.hero a {
  color: var(--amber-300);
}

.hero a:hover {
  color: var(--amber-200);
}

.hero .btn {
  margin-top: var(--space-8);
}

.hero .btn--primary {
  color: var(--dark-teal);
}

.hero--compact {
  padding: var(--space-20) 0 var(--space-16);
}

.hero--compact h1 {
  font-size: var(--text-5xl);
}

/* ======================================================
   Content Sections — layout consistency fix
   ====================================================== */

.content-section {
  padding: var(--space-20) 0;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.content-section .container,
.content-section > * {
  max-width: var(--container-wide);
}

.content-section:first-of-type {
  padding-top: var(--space-24);
}

.content-section h2:first-child {
  margin-top: 0;
}

/* ======================================================
   Utilities
   ====================================================== */

.text-muted    { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-accent   { color: var(--color-accent); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }

.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--grey-300) 20%,
    var(--grey-300) 80%,
    transparent 100%
  );
  margin: var(--space-16) 0;
}

.divider--accent {
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-accent) 50%,
    transparent 100%
  );
  height: 2px;
}

/* ======================================================
   Responsive Design
   ====================================================== */

@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .container {
    padding: 0 var(--space-6);
  }

  section {
    padding: var(--space-20) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); margin-top: var(--space-12); }

  .hero h1 { font-size: var(--text-5xl); }
  .hero    { padding: var(--space-20) 0 var(--space-16); }

  .header-content {
    height: auto;
    padding: var(--space-4) 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  section            { padding: var(--space-10) 0; }
  .content-section   { padding: var(--space-12) 0; }
  .content-section:first-of-type { padding-top: var(--space-16); }
}

@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }

  .hero h1 { font-size: var(--text-4xl); }

  .btn       { width: 100%; text-align: center; }
  .btn--small { width: auto; }
}

/* ======================================================
   Print Styles
   ====================================================== */

@media print {
  .site-header,
  .site-footer,
  .main-nav,
  .btn { display: none; }

  body  { background: white; color: black; }
  a     { text-decoration: underline; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* ======================================================
   Page-Specific Components
   ====================================================== */

/* ===== Section Headers ===== */
section { margin-bottom: 0; }

.section-header {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

/* ===== Services Section ===== */
.services {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.service {
  background: var(--color-surface);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition-base);
}

.service:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
  border-left-color: var(--color-primary);
}

.service__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.service__intro {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.service__closing {
  margin-top: var(--space-4);
  color: var(--color-text);
}

.service__pricing {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--grey-100);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-style: italic;
}

/* ===== Who I Work With ===== */
.audiences {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.audiences__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.audience-group {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  border-top: 3px solid var(--color-accent);
  transition: all var(--transition-base);
}

.audience-group:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-top-color: var(--color-primary);
}

.audience-group__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.audience-group__description {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ===== CTA Section ===== */
.cta {
  max-width: var(--container-narrow);
  margin: var(--space-16) auto;
  padding: var(--space-10) var(--space-12);
  background: var(--dark-teal);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-3);
}

.cta__header {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--grey-50);
  margin-top: 0; /* override base h2 margin-top: var(--space-16) */
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.cta__text {
  font-size: var(--text-lg);
  color: var(--teal-200);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

/* ===== Process Section ===== */
.process {
  max-width: var(--container-medium);
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.process-step {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--grey-200);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.process-step__description {
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.process-step__note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--teal-50);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border-left: 3px solid var(--color-accent);
}

/* ===== Products Page — Starling ===== */
.starling {
  padding: var(--space-12) 0;
}

/* Constrain Starling content to the same outer width as the CTA card,
   and let paragraphs fill the container (the global p max-width of 65ch
   would otherwise make the text block narrower than the card). */
.starling .container {
  max-width: var(--container-narrow);
}

.starling p {
  max-width: none;
}

.starling__tagline {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-weight: var(--weight-normal);
  font-style: italic;
}

.starling__status {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--teal-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
  font-size: var(--text-base);
}

/* ===== About Page — Background ===== */
.background {
  padding: var(--space-12) 0;
}

.background p {
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  font-size: var(--text-lg);
}

/* ======================================================
   Mobile overrides for page components
   ====================================================== */

@media (max-width: 768px) {
  .cta {
    padding: var(--space-8);
    margin: var(--space-12) auto;
  }

  .cta__header { font-size: var(--text-xl); }
  .service     { padding: var(--space-6); }

  .audiences__groups {
    grid-template-columns: 1fr;
  }
}
/* ======================================================
   Newsletter styling
   ====================================================== */

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto; /* center within the CTA card */
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0; /* prevents flex overflow */
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

/* ======================================================
   Contact form success message
   ====================================================== */

.form-success {
  padding: var(--space-5) var(--space-6);
  background: var(--teal-50);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.form-success p {
  margin: 0;
}