/*
 * The vent.as commercial site (site/page.php): vent.as's own palette - night neutrals, the azure accent on light
 * surfaces, cyan on dark ones, the wordmark's red dot - and FoXE (site/lib/fonts.php prints its @font-face and the
 * --font-head/--font-body variables). Each section picks a colour scheme (theme-dark, -navy, -cyan, -light, -tint);
 * every pair of text and surface is AA. See .architecture/login-hub/commercial-site.md.
 */

:root {
    --night: #0c0d10;
    --night-2: #17191d;
    --night-3: #1f2226;
    --night-line: #2e3036;
    --on-night: #f0f1f4;
    --on-night-muted: #a9adb5;
    --ink: #141b26;
    --ink-muted: #444d5e;
    --paper: #ffffff;
    --tint: #f1f6fd;
    --tint-2: #e2ecf8;
    --line: #d2dae4;
    --azure: #006cb4;
    --azure-deep: #004a7e;
    --azure-tint: #dcf0ff;
    --cyan: #21d4f0;
    --cyan-tint: #04343c;
    --brand-red: #ff0000;
    --success: #057836;
    --danger: #c21725;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 2px rgba(20, 27, 38, .06), 0 12px 32px rgba(20, 27, 38, .08);
    --shadow-lift: 0 2px 4px rgba(20, 27, 38, .06), 0 24px 48px rgba(20, 27, 38, .14);
    --header-h: 72px;
    --container: 1200px;
    --gutter: 24px;
    --font-head: "FoXE", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "FoXE", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --head-weight: 700;
    --body-weight: 400;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: var(--body-weight);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--t-accent, var(--azure));
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    max-width: 860px;
}

/* ---------------------------------------------------------------- colour schemes */

.sec {
    position: relative;
    overflow: hidden;
    background: var(--sec-bg, var(--t-bg));
    color: var(--t-text);
}

.theme-light {
    --t-bg: var(--paper);
    --t-text: var(--ink);
    --t-muted: var(--ink-muted);
    --t-title: var(--ink);
    --t-accent: var(--azure);
    --t-accent-text: #ffffff;
    --t-card: var(--paper);
    --t-card-line: var(--line);
    --t-chip: var(--azure-tint);
    --t-chip-text: var(--azure-deep);
}

.theme-tint {
    --t-bg: var(--tint);
    --t-text: var(--ink);
    --t-muted: var(--ink-muted);
    --t-title: var(--ink);
    --t-accent: var(--azure);
    --t-accent-text: #ffffff;
    --t-card: var(--paper);
    --t-card-line: var(--tint-2);
    --t-chip: var(--azure-tint);
    --t-chip-text: var(--azure-deep);
}

.theme-dark,
.theme-navy,
.site-footer {
    --t-bg: var(--night);
    --t-text: var(--on-night);
    --t-muted: var(--on-night-muted);
    --t-title: #ffffff;
    --t-accent: var(--cyan);
    --t-accent-text: var(--night);
    --t-card: var(--night-2);
    --t-card-line: var(--night-line);
    --t-chip: var(--cyan-tint);
    --t-chip-text: var(--cyan);
}

.theme-cyan {
    --t-bg: linear-gradient(135deg, var(--azure-deep) 0%, var(--azure) 60%, #0b8fd0 100%);
    --t-text: #ffffff;
    --t-muted: #e3f1fb;
    --t-title: #ffffff;
    --t-accent: #ffffff;
    --t-accent-text: var(--azure-deep);
    --t-card: rgba(255, 255, 255, .1);
    --t-card-line: rgba(255, 255, 255, .25);
    --t-chip: rgba(255, 255, 255, .16);
    --t-chip-text: #ffffff;
}

.theme-dark {
    background: radial-gradient(1200px 500px at 10% 0%, rgba(33, 212, 240, .08), transparent 60%), var(--sec-bg, var(--night));
}

.sec-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.has-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(12, 13, 16, .94) 0%, rgba(12, 13, 16, .78) 45%, rgba(12, 13, 16, .45) 100%);
}

