/*
Theme Name: LogisBail Promo
Description: Landing page and four-language quick-start guide for LogisBail Québec.
Version: 1.0.0
Requires at least: 5.5
Requires PHP: 7.4
Text Domain: logisbail-promo-theme
*/
:root {
    --navy: #101d3b;
    --ink: #172741;
    --muted: #4c5d72;
    --blue: #244db7;
    --soft: #f2f6fd;
    --line: #dce5f2;
    --paper: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid #d27100; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.15rem; margin-bottom: .65rem; }
.wrap { width: min(1280px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 10; background: white; padding: .6rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header, .plain-header { background: white; border-bottom: 1px solid var(--line); }
.header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.16rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand small { font-size: .72em; }
.mark { display: grid; place-items: center; background: var(--navy); color: white; width: 2.35rem; height: 2.35rem; border-radius: .65rem; font-size: .88rem; }
.section-nav, .languages { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; }
.section-nav a, .languages a { text-decoration: none; font-size: .83rem; font-weight: 660; padding-block: .24rem; }
.section-nav a:hover, .languages a:hover, .languages a[aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: .27rem; }
.languages a[aria-current] { font-weight: 800; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; border: 1px solid transparent; padding: .77rem 1.05rem; border-radius: .55rem; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; }
.button:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-cta { font-size: .83rem; background: var(--navy); color: white; }
.primary { background: #aec9ff; color: #101d3b; }
.outline { border-color: #9caece; color: white; }
.hero { background: radial-gradient(ellipse at 85% 20%, #243e72, transparent 60%), var(--navy); color: white; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.25rem, 8vw, 7rem); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.8rem); text-wrap: balance; }
.eyebrow { display: inline-block; color: #d7e5ff; border: 1px solid #6380b0; padding: .25rem .68rem; border-radius: 2rem; font-size: .76rem; font-weight: 800; letter-spacing: .075em; margin-bottom: 1.25rem; }
.hero-intro { color: #d3def2; font-size: clamp(1rem, 1.8vw, 1.22rem); margin-top: 1.15rem; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.preview { background: #f5f8ff; color: var(--ink); border: 1px solid #d9e5ff; border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 60px #040e2480; }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #e6eefc; padding: .65rem 1rem; color: #3e5273; font-size: .78rem; }
.dots { color: #496692; font-size: .63rem; letter-spacing: .15em; }
.preview-body { padding: clamp(.8rem, 3vw, 1.55rem); }
.preview-heading { font-size: clamp(1.18rem, 2.4vw, 1.6rem); font-weight: 800; }
.preview-caption { color: var(--muted); font-size: .85rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-block: 1rem; }
.metrics div { background: white; border: 1px solid var(--line); border-radius: .6rem; padding: .58rem; }
.metrics span, .metrics strong { display: block; overflow-wrap: anywhere; }
.metrics span { color: var(--muted); font-size: .76rem; }
.metrics strong { font-size: clamp(.78rem, 1.5vw, 1.13rem); }
.ledger-heading { font-weight: 750; }
.ledger-row { display: flex; justify-content: space-between; gap: .5rem; align-items: center; border-bottom: 1px solid var(--line); padding: .55rem 0; font-size: .85rem; }
.ledger-row strong { border-radius: 1rem; padding: .13rem .52rem; }
.paid { color: #15543e; background: #def2e9; }
.due { color: #70420f; background: #feeccf; }
.section { padding-block: clamp(2.8rem, 6vw, 5.5rem); scroll-margin-top: 1rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 2vw, 1.5rem); }
.card p, .plan-intro, .guide-panel p { color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .65rem; background: var(--soft); color: var(--blue); font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.privacy { background: var(--soft); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: start; }
.privacy h2 { margin: 0; }
.privacy p + p { margin-top: .8rem; font-weight: 670; }
.guide-box { border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
.guide-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; background: var(--soft); padding: .55rem; }
.guide-tabs button { display: flex; align-items: center; gap: .55rem; border: 1px solid transparent; border-radius: .55rem; background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-align: start; padding: .6rem; cursor: pointer; }
.guide-tabs button:hover { border-color: #8198c1; }
.guide-tabs button[aria-selected="true"] { color: white; background: var(--navy); }
.guide-tabs button span { display: grid; place-items: center; flex: 0 0 1.55rem; height: 1.55rem; border: 1px solid currentColor; border-radius: 50%; font-size: .78rem; }
.guide-panel { padding: clamp(1.1rem, 4vw, 2rem); scroll-margin-top: 1rem; }
.guide-panel:focus-visible { outline-offset: -4px; }
.guide-panel + .guide-panel { border-top: 1px solid var(--line); }
.text-link { display: inline-block; color: var(--blue); margin-top: .6rem; font-weight: 700; }
.plans { background: var(--soft); }
.plan-intro { max-width: 72ch; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; background: white; margin-block: 1.25rem; }
th, td { border: 1px solid var(--line); text-align: start; vertical-align: top; padding: .78rem; overflow-wrap: anywhere; }
thead { background: var(--navy); color: white; }
thead th:first-child { width: 25%; }
.site-footer { background: var(--navy); color: white; padding-block: 1.4rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .45rem 1rem; }
.site-footer span { color: #d3def2; font-size: .9rem; }
.plain-header, .plain-content { padding-block: 1.5rem; }
.plain-content article + article { margin-top: 2rem; }
@media (max-width: 1080px) {
    .section-nav { order: 2; flex: 0 0 100%; }
}
@media (max-width: 820px) {
    .hero-grid, .privacy-grid { grid-template-columns: 1fr; }
    .cards, .guide-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
    .wrap { width: calc(100% - 2rem); }
    .header-cta { order: 3; }
    .cards { grid-template-columns: 1fr; }
    .guide-tabs button, th, td { padding: .48rem; font-size: .86rem; }
    .site-footer .wrap { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
