/* Shared styles for ClientClose guide pages. Mirrors the design tokens and core
   components from the landing page so guides read as part of the same site. */
:root {
  --cream: #F5F1E8;
  --cream-deep: #EDE6D6;
  --ink: #1A2B1F;
  --ink-soft: #3D4A3F;
  --forest: #2A4032;
  --rust: #B85C38;
  --rust-soft: #D4815F;
  --gold: #C8A96A;
  --paper: #FEFCF7;
  --line: rgba(26, 43, 31, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  mix-blend-mode: multiply;
}

.wrap { position: relative; z-index: 2; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
nav { padding: 28px 0; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--forest);
  border-radius: 6px;
  position: relative;
  display: inline-block;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px; height: 10px;
  border: 2px solid var(--cream);
  border-top: none; border-left: none;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a.btn { color: var(--cream); }
.nav-links a.btn:hover { color: var(--forest); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--rust); transform: translateY(-1px); }
.btn-large { padding: 18px 36px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: none; }

/* Breadcrumb */
.crumbs {
  padding: 28px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--rust); }
.crumbs span { color: var(--rust); }

/* Article */
.article { padding: 32px 0 96px; }
.article-inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
}

.article h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.article h1 em { font-style: italic; color: var(--rust); font-weight: 400; }

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.article-body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.article-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 20px;
}
.article-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  margin: 36px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--rust); }

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0;
  font-size: 16px;
}
.callout strong { color: var(--ink); }

.checklist {
  background: var(--forest);
  color: var(--cream);
  border-radius: 16px;
  padding: 32px 34px;
  margin: 36px 0;
  list-style: none;
  padding-left: 34px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: rgba(245, 241, 232, 0.9);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border: 2px solid var(--gold);
  border-top: none; border-left: none;
  transform: rotate(45deg);
  width: 8px; height: 14px;
}

/* Inline product CTA card */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  margin: 48px 0;
  box-shadow: 0 20px 50px -24px rgba(26, 43, 31, 0.18);
}
.product-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}
.product-card p { color: var(--ink-soft); margin-bottom: 22px; font-size: 16px; }

/* FAQ */
.faq-wrap { margin: 56px 0 0; }
.faq-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; cursor: pointer; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--ink-soft);
  transition: all 0.3s ease;
}
.faq-item.open .faq-toggle { background: var(--rust); color: var(--cream); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* Related links */
.related { margin: 64px 0 0; }
.related h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  display: block;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}
.related-card:hover { border-color: var(--rust); transform: translateY(-2px); }
.related-card span {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}
.related-card small { color: var(--ink-soft); font-size: 14px; }

/* Final CTA */
.final-cta { background: var(--ink); color: var(--cream); padding: 96px 0; text-align: center; }
.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--cream);
}
.final-cta h2 em { font-style: italic; color: var(--rust-soft); }
.final-cta p { color: rgba(245, 241, 232, 0.8); font-size: 18px; margin-bottom: 32px; }
.final-cta .btn { background: var(--rust); }
.final-cta .btn:hover { background: var(--rust-soft); }

/* Guides hub */
.hub-head { padding-top: 48px; padding-bottom: 24px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 96px; }
.hub-card {
  display: block;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}
.hub-card:hover { border-color: var(--rust); transform: translateY(-2px); box-shadow: 0 20px 50px -30px rgba(26, 43, 31, 0.25); }
.hub-card .eyebrow { margin-bottom: 14px; }
.hub-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hub-card p { color: var(--ink-soft); font-size: 15px; }

/* Footer */
footer { background: var(--cream); padding: 48px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-right a { color: var(--ink-soft); text-decoration: none; }
.foot-right a:hover { color: var(--rust); }

@media (max-width: 820px) {
  .container { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn) { display: none; }
  .related-grid, .hub-grid { grid-template-columns: 1fr; }
}
