@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
  --teal: #167867;
  --teal-dark: #0d5d50;
  --teal-light: #e6f3ee;
  --teal-mid: #c6e1d8;
  --amber: #b77a2b;
  --amber-light: #fbf1df;
  --white: #ffffff;
  --gray-50: #fbfcf8;
  --gray-100: #f4f2ea;
  --gray-200: #dde6e1;
  --gray-400: #7a8782;
  --gray-500: #65736f;
  --gray-700: #2d3a36;
  --gray-900: #17211f;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 14px 38px rgba(30,45,40,0.10);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(180deg, rgba(244,242,234,0.88), rgba(239,246,241,0.94) 52%, var(--gray-50) 100%);
  color: var(--gray-900);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); }

.nav {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(23,33,31,0.08);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo img { width: 38px; height: 38px; display: block; }
.nav-logo svg { display: none; }
.nav-logo:has(svg) {
  background: url('/assets/icons/contractdecoder-logo-option-a-mark.svg') center / 38px 38px no-repeat;
}

.nav-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
}

.nav-name span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-link {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero {
  max-width: 930px;
  margin: 0 auto;
  padding: 78px 24px 42px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--teal-dark);
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.hero p {
  max-width: 710px;
  margin: 0 auto;
  color: var(--gray-500);
  font-size: 17px;
}

.main {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 24px 82px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card, .article {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(23,33,31,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.guide-card {
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-card:hover { border-color: var(--teal-mid); }
.guide-card .topic {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.guide-card h2 {
  font-size: 23px;
  line-height: 1.18;
  margin-bottom: 10px;
}

.guide-card p { color: var(--gray-500); font-size: 15px; }

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
}

.article-meta {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.article h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 18px;
}

.article h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 34px 0 10px;
}

.article p, .article li { color: var(--gray-700); }
.article p { margin-bottom: 18px; }
.article ul { padding-left: 22px; margin: 12px 0 20px; }
.article li { margin-bottom: 8px; }

.notice {
  background: var(--amber-light);
  border: 1px solid #eed5a8;
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #6d4b1f;
  font-size: 14px;
  margin: 24px 0;
}

.related-guides {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-200);
}

.related-guides h2 {
  margin-top: 0;
}

.related-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.related-list li {
  margin-bottom: 0;
}

.related-list a {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.related-list a:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
}

.cta-panel {
  margin-top: 34px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cta-panel p { color: rgba(255,255,255,0.84); margin-bottom: 16px; }
.cta-panel a {
  display: inline-flex;
  text-decoration: none;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
}

footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 20px 24px;
  text-align: center;
}

footer p { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
footer a { color: var(--teal); text-decoration: none; font-weight: 600; margin: 0 8px; }

@media (max-width: 760px) {
  .nav { padding: 14px 18px; align-items: flex-start; flex-direction: column; }
  .guide-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
}
