/*
 * Shared styles for funkrom.com (home page and /huecompass).
 * Design source: docs/design/website-2026/. Flat colours only.
 */

:root {
  --navy: #000151;
  --navy-hover: #1b1d73;
  --accent: #fb8202;
  --ink: #0e1014;
  --text-2: #4a4f5a;
  --text-3: #32353d;
  --text-4: #5c616c;
  --border: #e6e7ec;
  --surface: #f6f6f3;
  --surface-border: #ecece8;
  --link: #0d27ff;
  --dark: #161616;
  --dark-border: #333333;
  --dark-chip-border: #3a3a3a;
  --dark-text: #e8e8e8;
  --dark-text-2: #b5b5b5;
  --dark-text-3: #a6a6a6;
  --ok-text: #0e5a2e;
  --ok-bg: #e3f4e8;
  --ok-dot: #1f9d55;
  --soon-text: #6a3b00;
  --soon-bg: #ffe7cc;
  --tile: #eef0ff;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { 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: #ffffff;
  color: var(--ink);
  font-family: Lato, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--link); }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #ffffff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--navy); color: #ffffff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #ffffff; }

/* ---------- Layout ---------- */

/* content-box: 1200px is the content width, gutters sit outside it (as in the design). */
.container { box-sizing: content-box; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.row { display: flex; flex-wrap: wrap; }
.grow { min-width: 0; }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow-dot { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.eyebrow-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.h1 {
  margin: 0 0 24px;
  font-weight: 900; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -1.6px;
  color: var(--navy); text-wrap: balance;
}
.h2 {
  margin: 0 0 12px;
  font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.8px;
  color: var(--navy);
}
.h3 { margin: 0; font-size: 20px; font-weight: 900; color: var(--navy); }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-3); }
.sub { margin: 0; font-size: 18px; color: var(--text-2); }
.muted { margin: 0; color: var(--text-2); }

/* ---------- Brand ---------- */

.wordmark {
  font-style: italic; font-weight: 900; font-size: 24px; letter-spacing: -0.5px; color: var(--navy);
}
.wordmark span { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: italic; font-weight: 900; font-size: 24px;
}

/* ---------- Header / nav ---------- */

.site-header { border-bottom: 1px solid var(--border); background: #ffffff; }
.site-header .container {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-left: auto; }
.nl {
  color: var(--text-3); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 4px;
}
.nl:hover, .nl[aria-current="page"] {
  color: var(--navy); text-decoration: underline; text-underline-offset: 6px;
}
.nl[aria-current="page"] { text-decoration-thickness: 2px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-lg { min-height: 56px; font-size: 16px; }
.btn-primary { background: var(--navy); color: #ffffff; }
.btn-primary:hover { background: var(--navy-hover); color: #ffffff; }
.btn-ghost { background: #ffffff; color: var(--navy); border-color: #c9ccd6; }
.btn-ghost:hover { background: #f1f2f6; color: var(--navy); border-color: var(--navy); }
.btn-light { background: #ffffff; color: #141414; }
.btn-light:hover { background: #e9e9e9; color: #141414; }
.btn-outline-dark { background: transparent; color: #ffffff; border-color: #5a5a5a; }
.btn-outline-dark:hover { border-color: #ffffff; color: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tl { color: var(--navy); font-weight: 700; text-decoration: none; }
.tl:hover { color: var(--link); text-decoration: underline; }

.badge { display: inline-flex; border-radius: 8px; line-height: 0; }
.badge img { display: block; height: 48px; width: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }

.kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: 13px;
  padding: 2px 8px; border-radius: 6px; border: 1px solid #c9ccd6;
  background: #ffffff; color: var(--ink); white-space: nowrap;
}

/* ---------- Chips ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.chip-ok { color: var(--ok-text); background: var(--ok-bg); }
.chip-soon { color: var(--soon-text); background: var(--soon-bg); }
.chip-new { color: var(--navy); background: var(--soon-bg); }
.chip-accent {
  color: #141414; background: var(--accent);
  letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); flex: none; }
.status {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--ok-text);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Cards ---------- */

.card {
  background: #ffffff; border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 18px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.app-icon { width: 64px; height: 64px; flex: none; object-fit: contain; display: block; }

/* Icon-tile feature grid (hairline separated cells). */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.feature { background: #ffffff; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--tile);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer { background: #ffffff; padding: 56px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col:first-child { gap: 12px; }
.footer-title {
  margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink);
}
.footer-about { margin: 0; color: var(--text-2); font-size: 15px; max-width: 30ch; }
.fl { color: var(--text-2); text-decoration: none; font-size: 15px; }
.fl:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 14px; color: var(--text-4);
}

/* ---------- Closing bands ---------- */

.band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.band-contact { background: var(--navy); color: #ffffff; padding: clamp(64px, 8vw, 104px) 0; }
.band-contact .h2 { color: #ffffff; letter-spacing: -0.8px; }
