/* ============================================================
   OpenClaw — Sale page CSS (style benlux, long-form VN)
   Agent A10 · bám MASTER-BRIEF mục 6 (tokens) + mục 7 (class oc-*)
   Import font: Be Vietnam Pro (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Màu chính (brief mục 6) */
  --oc-red: #E8482B;          /* đỏ-cam CTA */
  --oc-red-hover: #C63A20;    /* cam đậm hover */
  --oc-yellow: #FFD34E;       /* vàng highlight */
  --oc-yellow-soft: #FFF6DC;  /* nền vàng nhạt */
  --oc-cream: #FFF8F0;        /* kem section */
  --oc-green: #16A34A;        /* xanh tin cậy */
  --oc-ink: #1A1A1A;          /* chữ đậm */
  --oc-gray: #555555;         /* xám phụ */

  /* Nền phụ */
  --oc-white: #FFFFFF;
  --oc-border: #EADFD2;       /* viền nhẹ tông kem */
  --oc-shadow: 0 6px 20px rgba(26, 26, 26, 0.08);
  --oc-shadow-lg: 0 14px 34px rgba(26, 26, 26, 0.14);
  --oc-shadow-btn: 0 8px 18px rgba(232, 72, 43, 0.35);

  /* Bo góc / khoảng cách */
  --oc-radius: 14px;
  --oc-radius-btn: 12px;
  --oc-maxw: 720px;

  /* Chữ */
  --oc-font: 'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ---------- 2. RESET / BASE (mobile-first) ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--oc-font);
  font-size: 17px;            /* brief: chữ ≥17px */
  line-height: 1.65;
  color: var(--oc-ink);
  background: var(--oc-white);
  padding-bottom: 84px;       /* chừa chỗ cho sticky CTA mobile */
}

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

a { color: var(--oc-red); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1rem; }
strong { font-weight: 700; color: var(--oc-ink); }

/* ---------- 3. LAYOUT: oc-section / oc-container ---------- */
.oc-section {
  padding: 56px 0;
  background: var(--oc-white);
}

/* Xen kẽ nền trắng → kem → vàng nhạt */
.oc-section:nth-of-type(even) { background: var(--oc-cream); }
.oc-section:nth-of-type(3n)   { background: var(--oc-yellow-soft); }

/* Hero luôn nổi bật (nền kem ấm) */
.oc-hero { background: var(--oc-cream); padding-top: 40px; }

/* Section chốt / order nhấn nền vàng nhạt */
.oc-close, .oc-order { background: var(--oc-yellow-soft); }

.oc-container {
  max-width: var(--oc-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.oc-center { text-align: center; }

/* Grid 2 cột → 1 cột mobile (mobile-first: mặc định 1 cột) */
.oc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}

/* ---------- 4. CHỮ: eyebrow / h2 / h3 / lead ---------- */
.oc-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oc-red);
  background: var(--oc-yellow-soft);
  border: 1px solid var(--oc-yellow);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.oc-h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--oc-ink);
  margin: 0 0 18px;
  position: relative;
}
/* Gạch chân vàng dưới tiêu đề khối */
.oc-h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 12px;
  background: var(--oc-yellow);
  border-radius: 999px;
}
.oc-center .oc-h2::after { margin-left: auto; margin-right: auto; }

.oc-h3 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--oc-ink);
  margin: 0 0 10px;
}

.oc-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--oc-gray);
  margin: 0 0 22px;
}

