/* ============ Tokens ============ */
:root {
  /* Brand: logo blue #34519F + logo yellow #EDC93E. Neutrals tinted toward the blue hue. */
  --brand: oklch(0.46 0.13 266);
  --brand-strong: oklch(0.39 0.13 266);
  --night: oklch(0.235 0.105 266);
  --ink: oklch(0.23 0.035 266);
  --muted: oklch(0.47 0.025 266);
  --paper: oklch(0.985 0.004 266);
  --paper-2: oklch(0.962 0.01 266);
  --white: oklch(0.997 0.002 266);
  --rule: oklch(0.895 0.013 266);
  --rule-strong: oklch(0.80 0.02 266);
  --sun: oklch(0.85 0.15 92);
  --sun-strong: oklch(0.80 0.16 88);
  --on-night: oklch(0.97 0.01 266);
  --on-night-muted: oklch(0.83 0.03 266);
  --on-night-rule: oklch(0.97 0.01 266 / 0.16);
  --err: oklch(0.52 0.18 27);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.2rem, 1.1rem + 3.3vw, 3.85rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.3vw, 1.25rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.76rem;

  /* One grid for every section: 12 columns inside a 1240px frame */
  --max: 1240px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --space-section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --space-head: clamp(2.5rem, 2rem + 1.6vw, 3.75rem);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-strong); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--sun); color: var(--night); padding: .6rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1.12; font-weight: 800; font-variation-settings: "wdth" 104; }
h2 { font-size: var(--fs-h2); line-height: 1.16; font-variation-settings: "wdth" 106; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: "wdth" 102; }
p { margin: 0; text-wrap: pretty; }
/* No lone word on a last line: pretty for running text, balance for short labels (inc/typography.php is the fallback) */
li, td, th, dd, figcaption, blockquote { text-wrap: pretty; }
h4, summary, dt, .btn { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

.label { display: flex; gap: .75rem; align-items: baseline; font-size: var(--fs-label); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.label b { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.night .label { color: var(--on-night-muted); }
.night .label b, .hero .label { color: var(--sun); }
.text-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--brand-strong); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: var(--radius); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sun { background: var(--sun); color: var(--night); }
.btn-sun:hover { background: var(--sun-strong); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-strong); }
.btn-ghost { border-color: oklch(0.97 0.01 266 / .45); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night); background: oklch(0.97 0.01 266 / .08); }
.btn-line { border-color: var(--rule-strong); color: var(--ink); background: var(--white); }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: oklch(0.985 0.004 266 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand-logo { flex: none; }
.brand-logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: .15rem; margin-inline: auto; }
.nav > a, .nav summary { display: block; padding: .5rem .75rem; border-radius: var(--radius); text-decoration: none; font-weight: 560; font-size: .96rem; cursor: pointer; list-style: none; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .5rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-3px) rotate(45deg); }
.nav > a:hover, .nav summary:hover { background: var(--paper-2); }
.nav details { position: relative; }
.nav .menu { position: absolute; top: calc(100% + 10px); left: 0; width: 330px; padding: .5rem; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 24px 48px -24px oklch(0.25 0.06 266 / .35); }
.nav .menu a { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .6rem .75rem; border-radius: var(--radius); text-decoration: none; }
.nav .menu a:hover { background: var(--paper-2); }
.nav .menu b { font-weight: 750; }
.nav .menu span { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.tel { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel svg { width: 18px; height: 18px; color: var(--brand); }
.header-actions .btn { min-height: 44px; padding: .55rem 1.1rem; }
.menu-toggle { display: none; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; padding: .75rem var(--gutter) 1.25rem; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -30px oklch(0.25 0.06 266 / .4); }
  .nav.open .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 .5rem; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--white); cursor: pointer; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 64px; gap: 1rem; }
  .brand-logo img { height: 34px; }
  .tel span, .header-actions .btn { display: none; }
  .tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
  .header-actions { gap: .5rem; }
}

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); isolation: isolate; }
/* Guilloche security pattern (as on printed certificates): rosette behind the lookup, wave band along the bottom */
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: -2; pointer-events: none;
  background: url("guilloche-wave.svg") center bottom / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -120px; top: 50%; transform: translateY(-55%); border-radius: 50%; background: radial-gradient(circle, oklch(0.5 0.16 262 / .45) 0%, transparent 65%); }
