/* Kay James Enterprises LLC — site styles */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --forest: #0e4d3c;
  --forest-dark: #0a3a2d;
  --mist: #eef4f1;
  --ink: #1c1f1e;
  --slate: #55605b;
  --line: #dde5e1;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
:focus-visible { outline: 3px solid #2f8f6f; outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--forest); color: var(--white);
  display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
}
.logo-name { font-weight: 650; font-size: 17px; letter-spacing: -0.005em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--forest); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1.5px solid var(--forest); line-height: 1.2;
}
.btn-solid { background: var(--forest); color: var(--white); }
.btn-solid:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: var(--white); }
.btn-line { background: transparent; color: var(--forest); }
.btn-line:hover { background: var(--mist); }
.site-nav .btn { padding: 9px 18px; color: var(--white); }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 20px; max-width: 16ch; }
.hero p.lede { font-size: 19px; color: var(--slate); max-width: 46ch; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 36px; margin: 44px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.facts div { min-width: 120px; }
.facts dt { font-size: 14px; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 650; font-size: 17px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .panel { position: absolute; inset: 8% 4% 8% 14%; background: var(--forest); border-radius: 28px; }
.hero-art svg { position: relative; width: min(300px, 78%); height: auto; filter: drop-shadow(0 24px 40px rgba(10, 58, 45, 0.28)); }

/* Sections */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 700; }
.section-head p { color: var(--slate); margin: 0; font-size: 18px; }

/* How we work */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; margin-bottom: 18px; }
.pillar h3 { font-size: 20px; margin: 0 0 8px; font-weight: 650; }
.pillar p { margin: 0; color: var(--slate); }

/* Featured app */
.apps-section { background: var(--mist); }
.feature { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.app-icon { width: 88px; height: 88px; border-radius: 22px; background: #10263f; display: grid; place-items: center; }
.feature h3 { font-size: 26px; margin: 0 0 4px; font-weight: 700; letter-spacing: -0.01em; }
.feature .meta { color: var(--forest); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.feature p.desc { margin: 0; color: var(--slate); max-width: 58ch; }
.pipeline { margin: 20px 4px 0; color: var(--slate); font-size: 15px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid p { margin: 0 0 14px; color: var(--slate); max-width: 56ch; }
.about-grid h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

/* Support band */
.support { background: var(--forest); color: var(--white); }
.support .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.support h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 700; }
.support p { color: #cfe3da; margin: 0; max-width: 40ch; font-size: 18px; }
.contact { margin: 0; display: grid; gap: 18px; }
.contact div { padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.contact dt { font-size: 14px; color: #a9cbbd; }
.contact dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; }
.contact a { color: var(--white); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* Footer */
.site-foot { background: #f6f8f7; border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 14px; color: var(--slate); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--forest); }
.foot-grid .blurb { color: var(--slate); max-width: 34ch; margin: 14px 0 0; }
.legal-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--slate); font-size: 14px; }

/* Legal pages */
.doc-hero { background: var(--mist); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; font-weight: 700; }
.doc-hero p { margin: 0; color: var(--slate); }
.doc { padding: 48px 0 80px; }
.doc .wrap, .doc-hero .wrap { max-width: 780px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; font-weight: 650; }
.doc h2:first-of-type { margin-top: 28px; }
.doc p, .doc li { color: #2d3431; max-width: 66ch; }
.doc ul { padding-left: 22px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .about-grid, .support .wrap { grid-template-columns: 1fr; gap: 28px; }
  .feature { grid-template-columns: auto 1fr; }
  .feature .btn { grid-column: 1 / -1; justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .site-nav a:not(.btn) { display: none; }
  .logo-name { font-size: 16px; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 64px 0; }
  .feature { grid-template-columns: 1fr; padding: 24px; }
  .app-icon { width: 72px; height: 72px; border-radius: 18px; }
  .facts { gap: 20px 28px; }
}
