/* evoshift.app product site (index.html, privacy, EULA). Colours and gradients are the app's
   (ui/Theme.kt, ui/MetallicTheme.kt): deep navy metal, brushed gold, cream. */
:root {
    --navy: #002B49;
    --navy-deep: #001220;
    --navy-light: #133A6B;
    --card-blue: #102E52;
    --card-light: #1C4578;
    --gold: #C5A065;
    --gold-light: #F9E5B5;
    --gold-dark: #A9844C;
    --cream: #FDFBF7;
    --cream-light: #FFF9E3;
    --text-dark: #1A1A1A;
    --text-muted: #5C5A55;
    --gold-brush: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    --navy-brush: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    --card-brush: linear-gradient(135deg, var(--card-blue) 0%, var(--card-light) 50%, var(--card-blue) 100%);
    --cream-brush: linear-gradient(135deg, var(--cream) 0%, var(--cream-light) 50%, var(--cream) 100%);
    /* Headings in Open Sans too, the app's font; weight and size set them apart. */
    --serif: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --radius: 18px;
    --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Grid and flex children with screenshots must be allowed to shrink below the image's width. */
.hero .wrap > *, .shots > *, .split > * { min-width: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 18, 32, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(197, 160, 101, 0.25);
}

header.site .bar {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.brand span {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--gold-brush);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav.links { display: flex; gap: 26px; }

nav.links a {
    color: rgba(249, 229, 181, 0.78);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color .2s;
}

nav.links a:hover { color: var(--gold-light); }

select.lang {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid rgba(197, 160, 101, 0.45);
    border-radius: 10px;
    padding: 7px 10px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

select.lang option { color: var(--text-dark); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}

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

.btn-gold {
    background: var(--gold-brush);
    color: var(--navy);
    box-shadow: 0 6px 22px rgba(197, 160, 101, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-gold:hover { box-shadow: 0 10px 30px rgba(197, 160, 101, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

.btn-outline {
    color: var(--gold-light);
    border: 1px solid rgba(249, 229, 181, 0.55);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover { background: rgba(249, 229, 181, 0.08); }

.btn-login { padding: 10px 20px; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--cream);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(197, 160, 101, 0.22), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(28, 69, 120, 0.55), transparent 60%),
        linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-light) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: var(--gold-brush);
    opacity: .6;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 84px;
    padding-bottom: 96px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    line-height: 1.12;
    margin: 0 0 22px;
    font-weight: 700;
}

.hero h1 em {
    font-style: normal;
    background: var(--gold-brush);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.15rem;
    color: rgba(253, 251, 247, 0.78);
    max-width: 540px;
    margin: 0 0 34px;
}

.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.store-badges.center { justify-content: center; }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(0, 18, 32, 0.72);
    border: 1px solid rgba(249, 229, 181, 0.4);
    color: var(--cream);
    text-decoration: none;
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.store-badge:hover {
    transform: translateY(-1px);
    border-color: var(--gold-light);
    background: rgba(0, 18, 32, 0.92);
}

.store-badge .store-icon {
    width: 24px;
    height: 24px;
    fill: var(--gold-light);
    flex: 0 0 24px;
}

.store-badge .store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-badge .store-text small {
    font-size: 0.7rem;
    color: rgba(249, 229, 181, 0.78);
    letter-spacing: 0.02em;
}

.store-badge .store-text strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--cream);
}

.hero .note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: rgba(249, 229, 181, 0.65);
}

.device-stage { position: relative; min-height: 420px; }

.frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(249, 229, 181, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(197, 160, 101, 0.08);
    background: var(--navy-deep);
}

.device-stage .desktop { width: 100%; }

.device-stage .phone {
    position: absolute;
    width: 32%;
    right: -4%;
    bottom: -36px;
    border-radius: 26px;
    border: 3px solid rgba(249, 229, 181, 0.55);
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.section-head h2 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--navy);
}

.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

.dark { background: var(--navy-brush); color: var(--cream); }

.dark .section-head h2 { color: var(--gold-light); }

.dark .section-head p { color: rgba(253, 251, 247, 0.72); }

.cream { background: var(--cream-brush); }

/* Pillars (just below the hero) */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
}

