/* ==========================================================================
   Uwant VN Support — Design tokens
   Palette: cool cloud-grey base (mirrors the appliance-showroom reference)
   with Uwant's signature vivid orange as the single warm accent, plus a
   trust-teal and info-blue used ONLY as icon-tint identifiers for the two
   other service pillars. Typeface: Be Vietnam Pro — a Vietnamese-made
   grotesk, chosen because the product and audience are Vietnamese.
   ========================================================================== */

:root {
  --bg: #EDF1F6;
  --surface: #FFFFFF;
  --surface-sunk: #F5F7FA;
  --ink: #16202E;
  --ink-soft: #5B6675;
  --ink-faint: #93A0AF;
  --line: #E3E8EE;

  --orange: #FF5A1F;
  --orange-dark: #E24C15;
  --orange-tint: #FFE8DC;

  --teal: #0C9C8D;
  --teal-tint: #DCF3EF;

  --blue: #3167F0;
  --blue-tint: #E1E9FE;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-card: 0 1px 2px rgba(22,32,46,0.04), 0 12px 24px -12px rgba(22,32,46,0.16);
  --shadow-pop: 0 4px 8px rgba(22,32,46,0.06), 0 20px 40px -16px rgba(22,32,46,0.22);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }

.shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 40px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 40px;
  background:
    radial-gradient(120% 90% at 18% -10%, #FFB088 0%, transparent 55%),
    radial-gradient(100% 80% at 100% 0%, #FF7A3D 0%, transparent 60%),
    linear-gradient(160deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.wordmark__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.28);
}

.hero__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
}

.hero__title {
  margin: 26px 0 8px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.2px;
}

.hero__sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 34ch;
}

.hero__wave {
  position: absolute;
  right: -18px;
  bottom: -6px;
  width: 168px;
  height: auto;
  opacity: 0.9;
}

/* ---------- Section ---------- */

.section {
  padding: 22px 20px 4px;
}

.section__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 2px 12px;
}

/* ---------- Pillar cards (landing) ---------- */

.pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(22,32,46,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pillar:active { transform: scale(0.98); }

.pillar__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar__icon svg { width: 26px; height: 26px; }

.pillar--orange .pillar__icon { background: var(--orange-tint); color: var(--orange-dark); }
.pillar--teal .pillar__icon { background: var(--teal-tint); color: var(--teal); }
.pillar--blue .pillar__icon { background: var(--blue-tint); color: var(--blue); }

.pillar__body { flex: 1; min-width: 0; }

.pillar__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
  letter-spacing: -0.1px;
}

.pillar__desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.pillar__chev {
  flex: none;
  color: var(--ink-faint);
}

/* ---------- Quick strip ---------- */

.quickstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  box-shadow: var(--shadow-card);
  margin-top: 18px;
}

.quickstrip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.quickstrip__icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--surface-sunk);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.quickstrip__icon svg { width: 20px; height: 20px; }

.quickstrip__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ---------- Footer ---------- */

.footer {
  margin: 28px 20px 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
  border: 1px dashed var(--line);
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.footer__row + .footer__row { margin-top: 10px; }
.footer__row svg { width: 17px; height: 17px; color: var(--orange); flex: none; }

.footer__note {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---------- Detail page header ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 6px;
}

.topbar__back {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  flex: none;
}
.topbar__back svg { width: 18px; height: 18px; }

.topbar__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.1px;
}

.page-intro {
  padding: 6px 20px 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Generic content card ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(22,32,46,0.03);
}

.card + .card { margin-top: 12px; }

/* ---------- Contact list rows ---------- */

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }

.row__icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.row__icon svg { width: 20px; height: 20px; }
.row--orange .row__icon { background: var(--orange-tint); color: var(--orange-dark); }
.row--teal .row__icon { background: var(--teal-tint); color: var(--teal); }
.row--blue .row__icon { background: var(--blue-tint); color: var(--blue); }

.row__body { flex: 1; min-width: 0; }
.row__title { font-size: 14.5px; font-weight: 700; margin: 0 0 2px; }
.row__sub { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.row__chev { color: var(--ink-faint); flex: none; }

.row__cta {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--orange-tint);
  padding: 8px 13px;
  border-radius: 999px;
}

/* ---------- Section title inside cards ---------- */

.card__head {
  padding: 15px 16px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Steps (warranty activation) ---------- */

.steps { padding: 6px 16px 16px; }

.step {
  display: flex;
  gap: 13px;
  padding: 13px 0;
}
.step + .step { border-top: 1px dashed var(--line); }

.step__num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 9px;
  background: var(--teal-tint);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.step__title { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.step__desc { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Form (warranty activation) ---------- */

.form { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.field input, .field select {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-sunk);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface);
}

.btn-primary {
  margin-top: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #0A8578 100%);
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 10px 20px -8px rgba(12,156,141,0.55);
}
.btn-primary:focus-visible { outline: 3px solid #0A8578; outline-offset: 2px; }
.btn-primary:active { transform: translateY(1px); }

.hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  padding: 0 2px;
  line-height: 1.5;
}

/* ---------- Product accordion (tutorial) ---------- */

.product {
  border-bottom: 1px solid var(--line);
}
.product:last-child { border-bottom: none; }

.product__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.product__tag {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.product__name { font-size: 14.5px; font-weight: 700; margin: 0 0 2px; }
.product__meta { font-size: 12px; color: var(--ink-soft); margin: 0; }

.product__chev { margin-left: auto; color: var(--ink-faint); transition: transform 0.2s ease; flex: none; }
.product.is-open .product__chev { transform: rotate(180deg); }

.product__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.product.is-open .product__panel { max-height: 320px; }

.product__panel-inner { padding: 0 16px 16px 71px; display: flex; flex-direction: column; gap: 8px; }

.reslink {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 10px 12px;
  border-radius: 12px;
}
.reslink svg { width: 16px; height: 16px; flex: none; }

/* focus visibility across interactive elements */
a:focus-visible, button:focus-visible, .pillar:focus-visible, .row:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 2px;
  border-radius: 12px;
}