.has-bg-image > :not(.sec-bg) {
    position: relative;
    z-index: 1;
}

.c-title {
    color: var(--t-title);
}

.c-sub,
.c-desc {
    color: var(--t-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--t-chip);
    color: var(--t-chip-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fs-title-xl { font-size: clamp(34px, 4.6vw, 58px); }
.fs-title-lg { font-size: clamp(30px, 3.6vw, 46px); }
.fs-title-md { font-size: clamp(24px, 2.6vw, 32px); }
.fs-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.fs-body { font-size: 17px; }

.sec-pad-md { padding: clamp(48px, 7vw, 80px) 0; }
.sec-pad-lg { padding: clamp(64px, 9vw, 112px) 0; }
.sec-pad-xl { padding: clamp(84px, 11vw, 150px) 0; }

.sec-head {
    max-width: 780px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.sec-head .c-sub {
    margin-bottom: 0;
}

/* A page whose first section is no hero nor cover leaves room for the fixed header. */
#main > .sec:first-child:not(.sec-signin):not(.sec-cover) {
    padding-top: var(--header-h);
}

/* ---------------------------------------------------------------- buttons */

.btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sec-head + .features + .btns,
.steps + .btns,
.features + .btns {
    justify-content: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-md { padding: 12px 24px; font-size: 16px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--t-accent, var(--azure));
    color: var(--t-accent-text, #ffffff);
    box-shadow: 0 6px 18px rgba(0, 108, 180, .28);
}

.btn-primary:hover {
    box-shadow: 0 10px 26px rgba(0, 108, 180, .36);
}

.btn-ghost {
    border-color: currentColor;
    background: transparent;
    color: var(--t-text, var(--ink));
}

.btn-ghost-primary {
    border-color: var(--t-accent, var(--azure));
    background: transparent;
    color: var(--t-accent, var(--azure));
}

.btn-ico {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.btn:hover .btn-ico {
    transform: translateX(3px);
}

.btn-ico-lead {
    width: 18px;
    height: 18px;
}

.btn-glow {
    position: relative;
    animation: glow 2.6s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 6px 18px rgba(0, 108, 180, .3), 0 0 0 0 rgba(33, 212, 240, .45); }
    50% { box-shadow: 0 10px 26px rgba(0, 108, 180, .4), 0 0 0 8px rgba(33, 212, 240, 0); }
}

.btn.is-busy {
    opacity: .75;
    cursor: progress;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    color: #ffffff;
    transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
    --t-accent: var(--cyan);
    --t-accent-text: var(--night);
    --t-text: #ffffff;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(12, 13, 16, .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.site-header.hdr-light {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
    --t-accent: var(--azure);
    --t-accent-text: #ffffff;
    --t-text: var(--ink);
}

/* An open phone menu is a fixed panel under the header: a backdrop-filter would make the header its containing block. */
.site-header.menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--night);
}

.site-header.hdr-light.menu-open {
    background: var(--paper);
}

.hdr-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.wordmark {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -.02em;
}

.wordmark-dot {
    color: var(--brand-red);
}

/* "vent.as" in any text (brand_names() in site/lib/render.php): bold, its dot red. */
.brand-name {
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.brand-dot {
    color: var(--brand-red);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav > ul > li > a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    opacity: .88;
    transition: opacity .2s, background-color .2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.is-active {
    opacity: 1;
    background: rgba(127, 127, 127, .14);
}

.dropdown-toggle {
    display: inline-flex;
    margin-left: -8px;
    padding: 6px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.dropdown-toggle .ico {
    width: 16px;
    height: 16px;
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 2px;
    width: max-content;
    max-width: min(760px, 92vw);
    margin: 0;
    padding: 12px;
    list-style: none;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.dropdown::before {
    content: "";
    position: absolute;
    inset: -12px 0 auto;
    height: 12px;
}

.has-children:hover > .dropdown,
.has-children:focus-within > .dropdown,
.has-children.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown a {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    text-decoration: none;
}

.dropdown a:hover,
.dropdown a.is-active {
    background: var(--tint);
    color: var(--azure-deep);
}

.hdr-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.icon-btn:hover {
    background: rgba(127, 127, 127, .16);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

.lang-switch span {
    opacity: .4;
}

.lang-switch a {
    padding: 4px 6px;
    border-radius: 6px;
    text-decoration: none;
    opacity: .65;
}

.lang-switch a.is-active {
    opacity: 1;
    box-shadow: inset 0 -2px 0 var(--t-accent);
}

.hdr-account,
.nav-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-account {
    display: none;
}

.btn-business.is-pending {
    color: inherit;
}

.account-menu {
    position: relative;
}

.account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azure), var(--cyan));
    color: #ffffff;
    font-size: 14px;
}

.account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-toggle .ico {
    width: 16px;
    height: 16px;
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.account-menu.is-open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    text-decoration: none;
}

.account-link:hover {
    background: var(--tint);
}

.account-link .ico {
    width: 18px;
    height: 18px;
    color: var(--azure);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
}

.site-header {
    color: #ffffff;
}

.menu-toggle {
    color: inherit;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero with the sign-in card */

.sec-signin {
    min-height: min(100vh, 920px);
    display: flex;
    align-items: center;
}

.hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
    padding-bottom: clamp(48px, 7vw, 96px);
}

.hero-title {
    font-size: clamp(38px, 5.4vw, 70px);
    line-height: 1.04;
    letter-spacing: -.025em;
    color: #ffffff;
}

.hero-desc {
    max-width: 620px;
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--t-muted);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.45;
}

.hero-points .ico {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--t-accent);
}

.hero-card {
    justify-self: end;
    width: 100%;
    max-width: 420px;
}

.signin-card,
.member-card {
    position: relative;
    padding: 28px;
    border-radius: 22px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    --t-accent: var(--azure);
    --t-accent-text: #ffffff;
    --t-text: var(--ink);
}

.card-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--azure);
}

