/* Moorkeel — suite brand site. One typeface (Instrument Sans), warm sand surface, deep navy ink, one brass accent.
   Deliberately unlike the six product sites (Manrope / Geist / Poppins on white with teal, green, orange, indigo, pink). */
:root {
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --ink: #16324f;
  --text: #1f2a37;
  --muted: #5b6573;
  --line: #e4dccd;
  --brass: #865c22;        /* text-safe accent: 5.27:1 on sand, 5.79:1 on surface */
  --brass-soft: #d9a35b;   /* decorative only */
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
img, svg { display: block; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; min-height: 44px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--brass-soft); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* nav: floats off the top edge on a translucent sand surface */
.nav { position: sticky; top: 12px; z-index: 5; padding: 0 16px; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(246, 242, 234, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 18px; color: var(--ink); min-height: 44px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 12px 12px; border-radius: 999px; transition: color 300ms var(--ease), background 300ms var(--ease); }
.nav-links a:hover { color: var(--ink); background: rgba(22, 50, 79, 0.06); }

/* hero */
.hero { padding: 96px 0 64px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brass); letter-spacing: 0.02em; margin: 0 0 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
.hero h1 {
  font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; margin: 0; max-width: 680px;
  color: var(--ink); text-wrap: balance;
}
.hero-visual { margin: 0; }
.hero-visual svg { width: 100%; height: auto; }
.hero p.lede { font-size: 20px; line-height: 28px; color: var(--muted); max-width: 680px; margin: 24px 0 32px; text-wrap: pretty; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}
.btn:hover { background: #0f2741; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.hero-strip { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; line-height: 20px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* products */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section h2 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.section-head p { color: var(--muted); max-width: 440px; margin: 0; }
.group-label { font-size: 14px; font-weight: 600; color: var(--brass); margin: 32px 0 12px; }
.list { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 32px; align-items: center;
  padding: 24px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  border-radius: 12px; transition: background 300ms var(--ease);
}
.row:hover { background: var(--surface); }
.card-top { display: flex; align-items: center; gap: 12px; }
.mark { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px; flex: none; }
.row h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; color: var(--ink); }
.row .job { font-size: 14px; color: var(--muted); margin: 0; }
.row p.desc { margin: 0; max-width: 560px; }
.row .go { font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.row .go span { transition: transform 300ms var(--ease); }
.row:hover .go span { transform: translateX(3px); }

/* tagline: words move from muted to full ink as the section enters */
.tagline { padding: 96px 0; }
.tagline p { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; max-width: 880px; margin: 0; color: var(--ink); text-wrap: balance; }
/* words move from readable muted gray (5.29:1) to full ink: the effect without ever being unreadable */
.js .tagline .w { color: var(--muted); transition: color 600ms var(--ease); }
.js .tagline .w.on { color: var(--ink); }

/* how: heading left, numbered points right */
.how-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.how { display: flex; flex-direction: column; }
.how > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.how h3 { font-size: 18px; line-height: 28px; margin: 0 0 4px; color: var(--ink); }
.how p { margin: 0; color: var(--muted); }
.how .num { font-size: 14px; line-height: 28px; font-weight: 600; color: var(--brass); margin: 0; }

/* faq + final */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; line-height: 28px; color: var(--ink); min-height: 44px; display: flex; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-weight: 500; color: var(--brass); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.final { text-align: center; }
.final h2 { margin: 0 auto 24px; max-width: 680px; text-wrap: balance; }
/* section reveal (once): only hidden when JS runs, so no-JS and crawlers see everything */
/* sections settle into place (movement only, text stays visible so nothing is hidden at rest) */
.js .reveal { transform: translateY(32px); transition: transform 700ms var(--ease); }
.js .reveal.in { transform: none; }

/* contact + footer */
.contact { background: var(--ink); color: #f2ebe0; border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact h2 { color: #fff; }
.contact p { margin: 8px 0 0; color: #cfd8e3; max-width: 520px; }
.contact .btn { background: #f2ebe0; color: var(--ink); }
.contact .btn:hover { background: #fff; }
footer { padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); display: inline-block; min-height: 44px; min-width: 44px; line-height: 44px; text-align: center; }

/* legal pages */
.doc { max-width: 720px; padding: 64px 24px 96px; margin: 0 auto; }
.doc h1 { font-size: 36px; line-height: 40px; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 20px; line-height: 28px; color: var(--ink); margin: 32px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc p, .doc li { color: var(--text); }

/* entrance: hero only, on load (no scroll-reveal so full-page captures are never blank) */
.js .rise { opacity: 0; transform: translateY(24px); animation: rise 700ms var(--ease) forwards; }
.js .rise.d2 { animation-delay: 80ms; } .js .rise.d3 { animation-delay: 160ms; } .js .rise.d4 { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .rise { animation: none; opacity: 1; transform: none; }
  .js .tagline .w { opacity: 1; transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .row, .btn, .row .go span { transition: none; }
}

@media (max-width: 900px) {
  .row { grid-template-columns: 220px 1fr; }
  .row .go { display: none; }
  .how-wrap { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 48px; line-height: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .tagline p { font-size: 36px; line-height: 40px; }
  .hero h1 br { display: none; }
}
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; gap: 12px; padding: 20px 8px; }
  .row .go { display: inline-flex; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero p.lede { font-size: 18px; line-height: 28px; }
  .tagline { padding: 64px 0; }
  .tagline p { font-size: 30px; line-height: 36px; }
  .section h2 { font-size: 30px; line-height: 36px; }
  .contact { padding: 32px 24px; }
  .wrap { padding: 0 16px; }
}
