/* TEJ Company — public website styles
   One brand colour (--brand). Change it here to re-colour the whole site. */

:root {
    --brand: #1B4FD8;
    --brand-dark: #153FB0;
    --brand-tint: #EEF3FE;
    --brand-tint-2: #F5F8FF;
    --brand-line: #D8E2FB;

    --ink: #1C2027;
    --text: #2F343C;
    --muted: #6B7280;
    --line: #E3E6EB;
    --line-2: #EEF0F3;
    --bg: #FFFFFF;
    --bg-alt: #F6F7F9;
    --tile: #EEF0F4;

    --ok: #15803D;
    --ok-soft: #E6F4EA;
    --warn: #A16207;
    --warn-soft: #FDF3D7;
    --bad: #C62828;
    --bad-soft: #FDECEC;

    --sans: 'Roboto', 'Segoe UI', Arial, sans-serif;
    --cond: 'Roboto Condensed', 'Roboto', 'Arial Narrow', sans-serif;
    --mono: ui-monospace, Consolas, monospace;

    --container: 1680px;
    --gutter: clamp(20px, 2.5vw, 40px);
    --r: 2px;
    --top-h: 72px;
    --nav-h: 46px;
    --header-h: calc(var(--top-h) + var(--nav-h) + 2px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1 em, h2 em, h3 em { font-style: normal; }
b, strong { font-weight: 500; }
.i { flex-shrink: 0; }
.star { fill: currentColor; color: #F5A623; stroke: none; }
.h3 { font-size: 18px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.eyebrow { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.eyebrow-light { color: #A9B8DA; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text); }
.lead-dark { font-size: 17px; line-height: 1.7; color: var(--text); }
.link-arrow, .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--brand); }
.tag { display: inline-block; padding: 2px 9px; border-radius: var(--r); font-size: 12px; font-weight: 500; background: var(--brand-tint); color: var(--brand); }
.tag-light { background: rgba(255,255,255,.16); color: #fff; }
.center-cta { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 8px 22px; border-radius: var(--btn-r, var(--r));
    font-size: 14.5px; font-weight: 500; line-height: 1.2; white-space: nowrap;
    border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 10px 30px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-caps { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; font-size: 13px; }
.btn-primary, .btn-accent { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-accent:hover { background: var(--brand-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white-line, .btn-outline-light, .btn-ghost-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-white-line:hover, .btn-outline-light:hover, .btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); transition: background-color .25s, box-shadow .25s; }
.has-overlay .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; }
.has-overlay .site-header.is-scrolled, .site-header.is-scrolled { background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header-top { border-bottom: 1px solid var(--line); }
.header-nav { border-bottom: 1px solid var(--line); }
.has-overlay .site-header:not(.is-scrolled) .header-top,
.has-overlay .site-header:not(.is-scrolled) .header-nav { border-color: rgba(255,255,255,.22); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--top-h); }
.brand { display: inline-flex; align-items: center; color: inherit; }
.brand:hover { color: inherit; }
.logo-img { display: block; height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.logo-text { font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .01em; white-space: nowrap; color: inherit; }
.logo-on-dark { display: none; }
.has-overlay .site-header:not(.is-scrolled) .logo-on-dark { display: inline-flex; }
.has-overlay .site-header:not(.is-scrolled) .logo-on-light { display: none; }

.header-tools { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 500; font-size: 14.5px; }
.header-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: inherit; }
.header-phone:hover, .header-icon:hover { color: inherit; opacity: .8; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.has-overlay .site-header:not(.is-scrolled) .cart-count { background: #fff; color: var(--brand); }
.header-quote { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border: 1px solid currentColor; border-radius: 999px; color: inherit; font-size: 13.5px; font-weight: 500; }
.header-quote:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.header-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 14px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: inherit; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: inherit; background: rgba(127,127,127,.14); }
.nav-link.is-active, .nav-link.is-active:hover { background: var(--brand); color: #fff; }
.nav-link .i { transition: transform .2s; }
.nav-link[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav-side { display: flex; gap: 20px; font-size: 13.5px; }
.nav-side a { display: inline-flex; align-items: center; gap: 6px; color: inherit; opacity: .9; }
.nav-side a:hover { color: inherit; opacity: 1; text-decoration: underline; }

.menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; color: var(--text);
    background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.14); padding: 12px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-menu.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu-services { width: 600px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-card { display: block; color: var(--ink); }
.menu-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.menu-card span { display: block; padding: 7px 2px 2px; font-size: 13.5px; font-weight: 500; }
.menu-card:hover { color: var(--brand); }
.menu-products { width: 300px; padding: 6px; }
.menu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; color: var(--ink); }
.menu-row + .menu-row { border-top: 1px solid var(--line-2); }
.menu-row small { color: var(--muted); font-size: 12px; }
.menu-row:hover { background: var(--brand-tint); color: var(--brand); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; color: inherit; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-flush-top { padding-top: 0; }
.section-tint { background: var(--bg-alt); }

.section-title { text-align: center; font-family: var(--cond); font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--brand); margin-bottom: 30px; }
.section-title::after { content: ""; display: block; width: 44px; height: 2px; background: var(--brand); margin: 10px auto 0; }
.section-head { margin: 0 auto 32px; max-width: 760px; text-align: center; }
.section-head .section-title { margin-bottom: 0; }
.section-intro { margin-top: 14px; font-size: 16px; color: var(--muted); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; text-align: left; }
.section-head-row .section-title { text-align: left; }
.section-head-row .section-title::after { margin-left: 0; }
.block-title { font-size: 21px; margin: 40px 0 16px; color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split .section-title, .prose .section-title, .faq-side .section-title, .contact-info .section-title { text-align: left; }
.split .section-title::after, .prose .section-title::after, .faq-side .section-title::after, .contact-info .section-title::after { margin-left: 0; }
.split-actions { display: flex; flex-wrap: wrap; gap: 12px; align-self: center; justify-content: flex-end; }
.content-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- Home hero ---------- */
.hero {
    position: relative; display: flex; align-items: center; min-height: min(92vh, 780px);
    padding: calc(var(--header-h) + 48px) 0 64px; color: #E7ECF5;
    background: linear-gradient(90deg, rgba(9,13,24,var(--ov, .86)) 0%, rgba(9,13,24,calc(var(--ov, .86) * .72)) 45%, rgba(9,13,24,calc(var(--ov, .86) * .2)) 100%), var(--hero) center / cover no-repeat;
}
.hero-inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.hero-label { display: inline-block; padding: 5px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-size: 13px; letter-spacing: .03em; }
.hero h1 { max-width: 680px; margin-top: 20px; font-family: var(--cond); font-size: 56px; line-height: 1.08; color: #fff; }
.hero p { max-width: 560px; margin-top: 18px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); max-width: 560px; font-size: 14px; }
.hero-trust strong { display: inline-flex; align-items: center; gap: 4px; font-family: var(--cond); font-size: 22px; color: #fff; margin-right: 4px; }

/* ---------- Offer banner ---------- */
.offer-banner {
    display: flex; align-items: center; min-height: 420px; padding: 40px 56px; color: var(--ink);
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,0) 64%), var(--img) center right / cover no-repeat;
    border: 1px solid var(--line);
}
.offer-banner:hover { color: var(--ink); }
.offer-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 440px; }
.offer-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.offer-price { font-family: var(--cond); font-size: 96px; font-weight: 700; line-height: 1; color: var(--brand); margin-top: 8px; }
.offer-price small { display: block; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.offer-points { margin-top: 14px; font-size: 15px; color: var(--text); padding-top: 12px; border-top: 1px solid var(--line); }
.offer-btn { margin-top: 26px; padding: 11px 26px; border-radius: var(--btn-r, var(--r)); background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.offer-banner:hover .offer-btn { background: var(--brand-dark); }

/* ---------- Category cards (services) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { position: relative; display: block; color: var(--ink); }
.cat-card:hover { color: var(--ink); }
.cat-img { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--tile); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.04); }
.cat-label { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 10px 14px 12px; background: #fff; }
.cat-label small { grid-column: 1; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.cat-label strong { grid-column: 1; font-size: 17px; font-weight: 500; line-height: 1.3; }
.cat-label .i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); transition: transform .2s, color .2s; }
.cat-card:hover .cat-label .i { transform: translateX(3px); color: var(--brand); }

/* ---------- Tiles (products, projects, store) ---------- */
.tile { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.tile:hover { color: var(--ink); }
.tile-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; color: var(--brand); }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.tile:hover .tile-img img, .tile:hover .tile-img img { transform: scale(1.03); }
.tile-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); opacity: .85; }
.tile-meta { display: flex; flex-direction: column; padding: 10px 0 4px; }
.tile-meta strong, .tile-meta h3 { font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.tile-meta small { font-size: 12.5px; color: var(--muted); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 8px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: var(--r); }
.badge-dark { background: var(--ink); }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mosaic-main { display: flex; flex-direction: column; gap: 12px; }
.tile-lg { flex: 1; }
.tile-lg .tile-img { flex: 1; aspect-ratio: auto; min-height: 420px; }
.tile-lg .tile-meta strong { font-size: 17px; }
.mosaic-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project-card .tile-img { aspect-ratio: 4 / 3; }
.project-ph { display: grid; place-items: center; width: 100%; height: 100%; padding: 20px; text-align: center; background: linear-gradient(135deg, var(--brand), #0E2A78); color: #fff; }
.project-ph strong { font-family: var(--cond); font-size: 22px; line-height: 1.2; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 16px; }
.product-card .tile-img { aspect-ratio: 1; }
.product-meta { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 10px; }
.product-meta h3 a { color: var(--ink); }
.product-meta h3 a:hover { color: var(--brand); }
.product-meta small { display: block; }
.price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.price s { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.product-add { margin-top: 8px; }

/* ---------- Consultation box ---------- */
.consult { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 44px; background: var(--brand-tint-2); border: 1px solid var(--brand-line); }
.consult-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.consult h2 { font-family: var(--cond); font-size: 32px; text-transform: uppercase; color: var(--brand); margin-top: 10px; }
.consult p { margin-top: 10px; color: var(--muted); max-width: 520px; }
.consult-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.consult-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.consult-steps { display: grid; gap: 12px; }
.consult-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); }
.consult-steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }
.consult-steps strong { display: block; color: var(--ink); }
.consult-steps small { color: var(--muted); font-size: 13px; }
.consult-form { background: #fff; padding: 24px; border: 1px solid var(--line); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.review-stars { display: flex; gap: 2px; }
.review blockquote { margin: 0; color: var(--text); flex: 1; }
.review figcaption { padding-top: 12px; border-top: 1px solid var(--line-2); }
.review figcaption b { display: block; color: var(--ink); }
.review figcaption small { color: var(--muted); font-size: 12.5px; }

/* ---------- Generic cards (tools, product features) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: #fff; border: 1px solid var(--line); color: var(--text); transition: border-color .15s; }
a.service-card:hover { border-color: var(--brand); color: var(--text); }
.service-card h3, .service-card h2 { font-size: 18px; font-weight: 500; }
.service-card p { color: var(--muted); }
.service-card .more { margin-top: auto; padding-top: 6px; }
.service-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); margin-bottom: 6px; }

/* ---------- About ---------- */
.fact-table { margin: 0; border: 1px solid var(--line); }
.fact-table div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line-2); }
.fact-table div:first-child { border-top: 0; }
.fact-table dt { font-weight: 500; color: var(--ink); }
.fact-table dd { margin: 0; color: var(--muted); }
.stats-strip { border-block: 1px solid var(--line); background: #fff; }
.stats-strip.is-tint { background: var(--brand-tint-2); border-color: var(--brand-line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid > div { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; }
.stats-grid strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--brand); }
.stats-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { padding: 26px; border: 1px solid var(--line); }
.value-card h3 { font-size: 18px; font-weight: 500; margin-top: 4px; }
.value-card p { margin-top: 6px; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin-inline: auto; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; background: #fff; border: 1px solid var(--line); }
.team-card b { font-size: 17px; color: var(--ink); margin-top: 14px; }
.team-card small { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-xl { width: 84px; height: 84px; font-size: 26px; }

/* ---------- Products page ---------- */
.product-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); background: #fff; }
.duo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.duo-head h3, .duo-head h2 { font-family: var(--cond); font-size: 28px; color: var(--brand); }
.duo-tagline { margin-top: 14px; color: var(--muted); }
.duo-card .checklist { margin-top: 18px; }
.duo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
.other-products { margin-top: 40px; }
.other-products h3 { font-size: 18px; margin-bottom: 14px; }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-grid a { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); color: var(--text); }
.other-grid a:hover { border-color: var(--brand); color: var(--text); }
.other-grid strong { display: block; color: var(--ink); }
.other-grid small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.other-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }

.checklist { display: grid; gap: 9px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .i { color: var(--brand); margin-top: 4px; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 20px; }
.who-list li { display: flex; gap: 10px; align-items: center; }
.who-list .i { color: var(--brand); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq-side p { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--brand); transition: transform .2s; }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Forms ---------- */
.lead-form, .form-stack { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink); }
.field > span small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 8px 12px; background: #fff; border: 1px solid #CDD2DA; border-radius: var(--r); font-size: 15px; transition: border-color .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,79,216,.12); }
.field input[type=color] { padding: 4px; height: 42px; cursor: pointer; }
.form-foot { display: grid; gap: 10px; margin-top: 4px; }
.form-foot .btn { width: 100%; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; font-size: 13px; }
.form-foot small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.form-error, .notice { padding: 12px 16px; font-size: 14.5px; }
.form-error, .notice-error { background: var(--bad-soft); color: var(--bad); border: 1px solid #F5C6C6; }
.notice-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #BFE0C9; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { font-size: 20px; }
.form-card > .muted { margin: 4px 0 18px; font-size: 14px; }

/* ---------- Page banner ---------- */
.page-hero {
    padding: calc(var(--header-h) + 56px) 0 56px; color: #DCE3F0;
    background: linear-gradient(rgba(9,13,24,.72), rgba(9,13,24,.72)), var(--hero, url('../img/stock/office.jpg')) center / cover no-repeat;
}
body:not(.has-overlay) .page-hero { padding-top: 56px; }
.page-title { font-family: var(--cond); font-size: 40px; text-transform: uppercase; color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; color: #B9C3D6; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero .lead { color: #DCE3F0; margin-top: 16px; max-width: 720px; }
.page-hero .lead a { color: #fff; text-decoration: underline; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero.is-light { background: var(--bg-alt); color: var(--text); padding: 24px 0; border-bottom: 1px solid var(--line); }
.page-hero.is-light .page-title { color: var(--ink); font-size: 28px; }
.page-hero.is-light .crumbs { color: var(--muted); }
.page-hero.is-light .crumbs a { color: var(--brand); }

.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.product-hero .crumbs { margin: 0 0 20px; }
.product-hero .page-title { font-size: 48px; margin-top: 12px; text-transform: none; }
.product-headline { font-size: 20px; font-weight: 500; color: #fff; margin-top: 4px; }
.product-screen { background: #fff; padding: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }

/* ---------- Side cards ---------- */
.side-card { background: #fff; border: 1px solid var(--line); padding: 24px; display: grid; gap: 14px; align-content: start; }
.side-title { font-size: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.side-card-navy { background: var(--brand); border-color: var(--brand); color: #E1E8FA; }
.side-card-navy .side-title { color: #fff; border-color: rgba(255,255,255,.2); }
.side-card-navy .btn-primary { background: #fff; color: var(--brand); }
.side-card-navy .btn-primary:hover { background: var(--brand-tint); color: var(--brand); }
.side-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #C4D2F6; }
.side-price { font-family: var(--cond); font-size: 28px; color: #fff; line-height: 1.2; }
.side-links li + li { border-top: 1px solid var(--line-2); }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--text); }
.side-links a:hover, .side-links a.is-on { color: var(--brand); }
.side-links a.is-on { font-weight: 500; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); }
.feature h3 { font-size: 15.5px; font-weight: 500; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.feature-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { margin-top: 24px; border: 1px solid var(--line); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; }
.contact-list li + li { border-top: 1px solid var(--line-2); }
.contact-list small { display: block; font-size: 12px; color: var(--muted); }
.contact-list a, .contact-list span:not(.contact-icon) { font-weight: 500; color: var(--ink); }
.contact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }
.thanks { text-align: center; padding: 16px 0; }
.thanks h2 { margin-top: 18px; }
.thanks p { margin-top: 10px; color: var(--muted); }
.thanks .pay-actions { justify-content: center; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border: 1px solid var(--line); background: #fff; }
.price-card.is-featured { border: 2px solid var(--brand); }
.price-card h3 { font-size: 19px; font-weight: 500; }
.price-card > .muted { font-size: 14px; }
.price-amt { font-family: var(--cond); font-size: 38px; font-weight: 700; color: var(--brand); line-height: 1.1; padding: 12px 0; border-block: 1px solid var(--line-2); }
.price-amt small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.price-card .checklist { font-size: 14.5px; flex: 1; }
.price-card form { margin-top: 10px; }
.price-card .badge { top: -11px; left: 24px; }
.compare-note { margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.custom-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.custom-plan { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); }
.custom-plan h3 { font-size: 17px; font-weight: 500; }
.custom-plan p { color: var(--muted); font-size: 14.5px; flex: 1; }

/* ---------- Filters ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips a { padding: 6px 16px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.filter-chips a:hover { border-color: var(--ink); color: var(--ink); }
.filter-chips a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.work-filters { margin-bottom: 28px; justify-content: center; }
.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.store-count { color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed #CDD2DA; background: var(--bg-alt); }
.empty-state p { margin: 10px auto 22px; color: var(--muted); max-width: 480px; }
.assure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.assure-grid li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; }
.assure-grid .why-icon { grid-row: span 2; }
.assure-grid h3 { font-size: 15.5px; font-weight: 500; }
.assure-grid p { font-size: 13.5px; color: var(--muted); }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }
.case-cover { border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-cover .project-ph strong { font-size: 32px; }

/* Store item */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-media { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 1; display: grid; place-items: center; background: var(--tile); overflow: hidden; color: var(--brand); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.product-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; color: var(--brand); }
.product-ph small { font-size: 13px; color: var(--muted); }
.product-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.pd-info h1 { font-size: 30px; font-weight: 500; margin: 6px 0 10px; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-price strong { font-family: var(--cond); font-size: 34px; font-weight: 700; color: var(--ink); }
.pd-price s { color: var(--muted); font-size: 17px; }
.save { padding: 2px 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pd-note { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #CDD2DA; background: #fff; height: 50px; }
.qty button { display: grid; place-items: center; width: 42px; height: 100%; color: var(--ink); }
.qty button:hover { background: var(--bg-alt); }
.qty input { width: 46px; height: 100%; border: 0; border-inline: 1px solid var(--line-2); text-align: center; font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; background: var(--bg-alt); }
.qty-sm { height: 36px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 38px; }
.assurance { display: grid; gap: 10px; margin-top: 24px; padding: 18px; background: var(--brand-tint-2); border: 1px solid var(--brand-line); font-size: 14.5px; }
.assurance div { display: flex; align-items: center; gap: 10px; }
.assurance .i { color: var(--brand); }
.pd-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.pd-section h2 { font-size: 19px; margin-bottom: 14px; }

/* Cart / checkout / order */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-list { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-thumb { width: 80px; height: 80px; background: var(--tile); overflow: hidden; display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 15.5px; font-weight: 500; }
.cart-item h3 a { color: var(--ink); }
.cart-item small { color: var(--muted); font-size: 13px; }
.cart-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); color: var(--muted); }
.icon-btn:hover { border-color: var(--bad); color: var(--bad); }
.cart-line { font-weight: 700; font-size: 16px; color: var(--ink); min-width: 90px; text-align: right; }
.cart-list .link-arrow { margin-top: 20px; }
.summary { background: var(--bg-alt); border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.summary-row, .summary-items div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.summary-items { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-items span:first-child { color: var(--muted); }
.summary-row.total { font-weight: 700; font-size: 18px; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
.summary-items + .summary-row.total { border-top: 0; padding-top: 0; }
.summary-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.summary-note .i { margin-top: 3px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid #CDD2DA; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint-2); }
.pay-option input { margin-top: 5px; accent-color: var(--brand); }
.pay-option b { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.pay-option small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pay-tag { padding: 1px 8px; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; }
.order-box { max-width: 760px; }
.order-head { text-align: center; padding: 8px 0 12px; }
.order-head h1 { font-size: 28px; margin-top: 16px; }
.order-head p { color: var(--muted); margin-top: 8px; }
.order-check { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.order-check.is-pending { background: var(--warn-soft); color: var(--warn); }
.order-no { display: inline-block; margin-top: 14px; padding: 4px 14px; border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.pay-box { margin-top: 24px; padding: 28px; background: var(--brand); color: #E1E8FA; }
.pay-box h2 { color: #fff; font-size: 21px; }
.pay-box p { margin-top: 8px; }
.pay-box .btn-primary, .pay-box .btn-accent { background: #fff; color: var(--brand); }
.pay-box .kv div { border-color: rgba(255,255,255,.2); }
.pay-box .kv dt { color: #C4D2F6; }
.pay-box .kv dd { color: #fff; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.kv { margin: 16px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; word-break: break-word; }
.side-card .kv { margin: 0; }
.status-pill { display: inline-block; padding: 3px 10px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; }
.status-pill.ok { background: var(--ok-soft); color: var(--ok); border-color: #BFE0C9; }
.status-pill.warn { background: var(--warn-soft); color: var(--warn); border-color: #F1DCA4; }

/* ---------- Prose ---------- */
.prose { color: var(--text); font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 23px; margin-top: 34px; }
.prose h3 { font-size: 19px; margin-top: 26px; }
.prose h2.section-title { margin: 0 0 22px; font-size: 32px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--brand); background: var(--brand-tint-2); color: var(--ink); font-size: 17px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-lead { margin-bottom: 28px; }
.post-card { display: flex; flex-direction: column; color: var(--text); }
.post-card:hover { color: var(--text); }
.post-cover { aspect-ratio: 16 / 10; background: var(--tile); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-cover-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--brand-tint); color: var(--brand); font-family: var(--cond); font-weight: 700; font-size: 22px; text-transform: uppercase; padding: 20px; text-align: center; }
.post-meta { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 0; flex: 1; }
.post-info { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.post-meta h3 { font-size: 17px; font-weight: 500; color: var(--ink); }
.post-card:hover h3 { color: var(--brand); }
.post-meta p { color: var(--muted); font-size: 14px; }
.post-meta .more { margin-top: auto; padding-top: 4px; font-size: 14px; }
.post-card.is-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.post-card.is-featured .post-cover { aspect-ratio: 16 / 10; }
.post-card.is-featured h3 { font-size: 26px; }

.article-title { text-transform: none; font-size: 36px; max-width: 900px; }
.article-byline { margin-top: 12px; color: #B9C3D6; font-size: 14px; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; margin-top: 40px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-block: 48px 72px; }
.article-body { max-width: 760px; }
.article-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.toc, .share { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); }
.toc .eyebrow, .share .eyebrow { margin-bottom: 4px; }
.toc a, .share a { color: var(--text); font-size: 14px; line-height: 1.4; }
.share a { display: inline-flex; align-items: center; gap: 8px; }
.toc a:hover, .share a:hover { color: var(--brand); }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px !important; padding: 24px; background: var(--brand-tint-2); border: 1px solid var(--brand-line); }
.article-cta strong { font-size: 17px; color: var(--ink); }
.article-cta p { margin: 2px 0 0 !important; font-size: 14px; color: var(--muted); }

/* ---------- Free tools ---------- */
.tool-section { padding-top: 48px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; }
.tool-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.tool-result { background: var(--ink); color: #D5DAE2; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tool-result .kv { margin-top: 0; }
.tool-result .kv div { border-color: rgba(255,255,255,.14); }
.tool-result .kv dt { color: #9AA3B2; }
.tool-result .kv dd { color: #fff; }
.tool-result .btn { margin-top: auto; }
.result-total small { display: block; color: #9AA3B2; font-size: 13px; }
.result-total strong { display: block; font-family: var(--cond); font-size: 42px; font-weight: 700; color: #fff; line-height: 1.15; word-break: break-all; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #CDD2DA; overflow: hidden; }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid #CDD2DA; }
.seg input, .rate-chips input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; font-weight: 500; font-size: 14px; text-align: center; line-height: 1.25; color: var(--text); background: #fff; }
.seg small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:checked + span small { color: #D6E0FA; }
.seg input:focus-visible + span, .rate-chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.rate-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-chips label { position: relative; cursor: pointer; }
.rate-chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #CDD2DA; font-weight: 500; background: #fff; }
.rate-chips input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.rate-custom input { width: 110px; height: 40px; padding: 0 12px; border: 1px solid #CDD2DA; }
.rate-custom input:focus { outline: none; border-color: var(--brand); }
.qr-frame { background: #fff; aspect-ratio: 1; display: grid; place-items: center; padding: 8%; position: relative; }
#qr-out { width: 100%; display: grid; place-items: center; }
#qr-out img, #qr-out canvas { width: 100% !important; height: auto !important; image-rendering: pixelated; }
#qr-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.qr-caption { color: #9AA3B2; font-size: 13px; text-align: center; min-height: 21px; word-break: break-all; }
.tool-explain { margin-top: 56px; max-width: 820px; }
.tool-explain h2:first-child { margin-top: 0; }
.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 24px; background: var(--brand-tint-2); border: 1px solid var(--brand-line); }
.tool-cta strong { font-size: 17px; color: var(--ink); }
.tool-cta p { color: var(--muted); margin-top: 2px; font-size: 14px; }
.tool-others { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.tool-others a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.tool-privacy { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Invoice — controls */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inv-controls { display: grid; gap: 18px; margin-bottom: 20px; padding: 20px; background: var(--bg-alt); border: 1px solid var(--line); }
.inv-control-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; }
.inv-control { display: grid; gap: 6px; min-width: 0; }
.inv-control[hidden] { display: none; }
.inv-control-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inv-control .seg { min-width: 320px; background: #fff; }
.inv-select { min-height: 46px; min-width: 200px; padding: 8px 12px; border: 1px solid #CDD2DA; background: #fff; font-size: 15px; font-weight: 500; }
.inv-select:focus { outline: none; border-color: var(--brand); }
.inv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.tpl-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.tpl-option { position: relative; cursor: pointer; text-align: center; }
.tpl-option input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-name { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.tpl-option input:checked ~ .tpl-name { color: var(--brand); font-weight: 700; }
.tpl-option input:focus-visible + .tpl-thumb { outline: 2px solid var(--brand); outline-offset: 2px; }
.tpl-thumb { position: relative; display: flex; flex-direction: column; gap: 5px; width: 104px; height: 132px; padding: 12px 10px; background: #fff; border: 2px solid var(--line); transition: border-color .15s; --a: var(--inv-accent, #1B4FD8); }
.tpl-option:hover .tpl-thumb { border-color: #AEB6C2; }
.tpl-option input:checked + .tpl-thumb { border-color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.tpl-thumb i { display: block; height: 14px; margin-bottom: 6px; }
.tpl-thumb b { display: block; height: 6px; background: #E3E6EB; }
.tpl-thumb b:nth-of-type(2) { width: 80%; }
.tpl-thumb b:nth-of-type(3) { width: 60%; }
.tpl-thumb em { display: block; width: 50%; height: 12px; margin: auto 0 0 auto; }
.tpl-thumb-classic i { width: 50%; margin-left: auto; border-bottom: 3px solid #111; }
.tpl-thumb-classic em { border-top: 3px solid #111; }
.tpl-thumb-modern i { height: 26px; margin: -12px -10px 6px; background: var(--a); }
.tpl-thumb-modern em { background: var(--a); }
.tpl-thumb-minimal i { width: 40%; height: 6px; background: var(--a); margin-bottom: 12px; }
.tpl-thumb-minimal b { height: 2px; }
.tpl-thumb-minimal em { height: 6px; background: var(--a); width: 35%; }
.tpl-thumb-bold { border-left: 8px solid var(--a); }
.tpl-option input:checked + .tpl-thumb-bold { border-left-color: var(--a); }
.tpl-thumb-bold i { width: 70%; height: 16px; background: var(--a); }
.tpl-thumb-bold em { background: #111; }
.tpl-thumb-traditional { outline: 1px solid #555; outline-offset: -8px; }
.tpl-thumb-traditional i { width: 60%; margin: 0 auto 6px; border: 2px solid #555; background: color-mix(in srgb, var(--a) 18%, #fff); }
.tpl-thumb-traditional em { border: 2px solid #555; }
.inv-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-swatch { position: relative; cursor: pointer; }
.inv-swatch input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.inv-swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #CDD2DA; }
.inv-swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.inv-swatch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.inv-swatch-custom input[type=color] { width: 34px; height: 34px; padding: 0; border: 1px dashed #AEB6C2; border-radius: 50%; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.inv-swatch-custom input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.inv-swatch-custom input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.inv-logo-actions { display: flex; gap: 8px; }
.inv-logo-actions .btn { cursor: pointer; }

/* Invoice — document */
.invoice { --pad: clamp(20px, 4vw, 48px); --inv-accent: #1B4FD8; background: #fff; color: #111; border: 1px solid var(--line); padding: var(--pad); font-size: 14px; }
.invoice input, .invoice textarea { width: 100%; border: 1px dashed transparent; border-radius: 2px; padding: 4px 6px; margin-left: -7px; background: transparent; font: inherit; color: inherit; resize: none; overflow: hidden; }
.invoice input:hover, .invoice textarea:hover { border-color: var(--line); }
.invoice input:focus, .invoice textarea:focus { outline: none; border-color: var(--brand); background: #F8FAFF; }
.invoice input::placeholder, .invoice textarea::placeholder { color: #B0B8C2; }
.invoice input[type=number] { -moz-appearance: textfield; }
.invoice input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.inv-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 32px; padding-bottom: 24px; border-bottom: 2px solid #111; }
.inv-seller { display: grid; gap: 2px; color: #444; }
.inv-big { font-size: 22px !important; font-weight: 700; color: #111 !important; }
.inv-mid { font-size: 16px !important; font-weight: 500; color: #111; }
.inv-meta { display: grid; gap: 4px; align-content: start; }
.inv-title { display: block; font-size: 24px; font-weight: 700; text-align: right; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.inv-band { display: none; }
.inv-logo { display: block; max-width: 200px; max-height: 64px; object-fit: contain; object-position: left; margin-bottom: 8px; }
.inv-logo[hidden] { display: none; }
.inv-meta label { display: grid; grid-template-columns: 120px 1fr; align-items: center; font-size: 12.5px; color: #666; }
.inv-meta input { text-align: right; color: #111; font-size: 14px; }
.inv-bill { display: grid; gap: 2px; padding: 20px 0; color: #444; max-width: 420px; }
.inv-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: 4px; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #555; text-align: left; padding: 10px 6px; background: #F2F4F7; border-top: 1px solid #DDD; border-bottom: 1px solid #DDD; }
.inv-items td { padding: 6px; border-bottom: 1px solid #EEE; vertical-align: middle; }
.inv-items .num, .inv-items .num input { text-align: right; }
.inv-items .num input { width: 90px; margin-left: 0; margin-right: -7px; }
.inv-items .w-hsn { width: 90px; }
.inv-items .idx { color: #999; width: 28px; }
.inv-items .amt { font-weight: 500; white-space: nowrap; }
.inv-del { width: 26px; height: 26px; color: #999; font-size: 18px; line-height: 1; }
.inv-del:hover { background: var(--bad-soft); color: var(--bad); }
.inv-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; font-weight: 500; font-size: 13.5px; color: var(--brand); border: 1px dashed #CDD2DA; }
.inv-add:hover { border-color: var(--brand); }
.inv-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 32px; margin-top: 24px; }
.inv-notes { display: grid; gap: 2px; align-content: start; }
.inv-notes p { font-weight: 500; margin-bottom: 14px; }
.inv-totals { margin: 0; }
.inv-totals div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #EEE; }
.inv-totals dt { color: #666; }
.inv-totals dd { margin: 0; font-weight: 500; }
.inv-totals .t-grand { border-bottom: 0; border-top: 2px solid #111; margin-top: 4px; padding-top: 12px; font-size: 18px; font-weight: 700; }
.inv-totals .t-grand dt { color: #111; }
.inv-sign { display: flex; flex-direction: column; align-items: flex-end; gap: 48px; margin-top: 40px; font-size: 13px; color: #444; }
.inv-sign-line { border-top: 1px solid #999; padding-top: 6px; min-width: 200px; text-align: center; }
.t-discount dd input { width: 110px; text-align: right; margin: 0 -7px 0 0; padding: 0 6px; }

/* Without GST: hide every tax-only field */
.invoice.no-gst .gst-only { display: none !important; }

/* Template: Modern — colour band on top */
.tpl-modern .inv-band { display: flex; align-items: center; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 28px; padding: 18px var(--pad); background: var(--inv-accent); color: #fff; }
.tpl-modern .inv-band .inv-title { margin: 0; text-align: left; font-size: 22px; letter-spacing: .1em; }
.tpl-modern .inv-title-side { display: none; }
.tpl-modern .inv-head { border-bottom: 0; padding-bottom: 8px; }
.tpl-modern .inv-big { color: var(--inv-accent) !important; }
.tpl-modern .inv-bill { margin-bottom: 8px; padding: 16px 18px; max-width: none; background: color-mix(in srgb, var(--inv-accent) 7%, #fff); border-left: 4px solid var(--inv-accent); }
.tpl-modern .inv-items th { background: var(--inv-accent); color: #fff; border: 0; }
.tpl-modern .inv-totals .t-grand { border: 0; margin-top: 8px; padding: 12px 14px; background: var(--inv-accent); color: #fff; }
.tpl-modern .inv-totals .t-grand dt { color: #fff; }

/* Template: Minimal — light lines, accent only on title and total */
.tpl-minimal .inv-head { border-bottom: 1px solid #E5E7EB; }
.tpl-minimal .inv-title-side { font-size: 13px; letter-spacing: .3em; color: var(--inv-accent); font-weight: 700; }
.tpl-minimal .inv-big { font-weight: 500; }
.tpl-minimal .inv-items th { background: none; border-top: 0; border-bottom: 2px solid var(--inv-accent); color: #6B7280; font-weight: 500; }
.tpl-minimal .inv-items td { border-bottom-color: #F1F2F4; }
.tpl-minimal .inv-totals div { border-bottom: 0; padding: 6px 0; }
.tpl-minimal .inv-totals .t-grand { border-top: 1px solid #E5E7EB; color: var(--inv-accent); }
.tpl-minimal .inv-totals .t-grand dt { color: var(--inv-accent); }

/* Template: Bold — big title, colour strip on the left */
.tpl-bold { border-left: 12px solid var(--inv-accent); }
.tpl-bold .inv-band { display: block; margin-bottom: 18px; }
.tpl-bold .inv-band .inv-title { margin: 0; text-align: left; font-size: 40px; line-height: 1; letter-spacing: -.01em; color: var(--inv-accent); }
.tpl-bold .inv-title-side { display: none; }
.tpl-bold .inv-head { border-bottom: 4px solid #111; }
.tpl-bold .inv-items th { background: #111; color: #fff; border: 0; }
.tpl-bold .inv-totals .t-grand { border: 0; margin-top: 8px; padding: 12px 14px; background: var(--inv-accent); color: #fff; font-size: 20px; }
.tpl-bold .inv-totals .t-grand dt { color: #fff; }

/* Template: Traditional — boxed Indian format with full grid lines */
.tpl-traditional { border: 1px solid #333; }
.tpl-traditional .inv-band { display: block; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; padding: 10px; text-align: center; border-bottom: 1px solid #333; background: color-mix(in srgb, var(--inv-accent) 10%, #fff); }
.tpl-traditional .inv-band .inv-title { margin: 0; text-align: center; font-size: 18px; letter-spacing: .2em; color: var(--inv-accent); }
.tpl-traditional .inv-title-side { display: none; }
.tpl-traditional .inv-head { gap: 0; margin: 0 calc(var(--pad) * -1); padding: 0; border-bottom: 1px solid #333; }
.tpl-traditional .inv-seller, .tpl-traditional .inv-meta { padding: 16px var(--pad); }
.tpl-traditional .inv-meta { border-left: 1px solid #333; }
.tpl-traditional .inv-bill { max-width: none; margin: 0 calc(var(--pad) * -1); padding: 14px var(--pad); border-bottom: 1px solid #333; }
.tpl-traditional .inv-items { margin-top: 0; }
.tpl-traditional .inv-items th, .tpl-traditional .inv-items td { border: 1px solid #333; }
.tpl-traditional .inv-items th { background: color-mix(in srgb, var(--inv-accent) 10%, #fff); color: #111; text-align: center; }
.tpl-traditional .inv-items tr > :first-child { border-left: 0; }
.tpl-traditional .inv-items tr > :last-child:not(.no-print), .tpl-traditional .inv-items .amt { border-right: 0; }
.tpl-traditional .inv-items { width: calc(100% + var(--pad) * 2); margin-left: calc(var(--pad) * -1); }
.tpl-traditional .inv-items td.no-print, .tpl-traditional .inv-items th.no-print { border: 0; }
.tpl-traditional .inv-foot { margin-top: 0; border-top: 0; }
.tpl-traditional .inv-totals { border: 1px solid #333; border-top: 0; padding: 0 12px; }
.tpl-traditional .inv-totals .t-grand { border-top: 1px solid #333; }
.tpl-traditional .inv-sign { margin-top: 24px; }

@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff !important; padding: 0 !important; }
    /* Print only the invoice — everything else is removed so it cannot add blank pages */
    body.tool-invoice-generator > *:not(main),
    body.tool-invoice-generator main > *:not(.tool-section),
    body.tool-invoice-generator .tool-section .container > *:not(#invoice) { display: none !important; }
    body.tool-invoice-generator .tool-section, body.tool-invoice-generator .tool-section .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
    body.tool-invoice-generator #invoice { width: 100%; --pad: 24px; break-inside: auto; overflow: visible; font-size: 13px; }
    /* A4 is narrower than the mobile breakpoint — keep the desktop two-column layout on paper */
    #invoice .inv-head, #invoice .inv-foot { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr) !important; gap: 24px; }
    #invoice.tpl-traditional .inv-head { gap: 0; }
    #invoice.tpl-traditional .inv-meta { border-left: 1px solid #333; border-top: 0; }
    #invoice .inv-items { min-width: 0; }
    #invoice .inv-title { text-align: right; }
    #invoice.tpl-modern .inv-title, #invoice.tpl-bold .inv-title { text-align: left; }
    #invoice.tpl-traditional .inv-band .inv-title { text-align: center; }
    #invoice input, #invoice textarea { padding-top: 1px; padding-bottom: 1px; }
    #invoice .inv-head { padding-bottom: 16px; }
    #invoice .inv-bill { padding: 12px 0; }
    #invoice.tpl-modern .inv-bill, #invoice.tpl-traditional .inv-bill { padding: 10px var(--pad); }
    #invoice .inv-foot { margin-top: 16px; }
    #invoice .inv-sign { margin-top: 24px; gap: 36px; }
    body.tool-invoice-generator #invoice:not(.tpl-traditional):not(.tpl-bold) { border: 0; }
    #invoice { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .no-print, .float-btns, .mobile-bar, .site-header { display: none !important; }
    .invoice input, .invoice textarea { border: 0 !important; background: none !important; }
    .invoice input::placeholder, .invoice textarea::placeholder { color: transparent; }
    .invoice .is-empty { display: none !important; }
}

/* ---------- Product preview screens (TejCRM / TejHR) ---------- */
.app-window { background: #fff; border: 1px solid var(--line); overflow: hidden; font-size: 12px; color: var(--text); }
.app-bar { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; height: 30px; padding: 0 10px; background: #EEF1F5; border-bottom: 1px solid var(--line); }
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: #C9D0DA; }
.app-url { justify-self: center; padding: 1px 12px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 140px 1fr; min-height: 320px; }
.app-hr.is-compact .app-body { grid-template-columns: 1fr; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--ink); color: #C2C8D2; }
.app-side span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.app-side span.on { background: var(--brand); color: #fff; }
.app-side em { margin-left: auto; font-style: normal; font-size: 10px; padding: 0 6px; border-radius: 8px; background: #fff; color: var(--ink); }
.app-logo { padding: 2px 8px 12px; color: #fff; font-size: 15px; }
.app-main { padding: 14px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.app-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-head strong { display: block; font-size: 14px; color: var(--ink); }
.app-head small { color: var(--muted); font-size: 11px; }
.app-kpis { display: flex; gap: 8px; }
.app-kpis div { padding: 4px 10px; border: 1px solid var(--line); }
.app-kpis small { display: block; font-size: 10px; color: var(--muted); }
.app-kpis b { font-size: 14px; color: var(--ink); }
.app-kpis .hot { color: var(--bad); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kanban-col { background: var(--bg-alt); padding: 6px; display: grid; gap: 6px; align-content: start; }
.kanban-title { display: flex; justify-content: space-between; font-weight: 500; font-size: 11px; color: var(--text); padding: 2px 2px 4px; }
.kanban-title em { font-style: normal; color: var(--muted); }
.deal { background: #fff; border: 1px solid var(--line); padding: 6px; display: grid; gap: 3px; }
.deal-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.deal-top b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .avatar { width: 18px; height: 18px; font-size: 8px; }
.deal small { color: var(--muted); font-size: 10px; }
.deal-foot { display: flex; justify-content: space-between; font-size: 10px; }
.deal-foot span { font-weight: 700; color: var(--ink); }
.deal-foot i { font-style: normal; color: var(--brand); }
.hr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hr-tiles div { padding: 8px 10px; border: 1px solid var(--line); }
.hr-tiles small { display: block; color: var(--muted); font-size: 10px; }
.hr-tiles b { font-size: 16px; color: var(--ink); }
.bar { display: block; height: 4px; margin-top: 4px; background: var(--line-2); }
.bar i { display: block; height: 100%; background: var(--brand); }
.hr-table { display: grid; border: 1px solid var(--line); }
.hr-row { display: grid; grid-template-columns: 22px 1fr 40px 64px; gap: 8px; align-items: center; padding: 6px 8px; }
.hr-row + .hr-row { border-top: 1px solid var(--line-2); }
.hr-row .avatar { width: 22px; height: 22px; font-size: 9px; }
.hr-name b { display: block; font-size: 11px; line-height: 1.2; }
.hr-name small { color: var(--muted); font-size: 10px; }
.hr-in { font-size: 11px; color: var(--text); }
.chip { justify-self: end; padding: 1px 6px; font-size: 10px; font-weight: 500; }
.chip-present { background: var(--ok-soft); color: var(--ok); }
.chip-late { background: var(--warn-soft); color: var(--warn); }
.chip-on-leave { background: var(--brand-tint); color: var(--brand); }
.hr-payroll { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--ok-soft); color: var(--ok); }
.hr-payroll span { flex: 1; }
.hr-payroll b { display: block; font-size: 11px; color: var(--ink); }
.hr-payroll small { font-size: 10px; color: var(--text); }
.hr-payroll em { font-style: normal; }

/* ---------- 404 ---------- */
.nf { padding: 96px 0; text-align: center; }
.nf strong { display: block; font-family: var(--cond); font-size: 120px; font-weight: 700; line-height: 1; color: var(--brand-tint); -webkit-text-stroke: 2px var(--brand); }
.nf h1 { font-family: var(--cond); font-size: 30px; text-transform: uppercase; color: var(--brand); margin-top: 8px; }
.nf p { color: var(--muted); margin: 12px auto 0; max-width: 520px; }
.nf .page-hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-tint-2); border-top: 2px solid var(--brand); color: var(--text); font-size: 13.5px; margin-top: 24px; }
.footer-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding-block: 48px 36px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer-col h3 { font-family: var(--cond); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); margin-bottom: 6px; }
.footer-col a { color: var(--text); width: fit-content; max-width: 100%; }
.footer-col a:hover { color: var(--brand); }
.footer-mid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--brand-line); }
.footer-mid .brand { color: var(--ink); }
.footer-mid .logo-text { font-size: 22px; }
.footer-mid p { flex: 1; min-width: 260px; color: var(--muted); }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-social a { color: var(--ink); font-weight: 500; }
.footer-social a:hover { color: var(--brand); }
.footer-bottom { background: var(--brand); color: #E1E8FA; padding: 12px 0; font-size: 12.5px; text-align: center; }

/* Floating buttons */
.float-btns { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 10px; }
.float-btns a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.float-wa { background: #25D366; }
.float-wa:hover { background: #1EBE5A; color: #fff; }
.float-call { background: var(--brand); }
.float-call:hover { background: var(--brand-dark); color: #fff; }
.mobile-bar { display: none; }

/* Corner shape (Admin → Branding → Shape) */
.cat-img, .tile-img, .offer-banner, .consult, .consult-form, .consult-steps li, .review, .service-card, .duo-card, .form-card,
.side-card, .price-card, .custom-plan, .feature, .value-card, .team-card, .post-cover, .other-grid a, .fact-table, .contact-list,
.summary, .pay-box, .tool-card, .tool-result, .invoice, .pd-media, .case-cover, .empty-state, .menu, .slider, .article-cta, .tool-cta { border-radius: var(--r); }
.cat-card, .cat-img, .tile-img, .consult, .post-cover, .slider { overflow: hidden; }
.cat-label { border-radius: var(--r); }

/* ---------- Hero video / slider ---------- */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,13,24,var(--ov, .86)) 0%, rgba(9,13,24,calc(var(--ov, .86) * .7)) 45%, rgba(9,13,24,calc(var(--ov, .86) * .2)) 100%); }
.hero.has-media { background: #0B0F1A var(--hero) center / cover no-repeat; }
.hero.has-media .hero-inner { position: relative; z-index: 1; }
.hero-mute { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; }
.hero-mute .i-on { display: none; }
.hero-mute.is-on .i-on { display: block; }
.hero-mute.is-on .i-off { display: none; }

.slider { position: relative; background: var(--tile); }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); touch-action: pan-y; }
.slide { position: relative; flex: 0 0 100%; display: block; color: #fff; }
.slide:hover { color: #fff; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider-offer .slide, .slider-mid .slide { aspect-ratio: 1280 / 480; }
.slider-mid .slide { aspect-ratio: 1280 / 300; }
.slide-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 32px 56px; max-width: 640px; }
.slide-copy.is-light { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0)); max-width: none; padding-right: 45%; }
.slide-copy.is-dark { color: var(--ink); }
.slide-copy h2 { font-family: var(--cond); font-size: 40px; line-height: 1.1; color: inherit; }
.slide-copy p { font-size: 17px; max-width: 520px; }
.slide-btn { margin-top: 8px; padding: 11px 24px; background: var(--brand); color: #fff; border-radius: var(--btn-r, var(--r)); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.slider-btn { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.slider-btn:hover { background: #fff; color: var(--brand); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev .i { transform: rotate(180deg); }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .2s, background-color .2s; }
.slider-dots button.is-on { width: 26px; border-radius: 5px; background: #fff; }

.hero-slider { position: relative; }
.hero-slider .slider { border-radius: 0; }
.hero-slider .slide { height: min(92vh, 780px); }
.hero-slider .slide-copy { padding: calc(var(--header-h) + 40px) max(var(--gutter), calc((100vw - var(--container)) / 2)) 64px; max-width: none; }
.hero-slider .slide-copy.is-light { background: linear-gradient(90deg, rgba(9,13,24,.8), rgba(9,13,24,.15)); padding-right: 40%; }
.hero-slider .slide-copy h2 { font-size: 54px; max-width: 680px; }

/* Popup advertisement */
.ad-popup { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); }
.ad-popup[hidden] { display: none; }
.ad-popup-box { position: relative; width: min(560px, 100%); max-height: 90vh; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.ad-popup-box img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #fff; }
.ad-popup-close { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 22px; line-height: 1; }
.ad-popup-cap { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ad-popup-cap strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    :root { --nav-h: 0px; --header-h: calc(var(--top-h) + 1px); }
    .header-nav { display: none; }
    .nav-toggle { display: block; }
    .mobile-nav {
        display: block; position: fixed; inset: var(--nav-top, 73px) 0 0; z-index: 45;
        background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
    }
    .nav-open .mobile-nav { visibility: visible; opacity: 1; }
    .nav-open body { overflow: hidden; }
    .nav-open .has-overlay .site-header { background: #fff; color: var(--ink); }
    .nav-open .has-overlay .site-header .logo-on-dark { display: none; }
    .nav-open .has-overlay .site-header .logo-on-light { display: inline-flex; }
    .mobile-nav-inner { display: flex; flex-direction: column; padding: 8px var(--gutter) 120px; }
    .mobile-nav-inner > a, .mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; font-size: 16px; color: var(--ink); cursor: pointer; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav details[open] summary .i { transform: rotate(180deg); }
    .mobile-nav details a { display: block; padding: 10px 0 10px 14px; color: var(--text); border-bottom: 1px solid var(--line-2); }
    .mobile-nav-foot { display: grid; gap: 10px; margin-top: 24px; }
    .project-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .split, .content-aside, .contact-grid, .product-hero-grid, .pd, .cart-layout, .article-layout, .faq-wrap, .consult { grid-template-columns: 1fr; gap: 36px; }
    .sidebar, .summary, .pd-media, .article-aside { position: static; }
    .split-actions { justify-content: flex-start; }
    .mosaic { grid-template-columns: 1fr; }
    .tile-lg .tile-img { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
    .cat-grid, .service-grid, .value-grid, .reviews, .post-grid, .custom-plans, .other-grid { grid-template-columns: 1fr 1fr; }
    .assure-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .tool-layout { grid-template-columns: 1fr; }
    .pd-media { max-width: 560px; }
    .hero h1 { font-size: 46px; }
    .offer-banner { padding: 32px; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.35) 100%), var(--img) center right / cover no-repeat; }
}

@media (max-width: 760px) {
    :root { --top-h: 62px; --gutter: 16px; }
    body { padding-bottom: 60px; }
    .header-phone span, .header-quote { display: none; }
    .header-tools { gap: 6px; }
    .logo-text { font-size: 22px; }
    .logo-img { height: 38px; }
    .section { padding: 44px 0; }
    .section-flush-top { padding-top: 0; }
    .section-title { font-size: 25px; margin-bottom: 22px; }
    .hero { min-height: 0; padding: calc(var(--header-h) + 36px) 0 44px; background: linear-gradient(rgba(9,13,24,.74), rgba(9,13,24,.74)), var(--hero) center / cover no-repeat; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15.5px; }
    .hero-actions .btn { flex: 1; }
    .hero-trust { gap: 8px 22px; }
    .offer-banner { min-height: 0; padding: 26px 22px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), var(--img) center / cover no-repeat; }
    .offer-price { font-size: 64px; }
    .page-hero { padding: calc(var(--header-h) + 32px) 0 32px; }
    .page-title { font-size: 28px; }
    .product-hero .page-title { font-size: 34px; }
    .article-title { font-size: 26px; }
    .service-grid, .value-grid, .reviews, .post-grid, .custom-plans, .other-grid, .product-duo, .team-grid, .feature-grid, .checklist.cols-2, .who-list { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-img { aspect-ratio: 4 / 4.6; }
    .cat-label { left: 5px; right: 5px; bottom: 5px; padding: 7px 9px 8px; grid-template-columns: 1fr; }
    .cat-label strong { font-size: 13.5px; }
    .cat-label small { font-size: 9.5px; }
    .cat-label .i { display: none; }
    .mosaic-side, .project-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-meta { flex-direction: column; gap: 2px; }
    .price { flex-direction: row; gap: 6px; align-items: baseline; }
    .consult { padding: 26px 20px; }
    .consult h2 { font-size: 26px; }
    .stats-grid, .stats-grid.cols-3 { grid-template-columns: 1fr 1fr; }
    .stats-grid > div { padding: 18px 10px; border-left: 0; border-top: 1px solid var(--line); }
    .stats-grid > div:nth-child(-n+2) { border-top: 0; }
    .stats-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
    .stats-grid.cols-3 > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
    .stats-grid strong { font-size: 28px; }
    .assure-grid { grid-template-columns: 1fr; }
    .fact-table div { grid-template-columns: 1fr; gap: 2px; }
    .field-row { grid-template-columns: 1fr; }
    .duo-card, .form-card, .consult-form { padding: 20px; }
    .post-card.is-featured { grid-template-columns: 1fr; gap: 0; }
    .post-card.is-featured h3 { font-size: 20px; }
    .article-cta, .tool-cta { flex-direction: column; align-items: flex-start; }
    .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .cart-thumb { width: 64px; height: 64px; }
    .cart-actions, .cart-line { grid-column: 2; }
    .cart-line { text-align: left; }
    .seg-4 { grid-template-columns: 1fr 1fr; }
    .seg-4 label:nth-child(3) { border-left: 0; }
    .seg-4 label:nth-child(n+3) { border-top: 1px solid #CDD2DA; }
    .inv-controls { padding: 16px; }
    .inv-control, .inv-control .seg, .inv-select { min-width: 0; width: 100%; }
    .inv-actions { margin-left: 0; width: 100%; }
    .inv-actions .btn { flex: 1; }
    .tpl-picker { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .tpl-thumb { width: 84px; height: 108px; }
    .tpl-traditional .inv-meta { border-left: 0; border-top: 1px solid #333; }
    .tpl-bold .inv-band .inv-title { font-size: 30px; }
    .inv-head, .inv-foot { grid-template-columns: 1fr; gap: 20px; }
    .inv-title { text-align: left; }
    .invoice { overflow-x: auto; }
    .inv-items { min-width: 640px; }
    .app-body { grid-template-columns: 1fr; }
    .app-side { display: none; }
    .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 36px 24px; }
    .float-btns { display: none; }
    .slider-offer .slide { aspect-ratio: 4 / 3; }
    .slider-mid .slide { aspect-ratio: 16 / 7; }
    .slide-copy, .slide-copy.is-light { padding: 20px 22px; padding-right: 22px; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.6)); justify-content: flex-end; }
    .slide-copy.is-dark { background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.85)); }
    .slide-copy h2 { font-size: 24px; }
    .slide-copy p { font-size: 14px; }
    .slider-btn { display: none; }
    .hero-slider .slide { height: 78vh; }
    .hero-slider .slide-copy, .hero-slider .slide-copy.is-light { padding: calc(var(--header-h) + 24px) var(--gutter) 56px; background: linear-gradient(rgba(9,13,24,.5), rgba(9,13,24,.8)); }
    .hero-slider .slide-copy h2 { font-size: 32px; }
    .hero-mute { right: 14px; bottom: 14px; }
    .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
    .mobile-bar a + a { border-left: 1px solid var(--line-2); }
    .mobile-bar a.is-primary { background: var(--brand); color: #fff; }
}

/* ---------- Store: coupons, stock, variants, order tracking ---------- */
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #CDD2DA; font-size: 14px; text-transform: uppercase; background: #fff; }
.coupon-form input:focus { outline: none; border-color: var(--brand); }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.coupon-applied span { display: inline-flex; align-items: center; gap: 6px; }
.link-btn { color: var(--bad); font-size: 13px; text-decoration: underline; }
.summary-row.is-discount span:last-child { color: var(--ok); font-weight: 500; }
.free-ship-hint { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--brand-tint); color: var(--brand); font-size: 13px; }
.cart-variant { display: block; color: var(--ink) !important; font-weight: 500; }
.stock-line { margin-top: 8px; font-size: 14px; min-height: 0; }
.stock-in { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 500; }
.stock-low { display: inline-block; color: var(--warn); font-weight: 500; }
.stock-out { display: inline-block; padding: 3px 10px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
small.stock-low { display: block; font-size: 12.5px; }
.pd-buy-wrap { margin-top: 18px; }
.pd-buy-wrap .pd-buy { margin-top: 14px; }
.variant-picker { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variant-picker legend { width: 100%; margin-bottom: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.variant-opt { position: relative; cursor: pointer; }
.variant-opt input { position: absolute; opacity: 0; pointer-events: none; }
.variant-opt span { display: flex; flex-direction: column; min-width: 110px; padding: 9px 14px; border: 1px solid #CDD2DA; background: #fff; line-height: 1.3; }
.variant-opt span small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.variant-opt input:checked + span { border: 2px solid var(--brand); padding: 8px 13px; background: var(--brand-tint-2); }
.variant-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.variant-opt.is-out { cursor: not-allowed; opacity: .5; }
.variant-opt.is-out b { text-decoration: line-through; }
.product-card.is-out .tile-img img { filter: grayscale(.7); opacity: .7; }
.price small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.btn[disabled], button[disabled].btn { opacity: .45; cursor: not-allowed; }
.order-steps { display: flex; margin: 22px 0 6px; counter-reset: s; }
.order-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.order-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.order-steps li:first-child::before { display: none; }
.order-steps li span { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.order-steps li.is-done { color: var(--ink); font-weight: 500; }
.order-steps li.is-done span { background: var(--brand); border-color: var(--brand); color: #fff; }
.order-steps li.is-done::before { background: var(--brand); }
.order-steps.is-cancelled li.is-current span { background: var(--bad); border-color: var(--bad); }
.track-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; background: var(--brand-tint-2); border: 1px solid var(--brand-line); color: var(--brand); }
.track-box span { flex: 1; color: var(--ink); }
.track-box small { display: block; color: var(--muted); }
.timeline-title { font-size: 16px; margin: 26px 0 10px; }
.timeline { border-left: 2px solid var(--line); padding-left: 18px; display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline b { display: block; color: var(--ink); }
.timeline small { color: var(--muted); font-size: 12.5px; }
.timeline p { margin-top: 2px; font-size: 14px; color: var(--text); }
.track-form { max-width: 520px; margin: 0 auto; }
.track-form .notice { margin-bottom: 14px; }
@media (max-width: 760px) {
    .order-steps li { font-size: 11px; }
    .track-box { flex-wrap: wrap; }
}

/* ---------- Blog: listing, article extras, comments, newsletter ---------- */
.blog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-bar .filter-chips a small { margin-left: 4px; font-size: 11.5px; opacity: .65; }
.blog-search { display: flex; width: 300px; max-width: 100%; border: 1px solid #CDD2DA; border-radius: var(--r); background: #fff; }
.blog-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,79,216,.12); }
.blog-search input { flex: 1; min-width: 0; border: 0; padding: 9px 12px; background: transparent; outline: none; font-size: 14.5px; }
.blog-search button { display: grid; place-items: center; width: 42px; color: var(--brand); }
.blog-count { margin: -12px 0 22px; color: var(--muted); font-size: 14px; }
.post-card .post-cover { display: block; position: relative; }
.post-flag { position: absolute; left: 12px; top: 12px; padding: 3px 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--r); }
.post-info { flex-wrap: wrap; }
.post-cat { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.post-cat + span::before { content: "·"; margin-right: 6px; }
.post-meta h3 a { color: inherit; }
.post-meta h3 a:hover { color: var(--brand); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; justify-content: center; border: 1px solid var(--line); color: var(--text); font-size: 14px; border-radius: var(--r); }
.pager span { border-color: transparent; color: var(--muted); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.blog-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.blog-popular ol { display: grid; gap: 4px; margin-top: 10px; }
.blog-popular a { display: flex; gap: 14px; padding: 8px 0; color: var(--ink); font-weight: 500; line-height: 1.4; border-bottom: 1px solid var(--line-2); }
.blog-popular a:hover { color: var(--brand); }
.blog-popular b { font-family: var(--cond); font-size: 22px; color: var(--brand); line-height: 1; min-width: 28px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-cloud a, .article-tags a { padding: 4px 11px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); font-size: 13px; border-radius: var(--r); }
.tag-cloud a:hover, .article-tags a:hover { border-color: var(--brand); color: var(--brand); }

.newsletter { display: grid; gap: 8px; padding: 22px; background: var(--brand-tint-2); border: 1px solid var(--brand-line); border-radius: var(--r); }
.newsletter-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--brand); color: #fff; border-radius: var(--r); }
.newsletter strong { font-size: 17px; color: var(--ink); }
.newsletter > p { color: var(--muted); font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1 1 180px; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #CDD2DA; background: #fff; border-radius: var(--r); font-size: 14.5px; }
.newsletter-form input[type=email]:focus { outline: none; border-color: var(--brand); }
.newsletter-ok, .form-ok { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 500; border-radius: var(--r); }
.article-aside .newsletter-form { flex-direction: column; }
.article-aside .newsletter-form .btn { width: 100%; }

.author-box { display: flex; gap: 18px; margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.author-box-top { margin: 0 0 32px; background: var(--bg-alt); }
.author-box strong { display: block; font-size: 18px; color: var(--ink); }
.author-box strong a { color: inherit; }
.author-box small { display: block; color: var(--muted); font-size: 13.5px; }
.author-box p { margin-top: 8px; color: var(--text); font-size: 14.5px; }
.author-box .more, .author-box > div > a { display: inline-flex; margin-top: 10px; font-size: 14px; }
.author-avatar, .byline-avatar, .comment-avatar { display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.author-avatar { width: 72px; height: 72px; font-size: 22px; }
.author-avatar img, .byline-avatar img { width: 100%; height: 100%; object-fit: cover; }

.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }
.preview-bar { position: sticky; top: 0; z-index: 150; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: #FDF3D7; color: #7A4D00; font-size: 14px; font-weight: 500; text-align: center; }
.article-byline { display: flex; align-items: center; gap: 12px; }
.article-byline a { color: #fff; }
.article-byline a:hover { text-decoration: underline; }
.article-byline small { display: block; color: #B9C3D6; font-size: 13px; margin-top: 2px; }
.byline-avatar { width: 42px; height: 42px; font-size: 14px; background: rgba(255,255,255,.14); color: #fff; }

.toc a.lvl-3 { padding-left: 14px; font-size: 13px; color: var(--muted); }
.toc a { position: relative; }
.toc a.is-on { color: var(--brand); font-weight: 500; }
.toc a.is-on::before { content: ""; position: absolute; left: -20px; top: 2px; bottom: 2px; width: 3px; background: var(--brand); }
.toc-inline { display: none; border: 1px solid var(--line); border-radius: var(--r); }
.toc-inline summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline[open] summary { border-bottom: 1px solid var(--line); }
.toc-inline a { display: block; padding: 7px 16px; color: var(--text); text-decoration: none !important; font-size: 14.5px; }
.toc-inline a.lvl-3 { padding-left: 30px; font-size: 14px; color: var(--muted); }

.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-links button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); color: var(--text); border-radius: var(--r); font-size: 14px; background: #fff; }
.share-links a:hover, .share-links button:hover { border-color: var(--brand); color: var(--brand); }
.share-links button.is-copied { border-color: var(--ok); color: var(--ok); }
.share-links.with-labels { display: grid; gap: 6px; }
.share-links.with-labels a, .share-links.with-labels button { justify-content: flex-start; border: 0; padding: 0; height: auto; min-width: 0; background: none; }
.share-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding: 16px 0; border-block: 1px solid var(--line); }
.share-row > span { font-weight: 500; color: var(--ink); }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--muted); }
.article-faq { margin-top: 44px; }
.article-faq h2 { font-size: 23px; margin-bottom: 14px; }
.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq details:first-of-type { border-top: 1px solid var(--line); }
.article-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 500; font-size: 16px; color: var(--ink); cursor: pointer; list-style: none; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary .i { transition: transform .2s; color: var(--brand); }
.article-faq details[open] summary .i { transform: rotate(45deg); }
.article-faq details > div { padding: 0 0 18px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 500; line-height: 1.4; }
.post-nav a:hover { border-color: var(--brand); color: var(--brand); }
.post-nav a.is-next { text-align: right; }
.post-nav small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.post-nav a.is-next small { justify-content: flex-end; }

.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments > h2 { font-size: 23px; margin-bottom: 18px; }
.comment-list, .comment-replies { display: grid; gap: 18px; }
.comment-replies { margin: 16px 0 0 54px; padding-left: 18px; border-left: 2px solid var(--line); }
.comment { display: flex; gap: 14px; }
.comment-avatar { width: 40px; height: 40px; font-size: 14px; }
.comment.is-team .comment-avatar { background: var(--brand); color: #fff; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-head strong { color: var(--ink); }
.comment-head time { color: var(--muted); font-size: 13px; }
.comment-badge { padding: 1px 8px; background: var(--brand-tint); color: var(--brand); font-size: 11.5px; font-weight: 700; border-radius: var(--r); }
.comment-body { margin-top: 4px; font-size: 15px; }
.comment-body p + p { margin-top: 8px; }
.comment-reply { margin-top: 6px; color: var(--brand); font-size: 13.5px; font-weight: 500; }
.comment-form { display: grid; gap: 14px; margin-top: 28px; padding: 24px; background: var(--bg-alt); border-radius: var(--r); }
.comment-form h3 { font-size: 18px; }
.comment-form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.comment-form label small { font-weight: 400; color: var(--muted); }
.comment-form input, .comment-form textarea { width: 100%; min-height: 42px; padding: 8px 12px; background: #fff; border: 1px solid #CDD2DA; border-radius: var(--r); font-size: 15px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,79,216,.12); }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reply-to { font-size: 14px; font-weight: 400; color: var(--muted); }
.reply-to button { color: var(--bad); font-size: 13px; text-decoration: underline; }
.narrow-box { max-width: 620px; display: grid; gap: 14px; justify-items: start; }

/* Article body extras: images, video, tables, callouts, code */
.prose ol { list-style: decimal; padding-left: 24px; display: grid; gap: 8px; }
.prose h4 { font-size: 17px; margin-top: 22px; }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose code { padding: 1px 6px; background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: 4px; font-family: var(--mono); font-size: .9em; }
.prose pre { padding: 16px 18px; background: #12161E; color: #E6EAF2; border-radius: var(--r); overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.prose figure { margin: 28px 0; }
.body-img img { width: 100%; border-radius: var(--r); }
.body-img figcaption { margin-top: 8px; color: var(--muted); font-size: 13.5px; text-align: center; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-tint-2); border-radius: var(--r); }
.callout strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.callout p { margin-top: 4px; }
.callout-tip { border-color: var(--ok); background: var(--ok-soft); }
.callout-tip strong { color: var(--ok); }
.callout-warning { border-color: var(--warn); background: var(--warn-soft); }
.callout-warning strong { color: var(--warn); }
.callout-important { border-color: var(--bad); background: var(--bad-soft); }
.callout-important strong { color: var(--bad); }
.body-btn { margin: 24px 0; }
.prose .body-btn a { text-decoration: none; color: #fff; }

@media (max-width: 1080px) {
    .toc-inline { display: block; }
    .article-aside .toc { display: none; }
}
@media (max-width: 720px) {
    .blog-search { width: 100%; }
    .comment-fields, .post-nav { grid-template-columns: 1fr; }
    .comment-replies { margin-left: 20px; }
    .author-box { flex-direction: column; }
    .post-nav a.is-next { text-align: left; }
    .post-nav a.is-next small { justify-content: flex-start; }
}
.article-aside .newsletter-form input[type=email] { flex: none; width: 100%; }
.comment-form label small { display: inline; }
.comment-fields label { align-content: start; }

.article-layout > * { min-width: 0; }
.article-title { overflow-wrap: anywhere; }

/* ---------- Installable app ---------- */
.install-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-size: 13.5px; font-weight: 500; opacity: .95; }
.install-link:hover { text-decoration: underline; }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--r) + 8px); box-shadow: 0 12px 32px -8px rgba(9,13,24,.35); animation: install-up .35s ease-out; }
.install-bar img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.install-bar > div { flex: 1; min-width: 0; display: grid; }
.install-bar strong { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-bar small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.install-bar .btn { flex-shrink: 0; height: 36px; padding: 0 16px; }
.install-close { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--muted); border-radius: 50%; }
.install-close:hover { background: var(--bg-alt); color: var(--ink); }
@keyframes install-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.ios-install { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(9,13,24,.55); }
.ios-install-box { position: relative; width: 100%; max-width: 420px; display: grid; justify-items: center; gap: 12px; padding: 26px 22px 22px; background: #fff; border-radius: 18px; text-align: center; }
.ios-install-box .install-close { position: absolute; right: 10px; top: 10px; }
.ios-install-box img { border-radius: 14px; }
.ios-install-box strong { font-size: 17px; color: var(--ink); }
.ios-install-box ol { list-style: decimal; text-align: left; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.ios-install-box ol svg { display: inline-block; vertical-align: -3px; color: var(--brand); }
.offline-page { padding-block: 80px; }
.offline-page .narrow-box { margin-inline: auto; justify-items: center; text-align: center; }
.offline-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.btn-row-public { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
@media (max-width: 760px) {
    .install-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
    [data-install], .install-bar { display: none !important; }
}
