/* Csharpp JSC — Csharpp AERP product page. Tokens and components come from styles.css;
   language hiding (.legal-vi / .legal-en) comes from legal.css. */

/* Hero */
.aerp-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(3rem, 1.6rem + 5.8vw, 7.5rem);
  padding-bottom: clamp(3rem, 2.2rem + 3.4vw, 6rem);
}
.aerp-title {
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 1.6rem + 7.8vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.aerp-sub {
  max-width: 52rem;
  margin-top: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.aerp-lead { max-width: 40rem; margin-top: 24px; font-size: var(--fs-lead); line-height: 1.65; }
.aerp-actions { margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.75rem); }
.aerp-note { max-width: 40rem; margin-top: 24px; color: var(--muted); font-size: 0.875rem; }
.aerp-hero .hero-art { top: -40px; bottom: auto; right: -110px; width: 240px; height: 240px; }
@media (max-width: 599px) {
  .aerp-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 600px) {
  .aerp-hero .hero-art { top: 0; right: -110px; width: 380px; height: 380px; }
}
@media (min-width: 1200px) {
  .aerp-hero .hero-art { top: 48px; right: 24px; width: 480px; height: 480px; }
}

/* Traditional ERP vs AERP */
.cmp { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.cmp-row { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.cmp-row:first-child { border-top: 0; }
.cmp-head { display: none; }
.cmp-old, .cmp-new { display: flex; gap: 12px; min-width: 0; }
.cmp-old { color: var(--muted); }
.cmp-new { font-weight: 500; }
.cmp-mark { flex: none; width: 1.25em; font-weight: 700; text-align: center; }
.cmp-row p { line-height: 1.55; }
@media (min-width: 900px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
  .cmp-head { display: grid; }
  .cmp-old, .cmp-new { padding: 18px 40px 18px 0; font-size: 1.0625rem; }
  .cmp-new { padding: 18px 0 18px 40px; border-left: 1px solid var(--ink); }
  .cmp-head .cmp-old, .cmp-head .cmp-new {
    align-items: center;
    gap: 10px;
    padding-top: 28px;
    padding-bottom: 20px;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .cmp-mark { display: none; }
}

/* How it works (inverted) */
.aerp-how {
  margin-top: var(--space-section);
  padding-block: clamp(3.5rem, 2.4rem + 4.6vw, 7rem);
}
.flow { display: grid; border-top: 1px solid var(--ink); }
.flow-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.flow-step .step-num { grid-row: span 2; }
.flow-step:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow-step { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: 28px 20px; border-bottom: 0; border-left: 1px solid var(--hairline); }
  .flow-step:first-child { padding-left: 0; border-left: 0; }
  .flow-step .step-num { grid-row: auto; margin-bottom: 16px; }
  .flow-step .step-title { margin-bottom: 8px; }
}

/* Capability examples */
.example { margin-top: 4px; padding-left: 16px; border-left: 2px solid var(--ink); }
.example-label { margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; }
.example p:not(.example-label) { line-height: 1.6; }

/* Trust */
.aerp-trust { display: grid; gap: 32px 80px; }
.aerp-trust-lead { margin-top: 20px; }
.trust-list { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.trust-list li { padding: 18px 0; border-top: 1px solid var(--hairline); }
.trust-list li:first-child { border-top: 0; }
.trust-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
.trust-list p { margin-top: 4px; color: var(--muted); }
@media (min-width: 900px) {
  .aerp-trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* Built for Vietnam */
.vn-grid { display: grid; border-top: 1px solid var(--ink); }
.vn-item { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.vn-item p { margin-top: 10px; color: var(--muted); }
@media (min-width: 900px) {
  .vn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
  .vn-item { padding: 28px 32px; border-bottom: 0; border-left: 1px solid var(--hairline); }
  .vn-item:first-child { padding-left: 0; border-left: 0; }
  .vn-item:last-child { padding-right: 0; }
}

/* FAQ */
.aerp-faq-wrap { display: grid; gap: 28px 80px; }
.faq { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.faq-item + .faq-item { border-top: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.375rem; font-weight: 500; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.faq-item p { max-width: 44rem; padding-bottom: 20px; color: var(--muted); line-height: 1.7; }
@media (min-width: 900px) {
  .aerp-faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}

/* Closing CTA (inverted) */
.aerp-cta {
  margin-top: var(--space-section);
  padding-block: clamp(3.5rem, 2.4rem + 4.6vw, 6rem);
}
.aerp-cta-inner { display: grid; gap: 28px 64px; align-items: center; }
.aerp-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.aerp-cta-text { max-width: 34rem; margin-top: 20px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.65; }
@media (max-width: 599px) {
  .aerp-cta .btn { width: 100%; }
}
@media (min-width: 900px) {
  .aerp-cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
}