/* ---------- 5. NÚT CTA: oc-btn + biến thể ---------- */
.oc-btn {
  display: inline-block;
  background: var(--oc-red);
  color: #fff;
  font-family: var(--oc-font);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  padding: 16px 28px;
  min-height: 54px;                 /* brief: nút cao ≥54px */
  border: none;
  border-radius: var(--oc-radius-btn);
  box-shadow: var(--oc-shadow-btn);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.oc-btn:hover {
  background: var(--oc-red-hover);
  transform: translateY(-3px);      /* hover nhấc lên */
  box-shadow: 0 12px 24px rgba(232, 72, 43, 0.42);
  text-decoration: none;
  color: #fff;
}
.oc-btn:active { transform: translateY(-1px); }

/* Biến thể to */
.oc-btn--lg {
  font-size: 20px;
  padding: 20px 36px;
  min-height: 62px;
  width: 100%;
  max-width: 520px;
}

/* Biến thể pulse */
.oc-btn--pulse { animation: oc-pulse 1.8s infinite; }
@keyframes oc-pulse {
  0%   { box-shadow: 0 8px 18px rgba(232, 72, 43, 0.35), 0 0 0 0 rgba(232, 72, 43, 0.55); }
  70%  { box-shadow: 0 8px 18px rgba(232, 72, 43, 0.35), 0 0 0 16px rgba(232, 72, 43, 0); }
  100% { box-shadow: 0 8px 18px rgba(232, 72, 43, 0.35), 0 0 0 0 rgba(232, 72, 43, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .oc-btn--pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 6. HỘP: card / highlight / note ---------- */
.oc-card {
  background: var(--oc-white);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  padding: 24px;
  margin: 20px 0;
}

.oc-highlight {
  background: var(--oc-yellow-soft);
  border-left: 6px solid var(--oc-yellow);
  border-radius: var(--oc-radius);
  padding: 22px 24px;
  margin: 22px 0;
}

.oc-note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--oc-gray);
  margin: 10px 0;
}

/* ---------- 7. DANH SÁCH TICK / GẠCH ---------- */
.oc-check, .oc-cross {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.oc-check li, .oc-cross li {
  position: relative;
  padding: 6px 0 6px 34px;
  line-height: 1.55;
}
.oc-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  font-weight: 800;
  color: var(--oc-green);
}
.oc-cross li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 6px;
  font-weight: 800;
  color: var(--oc-red);
}

/* ---------- 8. GIÁ: price / price-old / badge ---------- */
.oc-price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--oc-red);
  margin: 6px 0;
}
.oc-price-old {
  font-size: 22px;
  font-weight: 600;
  color: var(--oc-gray);
  text-decoration: line-through;
  margin: 0 0 2px;
}
.oc-badge {
  display: inline-block;
  background: var(--oc-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 4px 4px 4px 0;
  line-height: 1.4;
}

/* ---------- 9. BẢNG STACK: oc-stack-table ---------- */
.oc-stack-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--oc-white);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  overflow: hidden;
  box-shadow: var(--oc-shadow);
  margin: 22px 0;
  font-size: 16px;
}
.oc-stack-table th,
.oc-stack-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--oc-border);
}
.oc-stack-table th {
  background: var(--oc-ink);
  color: #fff;
  font-weight: 700;
}
.oc-stack-table td:last-child,
.oc-stack-table th:last-child { text-align: right; white-space: nowrap; }
/* Zebra */
.oc-stack-table tbody tr:nth-child(even) { background: var(--oc-cream); }
/* Dòng TỔNG đậm — dòng cuối cùng của tbody */
.oc-stack-table tbody tr:last-child {
  background: var(--oc-yellow-soft);
  font-weight: 800;
  font-size: 18px;
  color: var(--oc-ink);
}
.oc-stack-table tbody tr:last-child td { border-bottom: none; border-top: 2px solid var(--oc-yellow); }

/* ---------- 10. TESTIMONIAL: oc-testi-card / oc-stars ---------- */
.oc-testi-card {
  background: var(--oc-white);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  padding: 24px;
  position: relative;
}
/* Avatar tròn placeholder (đầu card) */
.oc-testi-card::before {
  content: "🙂";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--oc-yellow-soft);
  border: 2px solid var(--oc-yellow);
  font-size: 26px;
  margin: 0 0 14px;
}
.oc-stars {
  color: var(--oc-yellow);
  font-size: 20px;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

/* ---------- 11. FAQ: details/summary ---------- */
.oc-faq {
  background: var(--oc-white);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  margin: 12px 0;
  padding: 0 20px;
  overflow: hidden;
}
.oc-faq > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  color: var(--oc-ink);
  padding: 18px 34px 18px 0;
  position: relative;
}
.oc-faq > summary::-webkit-details-marker { display: none; }
/* Mũi tên */
.oc-faq > summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--oc-red);
  transition: transform .2s ease;
}
.oc-faq[open] > summary::after { content: "−"; }
.oc-faq > p { margin: 0 0 18px; color: var(--oc-gray); }

