/* kathek.org landing page. Colors and fonts follow apps/web/src/tokens.css. */
@font-face {
  font-family: 'Young Serif';
  font-display: swap;
  src: url('/fonts/young-serif-latin-400-normal.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: 'Young Serif';
  font-display: swap;
  src: url('/fonts/young-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/libre-franklin-latin-wght-normal.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: 'Libre Franklin';
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/libre-franklin-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --bg: #f4f2eb;
  --surface: #fffefb;
  --ink: #10322a;
  --muted: #51615a;
  --primary: #01523f;
  --primary-hover: #013b2d;
  --line: #e5e2d6;
  --soft: #e3ece4;
  --leaf: #c6dcd3;
  --sun: #ffc24b;
  --tangerine: #e8621a;
  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Libre Franklin', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.kicker {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--primary-hover);
}
.btn-small {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}
.btn-quiet {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.btn-quiet:hover {
  background: var(--soft);
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}
.nav-logo img {
  width: 132px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.nav-link:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}
.hero-tree {
  position: absolute;
  right: -4rem;
  bottom: -2rem;
  width: min(36rem, 60vw);
  opacity: 0.9;
  pointer-events: none;
}
.hero-inner {
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 14ch;
}
.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.25rem;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Demo */
.demo {
  padding: 1rem 0 5rem;
}
.video-frame {
  margin: 0;
}
.video-frame video {
  width: 100%;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 1px 0 var(--line),
    0 30px 60px -30px rgb(16 50 42 / 35%);
}
.video-frame figcaption {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Problem */
.problem {
  padding: 5rem 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.problem h2,
.how h2,
.trust h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  max-width: 22ch;
}
.weeks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2.5rem;
  margin-top: 3rem;
}
.week-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.week-good .week-label {
  color: var(--primary);
}
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.375rem;
  height: 8rem;
  border-bottom: 1.5px solid var(--ink);
}
.bars span {
  height: calc(var(--v) * 100%);
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: #7a9a8c;
}
.bars .hot {
  background: var(--tangerine);
}
.week-good .bars span {
  background: var(--primary);
}
.note {
  margin-top: 2.5rem;
  color: var(--muted);
  max-width: 36rem;
}

/* How it works */
.how {
  padding: 5.5rem 0;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.steps p {
  color: var(--muted);
}
.mauper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.75rem;
  border-radius: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.125rem;
}
.mauper img {
  flex: none;
  width: 3.5rem;
  background: var(--bg);
  border-radius: 50%;
  padding: 0.4rem;
}

/* Built at Michigan */
.trust {
  padding: 5rem 0;
  background: var(--soft);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.facts li {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 1rem 3rem;
  position: relative;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50% 0;
  background: var(--primary);
}

/* Closing */
.closing {
  padding: 6rem 0;
  text-align: center;
}
.closing h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 20ch;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-row img {
  width: 1.25rem;
}
.footer-row span {
  margin-right: auto;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .nav-link {
    display: none;
  }
  .hero {
    padding: 3.5rem 0 3rem;
  }
  .hero-tree {
    width: 75vw;
    opacity: 0.35;
  }
  .lede {
    font-size: 1.125rem;
  }
  .video-frame video {
    border-radius: 0.75rem;
  }
  .weeks {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .bars {
    height: 5rem;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .mauper {
    font-size: 1rem;
    padding: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