.pillar {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: 0 14px 40px rgba(0, 43, 73, 0.12);
    border: 1px solid rgba(197, 160, 101, 0.28);
}

.pillar strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.pillar span { color: var(--text-muted); font-size: 0.93rem; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
    border-radius: var(--radius);
    padding: 28px;
    background: var(--card-brush);
    color: var(--cream);
    border: 1px solid rgba(249, 229, 181, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    transition: transform .2s ease, border-color .2s;
}

.card:hover { transform: translateY(-3px); border-color: rgba(249, 229, 181, 0.45); }

.card h3 {
    font-family: var(--serif);
    color: var(--gold-light);
    font-size: 1.28rem;
    margin: 18px 0 8px;
}

.card p { margin: 0; color: rgba(253, 251, 247, 0.75); font-size: 0.97rem; }

.icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--gold-brush);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(197, 160, 101, 0.35);
}

.icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: center; }

.shots figure { margin: 0; }

.shots figcaption {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
}

.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.phones .frame { border-radius: 22px; border-width: 3px; }

/* Roles */
.roles .card { background: #fff; color: var(--text-dark); border-color: rgba(197, 160, 101, 0.3); box-shadow: 0 14px 38px rgba(0, 43, 73, 0.1); }

.roles .card h3 { color: var(--navy); margin-top: 0; }

.roles .badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }

ul.ticks li {
    position: relative;
    padding-left: 28px;
    margin: 9px 0;
    font-size: 0.97rem;
}

ul.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold-brush);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}

ul.ticks li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: calc(0.45em + 4px);
    width: 5px;
    height: 8px;
    border: solid var(--navy);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.roles ul.ticks li { color: var(--text-muted); }

/* Payroll split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.split h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 0 0 16px; color: var(--navy); }

.split p { color: var(--text-muted); font-size: 1.05rem; }

.estimate-card {
    background: var(--navy-brush);
    color: var(--cream);
    border-radius: 22px;
    padding: 30px;
    border: 1px solid rgba(249, 229, 181, 0.3);
    box-shadow: 0 26px 60px rgba(0, 43, 73, 0.35);
}

.estimate-card h4 { margin: 0 0 4px; font-family: var(--serif); color: var(--gold-light); font-size: 1.25rem; }

.estimate-card .sub { color: rgba(253, 251, 247, 0.6); font-size: 0.88rem; margin-bottom: 18px; }

.estimate-card .row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(249, 229, 181, 0.18);
    font-size: 0.97rem;
}

.estimate-card .row b { font-variant-numeric: tabular-nums; }

.estimate-card .row.total { border-bottom: 0; padding-top: 16px; font-size: 1.1rem; }

.estimate-card .row.total b { background: var(--gold-brush); -webkit-background-clip: text; background-clip: text; color: transparent; }

.estimate-card .foot { margin-top: 12px; font-size: 0.8rem; color: rgba(253, 251, 247, 0.5); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.trust .item { display: flex; gap: 16px; align-items: flex-start; }

.trust .item h3 { margin: 0 0 6px; font-family: var(--serif); color: var(--gold-light); font-size: 1.15rem; }

.trust .item p { margin: 0; color: rgba(253, 251, 247, 0.72); font-size: 0.96rem; }

.trust .icon { flex: 0 0 50px; }

/* Call to action */
.cta-band { text-align: center; }

.cta-band .panel {
    background:
        radial-gradient(600px 240px at 50% 0%, rgba(197, 160, 101, 0.25), transparent 70%),
        var(--navy-brush);
    color: var(--cream);
    border-radius: 28px;
    padding: 64px 32px;
    border: 1px solid rgba(249, 229, 181, 0.3);
    box-shadow: 0 30px 70px rgba(0, 43, 73, 0.3);
}

.cta-band h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 12px; color: var(--gold-light); }

.cta-band p { margin: 0 auto 30px; max-width: 560px; color: rgba(253, 251, 247, 0.75); }

/* ---------- Footer ---------- */
footer.site {
    background: var(--navy-deep);
    color: rgba(253, 251, 247, 0.6);
    padding: 44px 0;
    font-size: 0.92rem;
    border-top: 1px solid rgba(197, 160, 101, 0.25);
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }

