/* link2rank.com marketing pages: the parts landing.css does not have. Colours are tokens (rule 41): the landing
   palette (--lp-*, --ink, --soft, --line, --surface, --ground, --sand) plus the few below. Served at /landing/home.css. */
/* The home keeps link2rank.com's own brand colours (frontend/src/styles/tokens.css: primary green #0F6B33, lime
   accent #A4CE3E, warm neutrals), as the live home shows them; not the landing pages' indigo/teal themes. */
.lp--home {
  --lp-bg: #07300F; --lp-mid: #0A4A23; --lp-accent: #A4CE3E; --lp-sub: #DCEBD3; --lp-on-accent: #07300F;
  --lp-tint: #F2F8EF; --lp-tint-line: #C3DDB6; --lp-deep: #0F6B33;
  --brand-green: #0F6B33; --brand-ink: #192A35; --brand-soft: #4A5560; --brand-ground: #FBFAF6;
}
:root {
  --link-blue: #1a5fd0; /* in-text links and their "+" (growth-ops-kit rule 36c) */
  --link-blue-ring: rgb(26 95 208 / 0.16);
  --link-blue-dark: #6ea8ff; /* the same on dark grounds */
  --color-yes: #2f7a3a; /* the circled Tick, AA on white and on the tints */
  --tick-bg: #eaf6ec;
  --card-bg: #ffffff;
  --shadow-soft: rgb(0 0 0 / 0.25);
  --backdrop: rgb(10 10 30 / 0.45);
  --on-dark: #ffffff;
}
html { scroll-padding-top: 96px; }

.lp-h3 { margin: 32px 0 16px; font-size: 20px; font-weight: 700; color: var(--ink); }
.lp-prose { max-width: 680px; font-size: 18px; line-height: 1.65; color: var(--ink); }
.lp-prose p { margin: 0 0 16px; }
.lp-updated { margin: 18px 0 0; font-size: 14px; color: var(--lp-sub); }
.lp-hero .lp-updated a { color: var(--link-blue); text-decoration: underline; }
.lp-reason { margin: 10px 0 0; font-size: 15px; color: var(--lp-sub); }
.lp-closing .lp-reason { color: inherit; opacity: 0.85; }
.lp-hero .lp-btn:not(.lp-btn--ghost), .lp-closing .lp-btn:not(.lp-btn--ghost), .sticky-cta__btn { box-shadow: 0 6px 22px -6px var(--lp-accent); }
.lp-hint { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 14px; color: var(--soft); }
.lp-hint::before { content: "\2192"; font-weight: 700; color: var(--lp-deep); }
.lp-ticks .tick, .lp-path .tick { flex: none; margin-top: 2px; }
.lp-path ul li, .lp-ticks li { display: flex; gap: 10px; align-items: flex-start; }

/* in-text links and the "+" preview card (rule 36c) */
.text-link, [data-link-cards] a.text-link { color: var(--link-blue); text-decoration: underline; text-underline-offset: 3px; }
.lp-hero .text-link, .lp-closing .text-link { color: var(--lp-sub); }
.lcx-slot { white-space: nowrap; }
.lcx-plus { margin: 0 2px 0 3px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--link-blue); background: var(--card-bg); color: var(--link-blue); font: 700 13px/1 inherit; cursor: pointer; vertical-align: middle; box-shadow: 0 0 0 3px var(--link-blue-ring); }
.lcx-plus:hover { background: var(--link-blue); color: var(--on-dark); }
.lcx-plus:focus-visible { outline: 3px solid var(--link-blue); outline-offset: 2px; }
.lcx-card { position: absolute; z-index: 40; width: min(320px, 80vw); padding: 14px 16px; border: 1px solid var(--link-blue); border-radius: 12px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--link-blue), 0 12px 32px -8px color-mix(in srgb, var(--link-blue) 35%, transparent); font-size: 15px; line-height: 1.45; color: var(--ink); }
.lcx-card-title { margin: 0 0 4px; font-weight: 700; }
.lcx-card-desc { margin: 0 0 8px; color: var(--soft); }
.lcx-card-open { color: var(--link-blue); font-weight: 600; }

