/* Bangni — Apple-inspired, mobile-first */
@import url("./tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* avoid body overflow-x clipping position:fixed tabbar */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 0.5rem);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

body.is-loading .reveal-hero {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Motion primitives —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 120ms);
  will-change: opacity, transform;
}

body.is-ready .reveal-hero {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero[data-delay="0"] { --d: 0; }
.reveal-hero[data-delay="1"] { --d: 1; }
.reveal-hero[data-delay="2"] { --d: 2; }
.reveal-hero[data-delay="3"] { --d: 3; }
.reveal-hero[data-delay="4"] { --d: 4; }
.reveal-hero[data-delay="5"] { --d: 5; }

.reveal[data-stagger="0"] { --stagger: 0; }
.reveal[data-stagger="1"] { --stagger: 1; }
.reveal[data-stagger="2"] { --stagger: 2; }
.reveal[data-stagger="3"] { --stagger: 3; }
.reveal[data-stagger="4"] { --stagger: 4; }

.pressable {
  transition: transform 0.25s var(--ease-spring), filter 0.2s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pressable:active,
.pressable.is-pressed {
  transform: scale(0.96);
}

.result-enter {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: result-in 0.7s var(--ease-out) forwards;
}

.result-enter:nth-child(1) { animation-delay: 0.04s; }
.result-enter:nth-child(2) { animation-delay: 0.1s; }
.result-enter:nth-child(3) { animation-delay: 0.16s; }
.result-enter:nth-child(4) { animation-delay: 0.22s; }
.result-enter:nth-child(5) { animation-delay: 0.28s; }
.result-enter:nth-child(6) { animation-delay: 0.34s; }

@keyframes result-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -4%) scale(1.06); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 3%) scale(1.08); }
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fab-in {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.site-header.is-over-dark {
  background: rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header.is-over-dark .brand,
.site-header.is-over-dark .header-nav a:not(.nav-pill) {
  color: #f5f5f7;
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink-tertiary);
  letter-spacing: -0.01em;
}

.site-header.is-over-dark .brand-sub {
  color: rgba(245, 245, 247, 0.55);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.1rem;
}

.header-nav a {
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.site-header.is-over-dark .header-nav a:hover,
.site-header.is-over-dark .header-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-pill {
  margin-left: 0.35rem !important;
  background: var(--wa) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.75rem !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
}

.nav-pill:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

.nav-pill--mobile {
  margin-left: 0 !important;
}

@media (min-width: 768px) {
  .header-nav--desktop {
    display: flex;
  }

  .nav-pill--mobile {
    display: none !important;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  background: var(--bg-dark);
  color: #f5f5f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem 0 calc(4.5rem + var(--safe-b));
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s var(--ease-soft);
}

body.is-ready .hero-photo {
  transform: scale(1);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.7);
}

.hero-brand {
  margin: 0;
  font-size: clamp(3.75rem, 16vw, 6.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-tagline {
  margin: 1rem 0 1.15rem;
  font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 247, 0.82);
  max-width: 22em;
}

.hero-pills {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(245, 245, 247, 0.92);
}

.track-glass {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out);
}

.track-glass.is-focused {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.4);
}

.track-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  min-height: 52px;
}

.track-icon {
  width: 18px;
  height: 18px;
  margin-left: 1rem;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.track-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.95rem 0.7rem;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.track-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

.track-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.track-clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 0.65rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-spring);
}

.track-clear:active {
  transform: scale(0.9);
}

.track-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: rgba(245, 245, 247, 0.4);
  letter-spacing: -0.01em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(1.25rem + var(--safe-b));
  z-index: 2;
  width: 28px;
  height: 42px;
  margin-left: -14px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  text-decoration: none !important;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: cue-bounce 1.8s var(--ease-soft) infinite;
}

.scroll-cue:hover {
  opacity: 1;
}

body.has-result .scroll-cue {
  display: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 0.95rem 1.35rem;
  font-size: 1.05rem;
  min-height: 52px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.95rem 1.35rem;
  font-size: 1.05rem;
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.hero--home {
  min-height: min(88svh, 720px);
  min-height: min(88dvh, 720px);
  justify-content: flex-end;
}

.hero--page {
  min-height: auto;
  padding-top: 2.75rem;
  padding-bottom: calc(2.5rem + var(--safe-b));
  justify-content: flex-end;
}

.hero-brand--page {
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  letter-spacing: -0.04em;
}

.page-hero {
  padding: calc(var(--header-h) + 2.25rem) 0 1.5rem;
  background: var(--bg);
}

.page-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.page-hero .section-lead {
  margin-bottom: 0;
}

.home-intro {
  background: var(--bg-elevated);
  padding-top: 3.25rem;
  padding-bottom: 2.5rem;
}

.home-links {
  background: var(--bg);
  padding-top: 2.5rem;
}

.link-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.link-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #e8e8ed;
}

