/* Signovax Hub — Perk design system
   electric lime on warm parchment · Sono 400/500 · no shadows
   surfaces: white → parchment → lime → charcoal
*/

:root {
  --lime: #beff50;
  --ink: #14140f;
  --parchment: #f5f5eb;
  --white: #ffffff;
  --ash: #d2d2c8;
  --graphite: #6e6e64;
  --charcoal: #30302a;
  --stone: #919183;
  --smoke: #b9b9b7;

  --font: "Sono", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --read: 680px;
  --r-btn: 28px;
  --r-card: 28px;
  --r-inner: 18px;
  --r-input: 8px;
  --r-pill: 9999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
a:hover { border-bottom-color: transparent; }
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 .35em;
  letter-spacing: -.03em;
}
h1 {
  font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem);
  line-height: .92;
  letter-spacing: -.03em;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.05;
}
h3 { font-size: 1.375rem; line-height: 1.14; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read-col { max-width: var(--read); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--lime); padding: 10px 16px;
  border: 0; font-weight: 500;
}
.skip-link:focus { left: 12px; top: 12px; }

/* —— type helpers —— */
.eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 500; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 12px;
}
.eyebrow.on-lime { color: var(--ink); }
.muted { color: var(--graphite); }
.tnum { font-variant-numeric: tabular-nums; }