/* copy button (rule 131) */
.copy-btn { margin-top: 4px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-bg); color: var(--ink); font: 600 14px/1.2 inherit; cursor: pointer; min-height: 40px; }
.copy-btn:hover { border-color: var(--lp-deep); }
.copy-btn:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 2px; }

/* order types */
.lp-types { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1100px) { .lp-types { grid-template-columns: repeat(4, 1fr); } .lp-type--wide { grid-column: span 2; } }
.lp-type--wide { display: block; }
.lp-type { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lp-type h3 { margin: 10px 0 6px; font-size: 17px; }
.lp-type p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
.lp-note { margin: 20px 0 0; max-width: 680px; color: var(--soft); font-size: 16px; }

/* money path tabs (the page's one interaction) */
.mp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.mp-tab { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-bg); color: var(--ink); font: 600 15px/1.2 inherit; cursor: pointer; min-height: 44px; }
.mp-tab[aria-selected="true"] { background: var(--lp-bg); border-color: var(--lp-bg); color: var(--on-dark); }
.mp-tab:hover { border-color: var(--lp-deep); }
.mp-tab:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 2px; }
.mp-path { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; margin: 0; padding: 0; }
.mp-step { padding: 18px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); }
.mp-step b { display: block; margin-bottom: 4px; color: var(--lp-deep); }
.mp-text { margin-top: 22px; color: var(--soft); font-size: 15px; }
.mp-text dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.mp-text dd { margin: 2px 0 0; }

/* FAQ box + ask card (rules 135, 139) */
.faqbox { max-width: 820px; }
.faqbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.faqbox-count { margin: 0; font-weight: 700; color: var(--soft); }
.faqbox-tools { display: flex; gap: 8px; }
.faqbox-all { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-bg); color: var(--ink); font: 600 14px/1.2 inherit; cursor: pointer; min-height: 40px; }
.faqbox-all:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 2px; }
.faqbox-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: faq; }
.faqbox-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); }
.faqbox-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.faqbox-item summary::-webkit-details-marker { display: none; }
.faqbox-item h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.faqbox-mark::after { content: "+"; font-weight: 700; color: var(--lp-deep); }
.faqbox-item[open] .faqbox-mark::after { content: "\2212"; }
.faqbox-item p { margin: 12px 0 0; color: var(--soft); line-height: 1.6; }
.faqbox-item a { color: var(--link-blue); }
.askcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 820px; margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--surface); }
.askcard p { margin: 0; }

/* table scroll on phones (rule 48) */
.lp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: inset -12px 0 12px -12px var(--shadow-soft); }
.lp-scroll .lp-table th[scope="row"] { position: sticky; left: 0; background: inherit; }
.lp-source { margin: 12px 0 0; font-size: 14px; color: var(--soft); }

/* fold reveal (rule 141) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* sticky bar (rule 35) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; transform: translateY(110%); transition: transform 0.2s; background: var(--lp-bg); color: var(--on-dark); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.sticky-cta[data-sticky-cta="shown"] { transform: none; }
.sticky-cta__in { display: flex; align-items: center; gap: 12px; max-width: 1120px; margin: 0 auto; }
.sticky-cta-text { margin: 0 auto 0 0; font-size: 15px; color: var(--lp-sub); }
.sticky-cta .lp-btn { padding: 10px 18px; font-size: 15px; }
.sticky-cta__x { background: none; border: 0; color: var(--on-dark); font-size: 24px; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
.sticky-cta__x:focus-visible { outline: 3px solid var(--on-dark); }
@media (max-width: 640px) { .sticky-cta-text, .sticky-cta__sec { display: none; } .sticky-cta__btn { flex: 1; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* exit offer (rule 35b) */
.exit-offer { max-width: 440px; padding: 28px; border: 0; border-radius: 18px; box-shadow: 0 24px 60px -20px var(--shadow-soft); }
.exit-offer::backdrop { background: var(--backdrop); }
.exit-offer__x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 26px; cursor: pointer; min-width: 44px; min-height: 44px; }
.exit-offer__title { margin: 0 0 8px; font-size: 22px; }
.exit-offer__body { margin: 0; color: var(--soft); }
.exit-offer .lp-btn { margin-top: 8px; }