.card-eyebrow .ico {
    width: 16px;
    height: 16px;
}

.card-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.card-text,
.card-note {
    color: var(--ink-muted);
    font-size: 16px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 8px 0 14px;
    border-radius: 16px;
    background: var(--tint);
    color: var(--azure);
}

.card-badge .ico {
    width: 26px;
    height: 26px;
}

.card-badge.is-brand {
    background: linear-gradient(135deg, var(--azure), #0b8fd0);
    color: #ffffff;
}

.card-badge.is-success {
    background: #e3f6ea;
    color: var(--success);
}

.is-pending .card-badge {
    background: #fff4e0;
    color: #975d01;
}

.card-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    font-size: 14px;
}

.card-links a {
    color: var(--ink-muted);
}

.member-card .btn {
    margin-top: 8px;
}

/* The hub's login fields (view/login-form-fields.php), compact inside the card. */
.signin-card .field-column {
    margin-top: 14px;
}

.signin-card label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

.signin-card .demo-input-box {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.signin-card .demo-input-box:focus {
    outline: none;
    border-color: var(--azure);
    box-shadow: 0 0 0 4px rgba(0, 108, 180, .16);
}

.signin-card .remember-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}

.signin-card .remember-row label {
    margin: 0;
    font-weight: 400;
}

.signin-card .form-link {
    color: var(--azure);
    font-weight: 700;
    text-decoration: none;
}

.signin-card .btnLogin {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--azure);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 108, 180, .28);
}

.signin-card .btnLogin:hover {
    background: var(--azure-deep);
}

.signin-card .error-info {
    margin-left: 8px;
    color: var(--danger);
    font-size: 13px;
}

