/* Koala Labs LLC — brand colors from logo */
:root {
  --navy: #1a365d;
  --navy-deep: #0f2744;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-soft: #dbeafe;
  --slate: #475569;
  --slate-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 39, 68, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy-deep);
  background: var(--bg);
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  display: none;
}

@media (min-width: 480px) {
  .brand-text {
    display: inline;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate);
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--white) 0%, var(--blue-soft) 55%, #eff6ff 100%);
  padding: 3.5rem 1.25rem 4.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  width: min(200px, 55vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.15));
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36em;
  font-size: 1.125rem;
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--slate-light);
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}

.section-header--light h2 {
  color: var(--white);
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 3rem;
  }
}

.about-prose p {
  margin: 0 0 1.25rem;
  color: var(--slate);
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose strong {
  color: var(--navy);
}

.about-facts {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.about-facts dl {
  margin: 0;
}

.fact {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.fact:first-child {
  padding-top: 0;
}

.fact:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.fact dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.fact dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-deep);
}

/* Apps */
.apps {
  background: var(--bg);
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .app-list {
    grid-template-columns: 1fr 1fr;
  }

  .app-card:first-child {
    grid-column: 1 / -1;
  }
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.1);
}

.app-name-link {
  color: var(--navy-deep);
  text-decoration: none;
}

.app-name-link:hover {
  color: var(--blue);
}

.app-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.app-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
}

.app-description {
  margin: 0 0 1.25rem;
  color: var(--slate);
  font-size: 0.9875rem;
}

.app-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.app-link--muted {
  color: var(--slate-light);
  pointer-events: none;
  cursor: default;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
}

.app-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.placeholder-text {
  margin: 0;
  text-align: center;
  color: var(--slate-light);
  font-size: 0.9375rem;
}

/* Contact */
.contact {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 50%, #1e40af 100%);
  color: var(--white);
}

.contact-inner {
  text-align: center;
  max-width: 560px;
}

.contact-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.75rem 1.25rem;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 0.25rem 0;
}

.footer-location {
  opacity: 0.7;
}
