/* Landing pages and planning guides generated by build.mjs. Loaded after styles.css, which supplies the tokens,
   header, buttons, product frame, FAQ, footer and dialog. Keep page-only rules here so the homepage stays unchanged. */

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 4px; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: #aab09f; }
.crumbs a { border-bottom: 1px solid #c3cab9; transition: color .2s, border-color .2s; }
.crumbs a:hover { color: #507620; border-color: currentColor; }
.crumbs [aria-current] { color: var(--ink); }

/* Page hero */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; padding: 10px 0 80px; }
.page-hero.single { grid-template-columns: minmax(0, 900px); }
.page-hero h1 { font-size: clamp(40px, 4.3vw, 68px); letter-spacing: -.045em; line-height: 1.04; margin-bottom: 24px; text-wrap: balance; }
.page-hero .lede { max-width: 580px; }
.page-hero .hero-actions { margin: 30px 0 20px; }
.page-hero .micro { margin-left: 0; padding: 0; background: none; backdrop-filter: none; }
.byline { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.byline a { color: var(--ink); border-bottom: 1px solid #c3cab9; }
.byline a:hover { color: #507620; border-color: currentColor; }
.page-shot { margin: 0; }
.nowrap { white-space: nowrap; }
.page-shot figcaption { margin: 0; }

/* The short answer (guides) */
.answer { background: var(--sage); border: 1px solid #d3d9c9; border-left: 4px solid var(--lime); border-radius: 10px; padding: 32px 34px 30px; box-shadow: 0 22px 60px #283d1812; }
.answer .eyebrow { color: #56703a; margin-bottom: 14px; }
.answer p:not(.eyebrow) { font-size: 17.5px; line-height: 1.65; color: var(--body); margin: 0 0 14px; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--ink); font-weight: 600; }

/* On this page (guides) */
.toc { display: flex; align-items: baseline; gap: 28px; padding-block: 22px; border-top: 1px solid var(--line); }
.toc > span { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); white-space: nowrap; }
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: block; font-size: 13.5px; font-weight: 500; padding: 5px 12px; border: 1px solid #c3cab9; border-radius: 99px; background: #f1f3eb; transition: background .2s, color .2s, border-color .2s; }
.toc a:hover { background: #fff; color: #3f5f1a; border-color: #9fb07f; }

/* Content sections */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 80px; padding-block: 64px; border-top: 1px solid var(--line); }
.doc-head { align-self: start; position: sticky; top: 28px; }
.doc-no { display: block; font-size: 12px; color: #70785f; margin-bottom: 14px; }
.doc-head h2 { font-size: clamp(28px, 2.5vw, 38px); letter-spacing: -1.2px; line-height: 1.16; margin: 0; max-width: 440px; }
.doc-body { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--body); }
.doc-body > :last-child { margin-bottom: 0; }
.doc-body p { margin: 0 0 18px; }
.doc-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; line-height: 1.35; color: var(--ink); margin: 34px 0 8px; }
.doc-body h3:first-child { margin-top: 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body :is(p, td, ul > li, ol.steps > li) > a { color: var(--ink); text-decoration: underline; text-decoration-color: #a9b39b; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.doc-body :is(p, td, ul > li, ol.steps > li) > a:hover { color: #507620; text-decoration-color: currentColor; }
.doc-body ul { margin: 0 0 22px; }
.doc-body ul > li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.doc-body ul > li::before { content: '+'; position: absolute; left: 3px; top: 0; color: #6c824e; font-weight: 600; }
.doc-body ul.checklist > li { padding-left: 32px; }
.doc-body ul.checklist > li::before { content: '✓'; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 4px; background: var(--lime); color: var(--ink); font-size: 11px; line-height: 18px; text-align: center; }
.doc-body ol.steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: step; }
.doc-body ol.steps > li { counter-increment: step; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid #dfe3d8; }
.doc-body ol.steps > li:last-child { border-bottom: 1px solid #dfe3d8; }
.doc-body ol.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-size: 12px; font-weight: 650; letter-spacing: .5px; color: #6c824e; }
.doc-body .callout { background: var(--sage); border-left: 3px solid var(--lime); border-radius: 0 6px 6px 0; padding: 16px 20px; font-size: 16px; color: var(--ink); }
.doc-body .note { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf6; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 15px; line-height: 1.5; }
.table-wrap th { text-align: left; font-weight: 600; color: var(--ink); background: var(--sage); }
.table-wrap th, .table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* FAQ, reusing the homepage accordion */
.page-faq { border-top: 1px solid var(--line); padding-block: 80px; }

/* Related pages and cards */
.related { border-top: 1px solid var(--line); padding-block: 72px 80px; }
.related-head { margin-bottom: 30px; max-width: 720px; }
.related-head h2 { margin: 0; }
.related-head p:not(.eyebrow) { font-size: 17px; color: var(--body); margin: 16px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card-grid li { display: flex; }
.card-grid a { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 22px 22px 18px; border: 1px solid #d3d9c9; border-radius: 9px; background: #f1f3eb; transition: transform .2s, border-color .2s, background .2s; }
.card-grid a:hover { transform: translateY(-2px); border-color: #9fb07f; background: #fff; }
.card-kind { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #56703a; font-weight: 650; }
.card-grid strong { font-family: var(--display); font-size: 19px; font-weight: 650; letter-spacing: -.4px; line-height: 1.3; }
.card-text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.card-arrow { margin-top: auto; padding-top: 6px; font-size: 18px; line-height: 1; transition: transform .2s; }
.card-grid a:hover .card-arrow, .guide-list a:hover .card-arrow { transform: translateX(4px); }
.back-home { margin: 32px 0 0; }

/* Guides hub */
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-no { font-size: 12px; color: #6c824e; font-weight: 650; padding-top: 7px; }
.guide-copy strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; color: var(--ink); margin-bottom: 4px; transition: color .2s; }
.guide-copy span { display: block; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.guide-list .card-arrow { margin-top: 0; padding-top: 6px; }
.guide-list a:hover strong { color: #507620; }

/* Download band */
.cta-band { background: var(--ink); color: var(--paper); padding-block: 84px; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 60px; align-items: end; }
.cta-band .eyebrow { color: var(--lime); }
.cta-band h2 { font-size: clamp(38px, 4.2vw, 64px); letter-spacing: -.045em; line-height: 1.05; margin-bottom: 20px; }
.cta-band p:not(.eyebrow) { font-size: 17px; line-height: 1.65; color: #ccd5c6; max-width: 540px; margin: 0; }
.cta-actions { justify-self: end; }
.cta-actions p:not(.eyebrow) { font-size: 14px; color: #9ba893; margin-top: 18px; }

@media (max-width: 1080px) {
  .page-hero { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .page-hero .lede { max-width: 640px; }
  .doc { gap: 48px; }
}

@media (max-width: 850px) {
  .page-hero { padding-bottom: 56px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 48px; }
  .doc-head { position: static; }
  .doc-no { margin-bottom: 10px; }
  .toc { flex-direction: column; gap: 12px; }
  .page-faq { padding-block: 60px; }
  .related { padding-block: 56px 64px; }
  .cta-band { padding-block: 64px; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cta-actions { justify-self: start; }
}

@media (max-width: 620px) {
  .crumbs { margin-bottom: 22px; }
  .page-hero { gap: 34px; padding-top: 4px; }
  .page-hero h1 { font-size: clamp(34px, 9.6vw, 44px); letter-spacing: -.04em; margin-bottom: 18px; }
  .answer { padding: 24px 22px; }
  .answer p:not(.eyebrow) { font-size: 16.5px; }
  .doc-head h2 { font-size: 28px; letter-spacing: -1px; }
  .doc-body { font-size: 16.5px; }
  .doc-body h3 { font-size: 19px; }
  .guide-list a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .guide-copy strong { font-size: 19px; }
  .cta-band h2 { font-size: 38px; letter-spacing: -1.6px; }
  .cta-actions { width: 100%; }
  .cta-band .button { width: 100%; }
}