.hero .wrap { align-items: center; row-gap: 3rem; padding-block: clamp(3.5rem, 2rem + 5.5vw, 7rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.hero-copy { grid-column: 1 / 7; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.1rem, 1.1rem + 2.7vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-night-muted); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Verification panel */
.verify { grid-column: 8 / -1; position: relative; z-index: 0; }
.rosette { position: absolute; z-index: -1; left: 50%; top: 50%; width: 920px; height: 920px; transform: translate(-50%, -50%); pointer-events: none; }
.verify-box { background: oklch(0.29 0.11 266); border: 1px solid oklch(0.97 0.01 266 / .14); border-radius: 16px; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: 0 40px 80px -40px oklch(0.1 0.08 266 / .8); }
.verify-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.verify-head h2 { font-size: 1.05rem; letter-spacing: -0.005em; font-variation-settings: "wdth" 100; }
.verify-head span { font-size: .8rem; color: var(--on-night-muted); white-space: nowrap; }
.verify-form { display: flex; gap: .5rem; margin-top: 1rem; }
.verify-field { position: relative; flex: 1; min-width: 0; }
.verify-field svg { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--on-night-muted); pointer-events: none; }
.verify-field input { width: 100%; height: 50px; padding: 0 1rem 0 2.6rem; border-radius: var(--radius); border: 1px solid oklch(0.97 0.01 266 / .22); background: oklch(0.97 0.01 266 / .06); color: var(--on-night); }
.verify-field input::placeholder { color: oklch(0.83 0.03 266 / .8); }
.verify-field input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px oklch(0.85 0.15 92 / .25); }
.verify-form .btn { min-height: 50px; padding-inline: 1.15rem; }

.cert { position: relative; margin-top: 1.25rem; padding: 1.25rem 1.35rem 1.1rem; background: var(--white); color: var(--ink); border-radius: 10px; overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand) 0 70%, var(--sun) 70% 100%); }
.cert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cert-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cert-name { margin-top: .3rem; font-size: 1.12rem; font-weight: 750; line-height: 1.3; font-variation-settings: "wdth" 102; }
.status { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .3rem .65rem; border-radius: 999px; background: oklch(0.95 0.045 155); color: oklch(0.38 0.1 155); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: oklch(0.62 0.15 155); box-shadow: 0 0 0 3px oklch(0.62 0.15 155 / .2); }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--rule-strong); }
.cert-grid dt { font-size: .76rem; color: var(--muted); }
.cert-grid dd { margin: .15rem 0 0; font-size: .93rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.35; }
.cert-grid .wide { grid-column: 1 / -1; }
.cert-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.cert-foot p { font-size: .76rem; color: var(--muted); line-height: 1.45; }
.seal { width: 58px; height: 58px; flex: none; }
.verify-note { margin-top: .9rem; font-size: .78rem; color: var(--on-night-muted); line-height: 1.5; }
.verify-note a { color: var(--on-night); font-weight: 650; text-underline-offset: 3px; }
.cert.flash { animation: certflash .9s var(--ease); }
@keyframes certflash { 0% { box-shadow: 0 0 0 0 oklch(0.85 0.15 92 / .7); } 100% { box-shadow: 0 0 0 14px oklch(0.85 0.15 92 / 0); } }