/* —— buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1;
  padding: 16px 20px 16px 22px;
  border-radius: var(--r-btn); border: 0; cursor: pointer;
  text-decoration: none; border-bottom: 0 !important;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn:active { transform: scale(.98); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--parchment); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ash) !important; border-bottom: 1.5px solid var(--ash) !important;
}
.btn-ghost:hover { border-color: var(--ink) !important; background: var(--parchment); }
.btn-lg { padding: 18px 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* —— masthead —— */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ash);
}
.mast-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 1.125rem; letter-spacing: -.02em;
  color: var(--ink); border-bottom: 0 !important;
}
.brand:hover { border-bottom: 0 !important; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--lime); display: grid; place-items: center;
  flex-shrink: 0;
}
.brand .mark svg { width: 16px; height: 16px; }
.brand .hub { color: var(--graphite); font-weight: 400; }
.nav {
  display: flex; align-items: center; gap: 4px 4px;
}
.nav a {
  font-size: 14px; font-weight: 500; color: var(--graphite);
  padding: 10px 12px; border-radius: var(--r-pill);
  border-bottom: 0 !important;
}
.nav a:hover { color: var(--ink); background: var(--parchment); }
.nav a.active { color: var(--ink); background: var(--parchment); }
.nav .nav-cta {
  margin-left: 8px; background: var(--lime); color: var(--ink);
  padding: 10px 16px;
}
.nav .nav-cta:hover { filter: brightness(.97); background: var(--lime); }
.burger {
  display: none; background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--ink); border-radius: 8px;
}
.burger:hover { background: var(--parchment); }
.burger svg { width: 22px; height: 22px; display: block; }
.m-nav {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 0 16px; border-top: 1px solid var(--ash);
}
.m-nav.open { display: flex; }
.m-nav a {
  font-size: 15px; font-weight: 500; color: var(--graphite);
  padding: 14px 4px; border-bottom: 1px solid var(--ash) !important;
}
.m-nav a.active { color: var(--ink); }
.m-nav .nav-cta {
  margin-top: 10px; text-align: center; background: var(--lime);
  color: var(--ink); border-radius: var(--r-btn); border-bottom: 0 !important;
  padding: 14px;
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

/* —— hero —— */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin: 8px 0 20px; max-width: 11ch; }
.hero .lede {
  font-size: 18px; line-height: 1.5; color: var(--graphite);
  max-width: 36em; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel {
  background: var(--lime);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 40px);
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero-panel::after {
  content: "01";
  position: absolute; right: -8px; bottom: -28px;
  font-size: clamp(7rem, 14vw, 11rem); font-weight: 500;
  letter-spacing: -.04em; line-height: .8;
  color: rgba(20,20,15,.06); pointer-events: none;
}
.hp-label {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); opacity: .7;
}
.hp-stack { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; position: relative; z-index: 1; }
.hp-row {
  background: var(--white); border-radius: var(--r-inner);
  padding: 14px 16px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hp-row span { color: var(--graphite); font-weight: 400; font-size: 12px; }
.hp-row.done { background: var(--ink); color: var(--parchment); }
.hp-row.done span { color: var(--lime); }
.hp-foot {
  font-size: 13px; color: var(--ink); opacity: .75; position: relative; z-index: 1;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* —— sections —— */
.sec { padding: clamp(64px, 10vw, 112px) 0; }
.sec-tight { padding: clamp(48px, 7vw, 80px) 0; }
.sec-parchment { background: var(--parchment); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 36px;
}
.sec-head h2 { margin: 0; max-width: 16ch; }
.see-all {
  font-size: 14px; font-weight: 500; white-space: nowrap;
  border-bottom: 1px solid var(--ink) !important;
  padding-bottom: 2px;
}
.see-all:hover { border-bottom-color: transparent !important; }

/* —— feature stories (asymmetric, no elevation) —— */
.feature-row {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}
.story {
  background: var(--parchment);
  border-radius: var(--r-card);
  padding: 32px 28px;
  display: flex; flex-direction: column; min-height: 280px;
  border-bottom: 0 !important;
  transition: background .2s ease;
}
.story:hover { background: #efefe4; text-decoration: none; border-bottom: 0 !important; }
.story.lead {
  background: var(--ink); color: var(--parchment); min-height: 320px;
}
.story.lead:hover { background: var(--charcoal); }
.story.lead .cat { color: var(--lime); }
.story.lead h3 { color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.story.lead p { color: var(--smoke); }
.story.lead .meta { color: var(--stone); }
.story.lead .read { color: var(--lime); }
.story .cat {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--graphite); margin-bottom: 16px;
}
.story h3 { margin: 0 0 12px; font-size: 1.35rem; }
.story h3 a, .story h3 { color: inherit; border: 0 !important; }
.story p { font-size: 15px; color: var(--graphite); margin-bottom: 20px; flex: 1; }
.story .meta {
  font-size: 12px; color: var(--stone); margin-bottom: 8px;
  letter-spacing: .02em;
}
.story .read {
  font-size: 14px; font-weight: 500; margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 920px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .story.lead { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .feature-row { grid-template-columns: 1fr; }
}

/* —— topic cards —— */
.topic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.topic {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  border-bottom: 0 !important;
  min-height: 240px;
  transition: transform .2s ease;
}
.topic:hover { transform: translateY(-3px); text-decoration: none; border-bottom: 0 !important; }
.topic .n {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 20px;
}
.topic h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--ink); }
.topic p { font-size: 14px; color: var(--graphite); margin: 0 0 20px; flex: 1; line-height: 1.45; }
.topic .more { font-size: 14px; font-weight: 500; color: var(--ink); margin-top: auto; }
@media (max-width: 960px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } }

/* —— story list (hubs / archive) —— */
.story-list { display: flex; flex-direction: column; gap: 12px; }
.story-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px 28px; align-items: baseline;
  padding: 28px 32px;
  background: var(--parchment);
  border-radius: var(--r-card);
  border-bottom: 0 !important;
  transition: background .15s ease;
}
.story-row:hover { background: #efefe4; text-decoration: none; border-bottom: 0 !important; }
.story-row .cat {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--graphite); display: block; margin-bottom: 8px;
}
.story-row h3 { font-size: 1.25rem; margin: 0 0 6px; color: var(--ink); }
.story-row p { margin: 0; font-size: 15px; color: var(--graphite); max-width: 48em; }
.story-row .meta {
  font-size: 12px; color: var(--stone); white-space: nowrap; padding-top: 4px;
}
@media (max-width: 640px) {
  .story-row { grid-template-columns: 1fr; padding: 24px; gap: 8px; }
}

/* —— lime band / newsletter —— */
.lime-band {
  background: var(--lime);
  border-radius: var(--r-card);
  padding: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px; align-items: center;
}
.lime-band h2 { margin: 0 0 12px; max-width: 14ch; }
.lime-band p { color: var(--ink); opacity: .75; margin: 0; font-size: 16px; }
.sub-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-form input[type="email"] {
  flex: 1; min-width: 200px;
  font-family: var(--font); font-size: 16px; font-weight: 400;
  padding: 16px 18px; border: 1px solid var(--ink);
  background: var(--white); color: #000; border-radius: var(--r-input);
}
.sub-form input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.sub-note { font-size: 12px; color: var(--ink); opacity: .55; margin-top: 12px; }
.sub-note a { border-bottom-color: currentColor; }
@media (max-width: 720px) { .lime-band { grid-template-columns: 1fr; } }

/* —— dark island —— */
.dark-island {
  background: var(--charcoal);
  border-radius: var(--r-card);
  padding: clamp(36px, 5vw, 56px);
  color: var(--parchment);
}
.dark-island h2 { color: var(--white); }
.dark-island p { color: var(--smoke); }
.dark-island a { color: var(--lime); border-bottom-color: var(--lime); }

