/* ============================================================
   Landing-page styles for the generated SEO pages.
   Reuses the Squish design tokens from squish.css.
   ============================================================ */

.lp-hero { background: #1f2630; color: var(--paper); padding: clamp(48px,6vw,88px) 0 clamp(48px,6vw,88px); position: relative; overflow: hidden; }
.lp-hero .wrap { position: relative; z-index: 1; }
.lp-hero-mascot { width: clamp(260px, 32vw, 460px); height: auto; object-fit: contain; justify-self: end; margin: -30px 0 -40px; }
@media (max-width: 640px) { .lp-hero .wrap { grid-template-columns: 1fr; } .lp-hero-mascot { display: none; } }
.lp-crumb { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 18px; display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; background: rgba(255,255,255,0.08); padding: 4px; border-radius: 999px; }
.lp-crumb a { color: rgba(255,255,255,0.75); text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: background 160ms, color 160ms; }
.lp-crumb a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.lp-crumb > span:last-child { color: #1f2630; background: #4fd1b5; padding: 6px 12px; border-radius: 999px; }
.lp-crumb .sep { opacity: 0; width: 0; overflow: hidden; }
.lp-hero h1 { font-family: var(--poppins); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; margin: 0 0 14px; color: var(--paper); }
.lp-hero .lp-intro { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 62ch; color: rgba(255,255,255,0.75); margin: 0; }

.lp-body { background: var(--paper); color: var(--ink); padding: clamp(38px,5vw,64px) 0; }
.lp-body h2 { font-family: var(--poppins); font-weight: 700; font-size: clamp(1.5rem,2.6vw,2rem); margin: 0 0 20px; }
.lp-body h2:not(:first-child) { margin-top: clamp(40px,5vw,60px); }

.lp-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.lp-steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 62px; border-radius: var(--r-md); background: var(--surface); font-size: 16px; }
.lp-steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: var(--paper); font-family: var(--poppins); font-weight: 700; font-size: 15px; display: grid; place-items: center; }

.lp-faq { display: grid; gap: 12px; max-width: 820px; }
.lp-faq details { border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.lp-faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--poppins); font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--teal); flex: none; }
.lp-faq details[open] summary::after { content: '\2212'; }
.lp-faq details[open] summary { padding-bottom: 8px; }
.lp-faq p { padding: 0 20px 18px; margin: 0; font-size: 15.5px; color: var(--muted); max-width: 70ch; }

.lp-related { margin-top: clamp(40px,5vw,60px); }
.lp-related-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-related-grid a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; transition: background 160ms, color 160ms, border-color 160ms; }
.lp-related-grid a:hover { background: var(--teal); color: var(--paper); border-color: var(--teal); }

.lp-trust { background: var(--mint); color: var(--ink); padding: clamp(56px,8vw,110px) 0; }
.lp-trust h2 { font-family: var(--poppins); font-weight: 700; font-size: clamp(1.4rem,2.4vw,1.9rem); margin: 0 0 10px; color: var(--ink); }
.lp-trust h2 em { color: var(--teal); font-style: normal; }
.lp-trust p { max-width: 64ch; color: var(--muted); margin: 0; font-size: 16px; }

/* Ad slots — labelled so they satisfy AdSense placement policy and never
   masquerade as content. Reserve height to reduce layout shift (CLS). */
.ad-slot { margin: clamp(28px,4vw,44px) auto; max-width: 860px; min-height: 100px; text-align: center; }
.ad-slot .ad-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ad-slot ins { display: block; }

/* Homepage internal-link hub (directory of every page). */
.lp-hub { background: var(--surface); color: var(--ink); padding: clamp(40px,5vw,64px) 0; }
.lp-hub .lp-hub-links a { background: var(--paper); }
.lp-hub-group { margin-top: 30px; }
.lp-hub-group h3 { font-family: var(--poppins); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.lp-hub-group h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.lp-hub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-hub-links a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color 160ms, background 160ms, color 160ms; }
.lp-hub-links a:hover { background: var(--teal); color: var(--paper); border-color: var(--teal); }

/* Static prose (privacy policy). */
.lp-prose { max-width: 760px; }
.lp-prose h2 { font-family: var(--poppins); font-weight: 700; font-size: 1.35rem; margin: 32px 0 12px; }
.lp-prose p, .lp-prose li { font-size: 16px; color: rgba(43,48,56,0.85); line-height: 1.6; }
.lp-prose ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 6px; }
.lp-prose a { color: var(--teal-d); font-weight: 600; }

