/* Norscribe.AI shared design tokens + base styles
   Extracted from the existing production index.html (celadon-cucurucho-a5953a)
   so the homepage and /savannah stay visually consistent. */

:root{
  --bg: #F6F7F9;
  --panel: #FFFFFF;
  --ink: #0B0F19;
  --ink-soft: #4B5266;
  --ink-faint: #656D82; /* was #8B93A6 (2.9:1); 4.8:1 on the page background, 5.2:1 on white */
  --blue: #2B5FFF;
  --blue-wash: #EAEFFF;
  --green: #16C784;
  --line: #E3E6EC;
  --navy: #0D1326;
  --navy-soft: #AEB9E0;
  --radius: 10px;

  /* SPOT -> SHAPE -> READY workflow accents (per brand direction) */
  --spot-red: #E5484D;
  --spot-red-wash: #FDEBEC;
  --shape-yellow: #E8A93A;
  --shape-yellow-wash: #FBF1DF;
  --ready-green: var(--green);
  --ready-green-wash: #E4F9F1;

  /* Savannah campaign accents (used only on the Savannah banner + /savannah) */
  --peach: #F4986B;
  --peach-wash: #FDEEE6;
  --cream: #FBF6EE;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (max-width: 520px){ html{ scroll-padding-top: 72px; } }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display{ font-family: 'Space Grotesk', sans-serif; }
.mono{ font-family: 'IBM Plex Mono', monospace; }

a{ color: inherit; }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ---------- HEADER ---------- */

header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,247,249,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
}
.wordmark .ai{ color: var(--blue); }

.header-nav{
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.header-link:hover{ color: var(--ink); }

.header-cta{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover{ background: var(--blue); }

.status-pill{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  white-space: nowrap;
}

.dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(22,199,132,0.5); }
  50%{ box-shadow: 0 0 0 5px rgba(22,199,132,0); }
}

/* ---------- SECTION HEAD ---------- */

.section-head{
  max-width: 560px;
  margin-bottom: 44px;
}

.section-tag{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-head h2{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- BUTTONS ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover{ background: var(--blue); transform: translateY(-2px); }
.btn:disabled{ opacity: 0.6; cursor: not-allowed; transform: none; }

.btn.secondary{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.secondary:hover{ background: var(--panel); border-color: var(--ink); transform: translateY(-2px); }

.btn.on-peach{
  background: var(--ink);
}
.btn.on-peach:hover{ background: var(--navy); }

.btn .glyph{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  opacity: 0.7;
}

/* ---------- WORKFLOW (SPOT / SHAPE / READY) ---------- */

.workflow{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 780px){
  .workflow{ grid-template-columns: 1fr; }
}

.workflow-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.workflow-card .step-num{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.workflow-card.spot .step-num{ background: var(--spot-red-wash); color: var(--spot-red); }
.workflow-card.shape .step-num{ background: var(--shape-yellow-wash); color: #8a6116; }
.workflow-card.ready .step-num{ background: var(--ready-green-wash); color: #0c8f61; }

.workflow-card h3{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.workflow-card p{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- FOOTER ---------- */

footer{
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
}

.footer-inner .status{
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-inner .status .dot{
  width: 6px; height: 6px;
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
