/* Homepage and platform page, launch story 2026-10.
   Concept: the checked file. One bold element (the file specimen in the hero);
   everything else stays quiet. */

:root {
    --ink: #0E1A2B;
    --ink-soft: #3D4A5C;
    --muted: #5E6B7D;
    --rule: #D9E0E8;
    --mist: #EEF2F6;
    --paper: #FFFFFF;
    --check: #15803D;
    --check-wash: #E7F4EC;
    --flag: #B42318;
    --flag-wash: #FCEDEB;
    --serif: 'Source Serif 4', Georgia, serif;
}

.lp { color: var(--ink); }
.lp h1, .lp h2, .lp h3 { color: var(--ink); letter-spacing: -0.02em; }
.lp p { color: var(--ink-soft); }
.lp a { color: inherit; }
.lp .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    padding: 0.85rem 1.4rem; border-radius: 8px; border: 1.5px solid transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.lp-btn-primary { background: var(--saffron); color: var(--ink) !important; }
.lp-btn-primary:hover { background: #FF8F26; }
.lp-btn-quiet { border-color: var(--rule); color: var(--ink) !important; background: var(--paper); }
.lp-btn-quiet:hover { border-color: var(--ink); }
.lp-btn:focus-visible, .lp a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ===== Hero ===== */
.lp-hero { padding: 136px 0 96px; background: var(--paper); }
.lp-hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 750; margin-bottom: 22px; letter-spacing: -0.035em; }
.lp-hero .lede { font-size: 1.15rem; line-height: 1.6; max-width: 34em; margin-bottom: 30px; }
.lp-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-hero .footnote { font-size: 0.92rem; color: var(--muted); }
.lp-hero .footnote a { color: var(--blue); font-weight: 600; text-decoration: none; }
.lp-hero .footnote a:hover { text-decoration: underline; }

