/* ==========================================================================
   Lowki Logistics — design system
   Rebuilt from the Catalis template: floating pill nav, high-contrast serif
   display with italic accents, sky gradients, inset rounded panels,
   oversized footer wordmark.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink + surface */
  --banner-offset: 10.75rem;
  --ink:            #0E0E10;
  --ink-soft:       #6B6B73;
  --ink-faint:      #A1A1AA;
  --surface:        #FFFFFF;
  --surface-2:      #F4F4F5;
  --surface-3:      #EBEBED;
  --line:           #E4E4E7;

  /* Brand blue (freight/route accent) */
  --blue-700:       #071A33;
  --blue-600:       #102F52;
  --blue-500:       #1B4F7A;
  --sky-deep:       #2F70A5;
  --sky-mid:        #72ADD5;
  --blue-100:       #DCE8FF;
  --sky-pale:       #C7DEF0;

  /* Type */
  --display: "Instrument Serif", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Rhythm */
  --gutter: 1.5rem;
  --container: 75rem;      /* 1200px */
  --container-lg: 84rem;
  --container-sm: 52rem;
  --sec-y: 7rem;
  --shadow-card: 0 1px 2px rgba(16,16,20,.04), 0 12px 32px rgba(16,16,20,.06);
  --shadow-float: 0 18px 50px rgba(11,63,176,.18), 0 2px 6px rgba(16,16,20,.06);
}

