/*
 * The product homepage's styles, ported from the EduHub app's in-app page
 * (Core's welcome.blade.php). Loaded after Bootstrap and Bootstrap Icons, as
 * there. Every custom class carries the `wl-` prefix: Bootstrap owns
 * .container .btn .badge .nav .card .lead and friends.
 */

/* From the app's shared stylesheet (public/css/app.css): the colour and
   shadow tokens this page reads, the box model, the page's font, and the
   language button. Copied once; the homepage does not follow later changes
   to the app's file. */
:root {
    --primary: #1e4c91;
    --primary-hover: #163b73;
    --primary-light: #e0eaf7;
    --body-bg: #f1f5f9;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }

body {
    background: var(--body-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    color: #1e293b;
}

.topbar-lang-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    transition: background .15s ease, color .15s ease;
}

.topbar-lang-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Page tokens. The brand colours, page background and the two card
   shadows come from the :root above; light theme only, like the app. */
.wl-page {
    --wl-primary-ink: #0f2a52;
    --wl-surface: #ffffff;
    --wl-surface-2: #f8fafc;
    --wl-text: #1e293b;
    --wl-muted: #64748b;
    --wl-faint: #94a3b8;
    --wl-border: #e2e8f0;
    --wl-border-soft: #f1f5f9;
    --wl-ok-bg: #dcfce7;
    --wl-ok: #16a34a;
    --wl-warn-bg: #fef9c3;
    --wl-warn: #a16207;
    --wl-bad-bg: #fee2e2;
    --wl-bad: #dc2626;
    --wl-info-bg: #dbeafe;
    --wl-info: #1d4ed8;
    --wl-purple-bg: #ede9fe;
    --wl-purple: #7c3aed;
    --wl-orange-bg: #ffedd5;
    --wl-orange: #ea580c;
    --wl-orange-ink: #c2410c;
    --wl-bar-muted: #9db7de;
    --wl-tab-border: #b9cdea;
    --wl-footer-text: #a9bcd8;
    --wl-shadow-lg: 0 20px 60px rgba(15, 42, 82, .18);
    --wl-focus-ring: 0 0 0 3px rgba(30, 76, 145, .3);
    --wl-nav-height: 64px;
    background: var(--body-bg);
    color: var(--wl-text);
    font-size: 14px;
    line-height: 1.55;
}
.wl-page h1, .wl-page h2, .wl-page h3, .wl-page p { margin: 0; }
.wl-page h1, .wl-page h2, .wl-page h3 { color: inherit; line-height: inherit; }

.wl-container { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.wl-section { padding-block: 72px; }
/* An in-page link lands below the sticky top bar, not under it. */
.wl-page section[id] { scroll-margin-top: var(--wl-nav-height); }
.wl-section-flush-top { padding-top: 0; }
.wl-center { text-align: center; }
.wl-center .wl-lead { margin-inline: auto; }
.wl-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.wl-h-section { font-size: 28px; font-weight: 700; line-height: 1.25; text-wrap: balance; margin-top: 8px; }
.wl-lead { color: var(--wl-muted); font-size: 16px; max-width: 62ch; margin-top: 12px; }
.wl-muted { color: var(--wl-muted); }
/* Text for screen readers only: a state the previews otherwise show
   by colour and icon. */
.wl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Top bar */
.wl-nav { position: sticky; top: 0; z-index: 5; background: var(--wl-surface); box-shadow: 0 1px 0 var(--wl-border); }
.wl-nav-inner { display: flex; align-items: center; gap: 24px; height: var(--wl-nav-height); }
.wl-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--wl-text); text-decoration: none; }
.wl-brand:hover { color: var(--wl-text); }
.wl-brand-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.wl-brand-icon-sm { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.wl-nav-links { display: flex; gap: 20px; font-size: 14px; }
.wl-nav-links a { color: var(--wl-muted); text-decoration: none; }
.wl-nav-links a:hover { color: var(--primary); }
.wl-nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.wl-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: normal; padding: 10px 18px; cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.wl-btn-primary { background: var(--primary); color: #fff; }
.wl-btn-primary:hover { background: var(--primary-hover); color: #fff; }
.wl-btn-ghost { background: var(--wl-surface); color: var(--primary); border-color: var(--wl-border); }
.wl-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.wl-btn-sm { padding: 7px 14px; font-size: 13px; }
/* A button that takes no press reads as one: the contact form's send
   button, until its script turns it on and while a send is on its way. */
.wl-btn:disabled { opacity: .6; cursor: default; }
.wl-btn:focus-visible, .wl-tab:focus-visible, .wl-panel:focus-visible, .wl-nav-links a:focus-visible { outline: none; box-shadow: var(--wl-focus-ring); }

/* Hero: the headline on the left, a product preview on the right */
.wl-hero { padding-block: 64px 72px; background: var(--wl-surface); }
.wl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.wl-hero-title { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; margin-top: 12px; }
.wl-hero .wl-lead { font-size: 17px; }
.wl-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.wl-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--wl-muted); background: var(--wl-surface-2); border: 1px solid var(--wl-border); border-radius: 20px; padding: 4px 10px; }
.wl-chip .bi { color: var(--primary); }

/* App preview, drawn from the app's own components */
.wl-app { background: var(--body-bg); border-radius: 12px; box-shadow: var(--wl-shadow-lg); overflow: hidden; border: 1px solid var(--wl-border); display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 340px; font-size: 12px; }
.wl-app-side { background: var(--wl-surface); padding: 12px 10px; display: grid; gap: 2px; align-content: start; box-shadow: 1px 0 0 var(--wl-border); }
.wl-app-brand { font-size: 13px; margin-bottom: 10px; gap: 7px; }
.wl-app-brand .wl-brand-icon { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
.wl-app-group { font-size: 9px; letter-spacing: .08em; color: var(--wl-faint); font-weight: 600; margin: 10px 6px 4px; }
.wl-app-link { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; color: var(--wl-muted); }
.wl-app-link.wl-is-on { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.wl-app-main { min-width: 0; display: grid; grid-template-rows: 40px minmax(0, 1fr); }
.wl-app-top { background: var(--wl-surface); display: flex; align-items: center; padding-inline: 14px; gap: 10px; box-shadow: 0 1px 0 var(--wl-border); font-weight: 600; }
.wl-app-top-tools { margin-left: auto; display: flex; gap: 10px; color: var(--wl-muted); align-items: center; }
.wl-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.wl-app-body { padding: 14px; min-width: 0; }
.wl-box { background: var(--wl-surface); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 12px; min-width: 0; }
.wl-box-spaced { margin-top: 10px; }
.wl-box-title { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.wl-box-caption { color: var(--wl-faint); font-weight: 400; }
.wl-box-heading .bi { color: var(--primary); }
.wl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
/* Inside the hero's app shell four cards in a row leave the label
   narrower than one word (about 26px on the widest page, a few px
   just above the 960px breakpoint); two by two it reads. */
.wl-app .wl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wl-stat { background: var(--wl-surface); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; min-width: 0; }
.wl-stat-text { min-width: 0; }
/* The label wraps rather than being cut off; a word longer than the
   card still breaks. */
.wl-stat small { display: block; color: var(--wl-muted); font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.wl-stat b { font-size: 17px; font-variant-numeric: tabular-nums; }
.wl-stat-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.wl-tone-blue { background: var(--wl-info-bg); color: var(--wl-info); }
.wl-tone-green { background: var(--wl-ok-bg); color: var(--wl-ok); }
.wl-tone-purple { background: var(--wl-purple-bg); color: var(--wl-purple); }
.wl-tone-orange { background: var(--wl-orange-bg); color: var(--wl-orange); }
.wl-tbl-wrap { overflow-x: auto; }
.wl-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wl-tbl th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--wl-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--wl-border); white-space: nowrap; }
.wl-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--wl-border-soft); white-space: nowrap; }
.wl-tbl .wl-num { text-align: right; }
.wl-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.wl-badge-ok { background: var(--wl-ok-bg); color: var(--wl-ok); }
.wl-badge-warn { background: var(--wl-warn-bg); color: var(--wl-warn); }
.wl-badge-bad { background: var(--wl-bad-bg); color: var(--wl-bad); }
.wl-badge-info { background: var(--wl-info-bg); color: var(--wl-info); }
.wl-badge-pri { background: var(--primary-light); color: var(--primary); }
.wl-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding-top: 6px; border-bottom: 1px solid var(--wl-border); }
.wl-bar { flex: 1; background: var(--primary); border-radius: 4px 4px 0 0; opacity: .85; }
.wl-bar.wl-bar-lo { background: var(--wl-bar-muted); }
/* The dashboard preview's bar heights (its sample months against the best
   one), as classes: the page's policy allows no style attribute. */