/* The file specimen */
.file {
    background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
    box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(14, 26, 43, 0.35);
    overflow: hidden;
}
.file-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.file-head strong { font-size: 1rem; }
.file-head span { font-size: 0.85rem; color: var(--muted); }
.file ol { list-style: none; margin: 0; padding: 0; }
.file li {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px;
    padding: 14px 22px; border-bottom: 1px solid var(--mist);
}
.doc-name { font-size: 0.82rem; color: var(--muted); margin-bottom: 2px; }
.doc-value { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.doc-value mark { background: transparent; box-shadow: inset 0 -0.45em 0 rgba(255, 122, 0, 0.18); color: inherit; padding: 0 1px; }
.note { font-size: 0.86rem; line-height: 1.45; padding-left: 26px; position: relative; color: var(--ink-soft); align-self: center; }
.note::before {
    content: ''; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%;
    background: var(--check-wash) no-repeat center / 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='%2315803D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.file li.flagged { background: var(--flag-wash); }
.file li.flagged .note { color: var(--flag); font-weight: 600; }
.file li.flagged .note::before {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.5v4.2M6 9.1v.1' fill='none' stroke='%23B42318' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}
.file-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: var(--ink); color: #fff; }
.file-foot p { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; margin: 0; }
.file-foot b { color: #fff; }
.decide { font-size: 0.85rem; font-weight: 600; padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.35); white-space: nowrap; }

/* One orchestrated moment: the file gets checked, row by row. */
@media (prefers-reduced-motion: no-preference) {
    .file li .note { opacity: 0; transform: translateX(-6px); animation: check-in .45s ease forwards; }
    .file li:nth-child(1) .note { animation-delay: .5s; }
    .file li:nth-child(2) .note { animation-delay: .85s; }
    .file li:nth-child(3) .note { animation-delay: 1.2s; }
    .file li:nth-child(4) .note { animation-delay: 1.55s; }
    .file li:nth-child(5) .note { animation-delay: 1.9s; }
    .file li.flagged { background: transparent; animation: flag-in .6s ease 1.55s forwards; }
    .file-foot { opacity: 0; animation: check-in .5s ease 2.4s forwards; }
}
@keyframes check-in { to { opacity: 1; transform: none; } }
@keyframes flag-in { to { background: var(--flag-wash); } }

/* ===== Sections ===== */
.lp-section { padding: 96px 0; }
.lp-section.mist { background: var(--mist); }
.lp-section.ink { background: var(--ink); }
.lp-section.ink h2, .lp-section.ink h3 { color: #fff; }
.lp-section.ink p { color: rgba(255, 255, 255, 0.75); }
.lp-head { max-width: 46rem; margin-bottom: 52px; }
.lp-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 720; margin-bottom: 16px; }
.lp-head p { font-size: 1.1rem; line-height: 1.65; }

/* Principles: three plain columns, no cards */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles h3 { font-size: 1.2rem; font-weight: 680; margin-bottom: 10px; }
.principles p { line-height: 1.65; }

/* Lending lifecycle: a real sequence, so it is numbered */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: stage; border-top: 2px solid var(--ink); }
.lifecycle > li { counter-increment: stage; padding: 22px 24px 0 0; }
.lifecycle > li::before { content: counter(stage); display: block; font-size: 0.9rem; font-weight: 700; color: #A84F0A; margin-bottom: 8px; }
.lifecycle h3 { font-size: 1.15rem; font-weight: 680; margin-bottom: 14px; }
.lifecycle ul { list-style: none; padding: 0; margin: 0; }
.lifecycle ul li { padding: 10px 0; border-top: 1px solid var(--rule); line-height: 1.5; color: var(--ink-soft); font-size: 0.97rem; }
.lifecycle ul li b { color: var(--ink); font-weight: 600; display: block; }
.lifecycle > li.start h3::after { content: 'Where most lenders start'; display: block; margin-top: 6px; font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.offer { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.offer p { font-size: 1.12rem; color: var(--ink); margin: 0; max-width: 40em; }

/* View of the whole book: the questions are the point, set like typed queries */
.book { margin-top: 56px; display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: start; }
.book h3 { font-size: 1.25rem; font-weight: 680; margin-bottom: 10px; }
.book p { line-height: 1.65; }
.book ul { list-style: none; padding: 0; margin: 0; }
.book li { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); padding: 14px 0 14px 18px; border-left: 3px solid var(--saffron); margin-bottom: 10px; background: var(--mist); padding-right: 16px; }

/* Platform parts: a definition list, names large */
.parts { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.part { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.part dt { font-size: 1.55rem; font-weight: 720; letter-spacing: -0.02em; }
.part dt small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.part dd { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: 1.02rem; max-width: 40em; }
.part .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--blue) !important; text-decoration: none; }
.part .more:hover { text-decoration: underline; }

/* Deployment */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.where ul { list-style: none; padding: 0; margin: 0; }
.where li { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.75); line-height: 1.6; }
.where li b { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 2px; }

.beyond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.beyond h3 { font-size: 1.12rem; font-weight: 680; margin-bottom: 8px; }
.beyond p { line-height: 1.6; }

.closing { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.closing h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 720; margin-bottom: 10px; }
.closing p { font-size: 1.1rem; margin: 0; }

/* Platform page hero (no specimen) */
.lp-hero.plain { background: var(--paper); padding-bottom: 56px; }
.lp-hero.plain .wrap { display: block; }
.lp-hero.plain h1 { max-width: 16em; }

@media (max-width: 1024px) {
    .lp-hero .wrap { grid-template-columns: 1fr; gap: 44px; }
    .lifecycle { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .part { grid-template-columns: 180px 1fr; }
    .where { grid-template-columns: 1fr; gap: 32px; }
    .book { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
    .lp-hero { padding: 112px 0 64px; }
    .lp-section { padding: 68px 0; }
    .lp .wrap { padding: 0 16px; }
    .principles, .beyond { grid-template-columns: 1fr; gap: 32px; }
    .lifecycle { grid-template-columns: 1fr; }
    .file li { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; }
    .file-head, .file-foot { padding-left: 16px; padding-right: 16px; }
    .part { grid-template-columns: 1fr; gap: 8px; }
    .offer, .closing { flex-direction: column; align-items: flex-start; padding-left: 20px; padding-right: 20px; }
    .closing { padding: 0; }
}
.lp-head:last-child { margin-bottom: 0; }
.lp-head + .lp-head { margin-top: 48px; }
.part dd p { margin: 0; }
.team-note { margin-top: 24px; max-width: 46rem; color: var(--muted); line-height: 1.6; }
.lp-btn { white-space: nowrap; }
@media (max-width: 380px) { .lp-btn { white-space: normal; } }

/* ===== Blog ===== */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 26px 0; text-decoration: none; }
.post-list .cat { font-size: 0.9rem; font-weight: 600; color: #A84F0A; padding-top: 4px; }
.post-list h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.post-list a:hover h2 { color: var(--blue); }
.post-list p { margin: 0; line-height: 1.6; max-width: 46rem; }
.article { padding: 128px 0 72px; }
.article .wrap { max-width: 760px; }
.article .crumb { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.article .crumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.article h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 18px; }
.article .standfirst { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 14px; }
.article .meta { font-size: 0.9rem; color: var(--muted); padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.75; color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.25em; color: var(--ink); }
.prose h2 { font-family: 'Schibsted Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.015em; margin: 1.9em 0 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a { color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--saffron); padding: 4px 0 4px 18px; color: var(--ink-soft); font-style: italic; }
.prose .sources { font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.92rem; line-height: 1.6; }
.prose .sources li { word-break: break-word; }
.more-posts { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.more-posts h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.more-posts ul { list-style: none; padding: 0; margin: 0; }
.more-posts li { margin-bottom: 10px; }
.more-posts a { color: var(--blue); text-decoration: none; font-weight: 600; }
.more-posts a:hover { text-decoration: underline; }
@media (max-width: 680px) {
    .post-list a { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
    .article { padding: 104px 0 56px; }
    .prose { font-size: 1.06rem; }
}

/* ===== Broad homepage: hero board, capability tags, industry tiles ===== */
.board { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(14, 26, 43, 0.35); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.board-head span { font-size: 0.85rem; color: var(--muted); }
.board-body { padding: 26px 22px; min-height: 230px; }
.board-world { font-size: 0.9rem; font-weight: 600; color: #A84F0A; margin: 0 0 4px; }
.board-time { font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }
.board-what { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.board-chip { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--flag-wash); color: var(--flag); }
.board-chip[data-tone="ok"] { background: var(--check-wash); color: var(--check); }
.board-foot { padding: 14px 22px; background: var(--ink); }
.board-foot a { color: #fff; font-weight: 600; text-decoration: none; }
.board-foot a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
    .board-in { animation: board-in .5s ease; }
    @keyframes board-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.part .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.part .tags span { font-size: 0.82rem; padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); }
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); }
.world:hover, .world:focus-visible { border-color: var(--ink); }
.world-name { font-size: 0.9rem; font-weight: 600; color: #A84F0A; }
.world strong { font-size: 1.15rem; line-height: 1.3; flex: 1; }
.world-cta { font-weight: 600; color: var(--blue); }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .worlds { grid-template-columns: 1fr; } }
.page-top { padding-bottom: 48px; }
