/* ============================================================
   Temple Comfort, PBC — styles
   ============================================================ */

:root {
  --navy: #16284f;
  --navy-2: #1b2c54;
  --blue: #1f4ba8;
  --orange: #cf7f2c;
  --orange-dark: #b86d22;
  --cream: #fefefe;
  --cream-2: #f4ecdf;
  --ink: #20283a;
  --muted: #5a627a;
  --line: #e7ddcd;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 40, 79, 0.10);
  --shadow-sm: 0 8px 22px rgba(22, 40, 79, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* ---------- Icon system ---------- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 254, 254, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--orange); }
.brand-mark svg { width: 38px; height: 38px; }
.brand-mark.small svg { width: 30px; height: 30px; }
.brand-mark img { width: 48px; height: 48px; max-width: none; object-fit: contain; display: block; }
.brand-mark.small img { width: 40px; height: 40px; max-width: none; object-fit: contain; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1; color: var(--navy); }
.brand-name strong { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-name em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); margin-top: 2px; }

.main-nav { display: flex; gap: 2rem; justify-content: center; }
.header-actions { justify-self: end; }
.main-nav a {
  font-weight: 500;
  color: var(--ink);
  padding: 0.3rem 0;
  position: relative;
}
.main-nav a.active, .main-nav a:hover { color: var(--navy); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  padding: 0 0 4.5rem;
  position: relative;
  overflow: hidden;
}
/* soft ambient shading behind the hero */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -6%;
  width: 65%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(31, 75, 168, 0.10), transparent 75%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  /* standard container width (aligned with the logo); image bleeds to the right edge */
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--orange);
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); font-weight: 800; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 40ch; margin: 1.3rem 0 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media {
  position: relative;
  /* extend the image to the right viewport edge */
  width: calc(100% + (100vw - min(1120px, 92vw)) / 2);
}
.hero-media > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(22, 40, 79, 0.16));
  /* subtle soft left edge */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%);
          mask-image: linear-gradient(to right, transparent 0, #000 5%);
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  max-width: 200px;
}
.float-card strong { display: block; color: var(--navy); font-size: 0.82rem; }
.float-card small { color: var(--muted); }
.fc-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #eef2fb;
  color: var(--navy);
  display: grid; place-items: center;
}
.fc-icon .icon { width: 18px; height: 18px; }
.fc-1 { top: 6%; left: -4%; }
.fc-2 { top: 2%; right: 4%; }
.fc-3 { bottom: 10%; left: 8%; }
.fc-4 { bottom: 4%; right: -3%; }