.quick { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--on-night-rule); }
.quick p { font-size: var(--fs-small); color: var(--on-night-muted); line-height: 1.4; margin-bottom: .85rem; }
.quick ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.quick a { display: inline-flex; align-items: baseline; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-size: .94rem; border: 1px solid oklch(0.97 0.01 266 / .26); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.quick a b { font-weight: 750; }
.quick a span { color: var(--on-night-muted); }
.quick a:hover { background: oklch(0.97 0.01 266 / .1); border-color: var(--on-night); }
@media (max-width: 1180px) { .hero-copy { grid-column: 1 / 7; } .verify { grid-column: 7 / -1; } .rosette { width: 720px; height: 720px; } }
@media (max-width: 900px) {
  .hero-copy, .verify { grid-column: 1 / -1; }
  .hero::after { right: -300px; top: 70%; }
  .rosette { width: 620px; height: 620px; opacity: .7; }
  .hero::before { height: 80px; }
}
@media (max-width: 520px) {
  .quick a span { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .verify-form { flex-direction: column; }
  .verify-head span { display: none; }
  .cert-top { flex-direction: column-reverse; gap: .6rem; }
  .cert { padding: 1.1rem 1.1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .cert.flash { animation: none; } }

/* ============ Accreditation strip ============ */
.accred { background: var(--white); border-bottom: 1px solid var(--rule); }
.accred .wrap { align-items: center; padding-block: 1.5rem; }
.accred-title { grid-column: 1 / 4; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.accred-title strong { display: block; font-size: .98rem; color: var(--ink); }
.accred ul { grid-column: 4 / 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: clamp(0rem, 2vw, 2rem); border-inline: 1px solid var(--rule); }
.accred img { height: 54px; width: auto; mix-blend-mode: multiply; }
.accred .text-link { grid-column: 10 / -1; justify-self: end; font-size: .95rem; white-space: nowrap; }
@media (max-width: 900px) {
  .accred .wrap { row-gap: 1rem; }
  .accred-title, .accred ul, .accred .text-link { grid-column: 1 / -1; justify-self: start; }
  .accred ul { border: 0; padding: 0; justify-content: flex-start; flex-wrap: wrap; gap: 1.25rem 2rem; }
  .accred img { height: 44px; }
}

/* ============ Section scaffolding ============ */
section { padding-block: var(--space-section); }
.sec-head { align-items: end; margin-bottom: var(--space-head); row-gap: 1.25rem; }
.sec-head > div { grid-column: 1 / 7; }
.sec-head h2 { margin-top: 1rem; max-width: 22ch; }
.sec-head > p { grid-column: 8 / -1; color: var(--muted); }
@media (max-width: 900px) { .sec-head > div, .sec-head > p { grid-column: 1 / -1; } }

/* ============ 01 Standards register ============ */
.register { position: relative; z-index: 0; border-top: 1.5px solid var(--ink); }
.register li { border-bottom: 1px solid var(--rule); }
.register a { position: relative; align-items: center; padding-block: 1.6rem; text-decoration: none; }
.register a::before { content: ""; position: absolute; inset: 0 calc(var(--col-gap) * -0.5); background: var(--paper-2); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; border-radius: var(--radius); }
.register .code { grid-column: 1 / 4; font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 106; white-space: nowrap; transition: color .3s var(--ease); }
.register .code small { font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: .15em; vertical-align: .55em; }
.register h3 { grid-column: 4 / 8; }
.register .for { grid-column: 8 / 12; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.register .go { grid-column: 12 / 13; justify-self: end; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.register .go svg { width: 18px; height: 18px; }
.register a:hover::before { opacity: 1; }
.register a:hover .code { color: var(--brand); }
.register a:hover .go { background: var(--brand); border-color: var(--brand); color: var(--white); }
.register-foot { margin-top: 1.75rem; align-items: center; row-gap: 1rem; }
.register-foot p { grid-column: 1 / 8; color: var(--muted); }
.register-foot p strong { color: var(--ink); }
.register-foot .text-link { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 900px) {
  .register a { grid-template-columns: 1fr auto; row-gap: .5rem; padding-block: 1.35rem; }
  .register .code, .register h3, .register .for { grid-column: 1; }
  .register .go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .register-foot p, .register-foot .text-link { grid-column: 1 / -1; justify-self: start; }
}

/* ============ 02 Estimator ============ */
.estimator { background: var(--paper-2); border-block: 1px solid var(--rule); }
.tool { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -60px oklch(0.25 0.08 266 / .5); }
.tool-inputs { grid-column: 1 / 8; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 0 clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, .75rem + 2vw, 2.75rem); }
.tool-result { grid-column: 8 / -1; display: flex; flex-direction: column; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: var(--night); color: var(--on-night); }
legend.step-label { float: left; width: 100%; }
legend.step-label + * { clear: both; }
.step-label { display: flex; align-items: baseline; gap: .6rem; font-weight: 700; margin-bottom: .85rem; padding: 0; }
.step-label i { font-style: normal; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper-2); color: var(--brand); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; transform: translateY(-1px); }
fieldset { border: 0; margin: 0; padding: 0 0 1.75rem; min-width: 0; }
fieldset + fieldset { padding-top: 1.75rem; border-top: 1px solid var(--rule); }
fieldset:last-of-type { padding-bottom: 0; }
.seg { display: grid; gap: .5rem; }
.seg.iso { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg.risk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 50px; padding: .6rem .85rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer; font-weight: 700; line-height: 1.25; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.seg.iso span { align-items: center; text-align: center; white-space: nowrap; padding-inline: .25rem; font-size: clamp(.84rem, .78rem + .2vw, .95rem); }
.seg span small { font-weight: 450; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--white); }
.seg input:checked + span small { color: oklch(0.93 0.03 266); }
.seg input:focus-visible + span { outline: 3px solid var(--sun-strong); outline-offset: 2px; }
.num-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.num-field { display: flex; width: 13rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.num-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.46 0.13 266 / .2); }
.num-field input { flex: 1; min-width: 0; border: 0; padding: .75rem 1rem; font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; background: transparent; outline: none; }
.num-field span { display: grid; place-items: center; padding-inline: 1rem; background: var(--paper-2); color: var(--muted); font-size: .9rem; border-left: 1px solid var(--rule); }
.hint { flex: 1 1 14rem; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.hint.error { color: var(--err); font-weight: 600; }
.tool-inputs { display: flex; flex-direction: column; }
.tool-note { margin-top: auto; padding-top: 1.75rem; font-size: .82rem; color: var(--muted); }

.res-label { font-size: var(--fs-label); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.res-num { display: flex; align-items: baseline; gap: .6rem; margin-top: .75rem; }
.res-num span { font-size: clamp(3.5rem, 2.8rem + 2.4vw, 5rem); line-height: .95; font-weight: 800; font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.res-num small { font-size: 1.1rem; font-weight: 650; color: var(--on-night-muted); }
.breakdown { margin: 1.25rem 0 0; border-top: 1px solid var(--on-night-rule); font-size: .9rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; border-bottom: 1px solid var(--on-night-rule); }
.breakdown dt { color: var(--on-night-muted); }
.breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.lead-form { margin-top: auto; padding-top: 1.75rem; }
.lead-form > p:first-child { font-weight: 700; margin-bottom: .85rem; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.lead-row label { display: grid; gap: .35rem; font-size: var(--fs-small); font-weight: 600; color: var(--on-night-muted); }
.lead-row input { width: 100%; min-width: 0; height: 50px; padding: .7rem .9rem; border: 1px solid oklch(0.97 0.01 266 / .22); border-radius: var(--radius); background: oklch(0.97 0.01 266 / .06); color: var(--on-night); }
.lead-row input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px oklch(0.85 0.15 92 / .25); }
.lead-row input[aria-invalid="true"] { border-color: oklch(0.7 0.16 27); }
.lead-row .btn { grid-column: 1 / -1; margin-top: .35rem; }
.lead-note { margin-top: .75rem; font-size: .78rem; color: var(--on-night-muted); line-height: 1.5; }
.lead-note a { color: inherit; text-underline-offset: 3px; }
.lead-done { display: none; margin-top: .9rem; padding: .8rem 1rem; border-radius: var(--radius); background: oklch(0.95 0.04 155); color: oklch(0.34 0.1 155); font-weight: 600; font-size: .92rem; }
.lead-done.is-error { background: oklch(0.95 0.035 27); color: oklch(0.45 0.16 27); }
@media (max-width: 1000px) {
  .tool-inputs, .tool-result { grid-column: 1 / -1; }
  .tool-inputs { padding-right: clamp(1.25rem, .75rem + 2vw, 2.75rem); }
}
@media (max-width: 640px) {
  .seg.iso { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg.risk { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 1fr; }
}

/* ============ 03 Process ============ */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--col-gap); counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; position: relative; z-index: 1; margin-bottom: 1.4rem; }
.steps li:last-child::before { background: var(--sun); border-color: var(--sun-strong); }
.steps li::after { content: ""; position: absolute; top: 1.625rem; left: 3.25rem; right: calc(var(--col-gap) * -1); height: 1.5px; background: var(--rule-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .45rem; }
.steps p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.steps-foot { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); align-items: center; row-gap: 1rem; }
.steps-foot p { grid-column: 1 / 8; color: var(--muted); }
.steps-foot p strong { color: var(--ink); }
.steps-foot .text-link { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .steps li::before { margin: 0; grid-row: 1 / span 2; }
  .steps li::after { top: 3.25rem; bottom: 0; left: 1.6rem; right: auto; width: 1.5px; height: auto; }
  .steps h3 { margin-top: .75rem; }
  .steps-foot p, .steps-foot .text-link { grid-column: 1 / -1; justify-self: start; }
}

/* ============ 04 Why DAS ============ */
.why { border-top: 1px solid var(--rule); background: var(--white); }
.why .wrap { align-items: start; row-gap: 2.5rem; }
.why-photo { grid-column: 1 / 6; position: sticky; top: 112px; }
.why-photo img { width: 100%; height: auto; aspect-ratio: 639 / 783; object-fit: cover; border-radius: 10px; }
.why-photo figcaption { margin-top: .85rem; font-size: var(--fs-small); color: var(--muted); }
.why-copy { grid-column: 8 / -1; }
.why-copy h2 { margin-top: 1rem; }
.why-copy > p:not(.label) { margin-top: 1.25rem; color: var(--muted); }
.principles { margin-top: 2.25rem; border-top: 1.5px solid var(--ink); }
.principles li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .35rem 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.principles b { font-size: 1.05rem; font-variation-settings: "wdth" 106; }
.principles p { color: var(--muted); font-size: .98rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 0; }
.facts div { display: flex; flex-direction: column; padding-right: 1rem; }
.facts dd { margin-top: auto !important; padding-top: .3rem; }
.facts div + div { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.facts dt { font-size: .82rem; line-height: 1.35; color: var(--muted); }
.facts dd { margin: .3rem 0 0; font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 104; white-space: nowrap; }
.why-more { display: inline-block; margin-top: 2rem; }
@media (max-width: 1180px) {
  .why-photo { grid-column: 1 / 5; }
  .why-copy { grid-column: 6 / -1; }
}
@media (max-width: 900px) {
  .why-photo { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: end; }
  .why-photo figcaption { margin: 0; }
  .why-copy { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .principles li { grid-template-columns: 1fr; }
  .facts div { padding-right: .5rem; }
  .facts div + div { padding-left: .75rem; }
}

/* ============ 05 Clients ============ */
.clients { background: var(--paper-2); border-block: 1px solid var(--rule); }
.logo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.logo-row li { position: relative; aspect-ratio: 16 / 10; background: var(--white); overflow: hidden; }
.logo-row img { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); mix-blend-mode: multiply; filter: grayscale(1); opacity: .78; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logo-row img.wide { width: 60%; height: 60%; transform: none; }
.logo-row li:hover img { filter: none; opacity: 1; }
.quote-wrap { margin-top: clamp(3rem, 2rem + 3vw, 5rem); align-items: start; row-gap: 2rem; }
.quote-panels { grid-column: 1 / 7; }
.quote-panel[hidden] { display: none; }
blockquote { margin: 0; }
.quote-mark { display: block; width: 44px; height: 32px; color: var(--brand); margin-bottom: 1.25rem; }
blockquote p { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem); line-height: 1.38; font-weight: 550; letter-spacing: -0.015em; }
blockquote footer { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; font-size: .97rem; }
blockquote footer strong { font-weight: 750; }
blockquote footer span { color: var(--muted); }
.quote-tabs { grid-column: 8 / -1; display: grid; gap: .5rem; padding-top: calc(32px + 1.25rem); }
.quote-tabs button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: .85rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--rule-strong); cursor: pointer; font-weight: 650; }
.quote-tabs button:hover { border-color: var(--ink); }
.quote-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.quote-tabs small { font-weight: 450; font-variant-numeric: tabular-nums; opacity: .7; }
@media (max-width: 900px) {
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-panels, .quote-tabs { grid-column: 1 / -1; }
  .quote-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
  .quote-tabs small { display: none; }
}

/* ============ 06 Coverage ============ */
.coverage .wrap > .g { row-gap: 2.5rem; }
.cov-sectors { grid-column: 1 / 7; }
.cov-zones { grid-column: 8 / -1; }
.coverage h3 { padding-bottom: .9rem; border-bottom: 1.5px solid var(--ink); }
.sectors { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
.sectors li, .zones li { display: flex; align-items: baseline; gap: .9rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.sectors li span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; min-width: 1.4rem; }
.zones li { justify-content: space-between; }
.zones li span { color: var(--muted); text-align: right; font-size: .95rem; }
.cov-note { margin-top: 1.25rem; font-size: .97rem; color: var(--muted); }
@media (max-width: 900px) { .cov-sectors, .cov-zones { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } }

/* ============ 07 Data privacy ============ */
.night { background: var(--night); color: var(--on-night); }
.privacy { position: relative; overflow: hidden; isolation: isolate; }
.privacy-art { position: absolute; z-index: -1; right: -14%; top: 50%; width: min(42vw, 600px); transform: translateY(-50%); opacity: .1; mix-blend-mode: lighten; pointer-events: none; }
.privacy .wrap { align-items: start; row-gap: 3rem; }
.privacy-copy { grid-column: 1 / 7; }
.privacy-copy h2 { margin-top: 1rem; }
.privacy-copy > p:not(.label) { margin-top: 1.25rem; color: var(--on-night-muted); max-width: 34em; }
.privacy-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.privacy-tags li { padding: .4rem .8rem; border: 1px solid oklch(0.97 0.01 266 / .24); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--on-night); }
.privacy-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.roadmap { grid-column: 8 / -1; }
.roadmap-title { font-size: var(--fs-label); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); padding-bottom: .9rem; border-bottom: 1.5px solid var(--on-night); }
.roadmap ol { counter-reset: rm; }
.roadmap li { counter-increment: rm; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--on-night-rule); }
.roadmap li::before { content: counter(rm, decimal-leading-zero); grid-row: 1 / span 2; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sun); font-size: .95rem; line-height: 1.55; }
.roadmap li b { font-size: 1.02rem; }
.roadmap li span { color: var(--on-night-muted); font-size: .94rem; line-height: 1.55; }
.roadmap li small { display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 4px; background: oklch(0.97 0.01 266 / .1); color: var(--on-night-muted); font-size: .72rem; font-weight: 600; vertical-align: .1em; }
.roadmap-note { margin-top: 1rem; font-size: .82rem; color: var(--on-night-muted); line-height: 1.55; }
@media (max-width: 900px) {
  .privacy-copy, .roadmap { grid-column: 1 / -1; }
  .privacy-art { display: none; }
}
@media (max-width: 520px) { .privacy-cta .btn { flex: 1 1 100%; } }

/* ============ 08 Contact ============ */
.contact .wrap { align-items: start; row-gap: 2.5rem; }
.contact-copy { grid-column: 1 / 7; }
.contact-copy h2 { margin-top: 1rem; }
.contact-copy > p:not(.label) { margin-top: 1.25rem; color: var(--muted); max-width: 32em; }
.contact-copy .btn { margin-top: 2rem; }
.channels { grid-column: 8 / -1; border-top: 1.5px solid var(--ink); }
.channels a, .channels .addr { display: grid; grid-template-columns: 6.5rem 1fr 20px; gap: 1rem; align-items: baseline; padding-block: 1.15rem; border-bottom: 1px solid var(--rule); text-decoration: none; }
.channels a:hover strong { color: var(--brand); }
.channels small { color: var(--muted); font-size: var(--fs-small); }
.channels strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color .2s var(--ease); }
.channels .addr strong { font-size: 1rem; font-weight: 550; line-height: 1.5; }
.channels svg { width: 18px; height: 18px; color: var(--brand); align-self: center; }
@media (max-width: 900px) { .contact-copy, .channels { grid-column: 1 / -1; } }
@media (max-width: 520px) { .channels a, .channels .addr { grid-template-columns: 1fr 20px; row-gap: .1rem; } .channels small { grid-column: 1 / -1; } }

