/* CreatorPalm — blue + white only. Tokens locked to GM's brief. */
:root {
  --ink: #0a2540;
  --blue: #2563eb;
  --royal: #1d4ed8;
  --sky: #eaf2fe;
  --white: #ffffff;
  --slate: #5b6b7f;
  --line: #d7e3f2;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
}
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--royal); }
.site-nav a:focus-visible,
.brand:focus-visible,
.footer-nav a:focus-visible,
.card-btn:focus-visible,
.bento-tile:focus-visible,
.chip:focus-visible,
.btn-reset:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  color: var(--royal);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--slate);
  max-width: 56ch;
}
.hero-sub strong { color: var(--ink); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.75rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-head p { margin-top: 0.5rem; color: var(--slate); max-width: 60ch; }

/* ---------- Featured bento ---------- */
.featured { padding: clamp(2.5rem, 6vw, 4rem) 0 0.5rem; }
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bento-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bento-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.bento-media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky); }
.bento-tile--large .bento-media { aspect-ratio: 16 / 10; }
.bento-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.bento-tile:hover .bento-media img { transform: scale(1.03); }
.bento-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.4rem;
}
.bento-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}
.bento-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.bento-tile--large .bento-name { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.bento-tag { color: var(--slate); }
.bento-cta { margin-top: 0.5rem; font-weight: 700; color: var(--royal); }

@media (min-width: 760px) {
  .bento { grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; }
  .bento-tile--large { grid-row: span 2; }
  .bento-tile--large .bento-media { flex: 1; aspect-ratio: auto; min-height: 0; }
  .bento-tile--large .bento-body { padding: 1.5rem 1.6rem 1.7rem; }
}

/* ---------- Sticky toolbar ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--white);
}
.search-box:focus-within { border-color: var(--blue); }
.search-icon { color: var(--slate); flex: none; }
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
}
.search-box input::placeholder { color: var(--slate); }
.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}
.chip {
  flex: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--sky);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--blue); }
.chip--active { background: var(--ink); color: var(--white); }
.chip-count {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.65;
  margin-left: 0.2rem;
}
.result-count { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* ---------- Tool sections & cards ---------- */
.tool-sections { padding: 2.5rem 0 4rem; }
.tool-section { margin-bottom: 3.5rem; }
.tool-section:last-of-type { margin-bottom: 0; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--sky); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-soon {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}
.card-body h3 {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.card-body p { color: var(--slate); font-size: 0.95rem; flex: 1; }
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.card-btn:hover { background: var(--royal); }
.card-btn--disabled {
  background: var(--sky);
  color: var(--slate);
  cursor: not-allowed;
}
.card-btn--disabled:hover { background: var(--sky); }

/* ---------- No results ---------- */
.no-results {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
  padding: 2.5rem 2rem;
  margin-top: 1rem;
}
.no-results-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.no-results p:not(.no-results-title) { color: var(--slate); }
.btn-reset {
  margin-top: 1.25rem;
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
}
.btn-reset:hover { background: var(--royal); }

/* ---------- Sub pages ---------- */
.page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.75rem; }
.page .lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 62ch;
  margin-bottom: 2rem;
}
.page-content { max-width: 62ch; }
.page-content h2 {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.5rem;
}
.page-content p { margin-bottom: 0.9rem; color: var(--ink); }
.page-content ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.page-content li { margin-bottom: 0.35rem; }
.page-content a { font-weight: 600; }
.contact-list { list-style: none; padding: 0; }
.contact-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
}
.contact-list strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 0.15rem; }
.page-meta { margin-top: 2.5rem; font-size: 0.9rem; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.footer-brand p:last-child { color: #b9c8dc; max-width: 46ch; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #b9c8dc;
  font-size: 0.9rem;
}
@media (min-width: 760px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Small screens: keep the header inside the viewport ---------- */
@media (max-width: 560px) {
  .header-inner { gap: 0.6rem; }
  .site-nav { gap: 0.8rem; }
  .site-nav a { font-size: 0.85rem; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
}