/* surfaces (rule 36f): every fold paints what its data-surface says */
[data-surface="geo-lines"] { background-color: var(--lp-tint); background-image: repeating-linear-gradient(135deg, var(--lp-tint-line) 0 1px, transparent 1px 22px); }
[data-surface="warm"] { background-color: var(--sand); }
[data-surface="plain"] { background-color: var(--surface); }

/* ask card button */
.askcard-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--lp-deep); border-radius: 999px; background: var(--card-bg); color: var(--lp-deep); font-weight: 700; text-decoration: none; }
.askcard-btn:hover { background: var(--lp-deep); color: var(--on-dark); }
.askcard-btn:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 2px; }

/* the sticky bar replaces the header, and shows reading progress (rule 35) */
.sticky-cta__progress { position: absolute; left: 0; top: 0; height: 3px; width: var(--read, 0%); background: var(--lp-accent); }
html[data-sticky-cta] .header { transform: translateY(-100%); transition: transform 0.2s; }

/* shared footer and header on phones: tap targets and a visible focus ring (rules 70, 36j) */
footer a, .header a { outline-color: var(--on-dark); }
footer a:focus-visible, .header a:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
@media (max-width: 640px) { footer a { display: inline-block; padding: 6px 0; min-height: 24px; } }

/* the home's own hero picture (rules 147, 157) */
.hero-flow { margin: 0; }
.hero-flow__svg { width: 100%; height: auto; max-width: 440px; }
.hf-box { fill: var(--card-bg); stroke: var(--lp-tint-line); stroke-width: 1.5; }
.hf-box--ok { stroke: var(--color-yes); stroke-width: 2; }
.hf-k { font: 700 18px/1 system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--lp-deep); }
.hf-v { font: 600 21px/1 system-ui, sans-serif; fill: var(--ink); }
.hf-dot { fill: var(--lp-tint); }
.hf-dot--ok { fill: var(--tick-bg); }
.hf-ico { fill: none; stroke: var(--lp-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hf-3 .hf-ico { stroke: var(--color-yes); }
.hf-line { stroke: var(--lp-accent); stroke-width: 3; stroke-dasharray: 4 5; }
@media (prefers-reduced-motion: no-preference) {
  .hf-card { animation: hf-in 0.5s ease both; }
  .hf-2 { animation-delay: 0.35s; }
  .hf-3 { animation-delay: 0.7s; }
  @keyframes hf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* the checkers read a solid background under the gradients */
.lp-closing { background-color: var(--lp-bg); }
/* layout: tighter folds and hero (rule 158a) */
.lp-section { padding-top: 64px; padding-bottom: 64px; }
.lp-hero { padding-top: 28px; padding-bottom: 32px; min-height: 0; }
.lp-hero__grid { gap: 32px; }
.lp-step .mk { margin-top: 16px; }
.lp-types, .lp-steps { align-items: start; }
.copy-row { display: flex; align-items: center; gap: 12px; }
@media (max-width: 640px) { .lp-section { padding-top: 48px; padding-bottom: 48px; } .lp-hero { padding-top: 20px; padding-bottom: 24px; } }
.askcard-btn--on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.askcard-btn--on-dark:hover { background: var(--on-dark); color: var(--lp-bg); }
.lp-hero a:focus-visible, .lp-closing a:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 3px; }
.askcard-btn--on-dark:focus-visible { outline-color: var(--on-dark); }
footer a[class*="logo"], footer .footer__logo, footer a:has(img) { color: var(--on-dark); }
@media (max-width: 640px) { .hero-flow__svg { max-width: 300px; } .lp-hero__grid { gap: 20px; } .lp-hero .lp-ticks { margin-top: 16px; } }

/* the first screen is light, as on the live home: dark ink, green label and button */
.lp--home .lp-hero { background-color: var(--brand-ground); background-image: radial-gradient(60% 55% at 82% 8%, rgb(164 206 62 / 0.2) 0%, rgb(164 206 62 / 0) 70%); color: var(--brand-ink); }
.lp--home .lp-hero .lp-h1 { color: var(--brand-ink); }
.lp--home .lp-hero .lp-label { color: var(--brand-green); }
.lp--home .lp-hero .lp-sub, .lp--home .lp-hero .lp-reason, .lp--home .lp-hero .lp-updated { color: var(--brand-soft); }
.lp--home .lp-hero .lp-ticks li { color: var(--brand-ink); }
.lp--home .lp-hero .btn-primary { background: var(--brand-green); color: var(--on-dark); box-shadow: 0 6px 22px -6px var(--brand-green); }
.lp--home .lp-hero .btn-ghost { color: var(--brand-green); box-shadow: inset 0 0 0 2px var(--brand-green); }
.lp--home .lp-hero .btn-ghost:hover { background: var(--lp-tint); }
.lp--home .lp-hero a:focus-visible { outline-color: var(--brand-green); }
.lp--home .lp-hero[data-surface] { --link-blue-dark: #1a5fd0; }
.mp-path[hidden] { display: none; }
.hf-s { font: 600 19px/1 system-ui, sans-serif; fill: var(--ink); }
.lp-crumbs { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 6px; font-size: 14px; color: var(--brand-soft, var(--soft)); background: var(--brand-ground, transparent); }
.lp-crumbs a { color: var(--link-blue); }
.lp-ticks--dark li { color: var(--ink); }
.lt-panel { max-width: 640px; }
.lp-closing[data-surface="dark"] .lp-other a.text-link { color: var(--link-blue-dark); }
.lp-ticks--one { grid-template-columns: 1fr; }
.after-path { counter-reset: after; }
/* /for-publishers/ control cards: two columns, a Tick before each title. */
.lp-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-card__title .tick { vertical-align: -4px; margin-right: 6px; }
@media (max-width: 640px) { .lp-grid--two { grid-template-columns: minmax(0, 1fr); } }
/* /pricing/ top-up fold: rules beside the calculator; one column on phones. */
.lp-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .lp-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.calc { background: var(--card-bg); border: 1.5px solid var(--lp-tint-line); border-radius: 16px; padding: 24px; }
.calc__label { display: block; font-weight: 700; color: var(--ink); margin: 8px 0; }
.calc__input { width: 100%; min-height: 48px; padding: 10px 14px; font: 600 20px/1.2 system-ui, sans-serif; color: var(--ink); border: 1.5px solid var(--lp-tint-line); border-radius: 10px; background: #fff; }
.calc__input:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 2px; border-color: var(--lp-deep); }
[data-calc-bad] .calc__input { border-color: #B42318; }
.calc__out { margin: 18px 0 0; display: grid; gap: 8px; }
.calc__out div { display: flex; justify-content: space-between; gap: 12px; }
.calc__out dt { color: var(--soft); }
.calc__out dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__total { border-top: 1px solid var(--lp-tint-line); padding-top: 8px; }
.calc__msg { margin: 12px 0 0; color: var(--soft); font-size: 15px; }
[data-calc-bad] .calc__msg { color: #B42318; }
.calc__note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
/* /faq/ hub: short hero, the jump bar, the "more questions" cards. */
.lp-hero--short .lp-wrap { max-width: 860px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.faq-jump__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--lp-tint-line); background: var(--card-bg); color: var(--lp-deep); font-weight: 600; text-decoration: none; }
.faq-jump__btn:hover { border-color: var(--lp-deep); }
.faq-jump__btn:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 2px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.faq-more { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .faq-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .faq-more { grid-template-columns: minmax(0, 1fr); } }
.faq-more__link { display: block; color: inherit; text-decoration: none; }
.faq-more__link:focus-visible { outline: 3px solid var(--lp-deep); outline-offset: 4px; border-radius: 12px; }
.faq-more__link .lp-icon { width: 18px; height: 18px; vertical-align: -3px; }
.faqbox p { overflow-wrap: anywhere; }
.lp-hero--short { position: relative; }
.faq-hero-ico { position: absolute; right: max(24px, calc((100% - 1160px) / 2)); top: 48px; width: 150px; height: auto; }
@media (max-width: 900px) { .faq-hero-ico { display: none; } }
.faq-hero-ico .hf-ico { stroke-width: 2.4; }

.lp .lp-hero.lp-hero--short { min-height: 0; padding: 28px 0 32px; }
.faq-filter { margin: 8px 0 20px; }
.faqbox-list li[hidden] { display: none; }
.lp-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 10px; color: var(--ink); }
.mp-path--rows { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
