:root {
  color-scheme: light;
  --page: #f7f3ea;
  --surface: #fffdfa;
  --ink: #26231f;
  --muted: #625e56;
  --line: #ddd5c8;
  --green: #466d59;
  --green-dark: #31513f;
  --blue: #3f6088;
  --rose: #9a5b4f;
  --focus: #1f6feb;
  --shadow: 0 22px 55px rgba(44, 39, 31, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: #fffdfa;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(38, 35, 31, 0.09);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(14px);
}

.nav,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.wordmark-mark,
.app-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(38, 35, 31, 0.12);
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.wordmark-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.footer-links a {
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.hero {
  border-bottom: 1px solid rgba(38, 35, 31, 0.08);
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 118px) 0 clamp(62px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 0.65rem;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-line {
  margin-bottom: 1rem;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.22;
  font-weight: 650;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1.05rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.button.primary {
  background: var(--green-dark);
  color: #fffdfa;
}

.button.primary:hover {
  background: #253f31;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 253, 250, 0.62);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: rgba(38, 35, 31, 0.28);
}

.section {
  padding: clamp(58px, 8vw, 94px) 0;
}

.section-heading {
  display: flex;
  max-width: 850px;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 1.45rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.app-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.app-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.careboard-mark {
  color: var(--blue);
}

.kyl-mark {
  color: var(--rose);
}

.app-type {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-lede {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.app-card p:not(.app-type):not(.app-lede) {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 1.5rem;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.text-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.32em;
}

.text-link:hover {
  color: var(--ink);
}

.about-section {
  border-top: 1px solid rgba(38, 35, 31, 0.08);
  border-bottom: 1px solid rgba(38, 35, 31, 0.08);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-copy p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.principles > div {
  border-top: 3px solid var(--line);
  padding-top: 1rem;
}

.principles h3 {
  font-size: 1.06rem;
}

.principles p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(38, 35, 31, 0.1);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 780px) {
  .nav {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero-inner {
    padding-top: 56px;
  }

  .apps-grid,
  .about-layout,
  .principles,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .nav,
  .section,
  .footer-inner,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .wordmark {
    gap: 0.6rem;
  }

  .wordmark-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-line {
    font-size: 1.3rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .button {
    width: 100%;
  }

  .app-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
