/* keellabs.dev - Keel Labs navy and teal; each app keeps its own accent: DauKey orange, Keel blue. */

:root {
  --page: #f6f8fa;
  --raised: #ffffff;
  --alt: #eef2f5;
  --ink: #0a1b2e;          /* Keel Labs navy */
  --muted: #4a5a6b;
  --line: #e3e8ee;
  --brand: #16707f;        /* Keel Labs teal for text and lines on light */
  --daukey: #c13416;       /* DauKey accent-text */
  --daukey-fill: #ff5c38;
  --keel: #005ac2;         /* Keel blue for text on light */
  --keel-fill: #2f6fe0;
  --shadow: 0 1px 2px rgb(10 27 46 / 0.05), 0 14px 36px rgb(10 27 46 / 0.07);
  --display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a1b2e;
    --raised: #11243a;
    --alt: #0e2034;
    --ink: #f1f5f8;
    --muted: #9fb0c0;
    --line: #1f3550;
    --brand: #5fd3e3;
    --daukey: #ff7a5a;
    --keel: #7aa9ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.86em; background: var(--alt); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.brand img { border-radius: 24%; box-shadow: 0 0 0 1px var(--line); } /* the navy tile needs an edge on the navy dark page */
.brand b { font-weight: 700; }
.brand span span { font-weight: 400; color: var(--brand); }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--ink); background: var(--alt); }

.hero { padding: 96px 0 56px; }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); }
h1 { margin: 0; max-width: 15em; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.lead { max-width: 36em; margin: 24px 0 0; font-size: 20px; color: var(--muted); }

.section { padding: 40px 0 88px; }
.section.alt { padding: 76px 0; background: var(--alt); border-top: 1px solid var(--line); }
h2 { margin: 0 0 28px; font-size: 32px; letter-spacing: -0.02em; }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.app {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow);
  overflow: hidden;
}
.app::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.app.keel::before { background: linear-gradient(90deg, #2f6fe0, #19a8d8); }
.app.daukey::before { background: var(--daukey-fill); }
.app-head { display: flex; gap: 18px; align-items: center; }
.app-head img { border-radius: 16px; flex: none; }
.app h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.tagline { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.keel .tagline { color: var(--keel); }
.daukey .tagline { color: var(--daukey); }
.app ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.facts { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--alt); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; }
.button {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 22px;
  border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff;
}
.button small { font-weight: 500; opacity: 0.85; }
.keel .button { background: linear-gradient(100deg, #2f6fe0, #1592c4); }
.daukey .button { background: #c13416; } /* fixed: white text needs the dark orange in both modes */
.button:hover { filter: brightness(1.07); }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.principles h3 { margin: 0 0 6px; font-size: 18px; }
.principles p { margin: 0; color: var(--muted); }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 36px; }
  .apps, .principles { grid-template-columns: minmax(0, 1fr); }
  .app { padding: 22px; }
  .button { align-self: stretch; justify-content: center; }
}