.signin-card .error-message,
.signin-card .success-message {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.signin-card .error-message {
    background: #fff1f2;
    border: 1px solid #ffd5da;
    color: var(--danger);
}

.signin-card .success-message {
    background: #e3f6ea;
    border: 1px solid #bfe8cd;
    color: var(--success);
}

.signin-card .login-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.signin-card .login-row p {
    margin: 0;
    color: var(--ink-muted);
}

.signin-card .btn.form-link {
    padding: 6px 14px;
    border: 1px solid var(--azure);
    border-radius: 999px;
}

.signin-card .social-row {
    border-top: 0;
    padding-top: 0;
    margin-top: 10px;
}

.signin-card .social-row p {
    flex-basis: 100%;
    text-align: center;
}

.signin-card .signup-icon {
    width: 30px;
    height: 30px;
    margin: 0 2px;
    border-radius: 8px;
    transition: transform .15s;
}

.signin-card .signup-icon:hover {
    transform: translateY(-2px);
}

.signin-card.is-preview {
    min-height: 260px;
}

/* ---------------------------------------------------------------- cover (feature pages, product) */

.sec-cover .cover-container {
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
    padding-bottom: clamp(56px, 8vw, 110px);
    max-width: 980px;
}

.cover-title {
    font-size: clamp(34px, 4.8vw, 60px);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: var(--t-title);
}

.cover-subtitle {
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--t-accent);
}

.cover-desc {
    max-width: 760px;
    font-size: 18px;
    color: var(--t-muted);
}

/* ---------------------------------------------------------------- features */

.features {
    display: grid;
    gap: 24px;
}

.features-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.features-icons {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}

.features-checks {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 16px 32px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--t-card-line);
    border-radius: var(--radius);
    background: var(--t-card);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.feature-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tint-2);
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.04);
}

.feature-body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 34px 24px 24px;
}

.feature-card .feature-icon {
    position: absolute;
    top: -26px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--azure), #0b8fd0);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 108, 180, .32);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--t-chip);
    color: var(--t-chip-text);
}

.feature-icon .ico {
    width: 26px;
    height: 26px;
}

.feature-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--t-title);
}

.feature-text {
    margin: 0;
    color: var(--t-muted);
    font-size: 16px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--t-accent);
    font-weight: 700;
    text-decoration: none;
}

.feature-link .ico {
    width: 18px;
    height: 18px;
    transition: transform .2s;
}

.feature-link:hover .ico {
    transform: translateX(3px);
}

.features-icons .feature-item {
    padding: 28px;
    border: 1px solid var(--t-card-line);
    border-radius: var(--radius);
    background: var(--t-card);
    box-shadow: var(--shadow-card);
}

.features-icons .feature-icon {
    margin-bottom: 18px;
}

.features-checks .feature-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--t-card-line);
}

.features-checks .feature-icon {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--t-accent);
    color: var(--t-accent-text);
}

.features-checks .feature-icon .ico {
    width: 18px;
    height: 18px;
}

.features-checks .feature-title {
    font-size: 18px;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------- text + image */

.mt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.mt-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lift);
}

.theme-dark .mt-media img,
.theme-navy .mt-media img {
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list .ico {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: var(--t-chip);
    color: var(--t-chip-text);
}

/* ---------------------------------------------------------------- steps */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--t-card-line);
    border-radius: var(--radius);
    background: var(--t-card);
    box-shadow: var(--shadow-card);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azure), var(--cyan));
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
}

.step-title {
    font-size: 20px;
    color: var(--t-title);
}

.step-text {
    margin: 0;
    color: var(--t-muted);
}

/* ---------------------------------------------------------------- call to action banner */

.sec-quote {
    text-align: center;
}

.sec-quote .has-bg-image::after,
.sec-quote.has-bg-image::after {
    background: linear-gradient(180deg, rgba(12, 13, 16, .82), rgba(0, 74, 126, .78));
}

.quote-text {
    max-width: 860px;
    margin: 0 auto;
}

