/* ============================================================
   PTD DTC Landing Page — sections.css
   Feature Tables, WA Carousel, Final Form, Footer, Sticky Bar
   Pasukan Tempur Digital © 2026
   ============================================================ */

/* ── FEATURE VISUAL WRAPPER ── */
.feature-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow2);
}

.fv-header {
  background: var(--surface2);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fv-title { font-size: 12px; font-weight: 600; color: var(--ink2); }

.fv-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--green-light);
  color: var(--green);
}

.fv-badge.orange {
  background: var(--orange-light);
  color: var(--orange2);
}

/* ── COMPARISON TABLE (Saatnya Berubah) — Blue standout col ── */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.cmp-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cmp-table th:first-child { background: var(--surface2); color: var(--ink3); }
.cmp-table th.col-bad     { background: #fff1f1; color: var(--red); text-align: center; }
.cmp-table th.col-good    { background: var(--blue); color: white; text-align: center; }

.cmp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface2);
}

.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child   { font-weight: 500; color: var(--ink2); }
.cmp-table td.col-bad       { color: var(--red); text-align: center; background: #fffafa; }
.cmp-table td.col-good      { color: white; font-weight: 700; text-align: center; background: var(--blue); }

.saving-note {
  padding: 11px 14px;
  background: var(--orange-light);
  border-top: 1px solid var(--orange-mid);
  font-size: 12px;
  color: var(--ink2);
}

.saving-note strong { color: var(--orange2); font-weight: 700; }

/* ── WHY TABLE (Kenapa PTD) — Blue standout col ── */
.why-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.why-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.why-table th:first-child { background: var(--surface2); color: var(--ink3); }
.why-table th.col-bad     { background: #fff1f1; color: var(--red); }
.why-table th.col-good    { background: var(--blue); color: white; }

.why-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface2);
}

.why-table tr:last-child td              { border-bottom: none; }
.why-table td:first-child                { font-weight: 500; color: var(--ink2); }
.why-table td.col-bad                    { color: var(--red); background: #fffafa; }
.why-table td.col-good                   { color: white !important; font-weight: 600; background: var(--blue); }

/* Fix hover: keep blue col readable */
.why-table tr:hover td:first-child       { background: var(--surface); }
.why-table tr:hover td.col-bad           { background: #fff0f0; }
.why-table tr:hover td.col-good          { color: white !important; background: var(--blue2); }

/* ── WA CAROUSEL (Apa Kata Mereka) ── */
.wa-carousel-wrap {
  margin-top: 32px;
  padding: 0 var(--px);
  overflow: hidden;
}

.wa-track {
  display: flex;
  gap: 20px;
  animation: wa-scroll 28s linear infinite;
  width: max-content;
}

.wa-track:hover { animation-play-state: paused; }

@keyframes wa-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* WA card */
.wa-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* 16:9 screenshot placeholder */
.wa-screenshot-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.wa-screenshot-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,150,190,0.08), rgba(34,197,94,0.05));
}

.wa-img-phone  { font-size: 32px; position: relative; z-index: 1; }
.wa-img-label  { font-size: 11px; font-weight: 600; color: var(--ink3); position: relative; z-index: 1; }

