/* ============================================================
   Dake Inno. Support Portal — Design System v2
   Primary #1E9BD7 derived from official logo
   ============================================================ */
:root {
  --blue: #1E9BD7;
  --blue-dark: #1783B9;
  --blue-darker: #0F6C99;
  --navy: #0F2733;
  --navy-2: #143545;
  --ink: #1C2B36;
  --muted: #5B7183;
  --bg: #FFFFFF;
  --bg-soft: #F4F9FC;
  --line: #E3EDF3;
  --ok: #2FA36B;
  --err: #E5484D;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(15, 39, 51, 0.09);
  --font: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue-darker); }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(15, 39, 51, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; display: block; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: #AFC4D1;
  font-weight: 500;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: #FFFFFF; background: rgba(30, 155, 215, 0.28); font-weight: 600; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Hero (shared) ---------- */
.hero {
  background: linear-gradient(180deg, #EAF6FD 0%, #FFFFFF 100%);
  text-align: center;
  padding: 66px 20px 100px;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.2; font-weight: 800; color: var(--ink); }
.hero p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 17px; }
.hero h1 { margin-top: 0; }
.hero .tagline { margin-top: 14px; font-size: 14px; color: var(--blue-dark); font-weight: 600; letter-spacing: 0.4px; }

/* ---------- Cards / layout ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.overlap { margin-top: -64px; position: relative; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.section-sub { color: var(--muted); margin: 0 0 30px; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; width: 100%; }
.form-wrap form, .form-wrap .field input, .form-wrap .field select { box-sizing: border-box; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 500; font-size: 13px; }
.field label .req { color: var(--err); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
  background: #FFFFFF;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 155, 215, 0.16);
}
.field.valid input { border-color: var(--ok); }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .msg { display: none; font-size: 13.5px; margin-top: 7px; font-weight: 500; }
.field.invalid .msg { display: block; color: var(--err); }
.field.valid .verify-ok {
  display: flex; align-items: center; gap: 8px;
  color: var(--ok); font-weight: 600; font-size: 14px; margin-top: 8px;
}
.field.valid .msg-ok { display: block; color: var(--ok); }
.badge {
  display: inline-block;
  background: rgba(47, 163, 107, 0.12);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 155, 215, 0.3); }
.btn:disabled { background: #B7CEDC; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue);
}
.btn-ghost:hover { background: rgba(30, 155, 215, 0.08); box-shadow: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 22px; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.consent label { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Trust row ---------- */
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.trust-item svg { flex: none; }

/* ---------- Rating stars ---------- */
.rating-block { padding: 22px; background: var(--bg-soft); border-radius: 12px; margin: 6px 0 22px; }
.rating-block .rating-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.stars { display: flex; gap: 6px; margin-top: 10px; }
.star-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
  transition: transform .1s;
}
.star-btn:hover { transform: scale(1.12); }
.star-btn svg { width: 34px; height: 34px; }
.star-btn .fill { fill: #D5E3EC; transition: fill .12s; }
.stars .on .fill { fill: var(--blue); }
.rating-label { margin-top: 8px; font-size: 13.5px; color: var(--muted); min-height: 20px; }
.rating-error { display: none; color: var(--err); font-size: 13.5px; margin-top: 8px; font-weight: 500; }
.rating-error.show { display: block; }

/* ---------- Result / rescue panels ---------- */
.result-panel { text-align: center; padding: 14px 8px; }
.result-panel .icon-circle {
  width: 74px; height: 74px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.icon-circle.ok { background: rgba(47, 163, 107, 0.13); }
.icon-circle.sad { background: rgba(229, 72, 77, 0.12); }
.result-panel h2 { font-size: 24px; margin: 0 0 10px; }
.result-panel p { color: var(--muted); max-width: 460px; margin: 0 auto 10px; }
.result-panel .actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ref-code { font-weight: 700; color: var(--ink); background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: 2px 10px; display: inline-block; }

/* ---------- Claim page ---------- */
.claim-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.upload-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.upload-box {
  width: 86px; height: 86px; border-radius: 10px; position: relative;
  overflow: visible; display: flex; align-items: center; justify-content: center;
}
.upload-box img, .upload-box video {
  width: 86px; height: 86px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #000;
}
.upload-box .del {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  background: var(--err); color: #FFF; border: 2px solid #FFF; border-radius: 50%;
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.add-more {
  width: 86px; height: 86px; border: 2px dashed #B9CEDC; border-radius: 10px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #8FA9BA; cursor: pointer; transition: all .15s;
}
.add-more:hover { border-color: var(--blue); color: var(--blue); background: rgba(30, 155, 215, 0.06); }
.side-card {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.side-card h3 { margin: 0 0 8px; font-size: 19px; }
.side-card p { color: #AFC4D1; font-size: 14px; margin: 0 0 18px; }
.side-card .mail-link {
  color: #FFFFFF; font-weight: 700; font-size: 17px;
  text-decoration: underline; text-underline-offset: 3px;
}
.side-card .meta { color: #7E96A5; font-size: 12.5px; margin-top: 18px; margin-bottom: 0; }
.side-card .btn { margin-top: 16px; width: 100%; }

/* ---------- Modal ---------- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 39, 51, 0.72);
  align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #FFF; border-radius: 16px; max-width: 430px; width: 100%;
  padding: 34px 30px; text-align: center; position: relative;
}
.modal-box h3 { margin: 0 0 8px; font-size: 20px; }
.modal-box p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-box .email-big {
  font-size: 18px; font-weight: 700; color: var(--blue-dark);
  background: var(--bg-soft); border-radius: 10px; padding: 13px;
  display: block; word-break: break-all; margin-bottom: 16px;
}
.modal-close {
  position: absolute; top: 12px; right: 18px; font-size: 26px;
  color: var(--muted); cursor: pointer; background: none; border: none; line-height: 1;
}
.modal-actions { display: flex; gap: 10px; }

/* ---------- Help center ---------- */
.search-wrap { max-width: 620px; margin: -58px auto 0; position: relative; z-index: 5; }
.search-input {
  width: 100%; padding: 16px 20px; font-size: 15.5px; font-family: inherit;
  border-radius: 12px; border: 1.5px solid #C9DCE8;
  box-shadow: var(--shadow); outline: none; background: #FFF;
}
.search-input:focus { border-color: var(--blue); }
.manual-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; margin-bottom: 14px;
}
.manual-card .m-name { font-weight: 700; font-size: 16px; }
.manual-card .m-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.btn-dl {
  background: rgba(30, 155, 215, 0.1); color: var(--blue-dark);
  font-weight: 700; font-size: 14px; border-radius: 9px; padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn-dl:hover { background: rgba(30, 155, 215, 0.18); }
details.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #FFF; overflow: hidden; }
details.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 20px;
  font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev { flex: none; transition: transform .18s; color: var(--blue); }
details.faq-item[open] summary .chev { transform: rotate(180deg); }
details.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq-cat { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue-dark); margin: 34px 0 14px; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 34px 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin: -64px auto 0; padding: 46px 50px; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; color: var(--ink); }
.legal p, .legal li { color: #42566A; font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal .ph { background: rgba(30, 155, 215, 0.1); color: var(--blue-darker); border-radius: 5px; padding: 1px 7px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #8FA9BA; margin-top: 80px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px;
  padding: 54px 0 40px;
}
.footer-brand img { height: 58px; margin-bottom: 12px; }
.footer-brand .slogan { color: var(--blue); font-weight: 800; letter-spacing: 1.4px; margin-bottom: 10px; font-size: 15px; text-transform: uppercase; }
.footer-brand p { font-size: 13.5px; margin: 0; max-width: 260px; }
.site-footer h4 { color: #FFFFFF; font-size: 14.5px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer a { color: #8FA9BA; font-size: 13.5px; line-height: 1.35; }
.site-footer a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0; font-size: 12.5px; color: #6B8394;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-amazon { font-size: 11.5px; color: #6B8394; padding: 0 0 18px; }

.help-link {
  font-size: 12.5px; font-weight: 700; color: var(--blue-dark);
  background: rgba(30, 155, 215, 0.1); border-radius: 999px;
  padding: 1px 9px; cursor: pointer; margin-left: 6px; white-space: nowrap;
}
.help-link:hover { background: rgba(30, 155, 215, 0.2); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 900px) {
  .claim-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-2); flex-direction: column; padding: 12px 16px 16px; gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 29px; }
  .hero { padding: 46px 18px 84px; }
  .legal { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 30px; }
  .result-panel .actions { flex-direction: column; }
  .btn-block-mobile { width: 100%; }
}

/* ============================================================
   Mobile enhancement layer (v2.4)
   Shopping is mobile-first: buyers open this page on phones.
   ============================================================ */

/* iOS: prevent auto-zoom when focusing inputs < 16px */
@media (max-width: 767px) {
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field select,
  .field textarea,
  .search-input {
    font-size: 16px;
  }
  .field input, .field select, .field textarea {
    padding: 14px 14px;
  }
  .form-wrap {
    width: 100%;
    max-width: 100%;
  }
  .claim-grid {
    gap: 18px;
  }
  .card {
    border-radius: 14px;
  }
  .manual-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .manual-card .btn-dl {
    width: 100%;
    text-align: center;
  }
  .faq-item summary {
    padding: 15px 16px;
    font-size: 15px;
    line-height: 1.45;
  }
  .faq-a {
    padding: 0 16px 16px;
    font-size: 14.5px;
    line-height: 1.55;
  }
  .faq-item {
    margin-bottom: 10px;
  }
  .side-card {
    padding: 24px 18px;
  }
  .consent {
    align-items: flex-start;
  }
  .consent input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
  }
  .consent label {
    font-size: 14px;
    line-height: 1.5;
  }
  .trust-row {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .trust-item {
    font-size: 13px;
  }
  .btn {
    padding: 15px 20px;
    font-size: 15.5px;
  }
  .section-title {
    font-size: 22px;
  }
  .hero h1 {
    font-size: 26px;
    line-height: 1.25;
  }
  .hero p {
    font-size: 15.5px;
    line-height: 1.5;
  }
  .overlap {
    margin-top: -48px;
  }
  .rating-block {
    padding: 16px;
  }
  .star-btn svg {
    width: 34px;
    height: 34px;
  }
  .footer-grid {
    gap: 22px;
  }
  .site-footer li {
    margin-bottom: 6px;
  }
}

/* Modal: near-fullscreen on small phones, thumb-reachable buttons */
@media (max-width: 480px) {
  .modal {
    padding: 12px;
  }
  .modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }
  .modal-box h3 {
    font-size: 18px;
  }
  .hero {
    padding: 38px 16px 70px;
  }
  .footer-brand img {
    height: 52px;
  }
}
