/*
  DLSM Education — Cohere-Inspired Design System
  Based on DESIGN-cohere.md
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400&display=swap');

/* =====================
   CSS Custom Properties
   ===================== */
:root {
  --primary:       #17171c;
  --cohere-black:  #000000;
  --ink:           #212121;
  --deep-green:    #003c33;
  --dark-navy:     #071829;
  --canvas:        #ffffff;
  --soft-stone:    #eeece7;
  --pale-green:    #edfce9;
  --pale-blue:     #f1f5ff;
  --hairline:      #d9d9dd;
  --border-light:  #e5e7eb;
  --card-border:   #f2f2f2;
  --muted:         #93939f;
  --slate:         #75758a;
  --body-muted:    #616161;
  --action-blue:   #1863dc;
  --coral:         #ff7759;
  --coral-soft:    #ffad9b;
  --on-dark:       #ffffff;
  --error:         #b30000;

  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-pill: 32px;
  --r-full: 9999px;

  --max-width: 1120px;
  --nav-height: 60px;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =====================
   Announcement Bar
   ===================== */
.announcement-bar {
  background: var(--cohere-black);
  color: var(--on-dark);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  gap: 8px;
  position: relative;
}
.announcement-bar a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announcement-bar .close-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

/* =====================
   Navigation
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--deep-green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r-xs);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--primary); background: rgba(0,0,0,0.04); }
.nav-links a.active { color: var(--primary); font-weight: 500; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.71;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

/* Primary — near-black pill */
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #2c2c35; color: #fff; }

/* Primary white variant (for dark sections) */
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* Secondary — text link style */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-secondary:hover { color: var(--primary); }

/* Pill outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 16px;
  border-radius: var(--r-xl);
  font-size: 0.8125rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Coral chip */
.btn-coral {
  background: transparent;
  color: var(--coral);
  border: 1px solid var(--coral-soft);
  padding: 6px 16px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
}
.btn-coral:hover { background: rgba(255,119,89,0.08); }

.btn-sm { font-size: 0.8125rem; padding: 8px 18px; }
.btn-lg { font-size: 1rem; padding: 14px 32px; }

/* =====================
   Mono Label / Badge
   ===================== */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label-dark { color: rgba(255,255,255,0.55); }

.coral-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--coral);
  border: 1px solid var(--coral-soft);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.02em;
}

/* =====================
   Layout
   ===================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section      { padding: 96px 0; }
.section-sm   { padding: 56px 0; }
.section-stone { padding: 96px 0; background: var(--soft-stone); }
.section-green { padding: 96px 0; background: var(--deep-green); }
.section-pale-green { padding: 96px 0; background: var(--pale-green); }

/* =====================
   Grid
   ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* =====================
   Hero
   ===================== */
.hero {
  background: var(--canvas);
  padding: 80px 0 64px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--primary);
  max-width: 860px;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero media composition */
.hero-media {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-top: 56px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.hero-media-card-main {
  background: var(--primary);
  border-radius: var(--r-lg);
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-media-card-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep-green) 0%, #17171c 100%);
  opacity: 0.9;
}
.hero-media-card-side {
  background: var(--soft-stone);
  border-radius: var(--r-lg);
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-media-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.hero-media-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

/* Trust Strip */
.trust-strip {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-strip-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 36px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust-logo-item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.3px;
  opacity: 0.6;
}

/* =====================
   Section Labels
   ===================== */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-label-light {
  color: rgba(255,255,255,0.5);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title-light { color: #fff; }
.section-sub {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body-muted);
  max-width: 520px;
}
.section-sub-light { color: rgba(255,255,255,0.65); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* =====================
   Feature Cards (white canvas)
   ===================== */
.feature-card {
  padding: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.feature-icon-line {
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--deep-green);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body-muted);
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 14px;
}

/* =====================
   Product / Stone Cards
   ===================== */
.stone-card {
  background: var(--soft-stone);
  border-radius: var(--r-sm);
  padding: 32px;
}
.stone-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--primary);
  margin-bottom: 12px;
}
.stone-card-desc {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body-muted);
  margin-bottom: 24px;
}
.stone-card-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 20px 0;
}
.stone-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--body-muted);
  margin-bottom: 8px;
}
.stone-check-item::before {
  content: '✓';
  color: var(--deep-green);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =====================
   Dark Green Feature Band
   ===================== */
.green-band {
  background: var(--deep-green);
  padding: 96px 0;
}
.green-band .section-title  { color: #fff; letter-spacing: -1px; }
.green-band .section-sub    { color: rgba(255,255,255,0.6); }
.green-band .section-label  { color: rgba(255,255,255,0.45); }
.green-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  padding: 28px;
}
.green-card .feature-title  { color: #fff; }
.green-card .feature-desc   { color: rgba(255,255,255,0.6); }
.green-card .feature-icon-line {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* =====================
   Article / Blog Cards
   ===================== */
.article-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  transition: background 0.1s;
}
.article-row:hover .article-row-title { color: var(--deep-green); }
.article-row-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-row-body { flex: 1; min-width: 0; }
.article-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.article-row-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--primary);
  margin-bottom: 6px;
  transition: color 0.15s;
}
.article-row-excerpt {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body-muted);
}

.article-card {
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--hairline); }
.article-thumb {
  height: 160px;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.article-thumb-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}
.article-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-cat { font-size: 0.75rem; color: var(--coral); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.article-title { font-family: var(--font-display); font-size: 1rem; font-weight: 400; line-height: 1.35; letter-spacing: -0.15px; color: var(--primary); }
.article-excerpt { font-size: 0.875rem; color: var(--body-muted); line-height: 1.6; flex: 1; }
.article-read-more { font-size: 0.875rem; font-weight: 500; color: var(--action-blue); text-decoration: underline; text-underline-offset: 2px; margin-top: 8px; }

/* =====================
   Steps
   ===================== */
.step-row {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.step-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.step-num {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.step-title { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: #fff; margin-bottom: 4px; }
.step-desc  { font-size: 0.875rem; font-weight: 400; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* =====================
   Forms
   ===================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xs);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 2px rgba(0,60,51,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }

/* =====================
   Page Header (inner pages)
   ===================== */
.page-header {
  background: var(--canvas);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-header .section-title { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -1.2px; }

/* =====================
   Footer
   ===================== */
.footer { background: var(--primary); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: rgba(255,255,255,0.45); }
.footer-tagline { font-size: 0.875rem; font-weight: 400; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 12px; }
.footer-afsl { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.footer-col-heading { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; font-weight: 400; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-disclaimer { font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.28); line-height: 1.75; max-width: 900px; margin-bottom: 12px; }
.footer-copyright { font-size: 0.7rem; color: rgba(255,255,255,0.22); }

/* =====================
   Utilities
   ===================== */
hr { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }
.text-center   { text-align: center; }
.text-coral    { color: var(--coral); }
.text-green    { color: var(--deep-green); }
.text-muted    { color: var(--body-muted); }
.text-white    { color: #fff; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-media-card-main,
  .hero-media-card-side { height: 220px; }
  .hero-media-card-side { display: none; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .hero-title { letter-spacing: -1.2px; }
  .hero-media { padding: 0 20px; }
  .section, .section-stone, .section-green, .section-pale-green, .green-band { padding: 64px 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .trust-logos { gap: 28px; }
  .article-row-thumb { display: none; }
}