.link-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.link-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.link-card p {
  margin: 0 0 0.65rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.link-card-go {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--blue);
}

.link-card:active {
  transform: scale(0.985);
}

.home-cta {
  background: var(--bg-elevated);
  text-align: left;
}

.home-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact--compact {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: rgba(245, 245, 247, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #f5f5f7;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.btn-lg {
  width: 100%;
  padding: 1.05rem 1.4rem;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 560;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  letter-spacing: -0.02em;
}

.btn-chip:hover {
  background: rgba(0, 0, 0, 0.08);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* —— Result —— */
.result-section {
  background: var(--bg);
  padding: 1.5rem 0 calc(2.5rem + var(--safe-b));
}

.result-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.status-banner {
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.3rem;
  color: #fff;
  margin-bottom: 0.85rem;
  background: #1d1d1f;
  box-shadow: var(--shadow-md);
}

.status-banner--inbound { background: linear-gradient(145deg, #1d1d1f, #3a3a3c); }
.status-banner--loaded { background: linear-gradient(145deg, #1c2b4a, #2f5f98); }
.status-banner--shipping { background: linear-gradient(145deg, #0a3d62, #0071e3); }
.status-banner--clearing { background: linear-gradient(145deg, #4a320f, #ff9f0a); }
.status-banner--pickup { background: linear-gradient(145deg, #0e3b22, #30d158); }
.status-banner--done { background: linear-gradient(145deg, #2c2c2e, #636366); }

.status-banner-inner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.status-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status-desc {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  opacity: 0.88;
  letter-spacing: -0.01em;
}

.status-progress {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

.result-key-row,
.panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.result-key-label,
.panel-title,
.cargo-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-tertiary);
}

.result-key-value {
  margin-top: 0.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
}

.panel-title {
  margin: 0 0 0.9rem;
}

.cargo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.cargo-cell {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.85rem;
  transition: transform 0.35s var(--ease-out), background 0.25s;
}

.cargo-cell:active {
  transform: scale(0.98);
}

.cargo-value {
  margin-top: 0.2rem;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.cargo-cell.empty .cargo-value {
  color: var(--ink-tertiary);
  font-weight: 500;
}

.container-item {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.container-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.container-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.container-label {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-top: 0.15rem;
  font-weight: 400;
}

.container-count {
  font-weight: 650;
  color: var(--blue);
  white-space: nowrap;
}

.container-meta {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.pickup-box {
  background: #e8f8ee;
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
}

.pickup-box p {
  margin: 0.3rem 0 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.timeline-track {
  padding-left: 0.1rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.8rem;
  padding-bottom: 1.2rem;
  position: relative;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tl-item:last-child::before {
  display: none;
}

.tl-item.done::before {
  background: var(--blue);
}

.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-tertiary);
  z-index: 1;
  transition: transform 0.4s var(--ease-spring), background 0.3s, border-color 0.3s, color 0.3s;
}

.tl-item.done .tl-dot {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.tl-item.active .tl-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 6px var(--blue-soft);
}

.tl-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tl-value {
  font-weight: 650;
  margin-top: 0.1rem;
  letter-spacing: -0.02em;
}

.tl-item:not(.done) .tl-value {
  color: var(--ink-tertiary);
  font-weight: 500;
}

.empty-state,
.error-state {
  text-align: center;
  padding: 2.5rem 1.4rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.empty-state h3,
.error-state h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.empty-state p,
.error-state p {
  margin: 0 0 1.35rem;
  color: var(--ink-secondary);
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 2.5rem;
  color: var(--ink-secondary);
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 32rem;
}

.who {
  background: var(--bg-elevated);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.stat {
  padding: 1.15rem 1.2rem;
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.stat span {
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.corridor {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.corridor .section-title {
  color: #f5f5f7;
}

.corridor .section-eyebrow {
  color: #64d2ff;
}

.corridor .section-lead {
  color: rgba(245, 245, 247, 0.62);
}

.media-frame {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-lg);
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cap-arrow {
  color: #64d2ff;
}

.media-frame--about {
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.journey {
  background: var(--bg);
}

.journey-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journey-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.journey-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8ed;
}

.journey-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.journey-card:active .journey-photo img,
.journey-card:hover .journey-photo img {
  transform: scale(1.04);
}

.journey-meta {
  padding: 1.15rem 1.2rem 1.3rem;
}

.journey-step {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.journey-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.journey-meta p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.services {
  background: var(--bg-elevated);
}

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.service-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8ed;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-photo img {
  transform: scale(1.045);
}

.service-copy {
  padding: 1.15rem 1.2rem 1.35rem;
}

.service-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.service-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.service-copy p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.rmb-pay {
  background: var(--bg);
}

.page-hero--compact {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 0.75rem;
}

.page-hero--compact .page-hero-title {
  font-size: clamp(1.65rem, 6.5vw, 2.2rem);
}

.page-hero--compact .section-lead {
  margin-bottom: 0;
  font-size: 1rem;
}

.rmb-pay--compact {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.media-frame--compact {
  margin: 0 0 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.media-frame--compact img {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fx-chips {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: stretch;
  margin: 0 0 1.15rem;
}

.fx-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.75rem;
  text-align: center;
}

.fx-chip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.fx-chip span {
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.fx-chip--mid {
  display: grid;
  place-items: center;
  min-width: 4.5rem;
  padding: 0.55rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: transparent;
}

.fx-steps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fx-steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.fx-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}

.fx-steps h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.fx-steps p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.fx-cta {
  padding: 1.35rem 1.25rem 1.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.fx-cta-note {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.about {
  background: var(--bg-elevated);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.tl-year {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.timeline h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.values {
  background: var(--bg-dark);
  color: #f5f5f7;
}

.values .section-title {
  color: #f5f5f7;
}

.values .section-eyebrow {
  color: #64d2ff;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.4rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.value-card:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.08);
}

.value-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.value-card p {
  margin: 0;
  color: rgba(245, 245, 247, 0.58);
  font-size: 0.98rem;
}

.contact {
  background: var(--bg);
}

.contact-details {
  margin: 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-details div {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.contact-details div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-tertiary);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.contact-details a {
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: var(--bg-dark);
  color: rgba(245, 245, 247, 0.45);
  padding: 2rem 1.25rem calc(6rem + var(--safe-b));
  text-align: center;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-inner img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
}

.footer-sub {
  margin-top: 0.35rem !important;
  color: var(--ink-tertiary);
  font-size: 0.72rem !important;
  max-width: 28rem;
}

/* —— Mobile tab bar —— */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  min-height: var(--tabbar-h);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 0 0.15rem var(--safe-b);
  margin: 0;
  background: rgba(251, 251, 253, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 44px;
  color: var(--ink-tertiary);
  text-decoration: none !important;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

.tabbar-item svg {
  display: block;
}

.tabbar-item.is-active {
  color: var(--blue);
}

.tabbar-item:hover {
  color: var(--ink);
  text-decoration: none !important;
}

.tabbar-item.is-active:hover {
  color: var(--blue);
}

@media (min-width: 768px) {
  .tabbar {
    display: none;
  }
}

/* —— Home trust —— */
.trust-milestones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.trust-milestones > div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-milestones strong {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  min-width: 3.2rem;
}

.trust-milestones span {
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.trust-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.trust-values li {
  padding: 0.75rem 0.9rem;
  background: rgba(0, 113, 227, 0.06);
  color: var(--ink);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
}

.fx-disclaimer {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 159, 10, 0.1);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
}

.recent-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

/* —— FAB (desktop only; mobile uses header WhatsApp + tabbar) —— */
.fab-whatsapp {
  display: none;
}

/* —— Result mode —— */
body.has-result .hero--page {
  padding-bottom: 1.75rem;
}

body.has-result .hero-tagline,
body.has-result .track-hint,
body.has-result .contact--compact {
  display: none;
}

/* —— Desktop —— */
@media (min-width: 768px) {
  .header-inner,
  .hero-content,
  .result-inner,
  .section-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 10.5rem;
  }

  .link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .track-glass {
    flex-direction: row;
    align-items: stretch;
    padding: 0.45rem;
    border-radius: var(--radius-pill);
  }

  .track-field {
    flex: 1;
    border-radius: var(--radius-pill);
    background: transparent;
  }

  .track-submit {
    width: auto;
    min-width: 8.5rem;
    border-radius: var(--radius-pill);
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .cargo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn-lg {
    width: auto;
    min-width: 17rem;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .journey-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .fx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .fx-steps li {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .fx-cta .btn-lg {
    width: auto;
  }

  .media-frame--compact img {
    aspect-ratio: 2.4 / 1;
  }

  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }

  .trust-milestones {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-values {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-hero,
  body.is-loading .reveal-hero {
    opacity: 1 !important;
    transform: none !important;
  }
}