/* Long-form guide block on tool pages, and the standalone /guides/ articles. */
.lp-guide { max-width: 1120px; margin-top: clamp(40px,5vw,60px); }
.lp-body .lp-guide h2 { font-family: var(--poppins); font-weight: 700; font-size: clamp(1.35rem,2.2vw,1.7rem); margin: clamp(32px,4vw,44px) 0 12px; }
.lp-body .lp-guide h2:first-child { margin-top: 0; }
.lp-guide h3 { font-family: var(--poppins); font-weight: 700; font-size: 1.1rem; margin: 24px 0 8px; }
.lp-guide p, .lp-guide li { font-size: 16.5px; line-height: 1.65; color: rgba(43,48,56,0.85); max-width: 78ch; }
.lp-guide p { margin: 0 0 14px; }
.lp-guide ul, .lp-guide ol { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 6px; }
.lp-guide a { color: var(--teal-d); font-weight: 600; }
.lp-guide code, .lp-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--teal-tint); color: var(--teal-d); padding: 2px 6px; border-radius: 6px; }
.lp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: var(--r-sm); overflow-x: auto; margin: 0 0 16px; }

.lp-table-wrap { margin: 6px 0 22px; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; max-width: 100%; }
.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 15px; }
.lp-table thead th { text-align: left; font-family: var(--poppins); font-weight: 700; font-size: 13.5px; background: var(--mint); color: var(--teal-d); padding: 12px 14px; white-space: nowrap; }
.lp-table tbody td { padding: 11px 14px; vertical-align: top; color: rgba(43,48,56,0.85); line-height: 1.5; background: var(--paper); }
.lp-table tbody tr:nth-child(even) td { background: var(--surface); }
.lp-table tbody td:first-child { font-weight: 600; color: var(--ink); }

/* Wider prose on article pages */
.lp-prose.lp-prose-wide { max-width: 1120px; }
.lp-prose.lp-prose-wide p, .lp-prose.lp-prose-wide li { max-width: 78ch; font-size: 16.5px; }
.lp-prose h3 { font-family: var(--poppins); font-weight: 700; font-size: 1.1rem; margin: 22px 0 8px; }
.lp-prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.lp-prose .lp-meta { font-size: 14px; color: var(--muted); margin: 0 0 22px; font-weight: 600; }

/* Guides index cards */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.lp-card { display: block; padding: 24px; border: 1.5px solid transparent; border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color 160ms, background 160ms; }
.lp-card:hover { border-color: var(--teal); background: var(--paper); }
.lp-card h3 { font-family: var(--poppins); font-weight: 700; font-size: 1.1rem; line-height: 1.25; margin: 0 0 10px; }
.lp-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.lp-card .lp-card-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--teal-d); }

/* "Read more" strip linking tool pages to relevant articles */
.lp-readmore { margin-top: clamp(32px,4vw,48px); padding: 22px 26px; border-radius: var(--r-md); background: var(--mint); max-width: 1120px; }
.lp-body .lp-readmore h2 { font-size: 1.1rem; margin: 0 0 10px; }
.lp-readmore ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-readmore a { color: var(--teal-d); font-weight: 700; text-decoration: none; }
.lp-readmore a:hover { text-decoration: underline; }