/* ---------- 12. OBJECTION / BONUS CARD ---------- */
.oc-obj-card {
  background: var(--oc-white);
  border: 1px solid var(--oc-border);
  border-left: 5px solid var(--oc-red);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  padding: 22px 24px;
  margin: 16px 0;
}

.oc-bonus-card {
  background: var(--oc-white);
  border: 2px dashed var(--oc-yellow);   /* viền đứt vàng */
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  padding: 24px;
  position: relative;
}
.oc-bonus-card::before {
  content: "🎁";
  position: absolute;
  top: -16px;
  left: 20px;
  font-size: 30px;
  background: var(--oc-white);
  padding: 0 6px;
  line-height: 1;
}

/* ---------- 13. COUNTDOWN dính trên cùng ---------- */
.oc-countdown {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--oc-red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.oc-countdown strong { color: var(--oc-yellow); }

/* ---------- 14. STICKY CTA bar mobile ---------- */
.oc-sticky-cta {
  display: none;               /* mặc định ẩn, chỉ hiện ≤768px */
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--oc-white);
  border-top: 1px solid var(--oc-border);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
}
.oc-sticky-cta .oc-btn {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ---------- 15. FORM ĐẶT HÀNG (.oc-order) ---------- */
.oc-order form#dat-hang {
  background: var(--oc-white);
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow-lg);
  padding: 26px 24px;
  margin: 24px auto;
  max-width: 520px;
}
.oc-order label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--oc-ink);
  margin: 16px 0 6px;
}
.oc-order input,
.oc-order select {
  width: 100%;
  font-family: var(--oc-font);
  font-size: 17px;
  color: var(--oc-ink);
  background: var(--oc-white);
  padding: 14px 16px;
  min-height: 54px;                     /* ô to */
  border: 2px solid var(--oc-border);
  border-radius: var(--oc-radius-btn);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.oc-order input::placeholder { color: #9a9a9a; }
.oc-order input:focus,
.oc-order select:focus {
  outline: none;
  border-color: var(--oc-red);          /* viền focus đỏ */
  box-shadow: 0 0 0 3px rgba(232, 72, 43, 0.15);
}
.oc-order select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E8482B' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.oc-order form#dat-hang .oc-btn {
  width: 100%;
  max-width: none;
  margin-top: 22px;
}

/* ---------- 16. RESPONSIVE ---------- */
/* Desktop / tablet lớn: grid 2 cột */
@media (min-width: 720px) {
  .oc-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .oc-h2 { font-size: 34px; }
  .oc-section { padding: 72px 0; }
}

/* Mobile ≤768px: hiện sticky CTA, ẩn khoảng đệm thừa */
@media (max-width: 768px) {
  .oc-sticky-cta { display: block; }
  .oc-h2 { font-size: 26px; }
  .oc-lead { font-size: 18px; }
  .oc-price { font-size: 34px; }
}

/* Mobile nhỏ: bảng cuộn ngang thay vì vỡ */
@media (max-width: 480px) {
  .oc-stack-table { display: block; overflow-x: auto; white-space: nowrap; }
  .oc-section { padding: 44px 0; }
}

/* ============================================================
   Bổ sung: 2 class agent tự thêm (điều phối viên thêm CSS)
   ============================================================ */

/* Hàng trust badge dưới nút hero (A1) */
.oc-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 22px;
}
.oc-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--oc-ink);
  background: #fff;
  border: 1px solid #f0d9c8;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* Dòng TỔNG trong bảng value stack (A7) */
.oc-stack-table tr.oc-stack-total td {
  background: #FFF6DC;
  font-size: 18px;
  border-top: 2px solid var(--oc-yellow);
}

/* Footer */
.oc-footer {
  background: var(--oc-ink);
  color: #d8d8d8;
  padding: 40px 0;
  text-align: center;
}
.oc-footer p { margin: 6px 0; }
.oc-footer .oc-note { color: #9a9a9a; }