.quote-desc {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.sec-quote .btns {
    justify-content: center;
}

/* ---------------------------------------------------------------- plans */

.plan-switch {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: max-content;
    margin: 0 auto 40px;
    padding: 5px;
    border-radius: 999px;
    background: var(--tint-2);
}

.plan-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.plan-period.is-active {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(20, 27, 38, .12);
}

.plan-save {
    padding: 2px 8px;
    border-radius: 999px;
    background: #e3f6ea;
    color: var(--success);
    font-size: 12px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.plans[data-period="year"] .plan-price[data-period="month"],
.plans[data-period="month"] .plan-price[data-period="year"] {
    display: none;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.plan-card.is-featured {
    border: 2px solid var(--azure);
    box-shadow: var(--shadow-lift);
}

.plan-badge {
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--azure-tint);
    color: var(--azure-deep);
    font-size: 13px;
    font-weight: 700;
}

.plan-card.is-featured .plan-badge {
    background: var(--azure);
    color: #ffffff;
}

.plan-name {
    font-size: 26px;
    margin-bottom: 6px;
}

.plan-text {
    color: var(--ink-muted);
    min-height: 3.2em;
}

.plan-price {
    margin: 8px 0 22px;
}

.plan-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(40px, 4vw, 52px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.plan-currency {
    font-size: .45em;
    color: var(--ink-muted);
}

.plan-per {
    font-size: 16px;
    font-weight: 400;
    color: var(--ink-muted);
}

.plan-usd {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 15px;
}

.plan-points {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.plan-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-points .ico {
    width: 20px;
    height: 20px;
    color: var(--success);
}

.plan-note {
    max-width: 720px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
}

/* ---------------------------------------------------------------- forms: business request, contact */

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}

.lead-text {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.lead-text .hero-points {
    grid-template-columns: 1fr;
}

.lead-panel {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    --t-accent: var(--azure);
    --t-accent-text: #ffffff;
}

.site-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.site-form .card-title {
    grid-column: 1 / -1;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

.form-field.wide {
    grid-column: 1 / -1;
}

.form-field > label,
.form-field > legend {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* A required field's ❋, in a symbol face: the site's own faces draw no clear asterisk. */
.req {
    color: var(--danger);
    font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
    font-weight: normal;
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="tel"],
.site-form input[type="number"],
.site-form select,
.site-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.site-form textarea {
    min-height: 110px;
    resize: vertical;
}

/* The site's own chevron, 14px in from the edge as the text is: the browser's sits flush against the border. */
.site-form select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444d5e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    text-overflow: ellipsis;
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
    outline: none;
    border-color: var(--azure);
    box-shadow: 0 0 0 4px rgba(0, 108, 180, .16);
}

.site-form [aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 13px;
}

.form-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #fff1f2;
    color: var(--danger);
    font-size: 14px;
}

.form-note {
    margin: 10px 0 0;
    color: var(--ink-muted);
    font-size: 13px;
    text-align: center;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: 0;
}

.chips legend {
    width: 100%;
    padding: 0;
}

.chip {
    position: relative;
    cursor: pointer;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    transition: background-color .15s, border-color .15s, color .15s;
}

.chip input:checked + span {
    border-color: var(--azure);
    background: var(--azure-tint);
    color: var(--azure-deep);
    font-weight: 700;
}

.chip input:focus-visible + span {
    outline: 3px solid var(--azure);
    outline-offset: 2px;
}

.consent label {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-done,
.lead-gate,
.form-success {
    text-align: center;
    padding: 24px 8px;
}

.lead-done .card-badge,
.lead-gate .card-badge,
.form-success .card-badge {
    margin-left: auto;
    margin-right: auto;
}

.lead-business {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tint);
    font-weight: 700;
}

.lead-business .ico {
    width: 18px;
    height: 18px;
    color: var(--azure);
}

.lead-gate .btns {
    justify-content: center;
}

/* WhatsApp's dark green on its pale tint: AA both ways, never the brand's #25d366 as text. */
.wa-pill {
    display: inline-flex;
    align-self: flex-start;
    justify-self: start;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid #9ad7b0;
    border-radius: 999px;
    background: #e3f7ea;
    color: #075e30;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.wa-pill:hover {
    background: #cdf0d9;
}

.wa-pill:focus-visible {
    outline: 3px solid var(--azure);
    outline-offset: 2px;
}

/* WhatsApp's logo in its own teal-green, 3.9:1 on the pill's tint. */
.wa-pill .wa-logo {
    flex-shrink: 0;
    color: #128c7e;
}

.lead-gate .wa-pill {
    margin-top: 16px;
}

.form-success {
    position: relative;
}

.form-success-close {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--ink-muted);
}

/* ---------------------------------------------------------------- other sections */

.cards-grid,
.products-grid,
.gallery-grid,
.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.card-inner,
.product-card-inner,
.countdown-card,
.subscribe-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--t-card-line);
    border-radius: var(--radius);
    background: var(--t-card);
    box-shadow: var(--shadow-card);
}

.card-heading {
    font-size: 20px;
    color: var(--t-title);
}

.card-body {
    color: var(--t-muted);
}

.product-card-inner {
    padding: 0;
    overflow: hidden;
}

.product-img {
    aspect-ratio: 16 / 10;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img.fit-contain img {
    object-fit: contain;
    padding: 12%;
}

.product-body {
    padding: 24px;
}

.product-name { font-size: 20px; color: var(--t-title); }
.product-tagline { color: var(--t-accent); font-weight: 700; }
.product-text, .product-note { color: var(--t-muted); }

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.article-body {
    font-size: 18px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-circles,
.social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-circles {
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--t-card-line);
    border-radius: 50%;
    color: var(--t-text);
    transition: background-color .2s, color .2s, border-color .2s;
}

.social-link:hover {
    border-color: var(--t-accent);
    background: var(--t-accent);
    color: var(--t-accent-text);
}

.social-link .ico {
    width: 18px;
    height: 18px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    font-size: 44px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.subscribe-card {
    text-align: center;
}

.subscribe-row {
    display: flex;
    gap: 10px;
    margin: 20px 0 12px;
}

.subscribe-row input {
    flex: 1;
}

.subscribe-form {
    display: block;
}

.consent-note {
    font-size: 13px;
    color: var(--t-muted);
}

.kb-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.kb-tab {
    padding: 8px 16px;
    border: 1px solid var(--t-card-line);
    border-radius: 999px;
    background: transparent;
    color: var(--t-text);
    font: inherit;
    cursor: pointer;
}

.kb-tab.is-active {
    background: var(--t-accent);
    color: var(--t-accent-text);
}

.kb-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--t-card-line);
    border-radius: var(--radius);
    background: var(--t-card);
    text-decoration: none;
}

.kb-card-img {
    aspect-ratio: 16 / 9;
    background: var(--tint-2) center / cover;
}

.kb-card-text {
    display: block;
    padding: 20px;
}

.kb-pager-inner {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.kb-pager button {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--t-card-line);
    border-radius: 10px;
    background: transparent;
    color: var(--t-text);
    cursor: pointer;
}

.kb-pager button.is-active {
    background: var(--t-accent);
    color: var(--t-accent-text);
}

.post-head {
    position: relative;
    height: 360px;
}

.post-image {
    position: absolute;
    inset: 0;
    background: var(--tint-2) center / cover;
}

.post-back {
    position: absolute;
    left: 24px;
    bottom: 24px;
}

.post-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper);
    text-decoration: none;
    font-weight: 700;
}