/* ===== Tool page: two columns (content + sticky sidebar) ===== */
.lp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.lp-main { min-width: 0; }
.lp-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.lp-side-box { background: var(--surface); border-radius: var(--r-md); padding: 22px 22px 20px; }
.lp-side-box h3 { font-family: var(--poppins); font-weight: 700; font-size: 1.05rem; margin: 0 0 12px; }
.lp-related-list { display: grid; gap: 4px; }
.lp-related-list a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; margin: 0 -8px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lp-related-list a:hover { background: var(--paper); color: var(--teal-d); }
.lp-side .lp-readmore { margin-top: 0; padding: 22px; max-width: none; background: var(--mint); }
.lp-side .lp-readmore h3 { font-size: 1.05rem; margin: 0 0 10px; }
.lp-side .lp-readmore ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-side .lp-readmore a { color: var(--teal-d); font-weight: 700; text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.lp-side-private { text-align: left; }
.lp-side-private img { width: 44px; height: 44px; margin-bottom: 10px; }
.lp-side-private p { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.lp-side-private a { color: var(--teal-d); font-weight: 700; font-size: 14px; }
.lp-steps { max-width: none; }
.lp-faq { max-width: none; }
.lp-guide { max-width: none; }
.lp-guide p, .lp-guide li { max-width: none; }
.lp-faq p { max-width: none; }
@media (max-width: 960px) { .lp-cols { grid-template-columns: 1fr; } .lp-side { position: static; } }


/* ===== Sub-page spacing: more air between blocks ===== */
.lp-body { padding: clamp(56px,7vw,96px) 0; }
.lp-body h2:not(:first-child) { margin-top: clamp(56px,7vw,88px); }
.lp-body .lp-guide h2 { margin-top: clamp(44px,5vw,64px); }
.lp-guide { margin-top: clamp(56px,7vw,88px); }
.lp-steps { gap: 16px; }
.lp-steps li { padding: 20px 22px 20px 66px; }
.lp-faq { gap: 14px; }
.lp-faq summary { padding: 20px 22px; }
.lp-side { gap: 20px; }
.lp-side-box { padding: 26px 24px 24px; }
.lp-prose h2 { margin: clamp(40px,5vw,56px) 0 14px; }
.lp-prose p { margin: 0 0 16px; }
.lp-cards { gap: 20px; }


/* About: family card */
.family-card { background: #262a36; border-radius: var(--r-lg); overflow: hidden; margin: 8px 0 22px; }
.family-card img { width: 100%; height: auto; display: block; }


/* ===== Contact page ===== */
.lp-prose-full { max-width: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-bottom: 16px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid transparent; color: var(--ink); text-decoration: none; transition: border-color 160ms, background 160ms; }
a.contact-card:hover { border-color: var(--teal); background: var(--paper); }
.contact-card h3 { font-family: var(--poppins); font-weight: 700; font-size: 1.1rem; margin: 6px 0 0; }
.contact-card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; overflow-wrap: break-word; }
.contact-card .cc-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--teal-d); }
.contact-card-quiet { grid-column: 1 / -1; background: var(--mint); }
.contact-card-quiet a { color: var(--teal-d); font-weight: 700; }
.cc-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); color: var(--teal); display: grid; place-items: center; }
.contact-card-quiet .cc-ic { background: rgba(255,255,255,0.7); }
.cc-ic svg { width: 21px; height: 21px; }
.contact-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.contact-form { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.contact-form h3 { font-family: var(--poppins); font-weight: 700; font-size: 1.3rem; margin: 0; }
.contact-form .cf-note { font-size: 13.5px; color: var(--muted); margin: -6px 0 4px; }
.contact-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 15px; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-side { display: flex; align-items: center; gap: 16px; text-align: left; padding: 6px 8px; }
.contact-side img { width: 76px; height: auto; flex: none; margin: 0; animation: mascot-float 5s ease-in-out infinite; }
.contact-side p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }


/* ===== Prose pages: left side menu ===== */
.lp-cols-left { grid-template-columns: 280px minmax(0, 1fr); }
.lp-cols-left .lp-prose { max-width: none; }
.lp-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-toc a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.lp-toc a:hover { background: var(--paper); color: var(--teal-d); }
.lp-side-nav a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lp-side-nav a:hover { background: var(--paper); color: var(--teal-d); }
.lp-side-nav a.active { background: var(--teal); color: var(--paper); }
.lp-prose h2 { scroll-margin-top: 90px; }
@media (max-width: 960px) { .lp-cols-left { grid-template-columns: 1fr; } .lp-cols-left .lp-side { order: 2; } .lp-toc { display: none; } }

/* ===== 404 page ===== */
.nf-hero { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); margin: 8px 0 40px; }
.nf-mascot { width: clamp(140px, 22vw, 240px); height: auto; flex: 0 0 auto; }
.lp-prose p.nf-code, .nf-code { font-family: var(--poppins); font-weight: 700; font-size: clamp(64px, 12vw, 132px); line-height: 1; letter-spacing: -0.04em; color: var(--teal); margin: 0 0 18px; }
.lp-prose p.nf-actions, .nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.nf-actions .btn-ghost { border-color: var(--line); background: #fff; }
@media (max-width: 640px) { .nf-hero { flex-direction: column; align-items: flex-start; } }
