/* Pages carried over from the previous carabela.ai (landing_pages.py), in the
   resource-page language: white page, grey prose, hairline rules, #f3f3f3 cards. */

.lp-page .rp-section > :not(h2) { grid-column: 2; min-width: 0; }
.lp-page .rp-section > h2 { grid-column: 1; align-self: start; position: sticky; top: 120px; }
.lp-page .rp-section > :not(h2) + :not(h2) { margin-top: 28px; }
.lp-page .rp-section h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.025em; font-weight: 400; margin: 0 0 12px; }
.lp-page .rp-hero h1 em, .lp-page h2 em { font-style: normal; color: #8a8a86; }
.lp-sub { font-size: 19px; line-height: 1.5; color: #555; max-width: 720px; margin: 0; }
.lp-lead { font-size: 25px !important; line-height: 1.4 !important; color: #151515 !important; letter-spacing: -.02em; }
.lp-note { font-size: 14px; line-height: 1.5; color: #777; max-width: 680px; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.lp-inline { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; border-bottom: 1px solid #b6b6b0; padding: 6px 0; color: #151515; }
.lp-inline:hover { border-color: #151515; }

/* Cards */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.lp-card { background: #f3f3f3; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.lp-card h3, .lp-card .lp-card-title { font-size: 22px; line-height: 1.22; letter-spacing: -.025em; font-weight: 400; margin: 0; }
.lp-card p { font-size: 16px; line-height: 1.55; color: #555; margin: 0; }
.lp-num { font-family: Telka, Lausanne, sans-serif; font-size: 10px; letter-spacing: .06em; color: #8a8a86; }
.lp-grid-links { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.lp-link-card { transition: background .2s, transform .25s; min-height: 230px; }
.lp-link-card:hover { background: #ece8f3; transform: translateY(-2px); }
.lp-link-card .lp-more { margin-top: auto; font-size: 14px; color: #151515; }
.lp-grid-steps .lp-card { background: #fff; border: 1px solid #e2e2dd; }

/* Steps, loops, chips */
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid #e4e4e0; }
.lp-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: Telka, Lausanne, sans-serif; font-size: 11px; color: #8a8a86; padding-top: 6px; }
.lp-steps li p { font-size: 16px; line-height: 1.55; color: #555; margin: 0; }
.lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li { background: #f3f3f3; border-radius: 100px; padding: 10px 16px; font-size: 15px; line-height: 1.3; color: #333; }
.lp-prompts li { background: #fff; border: 1px solid #e2e2dd; border-radius: 14px; font-size: 16px; }
.lp-loop { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-loop li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lp-loop li:not(:last-child)::after { content: '→'; color: #9a9a95; }
.lp-loop li { background: #f3f3f3; border-radius: 100px; padding: 8px 14px; }
.lp-loop li:not(:last-child)::after { margin-left: 6px; }
.lp-list-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-list-links li { border-top: 1px solid #e4e4e0; }
.lp-list-links li:last-child { border-bottom: 1px solid #e4e4e0; }
.lp-list-links a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
.lp-list-links a::after { content: '→'; color: #9a9a95; transition: transform .2s; }
.lp-list-links a:hover::after { transform: translateX(4px); color: #151515; }

/* Figures, comparisons, tables */
.lp-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; margin: 0; }
.lp-figures > div { border-top: 1px solid #151515; padding-top: 14px; }
.lp-figures dt { font-family: Telka, Lausanne, sans-serif; font-size: 10px; letter-spacing: .05em; line-height: 1.5; color: #777; text-transform: uppercase; }
.lp-figures dd { margin: 10px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; color: #151515; }
.lp-figures dd span { display: block; font-size: 14px; letter-spacing: 0; color: #666; margin-top: 4px; }
.lp-hero + .lp-figures { margin: -24px 0 56px; }
.lp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-compare > div { background: #f3f3f3; border-radius: 16px; padding: 28px; }
.lp-compare > div:last-child { background: #151515; color: #fff; }
.lp-compare > div:last-child p, .lp-compare > div:last-child li { color: #d6d6d2; }
.lp-compare p, .lp-compare li { font-size: 16px; line-height: 1.55; color: #555; margin: 0; }
.lp-compare ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.lp-figure { font-size: clamp(54px, 6vw, 88px); line-height: 1; letter-spacing: -.06em; margin: 0; }
.lp-result { font-size: 21px; line-height: 1.4; margin: 0; }
.lp-result strong { font-weight: 400; }
.lp-ledger { width: 100%; border-collapse: collapse; font-size: 17px; }
.lp-ledger caption { text-align: left; font-family: Telka, Lausanne, sans-serif; font-size: 10px; letter-spacing: .05em; color: #777; padding-bottom: 10px; text-transform: uppercase; }
.lp-ledger th, .lp-ledger td { text-align: left; padding: 14px 0; border-top: 1px solid #e4e4e0; font-weight: 400; }
.lp-ledger td { text-align: right; }
.lp-ledger .lp-total th, .lp-ledger .lp-total td { border-top: 1px solid #151515; font-size: 21px; }
.lp-callout { background: #f1eef7; border-radius: 16px; padding: 30px; }
.lp-page .rp-section.lp-callout { padding: 36px; border-top: 0; margin: 24px 0; }
.lp-name { margin-top: 28px; }
.lp-name p { font-size: 17px; line-height: 1.6; color: #444; margin: 0; }

/* Closing call to action */
.lp-closing { display: grid; justify-items: start; gap: 18px; padding: 56px 0 0; }
.lp-closing h2 { font-size: clamp(34px, 3.6vw, 52px) !important; line-height: 1.06 !important; max-width: 900px; }
.lp-closing p { font-size: 18px !important; color: #555 !important; margin: 0 !important; max-width: 640px !important; }

/* Forms (assets/forms.js posts them as JSON to the Next app's /api/*) */
.lp-form-section { align-items: start; }
.lp-page .rp-section.lp-form-section > .lp-form-intro { grid-column: 1; position: sticky; top: 120px; }
.lp-form-intro h2 { margin-bottom: 18px !important; }
.lp-notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font-family: Telka, Lausanne, sans-serif; font-size: 10px; letter-spacing: .05em; color: #777; }
.lp-form { display: grid; gap: 18px; background: #f6f6f3; border-radius: 20px; padding: 32px; }
.lp-page .rp-section > .lp-form { grid-column: 2; margin-top: 0; }
.lp-form label, .lp-form legend { display: grid; gap: 8px; font-size: 14px; color: #333; }
.lp-form small { color: #888; font-size: 12px; }
.lp-form input[type=text], .lp-form input:not([type]), .lp-form input[type=email], .lp-form input[type=tel],
.lp-form input[type=number], .lp-form select, .lp-form textarea {
  width: 100%; border: 1px solid #d3d3ce; border-radius: 12px; background: #fff; padding: 14px 16px;
  font: 16px/1.3 Lausanne, Arial, sans-serif; color: #151515; transition: border-color .2s;
}
.lp-form input:focus-visible, .lp-form textarea:focus-visible, .lp-form select:focus-visible { outline: 2px solid #2a69cf; outline-offset: 1px; border-color: transparent; }
.lp-form [aria-invalid=true] { border-color: #b3261e; }
.lp-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.lp-form legend { padding: 0; margin-bottom: 8px; }
.lp-email-row { display: flex; gap: 8px; }
.lp-email-row button, .lp-add { border: 0; background: none; color: #151515; font-size: 14px; padding: 6px 0; justify-self: start; text-decoration: underline; text-underline-offset: 4px; }
.lp-email-row button { font-size: 22px; text-decoration: none; padding: 0 10px; }
.lp-check { display: flex !important; grid-template-columns: none; gap: 12px !important; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #555 !important; }
.lp-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #151515; flex: none; }
.lp-submit { justify-self: start; border: 0; border-radius: 100px; background: #151515; color: #fff; padding: 16px 26px; font-size: 15px; transition: background .2s, transform .25s; }
.lp-submit:hover { background: #30302e; transform: translateY(-2px); }
.lp-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.lp-smallprint { font-size: 12px !important; line-height: 1.5 !important; color: #888 !important; margin: 0 !important; }
.lp-status { font-size: 15px; line-height: 1.5; color: #151515; margin: 0; }
.lp-status:empty { display: none; }
.lp-status[data-tone=error] { color: #b3261e; }
.lp-form-done { background: #151515; color: #fff; border-radius: 20px; padding: 32px; display: grid; gap: 10px; }
.lp-form-done h3 { font-size: 26px !important; margin: 0 !important; color: #fff; }
.lp-form-done p { color: #d6d6d2; margin: 0; font-size: 16px; line-height: 1.55; }
.lp-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lp-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lp-countries { border: 1px solid #d3d3ce; border-radius: 12px; background: #fff; }
.lp-countries summary { cursor: pointer; padding: 14px 16px; font-size: 14px; color: #333; }
.lp-countries > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 4px 12px; padding: 0 16px 16px; max-height: 260px; overflow: auto; }
.lp-country { display: flex !important; align-items: center; gap: 8px !important; font-size: 14px; }
.lp-budget > label { display: inline-grid; }
.lp-budget { grid-template-columns: 1fr 1fr; column-gap: 10px !important; }
.lp-budget legend, .lp-budget small { grid-column: 1 / -1; }

/* Guides: blocks the complete articles use */
.rp-reading-copy h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; font-weight: 400; margin: 34px 0 12px; }
.rp-reading-copy ol { margin: 0 0 24px; padding-left: 24px; }
.rp-reading-copy ol li { margin-bottom: 12px; }
.lp-callout-note { background: #f1eef7; border-radius: 14px; padding: 22px 26px; margin: 28px 0; }
.lp-callout-note p { margin: 0 !important; color: #333 !important; }
.lp-post-faq { margin-top: 48px; }
.lp-post-faq .rp-faq summary { font-size: 20px; }
.lp-pillar { margin: 36px 0 0 !important; font-size: 16px !important; }
.lp-pillar span { color: #888; }
.lp-pillar a { border-bottom: 1px solid #b6b6b0; }
.lp-post-cta { margin-top: 48px; border-top: 1px solid #d9d9d9; }

/* The plugin page hosts some of these sections inside its own layout. */
.lp-plugin-extras { padding-top: 40px; }

@media (max-width: 800px) {
  .lp-page .rp-section > :not(h2), .lp-page .rp-section > h2,
  .lp-page .rp-section.lp-form-section > .lp-form-intro, .lp-page .rp-section > .lp-form { grid-column: 1; position: static; }
  .lp-compare { grid-template-columns: 1fr; }
  .lp-form { padding: 22px; }
  .lp-lead { font-size: 21px !important; }
  .lp-page .rp-section.lp-callout { padding: 26px; }
}
