/* Leonico Ltd: Direction B (Bold / Editorial). Poppins, charcoal and #f9d342 yellow. */
:root {
    --ink: #141414;
    --ink-2: #0c0c0c;
    --yellow: #f9d342;
    --line: #2c2c2c;
    --muted: #9a9a9a;
    --text-dark: #d0d0d0;
    --text: #444;
    --surface: #f4f4f4;
    --wrap: 1320px;
    --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.m-only { display: none; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--yellow); }
.topbar .wrap { display: flex; height: 36px; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 20; }
.site-header .wrap { display: flex; height: 96px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand svg { width: 44px; height: 44px; }
.wordmark { font-size: 18px; font-weight: 300; letter-spacing: .42em; }
.nav { display: flex; align-items: center; gap: 40px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #cfcfcf; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.nav .nav-contact { display: none; }
.btn-outline-light { border: 2px solid #fff; padding: 12px 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; transition: color .15s, border-color .15s; }
.btn-outline-light:hover { border-color: var(--yellow); color: var(--yellow); }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: -8px; cursor: pointer; font-size: 22px; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: background .15s, color .15s, border-color .15s; cursor: pointer; border: 0; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--yellow); color: var(--ink); }
.btn-ghost { border: 2px solid #3a3a3a; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-line-light { border: 2px solid #fff; color: #fff; }
.btn-line-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-line-yellow { display: inline-flex; border: 2px solid var(--yellow); color: var(--yellow); padding: 20px 32px; gap: 24px; }
.btn-line-yellow:hover { background: var(--yellow); color: var(--ink); }
.text-link { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* Hero */
.hero { background: var(--ink); color: #fff; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; min-height: 640px; border-top: 1px solid var(--line); padding: 64px 0 80px; }
.hero-main { grid-column: span 8; }
.hero-side { grid-column: span 4; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--yellow); }
.hero h1 { margin-top: 32px; font-size: clamp(56px, 7.2vw, 104px); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.045em; }
.hl { color: var(--yellow); }
.lede { border-left: 2px solid var(--yellow); padding-left: 20px; font-size: 17px; line-height: 32px; color: var(--text-dark); }
.hero-side .btn-yellow { margin-top: 40px; padding: 20px 24px; font-size: 15px; letter-spacing: .08em; }
.hero-side .btn-ghost { margin-top: 12px; padding: 18px 24px; letter-spacing: .08em; font-weight: 600; }
.strip { background: var(--yellow); color: var(--ink); }
.strip .wrap { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.strip a { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-left: 1px solid rgba(20, 20, 20, .2); }
.strip a:first-child { border-left: 0; padding-left: 0; }
.strip a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 0; }
.section-yellow { background: var(--yellow); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 4px solid var(--ink); padding-bottom: 24px; }
.section-head .title { display: flex; align-items: flex-end; gap: 24px; }
.num { font-size: 96px; font-weight: 800; line-height: 1; color: var(--yellow); }
.section-yellow .num { color: #fff; }
.section-head h2, .about h2 { padding-bottom: 8px; font-size: 48px; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.1; }
.section-head .note { max-width: 384px; padding-bottom: 8px; font-size: 14px; color: #555; }
.section-yellow .section-head .note { color: #3a3a3a; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }

/* Cards */
.card { display: flex; flex-direction: column; padding: 40px; }
.card-dark { background: var(--ink); color: #fff; }
.card-line { border: 4px solid var(--ink); }
.card-white { background: #fff; }
.card-more { border: 4px dashed #c9c9c9; justify-content: space-between; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.badge { padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; white-space: nowrap; }
.badge-outline-y { border: 1px solid var(--yellow); color: var(--yellow); }
.badge-ink { background: var(--ink); color: var(--yellow); }
.badge-outline { border: 2px solid var(--ink); }
.badge-thin { border: 1px solid var(--ink); }
.meta { margin-top: 32px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #777; }
.card-dark .meta { color: var(--muted); }
.card h3 { margin-top: 12px; font-size: 36px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.15; }
.card h3 a:hover, .build-tool h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.tagline { margin-top: 16px; font-size: 24px; font-weight: 600; line-height: 1.35; }
.desc { margin-top: 16px; font-size: 15px; line-height: 28px; color: var(--text); }
.card-dark .desc { color: #c8c8c8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; background: var(--line); font-size: 14px; }
.steps li { background: var(--ink); padding: 16px; }
.steps li:first-child { padding-left: 0; }
.steps b { display: block; color: var(--yellow); }
.notice { display: flex; gap: 12px; margin-top: 24px; background: #fdf6d8; padding: 16px; font-size: 13px; line-height: 24px; color: #5a4a00; }
.notice .ico { margin-top: 5px; }
.small-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: #666; }
.card .btn { margin-top: 32px; }
.card-dark .btn { margin-top: auto; }
.card-dark .steps + .btn { margin-top: 32px; }
.card-more h3 { margin-top: 32px; color: #bdbdbd; }
.card-more .desc { max-width: 448px; color: #555; }
.card-more .text-link { margin-top: 32px; align-self: flex-start; }
.plus-box { display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border: 2px dashed #999; color: #999; font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.chips li { border: 1px solid var(--ink); padding: 4px 12px; }

/* Project logos (images live in css/logos.css as data URIs) */
.logo-ownerguild { width: 64px; height: 64px; }
.logo-freescottishwills { width: 64px; height: 64px; }
.logo-linkmatchmaking { width: 88px; height: 64px; }
.logo-hightae { width: 60px; height: 64px; }
.logo-lockerbie { width: 124px; height: 46px; }
.logo-cookieoptions { width: 56px; height: 56px; flex-shrink: 0; }
.logo-outsourcingboss { width: 300px; max-width: 100%; height: 62px; background-position: left center; }

/* How we build */
.build { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; margin-top: 48px; }
.build-tool { grid-column: span 8; display: flex; gap: 32px; background: var(--surface); padding: 40px; }
.build-tool .head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.build-tool h3 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.build-tool .tagline { margin-top: 12px; font-size: 20px; }
.build-tool .desc { margin-top: 12px; }
.build-aside { grid-column: span 4; background: var(--ink); color: #fff; padding: 40px; }
.build-aside .ico { font-size: 24px; color: var(--yellow); }
.build-aside p:first-of-type { margin-top: 20px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.build-aside p + p { margin-top: 12px; font-size: 14px; line-height: 24px; color: #c8c8c8; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.about-grid > div:first-child { grid-column: span 5; }
.about-grid > div:last-child { grid-column: span 7; align-self: end; }
.about h2 { margin-top: 8px; padding: 0; }
.about p { font-size: 18px; line-height: 32px; color: var(--text-dark); }
.about .btn-line-yellow { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--ink-2); color: #a9a9a9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0; font-size: 14px; }
.footer-grid .wordmark { color: #fff; }
.footer-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: #fff; }
.footer-grid ul { margin-top: 16px; display: grid; gap: 8px; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--yellow); }
.addr { margin-top: 16px; line-height: 24px; }
.addr + .addr { margin-top: 12px; }
.addr b { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #fff; }
.footer-bottom { border-top: 1px solid #222; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; font-size: 12px; }

/* Inner pages */
.page-hero { background: var(--ink); color: #fff; }
.page-hero .wrap { border-top: 1px solid var(--line); padding: 40px 0 80px; }
.crumbs { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #8a8a8a; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--yellow); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; margin-top: 48px; }
.page-hero-grid > div:first-child { grid-column: span 8; }
.page-hero-grid > div:last-child { grid-column: span 4; align-self: end; }
.page-hero h1 { font-size: clamp(52px, 6.6vw, 96px); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.045em; }
.page-hero .btn-yellow { margin-top: 32px; padding: 20px 24px; letter-spacing: .08em; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px; padding: 96px 0; }
.split-main { grid-column: span 7; }
.split-side { grid-column: span 5; }
.prose { font-size: 17px; line-height: 32px; color: #333; }
.prose > * + * { margin-top: 24px; }
.prose .big { font-size: 24px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sub-head { display: flex; align-items: flex-end; gap: 20px; border-bottom: 4px solid var(--ink); padding-bottom: 16px; }
.sub-head .num { font-size: 72px; }
.sub-head h2 { font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.box-yellow { background: var(--yellow); padding: 40px; }
.box-yellow h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.link-list { margin-top: 24px; font-size: 15px; font-weight: 600; }
.link-list li + li { border-top: 1px solid rgba(20, 20, 20, .2); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.link-list a span { display: flex; align-items: center; gap: 12px; }
.link-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.box-line { margin-top: 32px; border: 4px solid var(--ink); padding: 32px; }
.box-line .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: #777; }
.box-line p + p, .box-line p + .text-link { margin-top: 12px; }
.box-line .text-link { display: inline-block; margin-top: 16px; }
.box-line .v { font-size: 15px; line-height: 28px; color: var(--text); }
.logo-card { padding: 24px 0 8px; }

/* Company pages: screenshot, then the short description, then the visit link */
.company { padding: 64px 0 96px; }
.page-status { margin-bottom: 20px; }
.site-shot { margin: 0; border: 4px solid var(--ink); background: #fff; }
.site-shot img { width: 100%; height: auto; }
.site-shot figcaption { padding: 12px 16px; border-top: 4px solid var(--ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #555; }
.company .prose { max-width: 760px; margin-top: 40px; }
.company .btn { margin-top: 32px; max-width: 480px; }

/* Legal pages */
.legal { max-width: 780px; padding: 80px 0 96px; }
.legal .updated { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: #777; }
.legal h3 { margin-top: 48px; padding-bottom: 12px; border-bottom: 4px solid var(--ink); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.legal h3 + p { margin-top: 20px; }
.legal p { margin-top: 16px; font-size: 16px; line-height: 28px; color: #333; }
.legal a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Contact */
.form { display: grid; gap: 20px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.field input, .field textarea { width: 100%; border: 2px solid var(--ink); border-radius: 0; background: #fff; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow); }
.form .btn { justify-self: start; min-width: 280px; }
.alert { border-left: 4px solid #bc423f; background: #fbeceb; padding: 16px 20px; font-size: 15px; color: #7a1f1c; margin-bottom: 24px; }
.alert[hidden] { display: none; }

/* Tablet */
@media (max-width: 1100px) {
    .nav { gap: 24px; }
    .topbar .wrap span:nth-child(2) { display: none; }
    .hero-main, .hero-side { grid-column: span 12; }
    .hero-grid { min-height: 0; }
    .hero-side { max-width: 560px; }
    .strip .wrap { grid-template-columns: repeat(3, 1fr); }
    .strip a:nth-child(4) { border-left: 0; padding-left: 0; }
    .build-tool, .build-aside { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split-main, .split-side, .page-hero-grid > div { grid-column: span 12 !important; }
}

/* Mobile: matches home-editorial-mobile (390px) */
@media (max-width: 860px) {
    :root { --gutter: 20px; }
    .d-only { display: none !important; }
    .m-only { display: block; }
    span.m-only { display: inline; }
    .topbar, .strip { display: none; }
    .site-header .wrap { height: 64px; }
    .brand { gap: 12px; }
    .brand svg { width: 28px; height: 28px; }
    .wordmark { font-size: 14px; letter-spacing: .35em; }
    .header-cta { display: none; }
    .menu-btn { display: block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px; font-size: 14px; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav .nav-contact { display: block; color: var(--yellow); border-bottom: 0; }

    .hero-grid { display: block; padding: 32px 0 40px; border-top: 0; }
    .eyebrow { font-size: 10px; }
    .eyebrow::before { display: none; }
    .hero h1 { margin-top: 16px; font-size: 52px; letter-spacing: -.04em; }
    .lede { margin-top: 24px; padding-left: 16px; font-size: 14px; line-height: 24px; }
    .hero-side .btn-yellow { margin-top: 24px; padding: 16px 20px; font-size: 14px; }
    .hero-side .btn-ghost { display: none; }

    .section { padding: 40px 0; }
    .section-head { border-bottom-width: 4px; padding-bottom: 12px; }
    .section-head .title { gap: 12px; }
    .num { font-size: 48px; }
    .section-head h2 { padding-bottom: 0; font-size: 24px; }
    .section-head .note { display: none; }
    .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .card { padding: 20px; }
    .badge { padding: 2px 8px; font-size: 10px; letter-spacing: .14em; }
    .meta, .tagline, .steps, .chips, .small-note { display: none; }
    .card h3 { margin-top: 16px; font-size: 24px; }
    .desc { margin-top: 8px; font-size: 14px; line-height: 24px; }
    .notice { margin-top: 12px; padding: 12px; font-size: 12px; line-height: 20px; }
    .notice .ico { display: none; }
    .card .btn, .card-dark .btn, .card-dark .steps + .btn { margin-top: 16px; align-self: flex-start; display: inline-flex; gap: 6px; padding: 0; background: none; border: 0; font-size: 12px; letter-spacing: .12em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 4px; }
    .card .btn .ico { display: none; }
    .card .btn::after { content: "\2192"; }
    .card-dark .btn { color: var(--yellow); text-decoration: none; }
    .card .btn:hover { background: none; color: inherit; }
    .card-more .text-link { display: none; }
    .card-more h3 { margin-top: 16px; }
    .plus-box { width: auto; height: auto; border: 0; justify-content: flex-start; font-size: 20px; }
    .logo-ownerguild, .logo-freescottishwills { width: 40px; height: 40px; }
    .logo-linkmatchmaking { width: 56px; height: 40px; }
    .logo-hightae { width: 38px; height: 40px; }
    .logo-lockerbie { width: 84px; height: 31px; }
    .logo-cookieoptions { width: 36px; height: 36px; }

    .build { margin-top: 24px; gap: 16px; }
    .build-tool { flex-direction: column; gap: 12px; padding: 20px; }
    .build-tool h3 { font-size: 20px; }
    .build-tool .head { gap: 8px; }
    .build-tool .desc { margin-top: 8px; }
    .build-aside { padding: 20px; }
    .about-grid > div { grid-column: span 12 !important; }
    .about h2 { font-size: 28px; }
    .about p { margin-top: 16px; font-size: 15px; line-height: 26px; }
    .about .btn-line-yellow { padding: 14px 20px; font-size: 13px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 8px; font-size: 12px; line-height: 24px; }
    .footer-grid .wordmark { font-size: 12px; }
    .footer-cols { display: none; }
    .footer-also ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
    .footer-also .footer-h { display: none; }
    .addr { margin-top: 12px; line-height: 20px; }
    .footer-bottom { border-top: 0; }
    .footer-bottom .wrap { flex-direction: column; gap: 4px; padding: 8px 0 32px; }

    .page-hero .wrap { padding: 24px 0 40px; border-top: 0; }
    .crumbs { font-size: 10px; }
    .page-hero-grid { margin-top: 24px; gap: 20px; }
    .page-hero h1 { font-size: 48px; letter-spacing: -.04em; }
    .page-hero .btn-yellow { margin-top: 20px; padding: 16px 20px; }
    .split { padding: 40px 0; gap: 32px; }
    .prose { font-size: 15px; line-height: 26px; }
    .prose > * + * { margin-top: 16px; }
    .prose .big { font-size: 20px; }
    .sub-head .num { font-size: 48px; }
    .sub-head h2 { font-size: 22px; }
    .box-yellow, .box-line { padding: 20px; }
    .legal { padding: 40px 0 56px; }
    .legal h3 { margin-top: 36px; font-size: 19px; }
    .legal p { font-size: 15px; line-height: 26px; }
    .form .row2 { grid-template-columns: 1fr; }
    .form .btn { min-width: 0; width: 100%; }
    .logo-outsourcingboss { width: 220px; height: 46px; }
    .company { padding: 32px 0 48px; }
    .page-status { margin-bottom: 16px; }
    .company .prose { margin-top: 24px; }
    .company .btn { margin-top: 20px; max-width: none; }
}

/* Legal page titles are long, so they get a smaller display size */
.legal-hero h1 { font-size: clamp(40px, 5vw, 72px); }
@media (max-width: 860px) { .legal-hero h1 { font-size: 34px; letter-spacing: -.02em; } }