.post-main {
    padding-top: 40px;
    padding-bottom: 80px;
}

.post-meta {
    color: var(--ink-muted);
}

.next-products {
    position: fixed;
    left: 50%;
    z-index: 50;
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--azure);
    color: #ffffff;
    transform: translateX(-50%);
    cursor: pointer;
}

.next-products.is-shown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    background: var(--night);
    color: var(--on-night);
    padding: 72px 0 0;
}

.ftr-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.ftr-brand .logo {
    margin-bottom: 18px;
}

.ftr-about,
.ftr-text {
    color: var(--on-night-muted);
    font-size: 15px;
}

.ftr-title {
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffff;
}

.ftr-nav {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ftr-nav a {
    color: var(--on-night-muted);
    text-decoration: none;
}

.ftr-nav a:hover {
    color: #ffffff;
}

.ftr-nav .dropdown-toggle,
.ftr-dropdown {
    display: none;
}

.ftr-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    text-decoration: none;
}

.ftr-cta .btn {
    margin-top: 6px;
}

.subfooter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--night-line);
    color: var(--on-night-muted);
    font-size: 14px;
}

.subfooter p {
    margin: 0;
}

.legal {
    display: flex;
    gap: 20px;
}

.legal a {
    color: var(--on-night-muted);
}

