/* Kataloom: kataloom.com. All styles live here; the CSP forbids inline styles. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A1512;
  --body: #4A423C;
  --muted: #6B625B;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --tint: #FFF6EF;
  --badge: #FFEDE0;
  --line: #EFE7E1;
  --line-warm: #F3DCCB;
  --on-dark: #F7F2EE;
  --on-dark-body: #D9CFC8;
  --on-dark-muted: #B5AAA2;
  --on-dark-accent: #FF8A4C;
  --dark-line: #3A322D;
  --white: #FFFFFF;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(64px, 10vw, 104px);
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

a {
  color: var(--accent);
}

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

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

.section-dark :focus-visible {
  outline-color: var(--on-dark-accent);
}

.contact-box :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.skip-link:hover {
  color: var(--white);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
}

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

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

.btn-outline {
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-line);
  color: var(--white);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 1.0625rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.1875rem;
}

.btn-outline.btn-lg {
  padding: 14px 20px;
}

.btn-xl {
  padding: 18px 28px;
  font-size: clamp(1.1875rem, 1rem + 1vw, 1.375rem);
  font-weight: 800;
  border-radius: 14px;
  max-width: 100%;
}

.btn-xl svg {
  flex: none;
}

/* Shared text */

.eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-on-dark {
  color: var(--on-dark-accent);
}

.h2 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section {
  padding: var(--section-y) 0;
}

.section-tint {
  background: var(--tint);
}

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(72px, 11vw, 112px) 0;
}

.stack-xl {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 56px);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  height: 38px;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* On phones the nav gets its own full-width row under the logo. */
@media (max-width: 639px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-link,
  .btn-sm {
    font-size: 1rem;
  }
}

/* Hero */

.hero {
  padding: clamp(48px, 9vw, 88px) 0 clamp(64px, 10vw, 96px);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

h1 {
  font-size: clamp(2.625rem, 1.5rem + 4.6vw, 4.25rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.lead {
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--body);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* Hero example: sentence in, card out */

.demo {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--tint);
  border: 1px solid var(--line-warm);
  border-radius: 22px;
}

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demo-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.demo-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-typed {
  font-family: var(--mono);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem);
  line-height: 1.45;
}

.demo-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 4vw, 22px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--line-warm), 0 10px 28px rgba(26, 21, 18, 0.08);
}

.demo-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.demo-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.demo-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.demo-fields div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-fields dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-fields dd {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  font-weight: 600;
}

.demo-confirm {
  padding: 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.demo-caption {
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

/* Dark band */

.band {
  background: var(--ink);
  color: var(--on-dark);
  padding: 64px 0;
}

.band-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.band-title {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.band-text {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-dark-body);
}

/* How it works */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step-num {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}

.step-title {
  font-size: clamp(1.4375rem, 1.3rem + 0.6vw, 1.625rem);
  font-weight: 800;
}

.step-text {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--body);
}

/* Ask it anything */

.ask-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 56px);
}

.ask-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ask-text {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--body);
}

.questions {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questions li {
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  line-height: 1.4;
}

/* Your data */

.data-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 50rem;
}

.data-title {
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 3.5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.data-lead {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-dark-body);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}

.data-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 5vw, 28px);
  border: 1px solid var(--dark-line);
  border-radius: 18px;
}

.data-icon {
  color: var(--on-dark-accent);
}

.data-card-title {
  font-size: 1.375rem;
  font-weight: 800;
}

.data-card-text {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-dark-body);
}

.data-note {
  max-width: 50rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

/* Built with people who've worked the yard */

.team-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.team-title {
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.team-text {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--body);
}

/* Contact */

.contact {
  padding-bottom: clamp(72px, 11vw, 112px);
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(48px, 8vw, 72px) clamp(20px, 5vw, 48px);
  background: var(--accent);
  border-radius: clamp(20px, 3vw, 28px);
  color: var(--white);
  text-align: center;
}

.contact-mark {
  height: 72px;
  width: auto;
}

.contact-title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.contact-text {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
  line-height: 1.55;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  height: 26px;
  width: auto;
}

.footer-name {
  font-weight: 700;
}

.footer-text {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* 404 page */

.notfound {
  padding: clamp(72px, 14vw, 140px) 0;
}

.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