.wl-bar-h64 { height: 64%; }
.wl-bar-h67 { height: 67%; }
.wl-bar-h75 { height: 75%; }
.wl-bar-h85 { height: 85%; }
.wl-bar-h96 { height: 96%; }
.wl-bar-h100 { height: 100%; }
.wl-bars-x { display: flex; gap: 8px; font-size: 9.5px; color: var(--wl-faint); margin-top: 4px; }
.wl-bars-x span { flex: 1; text-align: center; }
.wl-cal { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 10px; }
.wl-cal-head { color: var(--wl-muted); font-weight: 600; text-align: center; padding: 4px 0; }
.wl-cal-time { color: var(--wl-faint); padding-top: 6px; }
.wl-cal-cell { min-height: 44px; border-radius: 6px; background: var(--wl-surface-2); }
.wl-cal-ev { background: var(--primary-light); color: var(--primary); padding: 5px 6px; border-left: 3px solid var(--primary); }
.wl-cal-ev.wl-cal-ev-green { background: var(--wl-ok-bg); color: var(--wl-ok); border-color: var(--wl-ok); }
.wl-cal-ev.wl-cal-ev-orange { background: var(--wl-orange-bg); color: var(--wl-orange-ink); border-color: var(--wl-orange); }
.wl-cal-ev b { display: block; font-size: 10px; }
.wl-cal-ev small { opacity: .8; }
.wl-chat { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; min-height: 250px; }
.wl-thread { display: flex; gap: 8px; padding: 7px; border-radius: 8px; align-items: center; }
.wl-thread.wl-is-on { background: var(--primary-light); }
.wl-thread-text { min-width: 0; }
.wl-thread b { font-size: 11px; }
.wl-thread small { display: block; color: var(--wl-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.wl-msgs { display: grid; gap: 8px; align-content: start; }
.wl-msg { max-width: 78%; padding: 7px 10px; border-radius: 10px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); }
.wl-msg.wl-msg-me { justify-self: end; background: var(--primary); color: #fff; border-color: var(--primary); }
.wl-src { font-size: 9.5px; color: var(--wl-faint); }
.wl-src-end { justify-self: end; }
.wl-src-cited { margin-top: 4px; }
.wl-steps { display: grid; gap: 8px; }
.wl-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; background: var(--wl-surface-2); }
.wl-step-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--wl-border); color: var(--wl-muted); }
.wl-step.wl-step-done .wl-step-dot { background: var(--wl-ok-bg); color: var(--wl-ok); }
.wl-step.wl-step-now .wl-step-dot { background: var(--primary); color: #fff; }
.wl-step small { display: block; color: var(--wl-muted); font-size: 10px; }
.wl-phone-wrap { display: flex; justify-content: center; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.wl-phone { width: 190px; border-radius: 24px; border: 6px solid var(--wl-text); background: var(--body-bg); overflow: hidden; }
.wl-phone-top { background: var(--primary); color: #fff; padding: 12px 12px 18px; }
.wl-phone-top small { opacity: .8; display: block; font-size: 10px; }
.wl-phone-body { padding: 10px; display: grid; gap: 8px; margin-top: -10px; }
.wl-phone .wl-box { padding: 9px; font-size: 11px; }
.wl-phone-caption { max-width: 200px; color: var(--wl-muted); font-size: 12.5px; align-self: center; }
.wl-phone-sample { font-size: 10.5px; color: var(--wl-faint); text-align: center; margin-top: 6px; }
.wl-roster .wl-tbl td:last-child { text-align: right; }
.wl-pills { display: inline-flex; gap: 4px; }
.wl-pills span { font-size: 9.5px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--wl-border); color: var(--wl-muted); }
.wl-pills span.wl-pill-ok { background: var(--wl-ok-bg); color: var(--wl-ok); border-color: transparent; }
.wl-pills span.wl-pill-bad { background: var(--wl-bad-bg); color: var(--wl-bad); border-color: transparent; }
.wl-pills span.wl-pill-warn { background: var(--wl-warn-bg); color: var(--wl-warn); border-color: transparent; }
/* The given mark is told apart by its icon and weight too, not by
   colour alone (WCAG 1.4.1). */
.wl-pills span.wl-pill-ok, .wl-pills span.wl-pill-bad, .wl-pills span.wl-pill-warn { font-weight: 600; }
.wl-pills .bi { margin-right: 3px; }

/* Journey */
.wl-journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.wl-jstep { position: relative; padding: 0 10px; text-align: center; }
.wl-jstep::before { content: ""; position: absolute; top: 22px; left: 50%; width: 100%; height: 2px; background: var(--wl-border); z-index: 0; }
.wl-jstep:last-child::before { display: none; }
.wl-jstep-icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; background: var(--wl-surface); box-shadow: var(--shadow-sm); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; margin: 0 auto 12px; }
.wl-jstep b { display: block; font-size: 14px; }
.wl-jstep small { display: block; color: var(--wl-muted); font-size: 12.5px; margin-top: 4px; }
.wl-jstep-area { display: inline-block; margin-top: 8px; font-size: 10.5px; color: var(--primary); background: var(--primary-light); border-radius: 20px; padding: 1px 8px; }

/* Feature tabs: a horizontally scrollable strip, one panel at a time */
.wl-features { background: var(--wl-surface); }
.wl-tabs-wrap { margin-top: 36px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.wl-tabs { display: flex; gap: 4px; min-width: max-content; justify-content: center; padding: 6px; }
.wl-tab { width: 104px; display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--wl-text); text-align: center; position: relative; }
.wl-tab .bi { font-size: 20px; color: var(--wl-muted); }
.wl-tab:hover { background: var(--wl-surface-2); }
.wl-tab[aria-selected="true"] { background: var(--primary-light); border-color: var(--wl-tab-border); box-shadow: var(--shadow-sm); color: var(--primary); font-weight: 600; }
.wl-tab[aria-selected="true"] .bi { color: var(--primary); }
.wl-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--primary); }
.wl-panel { margin-top: 24px; background: var(--wl-surface); border-radius: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; padding: 32px; align-items: center; }
.wl-panel[hidden] { display: none; }
.wl-panel h3 { font-size: 22px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.wl-panel-desc { color: var(--wl-muted); font-size: 15px; margin-top: 10px; }
.wl-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.wl-ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.wl-ticks .bi { color: var(--wl-ok); }
.wl-panel-area { margin-top: 20px; font-size: 12px; color: var(--wl-faint); }
.wl-panel-preview { min-width: 0; background: var(--body-bg); border-radius: 12px; padding: 14px; border: 1px solid var(--wl-border); }

/* Before / after */
.wl-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.wl-ba-card { background: var(--wl-surface); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 28px; }
.wl-ba-card h3 { font-size: 17px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.wl-ba-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.wl-ba-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--wl-muted); }
.wl-ba-before .bi { color: var(--wl-bad); }
.wl-ba-after { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.wl-ba-after .bi { color: var(--wl-ok); }

/* Roles */
.wl-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.wl-role { background: var(--wl-surface); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 22px 18px; display: grid; gap: 10px; align-content: start; }
.wl-role-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wl-role b { font-size: 15px; }
.wl-role p { color: var(--wl-muted); font-size: 13px; }

/* Data safety */
.wl-trust { background: var(--wl-surface); }
.wl-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 36px; }
.wl-trust-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.wl-trust-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wl-trust-item b { display: block; font-size: 15px; }
.wl-trust-item p { color: var(--wl-muted); font-size: 13.5px; margin-top: 4px; }

