/* Umundu Care — Self-hosted typography & editorial-organic design tokens */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lexend-400.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: "Lexend";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/lexend-500.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: "Lexend";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/lexend-600.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: "Lexend";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lexend-700.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-400.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-500.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-600.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-700.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 {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Lexend", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* Light theme: Hearth Cream canvas, Ink text, Umundu Sage primary */
  --bg: #fdfbf7;
  --bg-elevated: #ffffff;
  --bg-surface: #f5f3ef;
  --bg-accent: #e6ece4;
  --fg: #1b1c1a;
  --fg-muted: #6b6e67;
  --fg-subtle: rgba(27, 28, 26, 0.72);
  --primary: #4f6f52;
  --primary-hover: #3f5a42;
  --primary-fg: #fdfbf7;
  --accent-fg: #2f4632;
  --ochre: #d67d3e;
  --ochre-text: #a85a22;
  --border: #e7e3da;
  --border-subtle: rgba(27, 28, 26, 0.08);
  --header-bg: rgba(253, 251, 247, 0.88);
  --brand-tile-bg: #4f6f52;
  --brand-tile-fg: #fdfbf7;
  --glow: rgba(79, 111, 82, 0.11);
  --shadow-sm: 0 1px 2px rgba(27, 28, 26, 0.05);
  --shadow-card: 0 8px 28px -12px rgba(27, 28, 26, 0.08), 0 1px 3px rgba(27, 28, 26, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html.dark {
  --bg: #141513;
  --bg-elevated: #1b1c1a;
  --bg-surface: #252724;
  --bg-accent: #243026;
  --fg: #f4f3ee;
  --fg-muted: #a3a69f;
  --fg-subtle: rgba(244, 243, 238, 0.76);
  --primary: #8fb993;
  --primary-hover: #a3c8a6;
  --primary-fg: #141513;
  --accent-fg: #c5dcc3;
  --ochre: #e09a62;
  --ochre-text: #e09a62;
  --border: #2c2e2a;
  --border-subtle: rgba(244, 243, 238, 0.1);
  --header-bg: rgba(20, 21, 19, 0.88);
  --brand-tile-bg: #4f6f52;
  --brand-tile-fg: #fdfbf7;
  --glow: rgba(143, 185, 147, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 12px 32px -12px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.25);
}

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

html {
  background-color: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection {
  background-color: rgba(79, 111, 82, 0.2);
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--brand-tile-bg);
  color: var(--brand-tile-fg);
  box-shadow: var(--shadow-sm);
}

.brand-tile svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-pill {
  display: none;
  align-items: center;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(79, 111, 82, 0.25);
  background-color: rgba(79, 111, 82, 0.09);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

html.dark .brand-pill {
  border-color: rgba(143, 185, 147, 0.25);
  background-color: rgba(143, 185, 147, 0.1);
}

@media (min-width: 640px) {
  .brand-pill {
    display: inline-flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--fg-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-surface);
  color: var(--fg);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

/* Main */
main {
  flex: 1 0 auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 3.75rem 3rem;
}

@media (min-width: 640px) {
  .hero {
    padding-block: 5rem 3.5rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 34rem;
  height: 28rem;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 44rem;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(79, 111, 82, 0.25);
  background-color: var(--bg-accent);
  color: var(--accent-fg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html.dark .launch-badge {
  border-color: rgba(143, 185, 147, 0.25);
}

.launch-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(79, 111, 82, 0.45);
  animation: pulse-sage 2.4s ease-in-out infinite;
}

@keyframes pulse-sage {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 111, 82, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(79, 111, 82, 0);
  }
}

html.dark .launch-dot {
  box-shadow: 0 0 0 0 rgba(143, 185, 147, 0.45);
}

.hero-title {
  margin: 1.375rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.hero-copy {
  margin: 1.25rem 0 0;
  max-width: 39rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-subtle);
}

@media (min-width: 640px) {
  .hero-copy {
    font-size: 1.125rem;
  }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hero-email-note {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.hero-email-link {
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.hero-email-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.hero-audience {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
}

/* Capabilities Section */
.capabilities {
  padding-block: 1rem 4.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(79, 111, 82, 0.35);
}

html.dark .card:hover {
  border-color: rgba(143, 185, 147, 0.35);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background-color: var(--bg-accent);
  color: var(--accent-fg);
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: var(--bg-surface);
  color: var(--fg-muted);
}

.card-tag--ochre {
  background-color: rgba(214, 125, 62, 0.13);
  color: var(--ochre-text);
}

.card-title {
  margin: 0.125rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.card-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-subtle);
}

/* 404 Page */
.not-found {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 8.5rem);
  padding-block: 4rem;
}

.not-found-card {
  max-width: 34rem;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.not-found-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-text);
}

.not-found-title {
  margin: 0.625rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.not-found-copy {
  margin: 0.875rem 0 1.75rem;
  color: var(--fg-subtle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.75rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background-color: var(--brand-tile-bg);
  color: var(--brand-tile-fg);
}

.footer-tile svg {
  width: 0.875rem;
  height: 0.875rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .launch-dot {
    animation: none;
  }

  .btn-primary,
  .card,
  .theme-toggle,
  .hero-email-link {
    transition: none;
  }
}