/* ============ Footer ============ */
.site-footer { background: var(--night); color: var(--on-night-muted); font-size: .94rem; }
.site-footer a { text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.f-main { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 3rem; row-gap: 3rem; }
.f-brand { grid-column: 1 / 6; }
.f-brand img { height: 44px; width: auto; }
.f-brand > p { margin-top: 1.25rem; max-width: 30em; line-height: 1.6; }
.f-contact { margin-top: 1.75rem; display: grid; gap: .1rem; border-top: 1px solid var(--on-night-rule); }
.f-contact div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--on-night-rule); }
.f-contact dt { font-size: .82rem; }
.f-contact dd { margin: 0; color: var(--on-night); font-variant-numeric: tabular-nums; line-height: 1.5; }
.f-links { grid-column: 8 / -1; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 2rem 1.5rem; align-content: start; }
.f-links li { white-space: nowrap; }
.site-footer h3 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night); margin-bottom: 1.1rem; font-weight: 700; }
.f-links ul { display: grid; gap: .65rem; }
.f-links li { line-height: 1.4; }
.f-accred { border-top: 1px solid var(--on-night-rule); padding-block: 1.5rem; align-items: center; row-gap: 1rem; }
.f-accred p { grid-column: 1 / 9; font-size: .88rem; line-height: 1.55; }
.f-accred p b { color: var(--on-night); font-weight: 650; }
.f-accred .f-verify { grid-column: 9 / -1; justify-self: end; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid oklch(0.97 0.01 266 / .28); border-radius: var(--radius); color: var(--on-night); font-weight: 650; font-size: .9rem; white-space: nowrap; }
.f-accred .f-verify:hover { text-decoration: none; border-color: var(--sun); color: var(--sun); }
.f-accred .f-verify svg { width: 16px; height: 16px; }
.f-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--on-night-rule); font-size: .84rem; }
.f-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.f-social { display: flex; gap: .5rem; }
.f-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid oklch(0.97 0.01 266 / .22); color: var(--on-night); }
.f-social a:hover { border-color: var(--sun); color: var(--sun); text-decoration: none; }
.f-social svg { width: 17px; height: 17px; }
@media (max-width: 1180px) {
  .f-brand, .f-links { grid-column: 1 / -1; }
  .f-links { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .f-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); align-items: start; }
  .f-brand img, .f-brand > p { grid-column: 1; }
  .f-contact { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (max-width: 760px) {
  .f-brand { display: block; }
  .f-contact { margin-top: 1.75rem; }
  .f-links { grid-template-columns: 1fr 1fr; }
  .f-links > div:last-child { grid-column: 1 / -1; }
  .f-links > div:last-child ul { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
  .f-accred p, .f-accred .f-verify { grid-column: 1 / -1; justify-self: start; }
  .f-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ============ Mobile action bar (replaces three overlapping floating widgets) ============ */
.action-bar { display: none; }
@media (max-width: 640px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--rule); }
  .action-bar .btn { min-height: 48px; padding: .6rem; }
  body { padding-bottom: 76px; }
}

/* ============ Motion: one orchestrated hero reveal, nothing loops ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Consent checkbox on every lead form (Luật BVDLCN 91/2025) */
.consent { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1.25rem 1fr; gap: .6rem !important; font-weight: 450 !important; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.cp-form .btn { margin-top: 1.25rem; width: 100%; }
.consent { font-size: .86rem; line-height: 1.5; color: var(--muted); margin: .25rem 0 .75rem; }
.consent a { color: var(--brand); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-form .consent { color: inherit; opacity: .85; }
.lead-form .consent a { color: inherit; text-decoration: underline; }

/* Cookie consent: non-modal bottom bar */
.ck { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: center; pointer-events: none; }
.ck[hidden] { display: none; }
.ck-in { pointer-events: auto; width: min(100%, 68rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: 14px; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 18px 50px -20px oklch(0.235 0.105 266 / .45); }
.ck-title { font-weight: 750; color: var(--ink); margin: 0 0 .25rem; }
.ck-text p:not(.ck-title) { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.ck-text a { color: var(--brand); }
.ck-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.ck-actions .btn { min-height: 2.6rem; padding: .55rem 1rem; font-size: .9rem; }
.ck-prefs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.ck-prefs[hidden] { display: none; }
.ck-cat { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .85rem; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
.ck-cat b { display: block; font-size: .92rem; color: var(--ink); }
.ck-cat small { display: block; margin-top: .2rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.ck-switch { position: relative; width: 2.4rem; height: 1.4rem; flex: none; margin-top: .1rem; }
.ck-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ck-switch i { position: absolute; inset: 0; border-radius: 999px; background: oklch(0.86 0.02 266); transition: background-color .2s var(--ease); }
.ck-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.4rem - 6px); height: calc(1.4rem - 6px); border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.ck-switch input:checked + i { background: var(--brand); }
.ck-switch input:checked + i::after { transform: translateX(1rem); }
.ck-switch input:disabled + i { opacity: .6; }
.ck-switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.f-legal button.ck-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: inherit; }
@media (max-width: 760px) {
  .ck { left: .5rem; right: .5rem; bottom: .5rem; }
  .ck-in { grid-template-columns: 1fr; padding: 1rem; }
  .ck-actions { justify-content: stretch; }
  .ck-actions .btn { flex: 1 1 auto; }
}
.ck-actions [hidden] { display: none; }
/* Sit above the fixed mobile action bar (Gọi ngay / Nhận báo giá) */
@media (max-width: 760px) { body:has(.action-bar) .ck { bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); } .ck-actions .btn { flex: 1 1 calc(50% - .25rem); } .ck-actions [data-ck="all"] { flex-basis: 100%; order: -1; } }

/* Header utilities: certificate lookup as a tool, next to the hotline */
.verify-link { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-weight: 650; font-size: .93rem; text-decoration: none; white-space: nowrap; color: var(--ink); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.verify-link svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.verify-link:hover, .verify-link[aria-current="page"] { border-color: var(--brand); background: oklch(0.46 0.13 266 / .06); }
.nav .menu-foot { display: flex; gap: .25rem; margin-top: .35rem; padding-top: .45rem; border-top: 1px solid var(--rule); }
.nav .menu-foot a { display: block; flex: 1; padding: .55rem .75rem; font-weight: 650; font-size: .9rem; color: var(--brand); }
.nav-only-mobile { display: none !important; }
@media (max-width: 1360px) { .header-actions .tel span { display: none; } .header-actions .tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--rule-strong); border-radius: var(--radius); } .header-actions { gap: .6rem; } }
@media (max-width: 1120px) {
  .verify-link { display: none; }
  .nav.open .nav-only-mobile { display: block !important; order: -1; font-weight: 700; color: var(--brand); }
  .nav.open .menu-foot { flex-direction: column; }
}
/* Dropdown fits the longest line ("An toàn, sức khỏe nghề nghiệp") on one line */
.nav .menu { width: max-content; min-width: 340px; }
.nav .menu span, .nav .menu-foot a { white-space: nowrap; }
@media (max-width: 1120px) { .nav.open .menu { width: auto; min-width: 0; } .nav.open .menu span { white-space: normal; } }

/* ============ Brand motion: certificate press, verification seal, logo check ============ */
@keyframes das-print { to { stroke-dashoffset: 0; } }
.rosette.printing path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: das-print 1.6s cubic-bezier(.22, 1, .36, 1) forwards; }

.busy-check { width: 1.15em; height: 1.15em; margin-right: .45em; vertical-align: -.2em; flex: none; }
.busy-check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: das-check 1.2s cubic-bezier(.22, 1, .36, 1) infinite; }
@keyframes das-check { 0% { stroke-dashoffset: 1; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
button[aria-busy="true"] { cursor: progress; display: inline-flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .rosette.printing path { animation: none; stroke-dashoffset: 0; }
  .busy-check path { animation: none; stroke-dashoffset: 0; }
}

/* Microprint: security line along the hero, readable only when zoomed in */
.hero .microprint { position: absolute; left: 0; right: 0; bottom: 22px; z-index: -1; display: grid; gap: 3px; overflow: hidden; pointer-events: none; user-select: none; opacity: .5; }
.hero .microprint span { display: block; white-space: nowrap; font-size: 3.6px; line-height: 1; letter-spacing: .1em; font-weight: 700; color: var(--sun); }
.hero .microprint span + span { color: oklch(0.82 0.08 262); transform: translateX(-37px); }