/* Per-card colours */
.wa-card:nth-child(1)  .wa-screenshot-img,
.wa-card:nth-child(6)  .wa-screenshot-img { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.wa-card:nth-child(2)  .wa-screenshot-img,
.wa-card:nth-child(7)  .wa-screenshot-img { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.wa-card:nth-child(3)  .wa-screenshot-img,
.wa-card:nth-child(8)  .wa-screenshot-img { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.wa-card:nth-child(4)  .wa-screenshot-img,
.wa-card:nth-child(9)  .wa-screenshot-img { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.wa-card:nth-child(5)  .wa-screenshot-img,
.wa-card:nth-child(10) .wa-screenshot-img { background: linear-gradient(135deg, #fefce8, #fef08a); }

/* WA UI elements */
.wa-topbar {
  background: #075e54;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.wa-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.wa-contact-name { font-size: 12px; font-weight: 600; color: white; line-height: 1.2; }
.wa-online       { font-size: 10px; color: rgba(255, 255, 255, 0.65); }

.wa-body {
  background: #ece5dd;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-bubble {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  position: relative;
}

.wa-bubble.received {
  background: white;
  border-radius: 0 8px 8px 8px;
  align-self: flex-start;
}

.wa-bubble.sent {
  background: #dcf8c6;
  border-radius: 8px 0 8px 8px;
  align-self: flex-end;
}

.wa-time { font-size: 9px; color: #8696a0; margin-top: 3px; text-align: right; }

.wa-stars {
  font-size: 11px;
  color: #f59e0b;
  padding: 4px 10px 8px;
  background: #ece5dd;
}

.wa-footer {
  padding: 7px 12px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--ink4);
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-verified { color: var(--green); font-weight: 600; }

/* ── FINAL FORM SECTION ── */
.final-section {
  padding: var(--spy) var(--px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

/* Info block OUTSIDE form — centred */
.form-header { text-align: center; margin-bottom: 28px; }

.fh-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fh-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.fh-title .accent { color: var(--orange); }

.fh-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.fh-price-old {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink3);
  text-decoration: line-through;
}

.fh-price-new {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

/* RED pulsing discount badge */
.fh-discount-badge {
  background: var(--red2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,  100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(220, 38, 38, 0.40); }
  50%       { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.fh-note { font-size: 13px; color: var(--ink3); margin-bottom: 14px; }

/* RED countdown */
.fh-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a0505;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  padding: 10px 20px;
}

.fh-cd-label { font-size: 11px; color: rgba(255, 255, 255, 0.5); font-weight: 500; margin-right: 2px; }

.fh-cd-blocks { display: flex; align-items: center; gap: 4px; }

.fh-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 40px;
}

.fh-cd-num  { font-size: 20px; font-weight: 800; color: var(--red2); line-height: 1; }
.fh-cd-unit { font-size: 8px; color: rgba(255, 100, 100, 0.6); margin-top: 2px; letter-spacing: 0.5px; }
.fh-cd-sep  { font-size: 20px; font-weight: 700; color: rgba(220, 38, 38, 0.5); }

/* Form card */
.final-cta-card {
  max-width: 580px;
  margin: 28px auto 0;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 8px 40px rgba(249, 115, 22, 0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.form-group.full { grid-column: 1 / -1; }

.form-label { font-size: 12px; font-weight: 600; color: var(--ink2); }

.form-input,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--orange);
  background: var(--white);
}

.form-input::placeholder { color: var(--ink4); }

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.btn-form {
  width: 100%;
  background: var(--orange);
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  margin-top: 8px;
}

/* ── FOOTER ── */
footer {
  background: #0f172a;
  padding: clamp(36px, 6vw, 48px) var(--px) clamp(24px, 4vw, 32px);
  color: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: clamp(18px, 3vw, 24px);
}

/* All direct children of footer are block, no white bg */
.footer-col {
  display: block;
  background: transparent;
}

.footer-brand-name { font-size: 17px; font-weight: 800; color: var(--orange); margin-bottom: 3px; background: transparent; }
.footer-brand-sub  { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 10px; background: transparent; }
.footer-brand-desc { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.38); background: transparent; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.60);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  background: transparent;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.15s;
  display: block;
  background: transparent;
}

.footer-link:hover { color: var(--orange); }

.footer-bottom-row {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: transparent;
}

.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.28); background: transparent; }

/* ── MOBILE STICKY BAR ── */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sticky-cd {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-cd-label { font-size: 10px; color: var(--ink3); font-weight: 500; }

.sticky-cd-blocks { display: flex; align-items: center; gap: 2px; }

.sticky-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink);
  border-radius: 4px;
  padding: 3px 6px;
  min-width: 28px;
}

.sticky-cd-num  { font-size: 13px; font-weight: 800; color: var(--orange); line-height: 1; }
.sticky-cd-unit { font-size: 6px; color: rgba(255, 255, 255, 0.45); margin-top: 1px; }
.sticky-cd-sep  { font-size: 12px; font-weight: 700; color: var(--ink4); }

.sticky-btn {
  width: 100%;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}