/* —— page hero —— */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 40px; }
.page-hero .crumbs {
  font-size: 12px; color: var(--stone); margin-bottom: 20px;
}
.page-hero .crumbs a { color: var(--graphite); border-bottom: 0 !important; }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero p.lede {
  font-size: 18px; color: var(--graphite); max-width: 38em; margin-top: 12px;
}

/* —— article —— */
.article-wrap { padding: 24px 0 96px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 12px; color: var(--stone); margin: 20px 0 36px;
}
.article-meta .cat {
  color: var(--ink); font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { margin-top: 2.2em; margin-bottom: .5em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.25rem; }
.prose p { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--graphite); }
.prose a { font-weight: 500; }
.prose code {
  font-family: var(--font); font-size: .9em;
  background: var(--parchment); padding: 2px 7px; border-radius: 6px;
}
.prose blockquote {
  margin: 1.8rem 0; padding: 24px 28px;
  background: var(--parchment); border-radius: var(--r-inner);
  border: 0; font-style: normal; color: var(--ink); font-size: 16px;
}
.prose .callout {
  margin: 2rem 0; padding: 24px 28px;
  background: var(--lime); border-radius: var(--r-inner);
  font-size: 15px;
}
.prose .callout strong {
  display: block; margin-bottom: 6px; font-weight: 500; font-size: 16px;
}
.prose .checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.prose .checklist li {
  position: relative; padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--ash); margin: 0;
}
.prose .checklist li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px; border: 1.5px solid var(--ink);
  border-radius: 5px; background: var(--white);
}
.article-aside {
  margin: 2.4rem 0; padding: 28px;
  background: var(--parchment); border-radius: var(--r-card);
  font-size: 12px; color: var(--stone); text-align: center;
  min-height: 100px; display: flex; align-items: center; justify-content: center;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
}
.article-nav {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ash);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; font-weight: 500;
}
.article-nav a { border-bottom: 1px solid var(--ink); }
.disclaimer-bar {
  margin-top: 48px; padding: 20px 24px;
  background: var(--parchment); border-radius: var(--r-inner);
  font-size: 13px; color: var(--graphite); line-height: 1.5;
}

/* —— forms —— */
.form-stack { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.form-stack label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--graphite);
}
.form-stack input, .form-stack textarea {
  font-family: var(--font); font-size: 16px; font-weight: 400;
  padding: 14px 16px; border: 1px solid var(--ash);
  background: var(--white); color: #000; border-radius: var(--r-input);
  text-transform: none; letter-spacing: 0;
}
.form-stack textarea { min-height: 140px; resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus {
  outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink);
}

/* —— footer —— */
.site-foot {
  background: var(--ink); color: var(--parchment);
  padding: 80px 0 32px; font-size: 14px;
}
.site-foot a { color: var(--ash); border-bottom: 0 !important; }
.site-foot a:hover { color: var(--lime); }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.foot-brand {
  font-size: 1.25rem; font-weight: 500; color: var(--white);
  letter-spacing: -.02em; margin-bottom: 12px;
}
.foot-brand span { color: var(--lime); }
.foot-grid > div > p { color: var(--stone); max-width: 32ch; margin: 0; line-height: 1.5; }
.foot-col h4 {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ash); margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--charcoal);
  font-size: 12px; color: var(--stone);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* —— cookie —— */
.cookie-bar {
  position: fixed; bottom: 20px; left: 20px; max-width: 380px;
  background: var(--white); border: 1px solid var(--ash);
  border-radius: var(--r-card); padding: 24px;
  z-index: 100; display: none;
}
.cookie-bar.open { display: block; animation: rise .4s cubic-bezier(.16,1,.3,1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-bar p { margin: 0 0 16px; font-size: 14px; color: var(--graphite); line-height: 1.45; }
.cookie-bar a { font-weight: 500; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { font-size: 14px; padding: 12px 16px; flex: 1; justify-content: center; }

/* —— motion —— */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid > div:first-child { animation: fade-up .65s ease both; }
.hero-panel { animation: fade-up .65s .1s ease both; }
.hp-row:nth-child(1) { animation: fade-up .5s .25s ease both; }
.hp-row:nth-child(2) { animation: fade-up .5s .35s ease both; }
.hp-row:nth-child(3) { animation: fade-up .5s .45s ease both; }
@media (prefers-reduced-motion: reduce) {
  .hero-grid > div:first-child, .hero-panel, .hp-row { animation: none; }
}