/* ---------------------------------------------------------------- search, lightbox, cookie banner */

.search-overlay,
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(12, 13, 16, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.search-panel {
    width: min(680px, calc(100% - 32px));
    margin: 12vh auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 18px;
    color: var(--ink);
}

.search-close {
    color: var(--ink);
}

.search-results {
    max-height: 60vh;
    margin: 0;
    padding: 8px;
    overflow: auto;
    list-style: none;
}

.sr-hit a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
}

.sr-hit.is-active a {
    background: var(--tint);
}

.sr-page {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--azure);
}

.sr-hit mark {
    background: var(--azure-tint);
    color: inherit;
}

.lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-figure {
    max-width: 90vw;
    margin: 0;
    color: #ffffff;
    text-align: center;
}

.lb-figure img {
    max-height: 80vh;
    border-radius: 12px;
}

.lb-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    cursor: pointer;
}

.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
    position: absolute;
    bottom: 20px;
    color: #ffffff;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: calc(100% - 32px);
    padding: 12px 12px 12px 18px;
    border-radius: 999px;
    background: var(--night-2);
    color: var(--on-night);
    box-shadow: var(--shadow-lift);
    font-size: 14px;
    --t-accent: var(--cyan);
    --t-accent-text: var(--night);
}

.cookie-banner a {
    color: var(--cyan);
}

/* ---------------------------------------------------------------- scroll-in reveal */

.js .rv {
    opacity: 0;
    transform: translateY(18px);
}

.js .rv.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease var(--rv-delay, 0ms), transform .5s ease var(--rv-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .rv {
        opacity: 1;
        transform: none;
    }

    .btn-glow {
        animation: none;
    }

    .feature-card,
    .feature-img img,
    .btn {
        transition: none;
    }
}

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 1180px) {
    .main-nav > ul > li > a {
        padding: 8px 9px;
        font-size: 14px;
    }

    .account-name {
        display: none;
    }
}