/* ---------- Mission / Vision ---------- */
.mv { padding: 1rem 0 3rem; }
.mv-grid {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.mv-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.mv-icon {
  flex: none;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.mv-icon .icon { width: 28px; height: 28px; }
.mv-item h3 { color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--sans); font-weight: 700; font-size: 0.82rem; margin-bottom: 0.5rem; }
.mv-item p { margin: 0; color: var(--navy); font-size: 1.08rem; }
.mv-divider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Community ---------- */
.community {
  padding: 4rem 0;
  background:
    linear-gradient(to bottom, transparent 55%, var(--cream) 92%),
    url("../images/world-map-bg.png") center top / 100% auto no-repeat,
    var(--cream);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 1rem; }

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .comm-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}
.carousel-arrow {
  position: absolute;
  top: 33%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.carousel-arrow:hover { background: var(--navy); color: #fff; }
.carousel-arrow .icon { width: 22px; height: 22px; }
.carousel-arrow.prev { left: -18px; }
.carousel-arrow.next { right: -18px; }
.carousel-arrow[disabled] { opacity: 0.3; cursor: default; }
.carousel-arrow[disabled]:hover { background: #fff; color: var(--navy); }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }
.carousel-dots button {
  width: 9px; height: 9px;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.carousel-dots button.active { background: var(--orange); width: 26px; border-radius: 5px; }

.comm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.tag {
  align-self: center;
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.tag-navy { background: var(--navy); }
.tag-blue { background: var(--blue); }
.tag-orange { background: var(--orange); }
.comm-photos {
  border-radius: var(--radius-sm);
  background: #eef1f6;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.comm-photos img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.comm-lead { color: var(--navy); font-weight: 500; margin: 1.2rem 0 1.4rem; }
.feature-list {
  list-style: none;
  margin: auto 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
}
.feature-list li { display: flex; align-items: center; gap: 0.7rem; }
.fl-ic { color: var(--orange); display: inline-flex; }
.fl-ic .icon { width: 18px; height: 18px; }

/* ---------- Government banner ---------- */
.gov { padding: 1rem 0 4rem; }
.gov-inner {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
}
.gov-intro { display: flex; gap: 1.25rem; align-items: flex-start; }
.gov-icon {
  flex: none;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--navy);
}
.gov-icon .icon { width: 30px; height: 30px; }
.gov-icon img { width: 46px; height: 46px; max-width: none; object-fit: contain; display: block; }
.gov-intro h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.7rem; }
.gov-intro p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.gov-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center;
}
.gov-feature .ic {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.gov-feature .ic .icon { width: 24px; height: 24px; }
.gov-feature p { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--navy); font-weight: 500; }

/* ---------- Augment ---------- */
.augment { padding: 2rem 0 4rem; }
.augment-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.augment-copy h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.2rem; }
.augment-copy p { color: var(--muted); }
.augment-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy) !important;
  font-weight: 600;
  margin-top: 1rem;
}
.an-ic {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #eef2fb;
  color: var(--blue);
  display: grid; place-items: center;
}
.an-ic .icon { width: 18px; height: 18px; }
.augment-media { position: relative; }
.augment-media > img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.task-panel {
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  width: 230px;
}
.task-panel ul { list-style: none; margin: 0 0 0.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.task-panel li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--navy); font-weight: 600; }
.task-panel li small { margin-left: auto; color: #3aa76d; font-weight: 500; }
.check {
  width: 18px; height: 18px;
  flex: none;
  display: grid; place-items: center;
  background: #e3f5ec;
  color: #3aa76d;
  border-radius: 50%;
}
.check .icon { width: 11px; height: 11px; stroke-width: 2.4; }
.task-return {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.task-return .clock {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #eaf0fb;
  color: var(--blue);
  display: grid; place-items: center;
}
.task-return .clock .icon { width: 20px; height: 20px; }
.task-return strong { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.task-return .hrs { font-family: var(--serif); font-weight: 700; color: var(--blue); font-size: 1.15rem; }
.task-return small { display: block; color: var(--muted); font-size: 0.7rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.principle {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.p-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: #eef2fb;
  color: var(--navy);
  display: grid; place-items: center;
}
.p-icon .icon { width: 24px; height: 24px; }
.principle h4 { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 0.98rem; margin-bottom: 0.4rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 27, 56, 0.8) 0%, rgba(15, 27, 56, 0.4) 42%, rgba(15, 27, 56, 0.05) 100%),
    url("../images/cta.png");
  background-size: cover;
  background-position: center;
}
.cta-overlay { display: none; }
.cta-inner { position: relative; padding: 4rem 0; text-align: left; }
.cta-inner h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); max-width: 44ch; margin: 1rem 0 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--orange); }
.footer-brand p { margin: 0; color: #fff; font-family: var(--serif); }
.footer-brand small { font-family: var(--sans); color: rgba(255,255,255,0.6); font-size: 0.75rem; }
.footer-nav { display: flex; gap: 1.6rem; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--orange); }
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; width: 100%; text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }

/* ============================================================
   Products page
   ============================================================ */
.accent { color: var(--orange); }
.lede-strong { color: var(--navy); font-weight: 600; font-size: 1.12rem; max-width: 44ch; margin-bottom: 0.4rem; }

