/* Linkway B2C landing — lead-generation layout (v2). Brand: navy + cream, Be Vietnam Pro, amber action. */

@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --cream: #fbf6ea;
  --cream-2: #f3ead2;
  --ink: #1f1d5c;
  --text: #2d2b5e;
  --muted: #5a5885;
  --navy: #2a2879;
  --on-navy: #ffffff;
  --on-navy-soft: #d3d2ee;
  --accent: #f2b33d;
  --accent-strong: #e59f1c;
  --accent-ink: #1d1b5c;
  --blue: #e6edf8;
  --line: #e4e1ef;
  --ok: #1e7a46;
  --err: #b13a26;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; flex: 0 0 auto; }
a { color: var(--navy); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.offer :focus-visible, .numbers :focus-visible, .foot :focus-visible, .dock :focus-visible { outline-color: var(--accent); }
.offer .formcard :focus-visible { outline-color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.small { font-size: 0.9375rem; line-height: 1.5; }
.soft { color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0 1.5rem; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, transform 120ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 2.75rem; padding: 0 1.1rem; font-size: 1rem; }
.btn--block { width: 100%; min-height: 3.5rem; font-size: 1.125rem; }
.btn--ink { background: var(--navy); color: var(--on-navy); }
.btn--zalo { background: #ffffff; color: var(--navy); }
.btn svg { width: 1.25em; height: 1.25em; }
@media (hover: hover) {
  .btn:hover { background: var(--accent-strong); }
  .btn--ink:hover { background: var(--ink); }
  .btn--zalo:hover { background: var(--blue); }
}

/* ---------- form fields ---------- */
.label { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 0.95rem; background: #fff; color: var(--ink); border: 1.5px solid #8f8db9; border-radius: 10px; font-size: 1rem; appearance: none; transition: border-color 160ms ease; }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1d5c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem; }
.field::placeholder { color: #6c6a94; opacity: 1; }
.field:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field[aria-invalid="true"] { border-color: var(--err); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fgrid .full { grid-column: 1 / -1; }
.lead { display: grid; gap: 0.75rem; }
.lead__err { color: var(--err); font-size: 0.9375rem; }
.lead__err:empty { display: none; }
.lead__note { font-size: 0.875rem; color: var(--muted); text-align: center; }
.lead__done { display: none; }
.lead.is-sent > :not(.lead__done) { display: none; }
.lead.is-sent .lead__done { display: block; background: #e9f6ee; color: #14502f; border-radius: 12px; padding: 1rem 1.1rem; font-weight: 500; }
.lead__done .btn { margin: 0.75rem 0.75rem 0 0; }
.lead__done a.link { color: #14502f; font-weight: 600; }

/* ---------- header bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.bar__logo img { height: 32px; width: auto; }
.bar__nav { display: flex; gap: 1.75rem; font-weight: 500; font-size: 1rem; }
.bar__nav a { color: var(--ink); text-decoration: none; }
.bar__nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 0.25em; }
.bar__cta { display: flex; align-items: center; gap: 1rem; }
.bar__phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 44px; }
.bar__phone svg { width: 1.1em; height: 1.1em; color: var(--navy); }
@media (max-width: 1020px) { .bar__nav { display: none; } }
@media (max-width: 560px) { .bar__phone span { display: none; } .bar__phone svg { width: 1.5em; height: 1.5em; } .bar__in { min-height: 64px; gap: 0.75rem; } .bar__logo img { height: 28px; } }

/* ---------- hero ---------- */
.hero { background: var(--cream); padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.tagline { font-size: 0.9375rem; font-weight: 600; color: var(--navy); background: #fff; display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.125rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em; }
.hero h1 .hl { color: var(--navy); background: linear-gradient(transparent 62%, #f8d98e 62%); }
@media (min-width: 600px) { .hero h1 .nw { white-space: nowrap; } }
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); margin-top: 1.25rem; max-width: 34em; color: var(--text); }
.checks { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1.0625rem; line-height: 1.5; }
.checks svg { width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 50%; background: var(--navy); color: #fff; margin-top: 0.05rem; }
.checks b { color: var(--ink); font-weight: 600; }
.partners { margin-top: 2rem; font-size: 0.9375rem; color: var(--muted); }
.partners span { font-weight: 600; color: var(--ink); }

.formcard { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 2.5vw, 2rem); }
.formcard__title { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.25; }
.formcard__sub { margin: 0.4rem 0 1.25rem; color: var(--text); }
.formcard__sub b { color: var(--ink); background: #fdecc4; padding: 0 0.25rem; border-radius: 4px; }
.formcard__alt { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; min-height: 44px; }
.formcard__alt svg { width: 1.3em; height: 1.3em; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- numbers strip ---------- */
.numbers { background: var(--navy); color: var(--on-navy); padding: 2rem 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.numbers b { display: block; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--accent); }
.numbers span { color: var(--on-navy-soft); font-size: 0.9375rem; }
@media (max-width: 760px) { .numbers__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--cream); }
.shead { max-width: 46rem; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); text-align: center; }
.shead h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.15; }
.shead p { margin-top: 0.85rem; font-size: 1.125rem; color: var(--muted); }

/* ---------- strengths A: zigzag features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature--flip .feature__text { order: 2; }
.feature__kicker { display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--navy); background: var(--blue); padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.9rem; }
.feature h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem); line-height: 1.2; }
.feature__text > p:not(.feature__kicker):not(.hint) { margin-top: 0.9rem; font-size: 1.0625rem; }
.feature__text .btn { margin-top: 1.5rem; }
.ticks { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks svg { width: 1.3rem; height: 1.3rem; color: var(--ok); margin-top: 0.15rem; }
.ticks--light svg { color: var(--accent); }
.feature__visual { border-radius: var(--radius-lg); background: var(--cream); padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; place-items: center; min-height: 360px; }
.feature__visual--blue { background: var(--blue); }
.feature__visual--sand { background: var(--cream-2); }
.feature__visual:has(.feature__photo) { padding: 0; overflow: hidden; }
.feature__photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.hint { margin-top: 1.25rem; font-weight: 500; color: var(--ink); }
.track__examples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.track__examples button { min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 500; transition: background-color 160ms ease, color 160ms ease; }
.track__examples button:hover { background: var(--navy); color: #fff; }
.trackbox { width: 100%; max-width: 480px; display: grid; gap: 1rem; }
.trackbox__form { display: flex; gap: 0.5rem; }
.trackbox__form .field { text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
  .feature__visual { min-height: 0; }
}

/* product UI fragments */
.ui { width: 100%; max-width: 440px; background: #fff; color: #1e1d4f; border-radius: var(--radius); padding: 1.25rem; font-size: 0.9375rem; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08); }
.ui--wide { max-width: 480px; }
.ui__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.ui__title { font-weight: 600; }
.chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: #e7eefb; color: #23216a; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.chip--amber { background: #fdecc4; color: #6a4500; }
.chip--green { background: #dcf2e4; color: #145a32; }
.ui__time { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.ui__time li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 8px; }
.ui__time li b { font-variant-numeric: tabular-nums; }
.ui__time li.is-now { background: #fdecc4; }
.ui__big { font-size: 1.875rem; font-weight: 600; color: var(--ink); margin-top: 0.6rem; font-variant-numeric: tabular-nums; }
.ui__foot { margin-top: 0.75rem; color: #5d5c86; font-size: 0.8125rem; }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0.25rem 0 0.4rem; }
.progress span { height: 8px; background: #e4e3f1; border-radius: 2px; }
.progress span.is-done { background: #23216a; }
.progress span.is-now { background: var(--accent-strong); }
.steps-names { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; font-size: 0.6875rem; color: #5d5c86; margin-bottom: 0.75rem; }
@media (max-width: 480px) { .steps-names { display: none; } .trackbox__form { flex-direction: column; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calc__in { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); align-content: start; }
.calc__out { padding: clamp(1.25rem, 3vw, 2.25rem); background: #fafaff; border-left: 1px solid var(--line); display: grid; gap: 1rem; align-content: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.dims .field { text-align: center; padding-inline: 0.4rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cream); border-radius: 12px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 2.75rem; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--ink); }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.rows { display: grid; }
.rows div { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.rows .rows__sep { border-top: 6px solid transparent; }
.rows dt { font-weight: 600; color: var(--ink); }
.rows dd { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rows .why { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); }
.total { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem; }
.total__main { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.total__main span { color: var(--on-navy-soft); }
.total__main b { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.25rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent); }
.total__split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; font-size: 0.875rem; color: var(--on-navy-soft); }
.total__split b { display: block; font-size: 1.125rem; color: #fff; font-variant-numeric: tabular-nums; }
.calc__time { font-weight: 600; color: var(--ink); }
.calc__warn { display: none; background: #fdecc4; color: #5a3c00; border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.9375rem; }
.calc__warn.is-on { display: block; }
.calc__send { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 1rem; }
.calc__send-title { font-weight: 600; color: var(--ink); }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
@media (max-width: 920px) {
  .calc { grid-template-columns: 1fr; }
  .calc__out { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .inline { grid-template-columns: 1fr; } .dims { grid-template-columns: repeat(2, 1fr); } }

/* ---------- strengths B: services ---------- */
.services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.services li { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; }
.ico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--navy); color: #fff; margin-bottom: 1rem; }
.ico svg { width: 1.5rem; height: 1.5rem; }
.services h3 { font-size: 1.25rem; line-height: 1.3; }
.services p { margin-top: 0.5rem; color: var(--text); }
@media (max-width: 920px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.5rem; }
.steps__n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 0.9rem; }
.steps h3 { font-size: 1.1875rem; line-height: 1.3; }
.steps p { margin-top: 0.5rem; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.15; margin-bottom: 1rem; }
.about__text > p + p { margin-top: 0.9rem; }
.about b { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.75rem; }
.facts dt { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.facts dd { color: var(--text); font-size: 0.9375rem; margin-top: 0.15rem; }
.about__photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* ---------- offer ---------- */
.offer { background: var(--navy); color: var(--on-navy); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.offer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.offer__badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.9375rem; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }
.offer h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.12; }
.offer__copy > p:not(.offer__badge) { margin-top: 1rem; font-size: 1.125rem; color: var(--on-navy-soft); }
.offer .ticks li { color: #fff; }
.formcard--offer { color: var(--text); }
@media (max-width: 920px) { .offer__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__list { max-width: 50rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--cream); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; font-size: 1.125rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--navy); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.2rem; color: var(--text); }

/* ---------- footer ---------- */
.foot { background: #1b1a52; color: var(--on-navy-soft); padding: 3.5rem 0 1.5rem; font-size: 0.9375rem; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot__logo { height: 32px; width: auto; margin-bottom: 1rem; }
.foot p + p { margin-top: 0.4rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__h { color: #fff; font-weight: 600; margin-bottom: 0.6rem; }
.foot__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- phone action bar ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16); transform: translateY(110%); visibility: hidden; transition: transform 300ms var(--ease), visibility 0s 300ms; }
  .dock.is-on { transform: none; visibility: visible; transition: transform 300ms var(--ease), visibility 0s; }
  .dock .btn { min-height: 3rem; }
  .foot { padding-bottom: 5.5rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .services li:nth-child(2), .steps li:nth-child(2) { transition-delay: 70ms; }
  .services li:nth-child(3), .steps li:nth-child(3) { transition-delay: 140ms; }
  .services li:nth-child(4), .steps li:nth-child(4) { transition-delay: 210ms; }
  .services li:nth-child(5) { transition-delay: 280ms; }
  .services li:nth-child(6) { transition-delay: 350ms; }
}

/* v2 refinements: icon beside text instead of stacked tiles; keep measure readable */
.services li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.services .ico { grid-row: 1 / span 2; margin-bottom: 0; }
.feature__text p, .about__text p, .faq details p, .offer__copy p { max-width: 62ch; }

.offer .formcard { box-shadow: none; }

/* =====================================================================
   v3 motion & illustration layer (React Bits–style effects, vanilla)
   ===================================================================== */
:root { --duo: #f8d98e; interpolate-size: allow-keywords; }
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* hero: dotted field + live pulse */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(42, 40, 121, 0.14) 1.2px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero__grid { position: relative; }
.tagline { display: inline-flex; align-items: center; gap: 0.55rem; }
.pulse { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #22a35a; position: relative; flex: 0 0 auto; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22a35a; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }
.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin: -0.5rem 0 1rem; }
.status__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #9a98bd; }
.status.is-open .status__dot { background: #22a35a; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); animation: ping2 2s infinite; }
@keyframes ping2 { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* partners marquee */
.partners { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.partners__label { font-size: 0.875rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 0.6rem; width: max-content; animation: marquee 22s linear infinite; }
.marquee__track span { font-weight: 700; font-size: 0.9375rem; color: var(--navy); background: #fff; padding: 0.3rem 0.85rem; border-radius: 999px; letter-spacing: 0.01em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* shine sweep on main buttons */
.btn--block { position: relative; overflow: hidden; isolation: isolate; }
.btn--block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%); transform: translateX(-120%); animation: shine 3.6s 1.2s ease-in-out 3; z-index: -1; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* numbers */
.numbers b span { display: inline-block; min-width: 0.6em; font-variant-numeric: tabular-nums; }

/* feature kickers with icon */
.feature__kicker { display: inline-flex; align-items: center; gap: 0.4rem; }
.feature__kicker svg { width: 1.05em; height: 1.05em; }

/* ---------- customs declaration illustration ---------- */
.decl { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08); color: #1e1d4f; font-size: 0.9375rem; overflow: hidden; }
.decl__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.decl__title { font-weight: 600; }
.decl__clock { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); background: var(--blue); padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; font-size: 0.875rem; }
.decl__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1rem 0; }
.decl__fields div { background: #f5f4fb; border-radius: 8px; padding: 0.45rem 0.6rem; }
.decl__fields dt { font-size: 0.75rem; color: #5d5c86; }
.decl__fields dd { font-weight: 600; font-size: 0.8125rem; }
.decl__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; position: relative; }
.decl__steps::before { content: ""; position: absolute; left: 0.6rem; top: 0.9rem; bottom: 0.9rem; width: 2px; background: #e4e3f1; }
.decl__steps li { position: relative; display: grid; grid-template-columns: 1.2rem 3.2rem 1fr; gap: 0.5rem; align-items: center; padding: 0.4rem 0; color: #9a98bd; transition: color 300ms ease; }
.decl__dot { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; border: 2px solid #d6d4ea; position: relative; z-index: 1; transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease); }
.decl__steps li.is-done { color: #1e1d4f; }
.decl__steps li.is-done .decl__dot { background: #22a35a; border-color: #22a35a; transform: scale(1.05); }
.decl__steps li.is-done .decl__dot::after { content: ""; position: absolute; left: 0.32rem; top: 0.12rem; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.decl__steps li.is-active { color: #1e1d4f; }
.decl__steps li.is-active .decl__dot { border-color: var(--accent-strong); animation: ping2 1s infinite; }
.stamp { position: absolute; right: 1rem; bottom: 2.6rem; border: 3px solid #c2412d; color: #c2412d; border-radius: 10px; padding: 0.35rem 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; line-height: 1.15; text-align: center; transform: rotate(-9deg); opacity: 0; background: rgba(255, 255, 255, 0.85); }
.stamp small { display: block; font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
.stamp.is-on { opacity: 1; }
.stamp.is-slam { animation: slam 520ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes slam { 0% { opacity: 0; transform: rotate(-9deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-9deg) scale(0.92); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* ---------- route map ---------- */
.routemap { background: #fff; border-radius: var(--radius); padding: 0.75rem 0.75rem 0.4rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 0, 0, 0.06); }
.routemap svg { width: 100%; height: auto; overflow: visible; display: block; }
.routemap path { fill: none; stroke-linecap: round; }
.routemap__base { stroke: #e4e3f1; stroke-width: 6; }
.routemap__done { stroke: var(--navy); stroke-width: 6; }
.routemap__flow { stroke: var(--accent-strong); stroke-width: 2; stroke-dasharray: 2 12; animation: flow 1.2s linear infinite; opacity: 0.9; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.routemap__puck { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.routemap__truckicon { color: var(--accent-ink); --duo: #fff; }
.routemap__nodes { list-style: none; padding: 0; margin: 0.25rem 0 0; position: relative; height: 1.3rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.routemap__nodes li { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; transition: color 300ms ease; }
.routemap__nodes li:first-child { transform: none; left: 0; }
.routemap__nodes li:last-child { transform: none; left: auto; right: 0; }
.routemap__nodes li.is-reached { color: var(--navy); }
@media (max-width: 480px) { .routemap__nodes { font-size: 0.6875rem; } .routemap__nodes li:nth-child(3) { display: none; } }

/* animated list (tracking timeline) */
.anim .ui__time li { animation: listIn 480ms var(--ease) both; }
.anim .ui__time li:nth-child(2) { animation-delay: 90ms; }
.anim .ui__time li:nth-child(3) { animation-delay: 180ms; }
.anim .ui__time li:nth-child(4) { animation-delay: 270ms; }
.anim .ui__time li:nth-child(5) { animation-delay: 360ms; }
.anim .ui__time li:nth-child(6) { animation-delay: 450ms; }
@keyframes listIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
.anim .progress span { transform-origin: left; animation: barIn 600ms var(--ease) both; }
.anim .progress span:nth-child(2) { animation-delay: 80ms; } .anim .progress span:nth-child(3) { animation-delay: 160ms; }
.anim .progress span:nth-child(4) { animation-delay: 240ms; } .anim .progress span:nth-child(5) { animation-delay: 320ms; } .anim .progress span:nth-child(6) { animation-delay: 400ms; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.anim .progress span.is-now { animation: barIn 600ms var(--ease) both, ping2 1.4s 700ms infinite; }
.track__examples button.is-auto { background: var(--navy); color: #fff; }

/* ---------- receipt illustration ---------- */
.receipt { width: 100%; max-width: 400px; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.25rem 1.4rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08); color: #1e1d4f; font-size: 0.9375rem; position: relative; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 8px 0, transparent 7px, #fff 7.5px) 0 0 / 16px 8px repeat-x; }
.receipt__head { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; padding-bottom: 0.75rem; margin-bottom: 0.4rem; border-bottom: 2px dashed #e4e3f1; }
.receipt__head svg { width: 1.2em; height: 1.2em; color: var(--navy); }
.receipt__rows { list-style: none; padding: 0; margin: 0; }
.receipt__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.receipt__rows li b { font-variant-numeric: tabular-nums; }
.receipt__rows li.tax span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--accent); margin-right: 0.45rem; vertical-align: 0.08em; }
.receipt__rows li:not(.tax) span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--navy); margin-right: 0.45rem; vertical-align: 0.08em; }
.receipt__bar, .splitbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #eeedf6; margin: 0.9rem 0 0.5rem; gap: 2px; }
.receipt__bar span, .splitbar span { display: block; width: var(--w, 50%); transform-origin: left; transition: width 600ms var(--ease); }
.receipt__bar .fee, .splitbar [data-bar="fee"] { background: var(--navy); }
.receipt__bar .tax, .splitbar [data-bar="tax"] { background: var(--accent); }
.splitbar { background: rgba(255, 255, 255, 0.15); margin: 0.75rem 0 0; }
.splitbar [data-bar="fee"] { background: #fff; }
.receipt__legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.8125rem; color: #5d5c86; }
.receipt__legend i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 2px; margin-right: 0.35rem; }
.receipt__legend i.fee { background: var(--navy); } .receipt__legend i.tax { background: var(--accent); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; padding-top: 0.75rem; border-top: 2px dashed #e4e3f1; }
.receipt__total b { font-size: 1.5rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.js .receipt.is-armed .receipt__rows li, .js .receipt.is-armed .receipt__bar, .js .receipt.is-armed .receipt__legend, .js .receipt.is-armed .receipt__total { opacity: 0; transform: translateY(6px); }
.receipt.is-printing .receipt__rows li, .receipt.is-printing .receipt__bar, .receipt.is-printing .receipt__legend, .receipt.is-printing .receipt__total { animation: listIn 420ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.receipt.is-printing .receipt__bar span { animation: barIn 800ms var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 150ms); }

/* calculator figures bump when they change */
.is-bump { animation: bump 520ms var(--ease); }
@keyframes bump { 0% { color: var(--accent-strong); } 100% { } }

/* ---------- services: spotlight cards + icon motion ---------- */
.services li { position: relative; overflow: hidden; isolation: isolate; transition: transform 200ms var(--ease); }
.services li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 179, 61, 0.32), transparent 65%); opacity: 0; transition: opacity 250ms ease; }
.services li:hover::before { opacity: 1; }
.services li:hover { transform: translateY(-3px); }
.ico { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); width: 3.25rem; height: 3.25rem; transition: transform 300ms var(--ease); }
.ico svg { width: 2rem; height: 2rem; }
.services li:hover .ico { transform: rotate(-8deg) scale(1.08); }

/* ---------- process: connector with traveling truck ---------- */
.steps-wrap { position: relative; }
.steps__line { position: absolute; z-index: 2; left: 3.25rem; right: calc((100% - 3.75rem) / 4 - 3.25rem); top: calc(3.25rem - 2px); height: 4px; background: #e9dfc4; border-radius: 4px; pointer-events: none; }
.steps__line > span { position: absolute; inset: 0; background: var(--navy); border-radius: 4px; transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps__runner { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); --duo: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.steps__runner svg { width: 1.3rem; height: 1.3rem; }
.steps li { text-align: left; }
.steps__n { width: 3.5rem; height: 3.5rem; background: #fff; color: var(--navy); position: relative; z-index: 3; box-shadow: 0 0 0 4px var(--cream), 0 1px 2px rgba(0, 0, 0, 0.08); transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease); }
.steps__n svg { width: 2rem; height: 2rem; }
.steps__n em { position: absolute; right: -0.35rem; top: -0.35rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
.steps li { background: #fff; }
.steps li.is-on .steps__n { background: var(--navy); color: #fff; --duo: rgba(255, 255, 255, 0.3); transform: scale(1.06); }
@media (max-width: 920px) { .steps__line { display: none; } }

/* ---------- offer: animated border beam on the form ---------- */
.formcard--offer { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--beam), #3a3890 0deg 250deg, var(--accent) 300deg, #fff 330deg, #3a3890 360deg) border-box; animation: beam 4s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.offer__badge { position: relative; overflow: hidden; }
.offer__badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3s ease-in-out 3; }

/* ---------- FAQ smooth open ---------- */
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary::after { transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

/* ---------- reduced motion: keep states, drop travel ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .pulse::after, .btn--block::after, .routemap__flow, .formcard--offer, .offer__badge::after, .status__dot, .anim .ui__time li, .anim .progress span { animation: none !important; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track span:nth-child(n + 8) { display: none; }
}

/* v3 fixes after browser test */
.hero__copy, .hero__grid > *, .partners, .marquee { min-width: 0; }
.numbers b span { font-size: inherit; color: inherit; }
.decl { padding-bottom: 1rem; }
.decl__steps li { padding-right: 9.5rem; }
.stamp { top: auto; bottom: 2.4rem; right: 0.9rem; }
@media (max-width: 480px) { .decl__steps li { padding-right: 0; } .stamp { bottom: auto; top: 3.5rem; right: 0.75rem; } .decl__fields { grid-template-columns: 1fr 1fr; } }
.routemap__node { fill: #fff; stroke: #c9c7e2; stroke-width: 3; transition: stroke 300ms ease, fill 300ms ease; }
.routemap__node.is-reached { stroke: var(--navy); fill: var(--navy); }
@media (max-width: 480px) {
  .stamp { top: auto; bottom: 0.7rem; right: 0.6rem; font-size: 0.8125rem; padding: 0.25rem 0.55rem; }
  .decl .ui__foot { max-width: 52%; }
}

/* ---------- paste product links ---------- */
.paste { background: var(--cream); border: 2px dashed #d9cba3; border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.75rem; }
.paste__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.paste__title { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--ink); }
.paste__title svg { width: 1.15em; height: 1.15em; color: var(--navy); }
.paste__rate { font-size: 0.875rem; font-weight: 700; color: var(--navy); background: #fff; padding: 0.2rem 0.65rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.paste__hint, .paste__note { font-size: 0.875rem; color: var(--muted); }
.paste__rows { display: grid; gap: 0.75rem; }
.prow { background: #fff; border-radius: 12px; padding: 0.75rem; display: grid; gap: 0.5rem; }
.prow.is-pasted { animation: listIn 420ms var(--ease) both; }
.prow__link { position: relative; }
.prow__link .field { padding-right: 6rem; }
.pchip { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font-size: 0.75rem; font-weight: 700; color: #fff; background: #e4572e; padding: 0.15rem 0.55rem; border-radius: 999px; }
.pchip[hidden] { display: none; }
.prow__nums { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; align-items: end; }
.prow__nums label span { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink); margin-bottom: 0.25rem; }
.prow__del { width: 2.75rem; height: 3.25rem; border-radius: 10px; border: 1.5px solid #8f8db9; background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; }
.prow__del:hover { border-color: var(--err); color: var(--err); }
.prow__line { font-size: 0.875rem; font-weight: 600; color: var(--navy); min-height: 0; }
.prow__line:empty { display: none; }
.paste__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.paste__add { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; }
.paste__add:disabled { opacity: 0.5; cursor: not-allowed; }
.paste__add svg { width: 1em; height: 1em; }
.paste__sum { font-size: 0.9375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.paste__sum b { color: var(--navy); }
.field.is-auto { background: #fdf6e2; border-color: var(--accent-strong); }
