/* ============================================================
   DCX EN Fulfillment page — page-specific styles
   Common: tokens, reset, header, footer base → css/common.css
   ============================================================ */

/* EN overrides */
:root { --font-body: "Inter", sans-serif; }
body { line-height: 1.7; }
html { scroll-padding-top: 120px; }

/* EN additional reset (not in common.css) */
*, *::before, *::after { margin: 0; padding: 0; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.25; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* Base section padding for EN page (uses <section> not <section class="stage">) */
section { padding: 80px 0; position: relative; }
section.tint { background: var(--tint); }

/* ---- flow rail ---- */
.flow {
  position: relative;
  --rail-x: max(12px, calc((100% - 1140px) / 2 - 64px));
}
.rail, .rail-progress {
  position: absolute; top: 0; bottom: 0;
  left: var(--rail-x); width: 4px; border-radius: 2px; z-index: 1;
}
.rail { background: var(--rail); }
.rail-progress {
  bottom: auto; height: 0;
  background: linear-gradient(to bottom, var(--navy), var(--green));
}
.rail-tip {
  position: absolute;
  left: calc(var(--rail-x) - 4px); top: 0;
  width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(142,195,0,.45);
  animation: tipPulse 2s ease-out infinite; z-index: 2;
}
@keyframes tipPulse {
  0%   { box-shadow: 0 0 0 0 rgba(142,195,0,.45); }
  70%  { box-shadow: 0 0 0 12px rgba(142,195,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(142,195,0,0); }
}
.node {
  position: absolute;
  top: clamp(64px, 10vw, 120px);
  left: calc(var(--rail-x) - 7px);
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rail);
  transition: border-color .4s, box-shadow .4s; z-index: 2;
}
section.in-view .node { border-color: var(--green); box-shadow: 0 0 0 6px rgba(142,195,0,.18); }
@media (max-width: 860px) { .rail, .rail-progress, .rail-tip, .node { display: none; } }
@media (prefers-reduced-motion: reduce) { .rail-tip { animation: none; } }

/* EN type overrides */
.sec-title { font-size: clamp(22px, 3.4vw, 36px); font-weight: 900; color: var(--navy); letter-spacing: -.02em; margin-bottom: 18px; }
.lead { font-size: clamp(15px, 1.35vw, 17px); line-height: 1.8; max-width: 44em; }

/* EN button variants */
.btn.ghost:hover { transform: none; }
.btn.outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* EN dark footer (overrides common.css white footer) */
footer { background: var(--navy-deep); color: #fff; padding: 36px 0 44px; border-top: 3px solid var(--ink); box-shadow: 0 -3px 0 var(--green); }
footer a { color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 1px; }
footer img { width: 190px; margin: 20px auto 14px; filter: brightness(0) invert(1); }
footer small { color: rgba(255,255,255,.5); display: block; margin-top: 6px; }
@media (max-width: 600px) { footer { padding: 28px 0 36px; } footer img { width: 150px; } }

/* ---- sub-nav ---- */
.subnav { position: sticky; top: 63px; z-index: 90; background: #fff; border-bottom: 1px solid var(--rail); box-shadow: 0 2px 8px rgba(20,24,50,.06); }
.subnav-in { display: flex; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav-in a { display: inline-flex; align-items: center; padding: 14px 18px; min-height: 48px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav-in a:hover { color: var(--navy); }
.subnav-in a.active { color: var(--navy); border-bottom-color: var(--green); }
@media (max-width: 480px) { .subnav-in a { padding: 12px 12px; font-size: 12px; } }

/* ---- hero ---- */
.hero {
  position: relative; padding: 0; min-height: min(58vh, 500px);
  display: flex; align-items: flex-end; color: #fff;
  background-image:
    linear-gradient(to bottom, rgba(13,16,44,.18) 0%, rgba(13,16,44,.72) 55%, rgba(13,16,44,.94) 100%),
    url("../img/DCX-Banner-02.webp");
  background-size: cover; background-position: center;
}
.hero-in { padding: 60px 0 56px; }
.badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.svc-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: var(--green); color: #162100; padding: 4px 12px; border-radius: 999px; }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.65); list-style: none; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: #fff; }
.hero .eyebrow { color: rgba(200,208,240,.85); }
.hero h1 { font-size: clamp(26px, 4.5vw, 50px); font-weight: 900; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 20px; max-width: 18em; }
.hero-lead { font-size: clamp(15px, 1.35vw, 17px); color: #dde0f2; line-height: 1.8; max-width: 42em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 600px) {
  .hero-in { padding: 40px 0 44px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---- audience grid ---- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.audience-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--rail); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.audience-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 7px; }
.audience-item p { font-size: 15px; line-height: 1.65; margin: 0; }
@media (max-width: 680px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---- feature cards ---- */
.feat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.feat-card { background: #fff; border: 1px solid rgba(54,63,117,.10); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-card .ficon { width: 52px; height: 52px; margin-bottom: 16px; }
.ficon path, .ficon rect, .ficon circle { vector-effect: non-scaling-stroke; }
.feat-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.feat-card p { font-size: 14px; line-height: 1.75; color: var(--text); margin: 0; flex: 1; }
.feat-card.alt { background: #EEEEF8; border-color: var(--accent); border-style: dashed; }
.feat-card.alt h3 { color: var(--accent); }
@media (max-width: 900px) { .feat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .feat-cards { grid-template-columns: 1fr; } }

/* ---- split table ---- */
.split-table-wrap { margin-top: 44px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--rail); }
.split-table { width: 100%; border-collapse: collapse; }
.split-table thead th { padding: 16px 28px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.split-table thead th:first-child { background: var(--navy); color: #fff; text-align: left; width: 50%; }
.split-table thead th:last-child { background: var(--tint); color: var(--navy); text-align: left; width: 50%; border-left: 1px solid var(--rail); }
.split-table tbody tr { border-top: 1px solid var(--rail); }
.split-table tbody td { padding: 14px 28px; font-size: 15px; vertical-align: middle; }
.split-table tbody td:first-child { background: rgba(43,43,104,.04); font-weight: 600; color: var(--navy-deep); }
.split-table tbody td:last-child { border-left: 1px solid var(--rail); }
.dot { display: inline-flex; align-items: center; gap: 10px; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
@media (max-width: 600px) { .split-table thead th, .split-table tbody td { padding: 12px 16px; font-size: 14px; } }

/* ---- menu chips ---- */
.menu-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; margin-top: 32px; }
.menu-label:first-child { margin-top: 0; }
.menu-label::before { content: ""; width: 20px; height: 2px; background: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip.std, .chip.opt { background: transparent; border: 2px solid var(--navy); color: var(--navy); }

/* ---- insights box ---- */
.insights-box { margin-top: 48px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius); padding: 44px 48px; color: #fff; position: relative; overflow: hidden; }
.insights-box::before { content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(142,195,0,.08); pointer-events: none; }
.paid-badge { display: inline-block; margin-bottom: 18px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: var(--green); color: #162100; padding: 4px 12px; border-radius: 999px; }
.insights-box h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; margin-bottom: 12px; }
.insights-box .desc { color: #cdd3f0; margin-bottom: 28px; max-width: 36em; }
.insights-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; padding: 0; }
.insights-list li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 16px; font-size: 14px; color: #e8edff; }
@media (max-width: 600px) { .insights-box { padding: 30px 24px; } }

/* ---- flow steps ---- */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; position: relative; }
.flow-steps::before { content: ""; position: absolute; top: 27px; left: calc(12.5% + 4px); right: calc(12.5% + 4px); height: 2px; background: var(--rail); z-index: 0; }
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--rail); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 20px; transition: border-color .4s, box-shadow .4s; }
.flow-step.in-view .step-num { border-color: var(--green); box-shadow: 0 0 0 4px rgba(142,195,0,.18); }
.flow-step h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.flow-step p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.flow-note { margin-top: 32px; text-align: center; font-size: 13px; color: var(--muted); font-style: italic; }
@media (max-width: 860px) { .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; } .flow-steps::before { display: none; } }
@media (max-width: 500px) { .flow-steps { grid-template-columns: 1fr; } }

/* ---- countries ---- */
.countries-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.country-tag { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--rail); font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.countries-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.countries-note a { color: var(--navy); border-bottom: 1px solid var(--rail); }

/* ---- NX stats & points ---- */
.nx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 40px; }
.stat { background: #fff; border: 1px solid var(--rail); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--font-mono); font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat-num sup { font-size: .55em; color: var(--green); vertical-align: super; }
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.nx-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nx-point { padding: 24px; background: #fff; border: 1px solid var(--rail); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.nx-point .pt-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--green); margin-bottom: 10px; }
.nx-point h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.nx-point p { font-size: 14px; line-height: 1.75; margin: 0; }
@media (max-width: 900px) { .nx-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .nx-stats { grid-template-columns: 1fr; } .nx-points { grid-template-columns: 1fr; } }

/* ---- functions accordion ---- */
.func-list { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.func-item { border: 1px solid var(--rail); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.func-item summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; list-style: none; user-select: none; }
.func-item summary::-webkit-details-marker { display: none; }
.func-summary-text { display: flex; flex-direction: column; gap: 3px; }
.func-summary-text .ftitle { font-weight: 700; font-size: 16px; color: var(--navy); }
.func-summary-text .fdesc { font-size: 13px; color: var(--muted); font-weight: 400; }
.func-chevron { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.func-chevron::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); display: block; }
.func-item[open] summary .func-chevron { transform: rotate(180deg); }
.func-item[open] > summary { border-bottom: 1px solid var(--rail); }
.func-body { padding: 24px; }
.func-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.func-entry h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.func-entry p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 600px) { .func-grid { grid-template-columns: 1fr; } .func-item summary { padding: 16px 18px; } }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.faq-item { border: 1px solid var(--rail); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q { display: flex; align-items: center; padding: 18px 24px; cursor: pointer; gap: 14px; user-select: none; appearance: none; -webkit-appearance: none; background: none; border: none; font: inherit; color: inherit; width: 100%; text-align: left; }
.q-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0; letter-spacing: .1em; }
.q-text { flex: 1; font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.4; }
.faq-chevron { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.faq-chevron::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 16px 24px 20px 66px; font-size: 15px; line-height: 1.8; border-top: 1px solid var(--rail); }
.faq-item.open .faq-a { display: block; }
@media (max-width: 600px) { .faq-a { padding-left: 24px; } .faq-q { padding: 16px 18px; } }

/* ---- final CTA ---- */
.final-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); padding: 80px 0; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(20px, 3vw, 36px); margin-bottom: 16px; font-weight: 900; }
.final-cta .lead { color: #cdd3f0; margin-inline: auto; margin-bottom: 36px; }
.final-cta-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
@media (max-width: 600px) { .final-cta-btns { flex-direction: column; align-items: stretch; } .final-cta-btns .btn { justify-content: center; } }

/* ---- cross-link ---- */
.cross-link-section { text-align: center; }
.cross-link-card { display: inline-flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--rail); border-radius: var(--radius); padding: 28px 36px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; text-align: left; }
.cross-link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cl-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cross-link-card h3 { font-size: 18px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.cross-link-card p { font-size: 14px; color: var(--muted); margin: 0; }
.arr-circle { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: background .2s; }
.cross-link-card:hover .arr-circle { background: var(--green); color: var(--navy-deep); }

/* ---- scroll reveal ---- */
@keyframes revealFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; }
.js [data-reveal].in-view { animation: revealFade .65s ease forwards; }

/* ---- motion off ---- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .js [data-reveal] { animation: none; opacity: 1; transform: none; }
  .flow-step, .feat-card, .nx-point, .stat, .cross-link-card { transition: none; }
}