footer.site nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer.site .google-note { flex-basis: 100%; margin: 0; font-size: 0.85rem; opacity: 0.8; line-height: 1.5; }
footer.site .operator { flex-basis: 100%; margin: 0; font-size: 0.85rem; opacity: 0.8; }

footer.site a { color: var(--gold-light); text-decoration: none; opacity: .85; }

footer.site a:hover { opacity: 1; }

/* ---------- Legal pages ---------- */
.legal-hero {
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: var(--cream);
    padding: 64px 0 120px;
}

.legal-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 8px; color: var(--gold-light); }

.legal-hero p { margin: 0; color: rgba(253, 251, 247, 0.7); }

.legal {
    max-width: 860px;
    margin: -84px auto 80px;
    background: #fff;
    border-radius: 24px;
    padding: 48px 56px;
    border: 1px solid rgba(197, 160, 101, 0.3);
    box-shadow: 0 24px 60px rgba(0, 43, 73, 0.14);
    position: relative;
}

.legal h2 {
    font-family: var(--serif);
    color: var(--navy);
    font-size: 1.35rem;
    margin: 2em 0 0.6em;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(197, 160, 101, 0.35);
}

.legal h2:first-of-type { margin-top: 0.4em; }
.legal h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; color: var(--navy); }

.legal p, .legal li { color: #33312d; }

.legal a { color: var(--navy-light); }

.legal table { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin: 12px 0; }

.legal th, .legal td { border: 1px solid #e6dcc7; padding: 8px 10px; text-align: left; vertical-align: top; }

.legal th { background: #faf5ea; color: var(--navy); }

.legal .table-scroll { overflow-x: auto; }

.legal .lang-switch {
    display: inline-block;
    margin-bottom: 26px;
    font-weight: 700;
    color: var(--gold-dark);
    text-decoration: none;
}

/* ---------- Help centre (/help, scripts/docs/build_help_site.py) ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

a.lang-switch {
    color: var(--gold-light);
    border: 1px solid rgba(197, 160, 101, 0.45);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

a.lang-switch:hover { background: rgba(249, 229, 181, 0.08); }
a.lang-switch + a.lang-switch { margin-left: 6px; }

nav.links a[aria-current="page"] { color: var(--gold-light); }

section.help-hero { padding: 0; }

.help-hero .wrap { display: block; padding-top: 56px; padding-bottom: 64px; }

.help-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }

.help-hero p.lead { max-width: 720px; margin-bottom: 0; }

.help-hero .crumbs { font-size: 0.9rem; color: rgba(249, 229, 181, 0.7); margin-bottom: 14px; }

.help-hero .crumbs a { color: var(--gold-light); }

.help-hero .search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    margin-top: 30px;
    background: #fff;
    border-radius: 14px;
    padding: 4px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.help-hero .search svg { width: 20px; height: 20px; fill: var(--text-muted); flex: 0 0 20px; }

.help-hero .search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.02rem;
    padding: 12px 0;
    color: var(--text-dark);
}

.help-body { padding-top: 48px; padding-bottom: 80px; }

.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.topics.sections { margin-bottom: 26px; }

.help-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(197, 160, 101, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 43, 73, 0.06);
    transition: transform .15s ease, box-shadow .2s ease;
}

.help-card[hidden] { display: none; }

.help-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 43, 73, 0.12); }

.help-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }

.help-card p { margin: 0; font-size: 0.93rem; color: var(--text-muted); line-height: 1.5; }

.help-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--navy-brush);
}

.help-icon.warm { background: var(--gold-brush); }

.help-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.help-icon.warm svg { stroke: var(--navy); }

.no-results { display: none; color: var(--text-muted); }

.help-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 200px;
    gap: 32px;
    align-items: start;
}

.help .side { position: sticky; top: 96px; font-size: 0.92rem; }

.help .side h2 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0 0 10px;
}

.help .side nav { display: flex; flex-direction: column; gap: 2px; }

.help .side a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    line-height: 1.35;
}

.help .side a:hover { color: var(--navy); background: rgba(197, 160, 101, 0.12); }

.help .side a[aria-current="page"] { color: var(--navy); font-weight: 700; background: rgba(197, 160, 101, 0.18); }

.doc {
    background: #fff;
    border: 1px solid rgba(197, 160, 101, 0.3);
    border-radius: 24px;
    padding: 36px 44px;
    box-shadow: 0 24px 60px rgba(0, 43, 73, 0.08);
}

.doc h2 {
    font-family: var(--serif);
    color: var(--navy);
    font-size: 1.35rem;
    margin: 1.8em 0 0.6em;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(197, 160, 101, 0.35);
    scroll-margin-top: 90px;
}

.doc h2:first-child { margin-top: 0; }

.doc h3 { color: var(--navy); font-size: 1.1rem; margin: 1.4em 0 0.4em; scroll-margin-top: 90px; }

.doc p, .doc li { color: #33312d; }

.doc li { margin: 4px 0; }

.doc a { color: var(--navy-light); }

.doc code { background: #faf5ea; border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }

.doc pre { background: var(--navy-deep); color: var(--cream); border-radius: 12px; padding: 16px; overflow-x: auto; }

.doc pre code { background: none; padding: 0; }

.doc .table-scroll { overflow-x: auto; margin: 12px 0; }

.doc table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }

.doc th, .doc td { border: 1px solid #e6dcc7; padding: 8px 10px; text-align: left; vertical-align: top; }

.doc th { background: #faf5ea; color: var(--navy); }

.doc .note { border-left: 4px solid var(--gold); background: var(--cream-light); border-radius: 0 12px 12px 0; padding: 4px 16px; margin: 14px 0; }

.pager { display: flex; gap: 16px; margin-top: 24px; }

.pager a {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(197, 160, 101, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--navy);
}

.pager a.next { text-align: right; margin-left: auto; }

.pager small { color: var(--text-muted); }

.help-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    background: var(--navy-brush);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.help-contact p { margin: 0; max-width: 560px; }

.help-contact strong { color: var(--gold-light); }

@media (max-width: 1080px) {
    .help-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .help .side.toc { display: none; }
}

@media (max-width: 860px) {
    .topics { grid-template-columns: 1fr 1fr; }
    .help-layout { grid-template-columns: minmax(0, 1fr); }
    .help .side.pages { position: static; order: 2; }
}

@media (max-width: 560px) {
    .topics { grid-template-columns: 1fr; }
    .doc { padding: 24px 18px; border-radius: 18px; }
    .pager { flex-direction: column; }
    .help-hero .wrap { padding-top: 40px; padding-bottom: 48px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .wrap, .split { grid-template-columns: 1fr; }
    .device-stage { min-height: 0; margin-bottom: 30px; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .trust { grid-template-columns: 1fr 1fr; }
    .shots { grid-template-columns: 1fr; }
}

/* ---------- Pricing (SH-85) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan {
    border-radius: var(--radius);
    background: var(--cream-brush);
    border: 1px solid rgba(0, 43, 73, 0.12);
    box-shadow: 0 10px 28px rgba(0, 18, 32, 0.08);
    padding: 26px 22px;
    text-align: center;
}
.plan.featured { background: var(--navy-brush); color: var(--cream); border: 1px solid var(--gold); }
/* SH-220: the plans in customer language ("Small venue"). */
.plan-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.plan.featured .plan-name { color: var(--gold-light); }
.plan-contact { margin: 16px auto 0; text-align: center; font-weight: 600; }
.plan-contact a { color: var(--navy); text-decoration: underline; }
.plan-seats { color: var(--text-muted); font-size: 0.98rem; }
.plan-seats b { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.plan.featured .plan-seats, .plan.featured .plan-year { color: rgba(253, 251, 247, 0.75); }
.plan.featured .plan-seats b, .plan.featured .plan-price b { color: var(--gold-light); }
.plan-price { margin: 14px 0 6px; }
.plan-price b { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); }
.plan-price span { margin-left: 6px; color: var(--text-muted); }
.plan.featured .plan-price span { color: rgba(253, 251, 247, 0.75); }
.plan-year { font-size: 0.9rem; color: var(--text-muted); }
.plan-offer {
    margin: 26px auto 0; max-width: 720px; text-align: center;
    padding: 14px 18px; border-radius: 14px;
    background: rgba(197, 160, 101, 0.14); border: 1px solid rgba(197, 160, 101, 0.45);
}
.ticks.plan-notes { max-width: 720px; margin: 22px auto 0; }
.ctas.center { justify-content: center; margin-top: 28px; }
.btn-ghost { color: var(--navy); border: 1px solid rgba(0, 43, 73, 0.25); }
.btn-ghost:hover { background: rgba(0, 43, 73, 0.05); }
.mobile-links { display: none; }
/* Anchor jumps land below the sticky header. */
section[id], .anchor-alias { scroll-margin-top: 110px; }
/* An old anchor kept working (#payroll -> #labour-cost, SH-56). */
.anchor-alias { display: block; }

/* ---------- Social proof (SH-218, site-social.js) ---------- */
/* Blocks without real content carry `hidden`; no display rule may bring them back. */
[hidden] { display: none !important; }

.hero .venue-count {
    margin: 22px 0 0;
    font-weight: 700;
    color: var(--gold-light);
}

/* Centred rows: one or two entries sit in the middle, not stretched or pushed left. */
.testimonial-list, .case-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.testimonial-list > *, .case-list > * { flex: 1 1 300px; max-width: 372px; }

.testimonial {
    margin: 0;
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid rgba(197, 160, 101, 0.3);
    box-shadow: 0 14px 38px rgba(0, 43, 73, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-logo { max-height: 40px; max-width: 160px; width: auto; align-self: flex-start; }

.quote-text {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    quotes: "\201C" "\201D";
}

.quote-text::before { content: open-quote; color: var(--gold); font-weight: 800; margin-right: 2px; }
.quote-text::after { content: close-quote; color: var(--gold); font-weight: 800; margin-left: 2px; }
.quote-note { margin: 0; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.quote-person { margin: auto 0 0; color: var(--text-muted); font-size: 0.93rem; }
.quote-person b { display: block; color: var(--navy); }
.quote-link { color: var(--gold-dark); font-weight: 700; text-decoration: none; }
.quote-link:hover { text-decoration: underline; }

.case-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.case-card h3 { margin-top: 6px; }
.case-card .badge { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.case-figure { margin: 14px 0 0; }
.case-figure b, .case-result b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--gold-light); }
.case-figure span { color: rgba(253, 251, 247, 0.75); font-size: 0.93rem; }
.case-more { margin-top: auto; padding-top: 12px; color: var(--gold-light); font-weight: 700; }

.case-body h2:first-child { margin-top: 0; }
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.case-result { padding: 18px; border-radius: 14px; background: var(--navy-brush); color: var(--cream); }
.case-result span { color: rgba(253, 251, 247, 0.78); font-size: 0.93rem; }
.case-quote { margin: 28px 0; }
.case-body .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

@media (max-width: 1000px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    nav.links { display: none; }
    .mobile-links {
        display: flex; gap: 22px; justify-content: center;
        padding-top: 0; padding-bottom: 10px;
    }
    .mobile-links a { color: rgba(253, 251, 247, 0.85); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
    .mobile-links a:hover { color: var(--gold-light); }
    .plan-price span { display: block; margin-left: 0; }
    header.site .bar { gap: 10px; height: 64px; }
    .brand span { font-size: 1.3rem; }
    .brand img { width: 34px; height: 34px; }
    .btn-login { padding: 9px 14px; }
    section { padding: 72px 0; }
    .hero .wrap { padding-top: 56px; padding-bottom: 80px; }
    .pillars, .grid-3, .trust { grid-template-columns: 1fr; }
    .device-stage .phone { width: 38%; right: 0; }
    .legal { padding: 32px 22px; margin: -84px 16px 60px; }
    .wrap { padding: 0 16px; }
    /* After .wrap: its shorthand would otherwise drop the help pages' top and bottom space, and
       the "Still stuck?" card would sit right on the footer. */
    .help-body { padding-top: 32px; padding-bottom: 56px; }
}