/* Product hero: image flush with header, larger image, buttons aligned to image bottom */
.hero--product { padding-bottom: 2px; }
.hero--product .hero-grid {
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}
/* breathing room above PRODUCTS only — keeps the image flush to the header */
.hero--product .hero-copy { display: flex; flex-direction: column; padding-top: 1.5rem; }
.hero--product .hero-buttons { margin-top: auto; }
.hero--product .eyebrow { margin-bottom: 0.4rem; }
.hero--product h1 { font-size: clamp(2rem, 3.3vw, 3rem); margin-bottom: 0.2rem; }
.hero--product .lede-strong { font-size: 1rem; margin-top: 0.6rem; line-height: 1.45; }
.hero--product .lede { font-size: 1rem; margin: 0.7rem 0 0.4rem; line-height: 1.45; }

/* Osafo.ai section */
.osafo { padding: 0; background: #faf7f1; overflow: hidden; }
.osafo-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: stretch;
}
/* vertical padding lives on the text column so the image can fill the band height */
.osafo-copy { padding: 3.5rem 0; align-self: center; }
/* dashboard image fills the band height with ~2px top/bottom margins */
.osafo-media {
  position: relative;
  width: calc(100% + (100vw - min(1120px, 92vw)) / 2);
  align-self: stretch;
  padding: 2px 0;
}
.osafo-title { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; margin: 0.3rem 0 0.2rem; }
.osafo-sub { font-family: var(--serif); color: var(--navy); font-size: 1.25rem; margin: 0 0 1rem; }
.osafo-lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 46ch; }
.osafo-checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.85rem; }
.osafo-checklist li { display: flex; align-items: center; gap: 0.75rem; color: var(--navy); font-weight: 500; }
.ck {
  flex: none; width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  color: var(--orange);
  display: grid; place-items: center;
}
.ck .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.osafo-note {
  display: flex; align-items: center; gap: 0.65rem;
  background: #eef2fb; color: var(--navy);
  border-radius: 10px; padding: 0.8rem 1rem; margin: 0;
  font-size: 0.92rem; max-width: 30rem;
}
.ni { flex: none; color: var(--blue); }
.ni .icon { width: 20px; height: 20px; }
.osafo-media img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: var(--shadow); }