@media (max-width: 991px) { :root { --sec-y: 5rem; } }
@media (max-width: 767px) { :root { --sec-y: 3.75rem; --gutter: 1.125rem; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h1 em, h2 em, h3 em { font-style: italic; }

p { margin: 0; }
.lede { font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.65; }
.sub  { color: var(--ink-soft); }
.small { font-size: .875rem; }
.xs { font-size: .8125rem; }

.eyebrow {
  
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.serif-num {
  
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.center { text-align: center; }
.on-dark { color: #fff; }
.on-dark .sub, .on-dark .lede { color: rgba(255,255,255,.78); }

/* ---------- Layout ---------- */
.wrap { width: 100%; padding-inline: var(--gutter); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container.lg { max-width: var(--container-lg); }
.container.sm { max-width: var(--container-sm); }

.section { padding-block: var(--sec-y); }
.section.tight { padding-block: calc(var(--sec-y) * .6); }

.measure-45 { max-width: 45rem; margin-inline: auto; }
.measure-38 { max-width: 38rem; margin-inline: auto; }
.measure-33 { max-width: 33rem; margin-inline: auto; }
.measure-28 { max-width: 28rem; }

.stack > * + * { margin-top: var(--s, 1rem); }
.s-xs { --s: .5rem; }
.s-sm { --s: .875rem; }
.s-md { --s: 1.5rem; }
.s-lg { --s: 2rem; }
.s-xl { --s: 2.75rem; }

/* Inset rounded panel — the template's "padding-box" device */
.inset { padding: .5rem; }
.panel { border-radius: var(--r-xl); overflow: hidden; position: relative; }
.panel.dark { background: var(--ink); color: #fff; }
.panel.sky  { background: linear-gradient(
    178deg,
    var(--blue-700) 0%,
    #12385F 38%,
    #82B7DD 68%,
    #D5E7F3 100%
); color: #fff; }
@media (max-width: 767px) { .inset { padding: .375rem; } .panel { border-radius: var(--r-lg); } }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4375rem .75rem .4375rem .5rem;
  background: #fff; color: var(--ink);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,16,20,.04);
}
.badge svg { width: 14px; height: 14px; color: var(--blue-600); flex: none; }
.badge span {  font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.badge-row { display: flex; }
.badge-row.center { justify-content: center; }
.badge.ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); color: #fff; backdrop-filter: blur(8px); }
.badge.ghost svg { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding-inline: 1.375rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 500; letter-spacing: -0.005em;
  overflow: hidden; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, background-color .25s ease;
}
.btn__slide { position: relative; display: grid; overflow: hidden; height: 1.25rem; }
.btn__slide span { grid-area: 1 / 1; transition: transform .38s cubic-bezier(.2,.7,.3,1); }
.btn__slide span:nth-child(2) { transform: translateY(115%); }
.btn:hover .btn__slide span:nth-child(1) { transform: translateY(-115%); }
.btn:hover .btn__slide span:nth-child(2) { transform: translateY(0); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16,16,20,.18); }
.btn.secondary { --btn-bg: var(--surface-2); --btn-fg: var(--ink); border-color: var(--line); }
.btn.secondary:hover { --btn-bg: var(--surface-3); box-shadow: 0 10px 24px rgba(16,16,20,.10); }
.btn.light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn.blue { --btn-bg: var(--blue-600); --btn-fg: #fff; }
.btn.sm { height: 2.25rem; padding-inline: 1rem; font-size: .8125rem; }
.btn.full { width: 100%; }
.btn-row { display: flex; gap: .625rem; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

.textlink { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 500; }
.textlink svg { width: 14px; height: 14px; transition: transform .3s ease; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; padding-top: .625rem; transition: padding .3s ease; }
.nav__inner {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  height: 3.5rem; padding: 0 .5rem 0 2rem;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(16,16,20,.04), 0 10px 30px rgba(16,16,20,.06);
}
.nav__brand { display: inline-flex; align-items: center; gap: .5rem; margin-right: auto; }
.nav__mark { width: 4rem; flex: none; }
.nav__word {  font-size: 1.125rem; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; padding: .5rem .75rem; border-radius: var(--r-pill);
  font-size: .875rem; color: var(--ink-soft); transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* dropdown */
.nav__drop { position: relative; }
.nav__drop > button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .75rem; border: 0; background: none; border-radius: var(--r-pill);
  font-size: .875rem; color: var(--ink-soft); cursor: pointer;
}
.nav__drop > button:hover { color: var(--ink); background: var(--surface-2); }
.nav__drop > button svg { width: 10px; height: 10px; transition: transform .25s ease; }
.nav__drop[data-open="true"] > button svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + .75rem); left: 50%; translate: -50% 0;
  display: grid; grid-template-columns: repeat(4, minmax(8.25rem, 1fr)); gap: .25rem 1.25rem;
  padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .22s ease;
}
.nav__drop[data-open="true"] .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { padding: .4rem .5rem; border-radius: var(--r-sm); font-size: .8125rem; color: var(--ink-soft); }
.nav__menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav__menu .col-h {  font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding: .25rem .5rem; }

.nav__burger {
  display: none; width: 2.5rem; height: 2.5rem; border: 0; background: none; cursor: pointer;
  border-radius: var(--r-pill); place-items: center;
}
.nav__burger i { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav__burger i + i { margin-top: 4px; }
body[data-menu="open"] .nav__burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body[data-menu="open"] .nav__burger i:nth-child(2) { opacity: 0; }
body[data-menu="open"] .nav__burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav__inner { height: 3.25rem; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__actions .btn { display: none; }
  .nav__mobile {
    position: fixed; inset: 4.25rem .75rem auto .75rem; z-index: 89;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-card); padding: .75rem; max-height: 76vh; overflow: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s ease;
  }
  body[data-menu="open"] .nav__mobile { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__mobile a { display: block; padding: .625rem .75rem; border-radius: var(--r-sm); font-size: .9375rem; }
  .nav__mobile .col-h {  font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding: .75rem .75rem .25rem; }
  .nav__mobile .btn { display: inline-flex; width: 100%; margin-top: .75rem; }
}
@media (min-width: 992px) { .nav__mobile { display: none; } }

/* ---------- Hero: sky ---------- */
.sky-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(
    178deg,
    var(--blue-700) 0%,
    #173E68 38%,
    #86BADF 68%,
    #D5E7F3 100%
);
  color: #fff;
  padding: 9.5rem var(--gutter) 0;
  isolation: isolate;
}
.sky-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1;
  background:
    radial-gradient(60% 90% at 18% 100%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(50% 80% at 52% 108%, rgba(255,255,255,.9), rgba(255,255,255,0) 72%),
    radial-gradient(62% 92% at 86% 100%, rgba(255,255,255,.88), rgba(255,255,255,0) 70%);
}
.sky-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 26%; z-index: -1;
  background: radial-gradient(70% 100% at 50% 120%, rgba(255,255,255,.75), rgba(255,255,255,0) 75%);
}
.sky-hero .container { position: relative; z-index: 1; }
@media (max-width: 767px) { .sky-hero { padding-top: 7.5rem; } }

.hero-cards { position: relative; height: 20rem; margin-top: 3.5rem; }
.hero-cards .slot { position: absolute; bottom: -3.5rem; }
.hero-cards .slot.a { left: 3%;  width: 19rem; transform: rotate(-7deg); z-index: 1; }
.hero-cards .slot.b { left: 50%; width: 22rem; translate: -50% 0; z-index: 3; bottom: -2rem; }
.hero-cards .slot.c { right: 3%; width: 19rem; transform: rotate(7deg); z-index: 1; }
@media (max-width: 991px) {
  .hero-cards { height: 16rem; }
  .hero-cards .slot.a, .hero-cards .slot.c { display: none; }
  .hero-cards .slot.b { width: min(22rem, 92%); }
}

/* ---------- UI mock cards (the template's SVG dashboards, rebuilt) ---------- */
.fcard {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  padding: 1rem;
  color: var(--ink);
}
.fcard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.fcard__title {  font-size: 1.125rem; }
.fcard__pill svg { width: 9px; height: 9px; }
.fcard__pill { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .625rem; color: var(--ink-soft); }
.fcard__foot { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .625rem; color: var(--ink-soft); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); display: inline-block; margin-right: .35rem; }
.dot.pale { background: var(--surface-3); }

/* arc gauge */
.gauge { position: relative; height: 9.5rem; display: grid; place-items: center; }
.gauge__bars { position: absolute; inset: 0; }
.gauge__bars i {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 18px; border-radius: 3px;
  background: var(--surface-3); transform-origin: 50% 50%;
}
.gauge__bars i.on { background: var(--blue-600); }
.gauge__val { position: relative; text-align: center; padding-top: 2rem; }
.gauge__val b { display: block;  font-weight: 400; font-size: 1.875rem; line-height: 1; }
.gauge__val small { display: block; max-width: 9rem; margin: .25rem auto 0; font-size: .5625rem; line-height: 1.3; color: var(--ink-soft); }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 4.5rem; }
.bars i { flex: 1; background: var(--blue-100); border-radius: 3px 3px 2px 2px; }
.bars i.hi { background: var(--blue-600); }

/* row list */
.rows { display: grid; gap: .5rem; }
.rows .row { display: flex; align-items: center; gap: .625rem; padding: .5rem .625rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.rows .row .ic { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; flex: none; }
.rows .row .ic svg { width: 12px; height: 12px; color: #fff; }
.rows .row .t { font-size: .75rem; font-weight: 500; line-height: 1.2; }
.rows .row .m { font-size: .625rem; color: var(--ink-soft); }
.rows .row .v { margin-left: auto; font-size: .75rem; font-weight: 500; }

/* progress line */
.track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--blue-600); border-radius: 3px; }

/* ---------- Media placeholders (swap for real photography) ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(165deg, #0B57A8 0%, #4B94D8 52%, #C7DEF0 100%);
  isolation: isolate;
}
.media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(46% 60% at 22% 88%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
    radial-gradient(52% 62% at 78% 96%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%);
}
.media::after {
  content: ""; position: absolute; inset: 0;
  /* background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px); */
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%);
}
.media.warm { background: linear-gradient(165deg, #1F3D2B 0%, #6C8F6E 55%, #D9E4D2 100%); }
.media.slate { background: linear-gradient(165deg, #13233A 0%, #46617F 55%, #C9D6E2 100%); }
.media.ink { background: linear-gradient(165deg, #0E0E10 0%, #33333A 55%, #9A9AA3 100%); }
.media > .glyph { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.media > .glyph svg { width: 34%; max-width: 120px; color: rgba(255,255,255,.42); }
.media.r-1x1 { aspect-ratio: 1 / 1; }
.media.r-4x3 { aspect-ratio: 4 / 3; }
.media.r-3x2 { aspect-ratio: 3 / 2; }
.media.r-16x9 { aspect-ratio: 16 / 9; }
.media.r-3x4 { aspect-ratio: 3 / 4; }
.media.r-2x3 { aspect-ratio: 2 / 3; }
.avatar { width: 3rem; height: 3rem; border-radius: 50%; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: baseline; gap: .875rem; }
.stat .label { font-size: .8125rem; color: var(--ink-soft); line-height: 1.35; max-width: 9rem; }
@media (max-width: 767px) { .stats, .stats.four { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---------- Generic cards ---------- */
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; height: 100%;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--surface-3); }
.card.plain { background: #fff; }
.card__ic { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.card__ic svg { width: 18px; height: 18px; color: var(--blue-600); }
.card h3, .card h4 {  }
.card-title {  font-size: 1.375rem; line-height: 1.15; }

.grid { display: grid; gap: 1rem; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.wide-left { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 991px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 2rem; } }

/* Benefit cards on dark panel */
.panel .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.panel .card:hover { background: rgba(255,255,255,.1); }
.panel .card .sub { color: rgba(255,255,255,.7); }
.panel .card__ic { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.panel .card__ic svg { color: #fff; }

/* Feature card with image top */
.feature { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.feature__top { display: flex; flex-direction: column; gap: .625rem; }
.tag { align-self: flex-start; padding: .25rem .625rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);  font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.feature__vis { position: relative; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 1.125rem; min-height: 12rem; }
.feature__vis .fcard { background: transparent; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; }
.feature__vis::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3.5rem; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }

/* ---------- Pricing ---------- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; height: 100%; color: var(--ink); }
.price-card.featured { box-shadow: 0 22px 60px rgba(11,63,176,.22); border-color: transparent; }
.price-card__plan { display: flex; align-items: center; gap: .75rem; }
.price-card__ic { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; }
.price-card__ic svg { width: 14px; height: 14px; color: var(--blue-600); }
.price { display: flex; align-items: baseline; gap: .375rem; }
.price b {  font-weight: 400; font-size: 2.5rem; line-height: 1; }
.price span { font-size: .8125rem; color: var(--ink-soft); }
.flist { display: grid; gap: .625rem; }
.flist li { list-style: none; display: flex; gap: .625rem; font-size: .875rem; align-items: flex-start; }
.flist svg { width: 16px; height: 16px; color: var(--blue-600); flex: none; margin-top: .2rem; }
.flist ul { margin: 0; padding: 0; }
.push { margin-top: auto; }

/* Comparison table */
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ctable thead th { background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 500; padding: 1rem; text-align: center; }
.ctable thead th:first-child { text-align: left; }
.ctable td { padding: .875rem 1rem; border-top: 1px solid var(--line); font-size: .875rem; text-align: center; color: var(--ink-soft); }
.ctable td:first-child { text-align: left; color: var(--ink); }
.ctable td svg { width: 18px; height: 18px; color: var(--blue-600); margin-inline: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Testimonial marquee ---------- */
.marquee { position: relative; display: flex; gap: 1rem; width: max-content; }
.marquee-mask { position: relative; overflow: hidden; }
.marquee-mask::before, .marquee-mask::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee-mask::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marquee-mask::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.marquee__track { display: flex; gap: 1rem; animation: slide 46s linear infinite; }
.marquee-mask:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee-mask { overflow-x: auto; } }
.quote { width: 22rem; flex: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.quote__mark {  font-size: 2.5rem; line-height: .6; color: var(--blue-600); }
.quote__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote__sign {  font-style: italic; font-size: 1.5rem; color: var(--ink-faint); }

/* ---------- Blog ---------- */
.post { display: flex; flex-direction: column; gap: 1rem; height: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.post h3 { font-size: 1.125rem; line-height: 1.25; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: .75rem; align-items: center;  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

.prose { max-width: 44rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.125rem; }
.prose h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.375rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.125rem; display: grid; gap: .5rem; }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 2px solid var(--blue-600); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0;  font-size: 1.25rem; line-height: 1.4; color: var(--ink); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }
.form-card.on-sky { background: #fff; }
.field { display: grid; gap: .375rem; }
.field > label {  font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem 1rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
   font-size: .9375rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { border-radius: var(--r-md); min-height: 8.5rem; resize: vertical; font-family: var(--body);}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(44,107,255,.14); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .75rem; color: var(--ink-faint); }
.form-status { display: none; padding: .875rem 1rem; border-radius: var(--r-md); font-size: .875rem; }
.form-status.ok { background: var(--blue-100); color: var(--blue-700); }
.form-status[data-show="true"] { display: block; }

.subscribe { display: flex; gap: .5rem; padding: .3125rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); max-width: 22rem; }
.subscribe input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 .875rem; font-size: .875rem; }
.subscribe input:focus { outline: none; }

/* ---------- Contact strips ---------- */
.info-list { display: grid; gap: 1.25rem; }
.info-list .item { display: flex; gap: .875rem; }
.info-list .ic { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 15px; height: 15px; color: var(--blue-600); }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3.5rem; }
.logos span {  font-size: 1.375rem; color: var(--ink-faint); letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.footer { padding-top: 4.5rem; }
.footer__layout { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 3rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__col h4 {  font-size: .9375rem; font-weight: 500; margin-bottom: 1rem; }
.footer__links { display: grid; gap: .5rem; }
.footer__links a { position: relative; font-size: .875rem; color: var(--ink-soft); width: fit-content; }
.footer__links a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: currentColor; transition: width .3s cubic-bezier(.2,.7,.3,1); }
.footer__links a:hover { color: var(--ink); }
.footer__links a:hover::after { width: 100%; }
.footer__brand { display: inline-flex; align-items: center; gap: .5rem; }
.footer__brand .nav__word { font-size: 1.25rem; }
.wordmark { width: 100%; margin-top: 3rem; overflow: hidden; }
.wordmark svg { width: 100%; height: auto; display: block; color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-faint); }
@media (max-width: 991px) { .footer__layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .post { transition: none !important; }
}

/* ---------- Utilities ---------- */
.hide-mobile { }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
[id] { scroll-margin-top: 6rem; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill-note { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; background: var(--surface-2); border-radius: var(--r-pill); font-size: .75rem; color: var(--ink-soft); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Rail (edge-bleeding horizontal post carousel) ---------- */
.rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem max(var(--gutter), calc((100vw - var(--container)) / 2)) 1.25rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .rail .post { width: 17rem !important; } }

/* details/summary */
details summary::-webkit-details-marker { display: none; }
details summary::marker { content: ""; }
details[open] > summary > span:last-child { transform: rotate(180deg); }
details > summary > span:last-child { display: inline-block; transition: transform .25s ease; }

a.card { text-decoration: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- File upload ---------- */
.field input[type="file"] {
  padding: .625rem 1rem; border-radius: var(--r-md); background: #fff;
  font-size: .875rem; color: var(--ink-soft); cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: .875rem; padding: .4rem .875rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--surface-3); }

/* ---------- Legal pages ---------- */
.prose h2[id] { scroll-margin-top: 6rem; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Application modal ---------- */
dialog.modal {
  padding: 0; border: 0; background: transparent;
  width: min(42rem, 92vw); max-height: 88vh; overflow: visible;
  color: var(--ink);
}
dialog.modal::backdrop { background: rgba(14, 14, 16, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in .28s cubic-bezier(.2,.7,.3,1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.modal[open] { animation: none; } }
.modal__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(16,16,20,.28);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.modal__head h2 {  }
.modal__close {
  width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2);
  cursor: pointer; transition: background-color .2s ease;
}
.modal__close:hover { background: var(--surface-3); }
.modal__close svg { width: 15px; height: 15px; }
.modal__card input[readonly] { background: var(--surface-2); color: var(--ink); cursor: default; font-weight: 500; }
@media (max-width: 640px) { .modal__card { padding: 1.25rem; } }

.nav__links {
    gap: 1rem;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__dropdown {
    position: relative;
    display: inline-block;
}

.dropdown__icon {
    transition: transform 0.2s ease;
}

.nav__dropdown:hover .dropdown__icon {
    transform: rotate(180deg);
}


.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff; 
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 50;
}

.nav__dropdown:hover .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__item {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

.dropdown__item:hover {
    background-color: #f3f4f6;
    transition: .2s ease-in-out;
     color: #000;
}
.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.about-images__item {
    overflow: hidden;
}

.about-images__item--tall {
    aspect-ratio: 3 / 4;
}

.about-images__item--short {
    aspect-ratio: 1 / 1;
}

.about-images__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 1rem;
}
.term-poly{
  display: grid;
  grid-template-columns: 1fr 2.7fr;
}
.term-poly > section:first-child {
  position: sticky;
  top: 6rem; 
  align-self: start;
  height: fit-content;
}
.term-poly .flist li svg {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.term-poly .flist li.active svg {
    opacity: 1;
    visibility: visible;
}

.term-poly .flist li.active a {
    font-weight: 600;
    color: var(--blue-600);
}
.sequence-section{
  height: 200vh;
}
.sticky-wrapper{
  position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center;
}
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-dropdown__toggle {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-dropdown__toggle .dropdown__icon {
  transition: transform 0.3s ease;
}

/* Ẩn hoàn toàn menu con khi chưa mở để không bị khoảng trống */
.mobile-dropdown__menu {
  display: none; 
  flex-direction: column;
  padding-left: 16px; /* Thụt lề các mục con */
}

/* CSS khi bật/tắt mở menu */
.mobile-dropdown.is-open .mobile-dropdown__menu {
  display: flex;
}

.mobile-dropdown.is-open .mobile-dropdown__toggle .dropdown__icon {
  transform: rotate(180deg);
}
.fcard-banner-hero{
  position:absolute;left:6%;bottom:-3.75rem;width:min(19rem,86%)
}
.layout-services .split:first-child {
        padding-bottom: 3.5rem;
}
.flist.line{
  padding-left: 1px;
}
.container.sm-term {
    max-width: 50rem;
}
.nav__toggle {
    display: none;
}
@media (max-width: 991px) {
    .nav__toggle {
        display: block;
    }
    .term-poly {
        grid-template-columns: 1fr;
    }
     .term-poly > section:first-child {
        position: static;
        top: auto;
        align-self: auto;
        height: auto;
    }
    .sequence-section {
        height: auto;
        margin-top: 2rem;
    }
    .sticky-wrapper {
        position: static;
        top: auto;
        height: auto;
        display: block;
        align-items: initial;
        justify-content: initial;
    }
    .marquee__track {
        width: max-content;
        animation-duration: 17s;
    }
    .fcard-banner-hero {
        bottom: calc(-1 * var(--banner-offset));
    }

    .element-banner-hero {
        margin-top: var(--banner-offset);
    }
    .section.padding-block-mb {
        padding-block: 0 !important;
    }
    .layout-services .split > div:not(.stack) {
        order: 1;
    }
    .layout-services .split > .stack {
        order: 2;
    }
}