/* clodot.com — search landing pages (free-invoice-generator, gst-billing-software …).
   Layered on top of styles.css: it reuses the site's tokens, nav, hero, buttons,
   steps, FAQ and footer, and adds only the blocks those pages need. Kept in its
   own file so the home page's stylesheet can change without touching these.
   Pages are generated by scripts/build_pages.py. */

/* ── Hero: copy only, no product window ── */
.lp-hero { padding-bottom: 76px; }
.lp-hero .hero-bg { inset: 0; border-radius: 0 0 40px 40px; }
.lp-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.06; }
.lp-crumbs { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.lp-crumbs a { color: rgba(255, 255, 255, .9); text-decoration: underline; text-underline-offset: 3px; }
.lp-crumbs + .pill { display: flex; width: fit-content; margin: 0 auto; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ── Sections ── */
.lp-sec { padding: 76px 0; }
.lp-soft { background: var(--soft); border-block: 1px solid var(--line); }
.lp-steps { padding: 76px 0 60px; }

.lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.lp-card { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #4f46e5, #a855f7); margin-bottom: 16px; }
.lp-card:nth-child(2) .lp-ic { background: linear-gradient(135deg, #f59e0b, #f97316); }
.lp-card:nth-child(3) .lp-ic { background: linear-gradient(135deg, #059669, #10b981); }
.lp-card:nth-child(4) .lp-ic { background: linear-gradient(135deg, #db2777, #c026d3); }
.lp-card h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.lp-card p { color: var(--ink2); font-size: .94rem; margin-top: 8px; }

.lp-two { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.lp-prose .h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.lp-prose p { color: var(--ink2); font-size: 1.04rem; line-height: 1.7; margin-top: 16px; max-width: 66ch; }
.lp-box { position: sticky; top: 96px; border: 1px solid #c7d2fe; border-radius: 24px; padding: 28px; background: #fff; box-shadow: var(--shadow); }
.lp-box h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.lp-box .btn { margin-top: 22px; justify-content: center; }

/* ── Related pages ── */
.lp-rel { padding-top: 20px; }
.lp-rel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-rel-a { position: relative; display: block; border: 1px solid var(--line); border-radius: 20px; padding: 22px 52px 22px 22px; background: #fff; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.lp-rel-a:hover { border-color: #c7d2fe; transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-rel-a b { display: block; font-family: var(--display); font-size: 1.02rem; font-weight: 800; color: var(--indigo); }
.lp-rel-a span { display: block; color: var(--ink2); font-size: .9rem; margin-top: 4px; }
.lp-rel-a svg { position: absolute; right: 20px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--indigo); }

/* ── Closing call to action ── */
.lp-cta-sec { padding: 10px 0 80px; }
.lp-cta { position: relative; overflow: hidden; border-radius: 36px; padding: 60px 28px; text-align: center; color: #fff; background: var(--brand-grad); }
.lp-cta > *:not(.gridfx) { position: relative; }
.lp-cta h2 { font-family: var(--display); font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.lp-cta p { color: #e0e7ff; margin-top: 14px; font-size: 1.08rem; }

/* ── Footer: links to every landing page ── */
.lp-sol { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.lp-sol b { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-right: 4px; flex: none; }
.lp-sol a { color: var(--ink2); font-size: .9rem; font-weight: 600; }
.lp-sol a:hover { color: var(--indigo); }
.lp-foot .foot-row { padding: 0; }

/* ── Tablet ── */
@media (max-width: 980px) {
  .lp-cards { grid-template-columns: 1fr 1fr; }
  .lp-two { grid-template-columns: 1fr; gap: 28px; }
  .lp-box { position: static; }
  .lp-rel-row { grid-template-columns: 1fr; }
}

/* ── Phone ── */
@media (max-width: 640px) {
  .lp-hero { padding-bottom: 52px; }
  .lp-hero .hero-bg { border-radius: 0 0 28px 28px; }
  .lp-hero .actions .btn { width: 100%; justify-content: center; }
  .lp-sec { padding: 52px 0; }
  .lp-steps { padding: 52px 0 40px; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-card, .lp-box { padding: 20px; border-radius: 18px; }
  .lp-prose p { font-size: 1rem; }
  .lp-cta { border-radius: 26px; padding: 44px 20px; }
  .lp-cta .actions .btn { width: 100%; justify-content: center; }
  .lp-cta-sec { padding-bottom: 96px; }
  .lp-sol { gap: 10px 18px; }
  .lp-sol b { width: 100%; }
}

/* Landing-page hero text is never hidden behind an entrance animation: it is
   the page's main content (and largest paint), and preview renderers that do
   not run animations would otherwise capture an empty hero. */
.lp-hero h1, .lp-hero .pill, .lp-hero .lede, .lp-hero .actions, .lp-hero .ticks { animation: none; opacity: 1; transform: none; }