@media (max-width: 1040px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        gap: 24px;
        padding: 24px var(--gutter) 40px;
        overflow-y: auto;
        background: var(--night);
        color: #ffffff;
    }

    .menu-open .main-nav {
        display: flex;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .main-nav li {
        flex-wrap: wrap;
    }

    .main-nav > ul > li > a {
        flex: 1;
        padding: 14px 12px;
        font-size: 18px;
    }

    .dropdown {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
        padding: 4px 0 8px 12px;
        background: transparent;
        color: var(--on-night-muted);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-children:hover > .dropdown,
    .has-children:focus-within > .dropdown,
    .has-children.is-open > .dropdown {
        transform: none;
    }

    .has-children.is-open > .dropdown {
        display: grid;
    }

    .dropdown a:hover,
    .dropdown a.is-active {
        background: rgba(255, 255, 255, .06);
        color: #ffffff;
    }

    .nav-account {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-account .account-link {
        color: #ffffff;
    }

    .nav-account .account-link:hover {
        background: rgba(255, 255, 255, .06);
    }

    .nav-account .btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .hdr-light .main-nav {
        background: var(--paper);
        color: var(--ink);
    }

    .hdr-light .dropdown {
        color: var(--ink-muted);
    }

    .hdr-light .dropdown a:hover,
    .hdr-light .dropdown a.is-active {
        background: var(--tint);
        color: var(--azure-deep);
    }

    .hdr-light .nav-account .account-link {
        color: var(--ink);
    }

    .hdr-light .nav-account .account-link:hover {
        background: var(--tint);
    }

    .hdr-account {
        display: none;
    }

    .hdr-inner {
        justify-content: space-between;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
    }

    .hero-card {
        justify-self: start;
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

    .lead-text {
        position: static;
    }

    .ftr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 16px;
        --header-h: 64px;
    }

    .mt-grid {
        grid-template-columns: 1fr;
    }

    .mt-grid.is-image-left .mt-media {
        order: -1;
    }

    .mt-grid:not(.is-image-left) .mt-media {
        order: -1;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .site-form {
        grid-template-columns: 1fr;
    }

    .ftr-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        right: 16px;
        border-radius: 18px;
    }

    .lang-switch {
        display: none;
    }

    .main-nav .lang-switch {
        display: inline-flex;
    }

    .wordmark {
        font-size: 21px;
    }

    .btns .btn {
        flex: 1 1 auto;
    }
}

/* ---------------------------------------------------------------- the hero on a short or narrow screen */

/* A short window (a laptop zoomed in, 720 px tall or less): the headline and the sign-in card start right under the header and tighten up, so the
   card's button is in view without scrolling. Tall screens keep the roomy hero above. */
@media (min-width: 1041px) and (max-height: 720px) {
    .sec-signin {
        min-height: 0;
        align-items: flex-start;
    }

    .hero-wrap {
        align-items: start;
        padding-top: calc(var(--header-h) + 20px);
        padding-bottom: 40px;
    }

    .hero-text .eyebrow {
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(34px, 2.4vw + 3.2vh, 58px);
        margin-bottom: .35em;
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 0;
    }

    .hero-text .btns {
        margin-top: 20px;
    }

    .hero-points {
        margin-top: 20px;
        gap: 8px 24px;
    }

    .signin-card,
    .member-card {
        padding: 20px 24px;
    }

    .card-title {
        font-size: 21px;
        margin-bottom: 4px;
    }

    .signin-card .field-column {
        margin-top: 10px;
    }

    .signin-card .demo-input-box {
        height: 42px;
    }

    .signin-card .btnLogin {
        height: 44px;
    }

    .signin-card .login-row {
        margin-top: 12px;
        padding-top: 12px;
    }

    .signin-card .social-row {
        margin-top: 6px;
    }
}

/* A phone or a narrow window: the card comes right after the headline, ahead of the description, the buttons and the
   points - the hero's text gives its pieces to the grid (display: contents) so they can be ordered around the card. */
@media (max-width: 1040px) {
    .hero-wrap {
        gap: 18px;
        padding-top: calc(var(--header-h) + 16px);
        padding-bottom: 40px;
    }

    .hero-text {
        display: contents;
    }

    .hero-text .eyebrow {
        order: 1;
        justify-self: start;
        margin-bottom: 0;
    }

    .hero-title {
        order: 2;
        margin-bottom: 0;
        font-size: clamp(32px, 8vw, 52px);
    }

    .hero-card {
        order: 3;
        justify-self: stretch;
        max-width: 480px;
    }

    .hero-desc {
        order: 4;
        margin-bottom: 0;
    }

    .hero-text .btns {
        order: 5;
        margin-top: 0;
    }

    .hero-points {
        order: 6;
        margin-top: 0;
    }

    .signin-card,
    .member-card {
        padding: 20px;
    }
}

.subfooter p a {
    color: var(--cyan);
    text-decoration: none;
}

.subfooter p a:hover {
    text-decoration: underline;
}

/* The Product menu on a wide screen: centred on the navigation bar, not on its item, and never wider than the window,
   so a narrower window (a laptop, a zoomed screen) keeps all of it in view; its columns reflow to fit. */
@media (min-width: 1041px) {
    .main-nav {
        position: relative;
    }

    .main-nav li.has-children {
        position: static;
    }

    .dropdown {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        width: min(760px, calc(100vw - 32px));
        max-width: none;
    }
}