/* Contact form: the pitch on the left, the form's card on the right */
.wl-register { background: var(--body-bg); }
.wl-register-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
/* The form's answer lands on the card (`#register-form`), not on the
   section: below the sticky top bar, with a little air above it. */
.wl-register-card { background: var(--wl-surface); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; min-width: 0; scroll-margin-top: calc(var(--wl-nav-height) + 12px); }
.wl-form { display: grid; gap: 14px; }
.wl-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wl-field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.wl-field label { font-size: 13px; font-weight: 600; }
.wl-required { color: var(--wl-bad); }
.wl-input { display: block; width: 100%; min-height: 42px; border: 1px solid var(--wl-border); border-radius: 8px; padding: 9px 12px; background: var(--wl-surface); color: var(--wl-text); font: inherit; }
.wl-input::placeholder { color: var(--wl-faint); opacity: 1; }
.wl-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--wl-focus-ring); }
.wl-input.wl-is-invalid { border-color: var(--wl-bad); }
textarea.wl-input { resize: vertical; }
.wl-field-error { color: var(--wl-bad); font-size: 12.5px; }
.wl-banner { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.wl-banner-warn { background: var(--wl-warn-bg); color: var(--wl-warn); }
.wl-banner-bad { background: var(--wl-bad-bg); color: var(--wl-bad); }
/* The trap field: off-screen rather than hidden, so a program that
   fills every field it finds still finds and fills it. */
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-btn-block { width: 100%; min-height: 44px; }
.wl-consent { color: var(--wl-muted); font-size: 12.5px; }
.wl-sent { display: grid; gap: 8px; justify-items: start; }
.wl-sent-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--wl-ok-bg); color: var(--wl-ok); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.wl-sent h3 { font-size: 18px; font-weight: 700; }
.wl-sent p { color: var(--wl-muted); overflow-wrap: anywhere; }

