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

/* EN font + layout 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; }
.container { width: min(1140px, 92%); margin-inline: auto; }
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; } }
.sec-title { letter-spacing: -.02em; }
.lead { line-height: 1.8; }

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

/* Shopify button (cloud-specific) */
.shopify-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; min-height: 44px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  color: #fff; background: #96BF48;
  border-radius: 999px; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.shopify-btn:hover { background: #7da33a; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shopify-btn:hover .ext-icon { transform: translateX(4px); }

/* Dark footer override (EN pages) */
footer { background: var(--navy-deep); color: #fff; text-align: center; 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; } }

/* ---- 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-cloud-03.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, .hero-cta .shopify-btn { width: 100%; justify-content: center; }
}

/* ---- 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; } }

/* ---- 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, .ficon polyline { 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; } }

/* ---- capabilities ---- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cap-card { background: #fff; border: 1px solid var(--rail); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.cap-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--green); margin-bottom: 10px; }
.cap-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cap-card p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---- pricing cards ---- */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; align-items: start; }
.plan-card {
  background: #fff; border: 1px solid var(--rail);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan-card.recommended { border: 2px solid var(--navy); transform: translateY(-8px); box-shadow: var(--shadow-md); }
.plan-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--navy); color: #fff;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.trial-badge {
  display: inline-block;
  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; margin-bottom: 18px;
}
.plan-name { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plan-price { font-family: var(--font-mono); font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-usage { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-divider { border: none; border-top: 1px solid var(--rail); margin: 20px 0; }
.plan-tagline { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 14px; }
.plan-desc { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }
.plan-card .shopify-btn { margin-top: auto; }
.plan-highlights { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.plan-highlights li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.plan-highlights li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
@media (max-width: 900px) { .pricing-cards { grid-template-columns: 1fr; } .plan-card.recommended { transform: none; } }

/* ---- comparison table ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 44px; border-radius: var(--radius); border: 1px solid var(--rail); box-shadow: var(--shadow-sm); }
.feat-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.feat-table thead th {
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-align: center; background: var(--tint); color: var(--navy);
  border-bottom: 2px solid var(--rail);
}
.feat-table thead th:first-child { text-align: left; width: 34%; }
.feat-table thead th.std { background: var(--navy); color: #fff; border-left: 2px solid rgba(54,63,117,.3); border-right: 2px solid rgba(54,63,117,.3); }
.feat-table thead th.ref { background: #f0eff8; color: var(--muted); }
.feat-table tbody td { padding: 11px 16px; font-size: 14px; text-align: center; border-top: 1px solid var(--rail); color: var(--text); }
.feat-table tbody td:first-child { text-align: left; }
.feat-table tbody td.std { background: rgba(54,63,117,.04); border-left: 2px solid rgba(54,63,117,.12); border-right: 2px solid rgba(54,63,117,.12); }
.feat-table tbody tr:hover td { background: var(--tint); }
.feat-table tbody tr:hover td.std { background: rgba(54,63,117,.08); }
.feat-table tbody tr.group-row td {
  background: var(--navy); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-align: left; padding: 10px 16px;
}
.feat-table tbody tr.group-row:hover td { background: var(--navy); }
.feat-table tfoot td { padding: 14px 16px; font-size: 13px; color: var(--muted); font-style: italic; border-top: 2px solid var(--rail); text-align: left; }
@media (max-width: 600px) { .feat-table thead th, .feat-table tbody td { padding: 10px 10px; font-size: 13px; } }

/* ---- grow section ---- */
.grow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; align-items: start; }
.grow-steps { display: flex; flex-direction: column; }
.grow-step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rail); }
.grow-step:last-child { border-bottom: none; }
.grow-num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--rail); line-height: 1; flex-shrink: 0; width: 38px; padding-top: 2px; }
.grow-step h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.grow-step p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.grow-cta-box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius); padding: 36px 32px; color: #fff; }
.grow-cta-box h3 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 900; margin-bottom: 14px; }
.grow-cta-box p { font-size: 15px; color: #cdd3f0; line-height: 1.75; margin-bottom: 28px; }
@media (max-width: 760px) { .grow-grid { grid-template-columns: 1fr; } }

/* ---- 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-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, .final-cta-btns .shopify-btn { justify-content: center; } }

/* ---- cross-link ---- */
.cross-link-section { padding: 60px 0; 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); }

/* ---- reveal motion (JS-gated, EN pattern) ---- */
@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; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .js [data-reveal] { opacity: 1; }
  .js [data-reveal].in-view { animation: none; }
}