/* Where the platform expands */
.expand { padding: 4rem 0; }
.section-head .eyebrow { display: block; text-align: center; }
.expand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.expand-card {
  display: grid;
  grid-template-columns: 1fr 38%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.expand-body { padding: 1.4rem; }
.ic-badge {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 0.9rem;
}
.ic-badge .icon { width: 22px; height: 22px; }
.ib-blue { background: var(--blue); }
.ib-teal { background: #1aa39a; }
.ib-purple { background: #7a5cc4; }
.ib-orange { background: var(--orange); }
.ib-green { background: #3a9a5a; }
.expand-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 0.5rem; }
.expand-body p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.expand-photo { background: #eef1f6; }
.expand-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* How it operates */
.operates { padding: 1rem 0 4rem; }
.operates-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.op-step { flex: 1; text-align: center; padding: 0 0.5rem; }
.op-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--navy);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.op-icon .icon { width: 26px; height: 26px; }
.op-step h4 { font-family: var(--sans); font-size: 0.95rem; color: var(--navy); margin: 0 0 0.5rem; }
.op-step p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.op-arrow { color: var(--orange); font-size: 1.4rem; align-self: center; flex: none; }

/* Why this matters */
.why { padding: 3.5rem 0; background: #faf7f1; overflow: hidden; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.why-media { position: relative; width: calc(100% + (100vw - min(1120px, 92vw)) / 2); }
.why-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; margin: 0.4rem 0 1rem; }
.why-copy > p { color: var(--muted); margin: 0 0 1.5rem; }
.why-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.85rem; font-weight: 500; color: var(--navy);
}
.pill .icon { width: 16px; height: 16px; color: var(--orange); }
.why-media img { width: 100%; height: auto; box-shadow: var(--shadow); }

/* Product CTA */
.prod-cta { background: var(--navy); color: #fff; overflow: hidden; }
.prod-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
}
.prod-cta-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; margin: 0 0 1rem; }
.prod-cta-copy > p { color: rgba(255,255,255,0.85); margin: 0 0 1.8rem; max-width: 46ch; }
.prod-cta-media { position: relative; width: calc(100% + (100vw - min(1120px, 92vw)) / 2); }
.prod-cta-media img { width: 100%; height: auto; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ============================================================
   Investors page
   ============================================================ */
/* Hero: no eyebrow, image flush + bleeding, then a full-width feature strip */
.hero--investor { padding-bottom: 2.5rem; }
.hero--investor .hero-grid {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.hero--investor h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.12; }
.hero--investor .lede { margin: 0 0 1rem; font-size: 1rem; line-height: 1.5; }
.hero--investor .lede-strong { font-size: 1.12rem; margin-bottom: 0.9rem; }
.hero--investor .hero-buttons { margin-top: 1.6rem; }
.lede-tagline {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0.4rem 0 0;
}
.inv-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}
.inv-features .inv-feature { flex: 0 1 auto; }
.inv-feature { display: flex; align-items: center; gap: 0.7rem; }
.inv-feature .ic { flex: none; color: var(--orange); }
.inv-feature .ic .icon { width: 26px; height: 26px; }
.inv-feature p { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* The opportunity */
.opportunity { padding: 3.5rem 0; }
.opp-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
  background: #faf7f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.opp-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.opp-copy p { color: var(--muted); margin: 0; }
.opp-copy p + p { margin-top: 1rem; }
.opp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.opp-card h4 { font-family: var(--sans); font-size: 0.95rem; color: var(--navy); margin: 0.9rem 0 0.4rem; }
.opp-card p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.ic-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.ic-circle .icon { width: 24px; height: 24px; }

/* Our wedge: Osafo.ai */
.wedge { padding: 1rem 0 3.5rem; overflow: hidden; }
.wedge-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.wedge-media {
  position: relative;
  width: calc(100% + (100vw - min(1120px, 92vw)) / 2);
  margin-left: calc((100vw - min(1120px, 92vw)) / -2);
}
.wedge-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.wedge-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0 0 1rem; }
.wedge-copy > p { color: var(--muted); margin: 0 0 1rem; max-width: none; font-size: 0.95rem; }
.wedge-copy .wedge-hook { color: var(--navy); font-weight: 600; font-size: 1.08rem; }
.wedge-checklist {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}
.wedge-checklist li { align-items: flex-start; }

/* The platform vision */
.vision { padding: 3.5rem 0; }
.vision > .container { background: #faf7f1; border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 2.5rem; }
.vision .section-head { margin-bottom: 2.5rem; }
.vision-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.25rem; }
.vision-item { text-align: center; }
.vision-item .ic-circle { margin: 0 auto 0.9rem; background: #eef2fb; border: 0; color: var(--navy); }
.vision-item h4 { font-family: var(--sans); font-size: 0.86rem; color: var(--navy); margin: 0 0 0.5rem; }
.vision-item p { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.vc-blue { color: var(--blue) !important; }
.vc-teal { color: #1aa39a !important; }
.vc-purple { color: #7a5cc4 !important; }
.vc-orange { color: var(--orange) !important; }
.vc-green { color: #3a9a5a !important; }
.vc-navy { color: var(--navy) !important; }

/* Why Temple Comfort */
.why-tc { padding: 1rem 0 3.5rem; }
.why-tc > .container { background: #faf7f1; border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 2.5rem; }
.why-tc .section-head { margin-bottom: 2.5rem; }
.whytc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.whytc-item { display: flex; gap: 1rem; align-items: flex-start; }
.ic-line { flex: none; color: var(--orange); }
.ic-line .icon { width: 30px; height: 30px; }
.whytc-item h4 { font-family: var(--sans); font-size: 0.98rem; color: var(--navy); margin: 0 0 0.4rem; }
.whytc-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* From the Founders, part of the page flow (no panel) */
.founder { padding: 3.5rem 0; }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 3rem;
  align-items: stretch;
}
.founder-letter { display: flex; flex-direction: column; min-width: 0; }
.founder-letter .eyebrow { margin-bottom: 1.25rem; }
/* the letter scrolls within a contained height so the page doesn't bloat */
.founder-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.5rem 0 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.founder-scroll::-webkit-scrollbar { width: 8px; }
.founder-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.founder-scroll > p { color: var(--ink); font-size: 1rem; line-height: 1.7; margin: 0 0 1.1rem; text-align: justify; }
.founder-sign {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.5rem !important;
}
.founder-sign span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }

/* modest, non-dominant photo on the right */
.founder-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; align-self: stretch; }
.founder-card { text-align: center; }
.founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef1f7;
  margin-bottom: 1rem;
}
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-photo-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy); opacity: 0.2; }
.founder-photo-ph svg { width: 54px; height: 54px; }
.founder-name { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin: 0 0 0.2rem; }
.founder-title { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Our mission */
.mission { padding: 1rem 0 3.5rem; }
.mission-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.mission-copy h2 { color: #fff; font-size: 1.9rem; margin: 0 0 1rem; }
.mission-copy p { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin: 0 0 1.2rem; }
.mission-tag { color: var(--orange) !important; font-weight: 600; margin: 0 !important; }
.mission-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.mission-list-head { font-weight: 600; margin: 0 0 1rem; color: #fff; }
.mission-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.mission-list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; color: rgba(255,255,255,0.92); }
.ck-light { border-color: rgba(255,255,255,0.6); color: #fff; }

/* Final CTA */
.inv-cta { background: #12224a; color: #fff; }
.inv-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0;
}
.inv-cta-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: var(--orange); }
.inv-cta-icon svg { width: 34px; height: 34px; }
.inv-cta-icon img { width: 46px; height: 46px; max-width: none; object-fit: contain; display: block; }
.inv-cta-copy { flex: 1; }
.inv-cta-copy h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0 0 0.4rem; }
.inv-cta-copy p { color: rgba(255,255,255,0.82); margin: 0; font-size: 0.95rem; }

/* ============================================================
   Contact / Amina chat page
   ============================================================ */
.contact-main {
  background: #eef1f7;
  height: calc(100vh - 86px);
  height: calc(100dvh - 86px);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}
.chat {
  width: min(660px, 100%);
  height: 100%;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(22, 40, 79, 0.14);
  padding: 1.75rem;
}
.chat-header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chat-id { display: flex; align-items: flex-start; gap: 1rem; }
.chat-avatar {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--orange);
  display: grid; place-items: center;
}
.chat-avatar svg { width: 32px; height: 32px; }
.chat-avatar img { width: 42px; height: 42px; max-width: none; object-fit: contain; display: block; }
.chat-meta { display: flex; flex-direction: column; }
.chat-meta strong { font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.chat-role { color: var(--muted); font-size: 0.95rem; }
.chat-status { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--blue); font-size: 0.9rem; margin-top: 0.3rem; }
.chat-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #25c065; }
.chat-tools { display: flex; gap: 0.6rem; }
.chat-tool {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chat-tool:hover { background: var(--navy); color: #fff; }
.chat-tool .icon { width: 18px; height: 18px; }

.chat-body {
  margin-top: 1.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-right: 0.25rem;
}
.msg { display: flex; gap: 0.75rem; max-width: 92%; }
.msg-avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--orange);
  display: grid; place-items: center;
}
.msg-avatar svg { width: 20px; height: 20px; }
.msg-avatar img { width: 28px; height: 28px; max-width: none; object-fit: contain; display: block; }
.bubble {
  background: #eef1f7;
  color: var(--navy);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}
.bubble p { margin: 0 0 0.75rem; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h1, .bubble h2, .bubble h3 { margin: 0 0 0.55rem; line-height: 1.25; }
.bubble h1 { font-size: 1.2rem; }
.bubble h2 { font-size: 1.1rem; }
.bubble h3 { font-size: 1.02rem; }
.bubble ul, .bubble ol { margin: 0.15rem 0 0.8rem 1.25rem; padding: 0; }
.bubble li { margin: 0.25rem 0; }
.bubble li:last-child { margin-bottom: 0; }
.bubble a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bubble code { background: rgba(22, 40, 79, 0.1); border-radius: 5px; padding: 0.1em 0.35em; font-size: 0.9em; }
.bubble pre { margin: 0.35rem 0 0.8rem; padding: 0.8rem; overflow-x: auto; background: #17284f; color: #f7f8fb; border-radius: 9px; }
.bubble pre code { padding: 0; background: transparent; color: inherit; }
.bubble blockquote { margin: 0.35rem 0 0.8rem; padding-left: 0.8rem; border-left: 3px solid var(--orange); color: #4b5b78; }
.bubble blockquote:last-child, .bubble pre:last-child, .bubble ul:last-child, .bubble ol:last-child { margin-bottom: 0; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-user .bubble { background: var(--navy); color: #fff; }
.bubble.typing { display: inline-flex; gap: 5px; align-items: center; }
.bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(22, 40, 79, 0.4);
  animation: chatBlink 1s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.18s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatBlink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.quick-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.qc-icon { color: var(--navy); }
.qc-icon .icon { width: 30px; height: 30px; }
.qc-accent { color: var(--orange); }

.chat-input {
  flex: none;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}
.chat-input input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  color: var(--navy);
  background: transparent;
  padding: 0.6rem 0;
}
.chat-input input::placeholder { color: #9aa1b4; }
.chat-send {
  flex: none;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--navy-2); }
.chat-send .icon { width: 22px; height: 22px; }

.chat-foot {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.cf-icon { flex: none; color: var(--orange); }
.cf-icon .icon { width: 22px; height: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .header-inner { display: flex; justify-content: space-between; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 6%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid,
  .augment-grid,
  .gov-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .hero-media { margin-top: 1rem; width: 100%; }
  .mv-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mv-divider { display: none; }
  .carousel-track > .comm-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
  .carousel-arrow.prev { left: -8px; }
  .carousel-arrow.next { right: -8px; }
  .gov-features { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .task-panel { position: static; transform: none; width: auto; margin-top: -2rem; }

  /* Products page */
  .osafo-grid,
  .why-grid,
  .prod-cta-grid { grid-template-columns: 1fr; }
  .osafo-media,
  .why-media,
  .prod-cta-media { width: 100%; margin-top: 1rem; }
  .osafo { padding-bottom: 3rem; }
  .osafo-copy { padding: 3rem 0 0; }
  .osafo-media { align-self: auto; padding: 0; }
  .osafo-media img { height: auto; object-fit: initial; }
  .expand-grid { grid-template-columns: 1fr; }
  .expand-card { grid-template-columns: 1fr; }
  .expand-photo { min-height: 180px; }

  /* Investors page */
  .inv-features { justify-content: flex-start; gap: 1rem 2rem; }
  .opp-grid { grid-template-columns: 1fr; }
  .opp-cards { grid-template-columns: repeat(2, 1fr); }
  .wedge-grid { grid-template-columns: 1fr; }
  .wedge-media { width: 100%; margin-left: 0; }
  .wedge-checklist { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .whytc-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; gap: 2rem; }
  .founder-cards { max-width: 520px; margin: 0 auto; }
  .founder-scroll { padding: 0; }
  .mission-band { grid-template-columns: 1fr; }
  .inv-cta-inner { flex-direction: column; text-align: center; }
  .operates-panel { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .op-arrow { transform: rotate(90deg); align-self: center; }
}

@media (max-width: 540px) {
  .float-card { display: none; }
  .carousel-track > .comm-card { flex: 0 0 88%; }
  .gov-features { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .inv-features .inv-feature { flex: 0 0 100%; }
  .founder-cards { grid-template-columns: 1fr; max-width: 240px; }
  .opp-cards { grid-template-columns: 1fr; }
  .wedge-checklist { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .chat { padding: 1.25rem; }
  .chat-quick { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .quick-card { padding: 1.1rem 0.5rem; font-size: 0.86rem; }
}