/* Footer */
.wl-footer { background: var(--wl-primary-ink); color: var(--wl-footer-text); padding-block: 28px; font-size: 13px; }
.wl-footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.wl-footer .wl-brand { color: #fff; font-size: 15px; }
.wl-footer .wl-brand-icon { width: 28px; height: 28px; font-size: 13px; background: #fff; color: var(--primary); }

@media (max-width: 960px) {
    .wl-hero-grid, .wl-panel { grid-template-columns: minmax(0, 1fr); }
    .wl-register-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .wl-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wl-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wl-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .wl-jstep:nth-child(3)::before { display: none; }
    .wl-nav-links { display: none; }
}
@media (max-width: 640px) {
    .wl-container { padding-inline: 16px; }
    .wl-section { padding-block: 48px; }
    .wl-section-flush-top { padding-top: 0; }
    .wl-hero-title { font-size: 30px; }
    .wl-h-section { font-size: 23px; }
    .wl-ba, .wl-roles, .wl-trust-grid { grid-template-columns: minmax(0, 1fr); }
    .wl-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wl-jstep::before { display: none; }
    .wl-app { grid-template-columns: minmax(0, 1fr); }
    .wl-app-side { display: none; }
    .wl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wl-chat { grid-template-columns: minmax(0, 1fr); }
    .wl-threads { display: none; }
    .wl-panel { padding: 20px; }
    .wl-tabs { justify-content: flex-start; }
    /* The top bar keeps two items, the brand and the language menu; the
       hero carries the register button, full width and easy to tap. */
    .wl-nav-register { display: none; }
    .wl-hero .wl-ctas .wl-btn { width: 100%; min-height: 44px; }
    .wl-form-row { grid-template-columns: minmax(0, 1fr); }
    .wl-register-card { padding: 18px; }
    /* 16px text: iOS zooms the page on a field with smaller text. */
    .wl-input { min-height: 46px; font-size: 16px; }
}

/* Language switcher: the app's globe button and its menu, as a native
   disclosure (<details>) holding two plain links, so it opens without any
   script; language-menu.js only closes it on a click elsewhere or Escape. */
.wl-lang > summary { list-style: none; }
.wl-lang > summary::-webkit-details-marker { display: none; }
.wl-lang[open] > .dropdown-menu { display: block; }
.wl-lang-flag { width: 18px; display: inline-block; }
.wl-lang-check { color: var(--primary); }
