/* Infodelia sample site - deliberately different from established.link
   (cool slate + indigo, geometric layout, no cream/forest green) */

:root {
  --ink: #0c1222;
  --ink-muted: #4a5568;
  --ink-soft: #718096;
  --paper: #f0f4f8;
  --paper-elevated: #ffffff;
  --line: #d0d7e2;
  --accent: #3b5bdb;
  --accent-hover: #2f4ac0;
  --accent-soft: #e8eeff;
  --accent-deep: #1e3a8a;
  --warm: #f59e0b;
  --warm-soft: #fff7ed;
  --radius: 4px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(12, 18, 34, 0.06), 0 12px 40px -8px rgba(30, 58, 138, 0.12);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Subtle grid background - different from established.link gradient paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 91, 219, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 91, 219, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Demo banner - amber strip, not deep green */
.demo-banner {
  background: linear-gradient(90deg, #1e3a8a 0%, #3b5bdb 55%, #4c6ef5 100%);
  color: #eef2ff;
  font-size: 0.84rem;
  text-align: center;
  padding: 0.7rem 1rem;
  letter-spacing: 0.01em;
}

.demo-banner a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.demo-banner a:hover {
  border-bottom-color: #fff;
}

.demo-banner strong {
  font-weight: 700;
}

/* Header: solid white bar with left accent border on brand */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  box-shadow: 4px 4px 0 var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-deep);
}

.nav .nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav .nav-cta:hover {
  background: var(--accent);
  text-decoration: none;
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

/* Hero: full-bleed card with left color bar */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.75rem;
  align-items: stretch;
  padding: 1.5rem 0 2.5rem;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }
}

.hero > div:first-child {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  color: var(--ink);
}

.lead {
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.hero-card {
  background: var(--ink);
  color: #e2e8f0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.hero-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font-display);
}

.hero-card p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

.hero-card a {
  color: #93c5fd;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li {
  display: flex;
  gap: 0.65rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.92rem;
  color: #e2e8f0;
}

.meta-list strong {
  min-width: 4.5rem;
  color: #64748b;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}

.section {
  margin: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.35rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

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

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

.card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(59, 91, 219, 0.2);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.card .num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
}

.page-hero {
  padding: 2rem 0 1.25rem;
  max-width: 40rem;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

.prose p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form .hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

.form-note {
  background: var(--warm-soft);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: #9a3412;
  margin-bottom: 0.5rem;
}

.cta-band {
  margin-top: 2.75rem;
  background: var(--paper-elevated);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 8px 8px 0 var(--accent);
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
}

.cta-band p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 32rem;
}

.cta-band .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cta-band .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-band .btn-secondary {
  border-color: var(--ink-muted);
  color: var(--ink-muted);
}

.cta-band .btn-secondary:hover {
  background: var(--ink-muted);
  color: #fff;
}

.footer {
  border-top: none;
  margin-top: 2rem;
  padding: 0;
  background: var(--ink);
  color: #94a3b8;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer .brand-mark {
  background: var(--accent);
  box-shadow: 3px 3px 0 #fff;
}

.footer h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.footer p,
.footer a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.4rem;
}

.footer-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8rem;
  color: #64748b;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  background: var(--warm);
  color: #1c1917;
  margin-bottom: 0.85rem;
}
