/* Landing pages (src/pages/landing.js, 6 Nov 2026). Built on the home/info/firms tokens and classes. */
.lp-hero { padding: 56px 0 48px; }
.lp-hero-in { max-width: calc(var(--wrap) + 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lp-hero-in h1, .lp-hero-in p { margin: 0; } .lp-hero-in > h1, .lp-hero-in > p { max-width: 860px; }
.lp-hero-in .sp-crumb { display: flex; gap: 8px; }
.lp-sec { display: flex; flex-direction: column; gap: 20px; }
.lp-sec .section-head { margin: 0; }
.lp-body { max-width: 760px; }
.lp-body p { margin: 0 0 14px; }
.lp-body .checklist { margin: 6px 0 0; }
.lp-body .checklist li { display: flex; gap: 10px; align-items: flex-start; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lp-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.lp-card h3, .lp-card p { margin: 0; }
.lp-card h3 a { color: var(--ink); text-decoration: none; } .lp-card h3 a:hover { text-decoration: underline; }
.lp-card p:last-child { margin-top: auto; } .lp-card p a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lp-card .lp-card-more a { display: inline; font-weight: 500; }
.lp-band { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lp-band h2, .lp-band p { margin: 0; }
.lp-sources ul { margin: 8px 0; padding-left: 18px; }
@media (max-width: 640px) { .lp-hero { padding: 32px 0 28px; } .lp-cards { grid-template-columns: 1fr; } }

/* Hero with media (/courses teaser, 6 Nov 2026): text left, video right; stacked on small screens. */
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.lp-hero.has-media .lp-hero-in { max-width: none; }
/* Oliver in the landing hero (7 Nov 2026): text left, .h-art right, like the sector pages. */
.lp-hero.has-art .lp-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 40px; }
.lp-hero.has-art .lp-hero-in { max-width: none; }
.lp-art-hero.tall:not(.cut) > img { width: 62%; margin-bottom: 3%; }
.lp-media { margin: 0; }
@media (max-width: 960px) { .lp-hero-grid, .lp-hero.has-art .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Five-card catalogue: 3 columns, sixth slot = Oliver with a laptop (6 Nov 2026). */
.lp-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-art { background: var(--tint); border-color: transparent; align-items: center; justify-content: space-between; text-align: center; overflow: hidden; }
.lp-art-pic { position: relative; width: 100%; flex: 1; display: grid; place-items: end center; min-height: 150px; }
.lp-art-pic .h-blob { position: absolute; inset: auto; left: 50%; bottom: 0; width: 78%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--surface), var(--blob-1) 70%); opacity: .9; }
.lp-art-pic img { position: relative; width: auto; height: 100%; max-height: 190px; filter: drop-shadow(0 12px 18px rgba(15, 42, 46, .14)); }
.lp-art p { margin-top: 0; } .lp-art p a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 960px) { .lp-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lp-cards-3 { grid-template-columns: 1fr; } .lp-art-pic { min-height: 180px; } .lp-art-pic img { max-height: 200px; } }

/* List + cards section (/courses "How to pick a course", 6 Nov 2026): text and cards left, the list as a card right. */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.lp-split-main { display: flex; flex-direction: column; gap: 20px; }
.lp-split-main .section-head { margin: 0; } .lp-split-main .lp-body p:last-child { margin-bottom: 0; }
.lp-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lp-side .lp-card { padding: 20px 22px; gap: 6px; }
.lp-rows { list-style: none; margin: 0; padding: 8px 24px; }
.lp-rows li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.lp-rows li:first-child { border-top: 0; }
.lp-card-links p { font-size: 0; line-height: 0; margin-top: 6px; }
.lp-card-links p a { display: inline-block; font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; padding: 6px 12px; margin: 0 8px 8px 0; border-radius: 999px; background: var(--tint); color: var(--link); }
.lp-card-links p a::first-letter { text-transform: uppercase; }
.lp-card-links p a:hover { background: var(--teal-soft); }
@media (max-width: 960px) { .lp-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 520px) { .lp-side { grid-template-columns: 1fr; } .lp-rows { padding: 4px 18px; } }

/* Design pass (6 Nov 2026): every section is balanced, no text walls. Layouts are picked in section() (landing.js). */
.lp-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.lp-duo-facts { align-items: center; }
.lp-duo-main { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.lp-duo-main .section-head { margin: 0; } .lp-duo-main .lp-body p:last-child { margin-bottom: 0; }
.lp-duo > .lp-rows { margin-top: 4px; }
.lp-rows li b { color: var(--ink); font-weight: 600; }
.lp-x { background: var(--tint); color: var(--muted); }
/* Fact sheet: the numbers and duties from the text, set like a record. */
.lp-facts { display: grid; gap: 4px; padding: 26px 28px; }
.lp-facts > .t-h4 { margin: 0 0 6px; }
.lp-facts ul { list-style: none; margin: 0; padding: 0; }
.lp-facts li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.lp-facts > ul > li:first-child { border-top: 0; }
.lp-facts > .t-h4 + ul > li:first-child { border-top: 1px solid var(--line-soft); }
.lp-facts li.ic { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
.lp-facts .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.lp-fv { font: 600 30px/34px var(--display); letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-facts-sm .lp-fv { font-size: 21px; line-height: 28px; letter-spacing: -.2px; }
.lp-fl { font-size: 15.5px; line-height: 24px; color: var(--ink-2); }
/* Related pages: one card with link rows. */
.lp-links { list-style: none; margin: 4px 0 0; padding: 6px 0; }
.lp-links li + li { border-top: 1px solid var(--line-soft); }
.lp-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; color: var(--ink); text-decoration: none; border-radius: 14px; }
.lp-links a > span { display: grid; gap: 2px; } .lp-links b { font: 600 17px/24px var(--ui); }
.lp-links a .i { color: var(--link); flex: none; transition: transform .15s; }
.lp-links a:hover b { text-decoration: underline; } .lp-links a:hover .i { transform: translateX(3px); }
.lp-links a:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
/* Card grids sized by count. */
.lp-cards.lp-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-cards.lp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-cards.lp-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Steps (a real sequence). */
.lp-steps { margin: 0; }
.lp-steps.lp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-steps li { gap: 14px; padding: 22px 22px 24px; } .lp-steps li p { color: var(--ink-2); }
.section.surface .lp-steps li.card { background: var(--ground); }
.section:not(.surface) .lp-steps li.card { background: var(--surface); }
.lp-steps + .lp-cards { margin-top: 4px; }
/* Points (HMRC's four points) with Oliver beside them. */
.lp-points.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.lp-points-main { display: flex; flex-direction: column; gap: 20px; } .lp-points-main .section-head { margin: 0; } .lp-points-main .lp-body p { margin: 0; }
.lp-points-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-points-grid li { display: flex; flex-direction: column; gap: 16px; padding: 22px; font: 600 18px/26px var(--ui); color: var(--ink); }
.section.surface .lp-points-grid li.card { background: var(--ground); }
.lp-points-art { aspect-ratio: 360 / 440; }
.lp-points-art > img { width: 56%; margin-bottom: 2%; }
/* Prices: the live tiers (src/pricing.js), same table and calculator as home and /firms. */
.lp-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.lp-price-main { display: flex; flex-direction: column; gap: 20px; } .lp-price-main .section-head { margin: 0; } .lp-price-main .lp-body p { margin: 0; }
.lp-packs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lp-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .lp-pack > * { margin: 0; }
.lp-pack .price { font: 600 36px/42px var(--display); letter-spacing: -.6px; color: var(--ink); }
.lp-packs .lp-pack { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-areas: "t t" "p d" "p b"; gap: 4px 20px; align-items: start; justify-items: start; }
.lp-packs .lp-pack > .t-h4 { grid-area: t; margin-bottom: 6px; } .lp-packs .lp-pack > .price { grid-area: p; } .lp-packs .lp-pack > .t-s { grid-area: d; margin: 0; align-self: center; } .lp-packs .lp-pack > .btn { grid-area: b; margin-top: 10px; }
.lp-pack > .btn { margin-top: auto; } .lp-pack > .t-s { margin-bottom: 14px; }
.section.surface .lp-pack:not(.tint) { background: var(--ground); }
.lp-team { gap: 16px; align-items: stretch; }
.lp-team-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; } .lp-team-top p { margin: 0 0 6px; } .lp-team-top .t-s { margin: 0; }
.lp-team .pc { margin: 0; background: var(--ground); }
.lp-note { margin: 0; }
/* Closing band and sources. */
.lp-band-sec { padding-top: 24px; }
.lp-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 28px; align-items: center; padding: 36px 40px; border-radius: 24px; background: var(--deep); color: var(--on-deep); }
.lp-band-av { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); }
.lp-band-copy { display: grid; gap: 6px; } .lp-band-copy h2 { margin: 0; color: var(--on-deep); } .lp-band-copy p { margin: 0; color: var(--on-deep-muted); }
.lp-band .h-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.lp-band .btn.secondary { background: transparent; color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 45%, transparent); }
.lp-band .btn.secondary:hover { background: color-mix(in srgb, var(--on-deep) 12%, transparent); }
.lp-sources { padding-top: 40px; }
.lp-sources-in { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.lp-sources-in h2 { margin: 0; } .lp-sources-in ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.lp-sources-in li a { display: inline-flex; align-items: center; gap: 6px; } .lp-sources-in li .i { opacity: .7; }
.lp-sources-in .t-cap { margin: 0; }

@media (max-width: 1100px) { .lp-cards.lp-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-points.has-art { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; } }
@media (max-width: 960px) {
  .lp-duo, .lp-price { grid-template-columns: minmax(0, 1fr); gap: 28px; } .lp-duo-main { max-width: none; }
  .lp-cards.lp-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps.lp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-band { grid-template-columns: auto minmax(0, 1fr); } .lp-band .h-ctas { grid-column: 1 / -1; }
  .lp-sources-in, .lp-faq-like { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 760px) {
  .lp-points.has-art { grid-template-columns: minmax(0, 1fr); } .lp-points-art { display: none; }
  .lp-steps.lp-n3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lp-cards.lp-n2, .lp-cards.lp-n3, .lp-cards.lp-n4, .lp-packs, .lp-points-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-facts { padding: 20px; }
  .lp-points-grid li { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; font-size: 16.5px; line-height: 24px; }
  .lp-packs .lp-pack { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "p" "d" "b"; }
  .lp-team-top .btn, .lp-packs .lp-pack > .btn { width: 100%; }
  .lp-facts li.val { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lp-fv { font-size: 26px; line-height: 30px; }
  .lp-links a { padding: 14px 18px; }
  .lp-band { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 16px; } .lp-band-av { width: 52px; height: 52px; }
  .lp-band .h-ctas .btn { width: 100%; }
}
/* Dark theme: the band's main button keeps the teal primary (surface would sink into the deep panel). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-band .btn.on-deep { background: var(--btn-bg); color: var(--btn-fg); } :root:not([data-theme="light"]) .lp-band .btn.on-deep:hover { background: var(--btn-bg-2); } }
:root[data-theme="dark"] .lp-band .btn.on-deep { background: var(--btn-bg); color: var(--btn-fg); } :root[data-theme="dark"] .lp-band .btn.on-deep:hover { background: var(--btn-bg-2); }
/* AML-612 (17 Nov 2026): hook line, table, text after a list, collapsible answer, cards after a facts section. */
.lp-hook { margin: 0; color: var(--ink); }
.lp-table { padding: 0; overflow-x: auto; margin-top: 8px; max-width: 980px; }
.lp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.lp-table caption { text-align: left; padding: 12px 18px 0; color: var(--muted); font-size: 14px; }
.lp-table th, .lp-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line-soft, var(--line)); }
.lp-table thead th { border-top: 0; font-weight: 600; }
.lp-table td:first-child { width: 52%; }
.lp-stack .lp-rows { max-width: 860px; margin: 8px 0 24px; }
.lp-after { margin-top: 0; }
.lp-answer { max-width: 760px; margin-top: 8px; padding: 18px 22px; }
.lp-answer summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font: 600 17px/24px var(--ui); color: var(--ink); }
.lp-answer summary::-webkit-details-marker { display: none; }
.lp-answer summary .i { width: 22px; height: 22px; transition: transform .2s; }
.lp-answer[open] summary .i { transform: rotate(180deg); }
.lp-answer .prose { margin-top: 12px; } .lp-answer .prose p { margin: 0 0 12px; } .lp-answer .prose p:last-child { margin-bottom: 0; }
.section:has(> .lp-sec-more) { padding-top: 0; }
@media (max-width: 640px) { .lp-table th, .lp-table td { padding: 12px 14px; } .lp-table td:first-child { width: auto; } }
/* AML-623 (17 Nov 2026): 3+ column tables, a table before after-text, text after the points tiles. */
.lp-table-wide td:first-child { width: auto; font-weight: 600; color: var(--ink); }
.lp-table-wide th, .lp-table-wide td { padding: 14px 16px; }
.lp-stack .lp-table { margin: 8px 0 24px; }
.lp-points-main .lp-after p { margin: 0 0 12px; } .lp-points-main .lp-after p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .lp-table-wide { overflow: visible; }
  .lp-table-wide table, .lp-table-wide tbody, .lp-table-wide tr, .lp-table-wide td, .lp-table-wide caption { display: block; width: auto; }
  .lp-table-wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lp-table-wide caption { padding: 14px 16px 4px; }
  .lp-table-wide tr { padding: 12px 16px; border-top: 1px solid var(--line-soft, var(--line)); }
  .lp-table-wide td { padding: 2px 0; border-top: 0; overflow-wrap: anywhere; }
  .lp-table-wide td + td { margin-top: 8px; }
  .lp-table-wide td[data-label]::before { content: attr(data-label); display: block; font: 600 12px/18px var(--ui); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
}
