/* Landing pages and blog (views/site.js, routes/seo.js). Loaded after home.css and reuses its tokens,
   nav, buttons, finder, plan cards, FAQ and footer. Prefixes: lp- landing, bl- blog lists, post article. */

.site main { padding-top: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.nav__links a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }

/* ---------- landing hero ---------- */
.lp-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.lp-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.lp-hero .eyebrow { color: var(--brand-dark); }
.lp-hero h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; max-width: 16ch; }
.lp-hero__lead { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 54ch; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp-hero__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1200 / 630; object-fit: cover; }

.lp-finder { margin-top: clamp(32px, 4vw, 56px); }
.lp-sub { color: var(--muted); }

/* what you get */
.lp-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp-points li { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.lp-points li:nth-child(3n) { border-right: 0; }
.lp-points .ico { width: 30px; height: 30px; color: var(--brand); }
.lp-points h3 { margin-top: 14px; font-size: 20px; }
.lp-points p { margin-top: 8px; color: var(--muted); }

/* long copy */
.lp-copy { display: grid; gap: clamp(40px, 5vw, 64px); padding-top: clamp(56px, 7vw, 96px); max-width: calc(820px + var(--pad) * 2); }
.lp-copy h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.lp-copy p { margin-top: 16px; font-size: 17.5px; line-height: 1.7; color: #2c3550; }
.lp-copy a, .post__body a { color: var(--brand-dark); font-weight: 600; text-underline-offset: 3px; }
.lp-steps { margin-top: 20px; counter-reset: step; display: grid; gap: 12px; }
.lp-steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 16.5px; }
.lp-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 999px; background: var(--tint); color: var(--brand-dark); font: 700 15px/30px var(--head); text-align: center; }
ul.lp-steps li { padding-left: 18px; }
ul.lp-steps li::before { content: none; }

/* compact plans */
.lp-plans { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp-plans .plan { border-radius: 0; }
.lp-plans .plan__foot { margin-top: auto; }

/* call to action band */
.lp-cta { margin-top: clamp(72px, 9vw, 128px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.lp-cta h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; }
.lp-cta p { margin-top: 8px; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.lp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- blog lists ---------- */
.bl-hero { padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.bl-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; max-width: 18ch; }
.bl-hero__lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.bl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bl-topics a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.bl-topics a:hover { border-color: var(--brand); color: var(--brand-dark); }
.bl-list { padding-top: clamp(40px, 5vw, 64px); }
.bl-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.bl-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.bl-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.bl-head .arrow, .bl-service .arrow { width: 18px; height: 18px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.bl-card { display: flex; flex-direction: column; gap: 14px; }
.bl-card__img { display: block; border-radius: 16px; overflow: hidden; background: var(--tint); }
.bl-card__img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform 0.25s ease; }
.bl-card:hover .bl-card__img img { transform: scale(1.025); }
.bl-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.bl-card__meta a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.bl-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.bl-card h3 a { text-decoration: none; }
.bl-card h3 a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.bl-card--big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(40px, 5vw, 56px); }
.bl-card--big h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; }
.bl-card__desc { margin-top: 10px; color: var(--muted); font-size: 17px; }
.bl-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.bl-pager a { color: var(--brand-dark); font-weight: 600; }
.bl-service { margin-top: clamp(48px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--tint); }
.bl-service h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.bl-service p { margin-top: 8px; color: var(--muted); max-width: 60ch; }

/* ---------- post ---------- */
.post__head { padding-top: clamp(20px, 3vw, 40px); max-width: calc(860px + var(--pad) * 2); }
.post__head h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
.post__lead { margin-top: 16px; font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.post__meta span:first-child { color: var(--ink); font-weight: 600; }
.post__preview { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: #fff4dc; color: #6b4a00; font-size: 14.5px; font-weight: 600; }
.post__cover { margin: clamp(24px, 3vw, 40px) auto 0; max-width: calc(1080px + var(--pad) * 2); }
.post__cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 1200 / 630; object-fit: cover; }
.post__grid { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(32px, 5vw, 72px); margin-top: clamp(32px, 4vw, 56px); max-width: calc(1080px + var(--pad) * 2); }
.post__toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; }
.post__toc p { font-weight: 700; font-family: var(--head); margin-bottom: 10px; }
.post__toc ol { display: grid; gap: 4px; border-left: 2px solid var(--line); }
.post__toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.post__toc a:hover { color: var(--brand-dark); border-left-color: var(--brand); }

.post__body { font-size: 18px; line-height: 1.75; color: #232c45; min-width: 0; }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { margin-top: 2em; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; scroll-margin-top: 104px; color: var(--ink); }
.post__body h3 { margin-top: 1.6em; font-size: 21px; line-height: 1.3; scroll-margin-top: 104px; color: var(--ink); }
.post__body h2 + *, .post__body h3 + * { margin-top: 0.6em; }
.post__body ul, .post__body ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li::marker { color: var(--brand); font-weight: 700; }
.post__body strong { color: var(--ink); }
.post__body code { font-size: 0.88em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.post__tip { border-left: 4px solid var(--brand); background: var(--tint); border-radius: 0 14px 14px 0; padding: 16px 20px; }
.post__tip p { color: var(--ink); }
.post__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.post__table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.post__table th, .post__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post__table th { background: var(--soft); font-family: var(--head); font-weight: 600; color: var(--ink); }
.post__table tr:last-child td { border-bottom: 0; }
.post__cta { margin-top: 2.4em !important; padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); background: var(--ink); color: #fff; }
.post__cta .eyebrow { color: var(--brand-light); }
.post__cta h2 { margin-top: 8px; color: #fff; font-size: clamp(24px, 2.4vw, 30px); }
.post__cta p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); font-size: 16.5px; line-height: 1.6; }
.post__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.post__cta .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.post__cta .btn--outline:hover { background: #fff; color: var(--ink); }

/* ---------- home: latest posts ---------- */
.home-blog { padding-top: clamp(72px, 9vw, 128px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .post__grid { grid-template-columns: minmax(0, 720px); }
  .post__toc { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
  .post__toc ol { border-left: 0; }
  .post__toc a { padding-left: 0; border-left: 0; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero__in { grid-template-columns: 1fr; }
  .lp-hero__img { order: -1; }
  .lp-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-points li:nth-child(3n) { border-right: 1px solid var(--line); }
  .lp-points li:nth-child(2n) { border-right: 0; }
  .bl-card--big { grid-template-columns: 1fr; }
  .lp-finder { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site main { padding-top: 84px; }
  .lp-points { grid-template-columns: 1fr; }
  .lp-points li { border-right: 0 !important; }
  .bl-grid { grid-template-columns: 1fr; }
  .post__body { font-size: 17px; }
  .lp-hero__actions .btn, .lp-cta__actions .btn { width: 100%; }
}
