/* D Edit store — bản nháp giao diện. Màu vàng lấy từ logo D Edit. */
@font-face {
  font-family: InterStore;
  src: url("../fonts/inter-var-vi.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffd60a;
  --yellow-mid: #ffb000;
  --yellow-deep: #ff8a00;
  --ink: #161513;
  --ink-soft: #5c5850;
  --muted: #8a857c;
  --paper: #f6f3eb;
  --paper-2: #fffdf8;
  --line: #e4ddd0;
  --dark: #141210;
  --dark-2: #1e1b18;
  --zalo: #0068ff;
  --soon: #c8c3b8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 18, 16, 0.08);
  --header-h: 68px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: InterStore, "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Draft banner */
.draft-banner {
  background: #2a2618;
  color: #f3e7b0;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 235, 0.9);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-nav a:hover,
.site-nav a.is-current { color: var(--ink); background: #ece7dc; }
.btn-zalo-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--zalo);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-zalo-head:hover { filter: brightness(1.08); }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Hero (home) */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 184, 0, 0.22), transparent 55%),
    radial-gradient(800px 400px at 0% 80%, rgba(255, 214, 10, 0.08), transparent 50%),
    var(--dark);
  color: #f7f3ea;
  padding: 88px 24px 96px;
}
.hero-inner, .wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-mid);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 16ch;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: #d9d3c6;
  max-width: 40em;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 650;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-mid) 100%);
  color: #1a1400;
  box-shadow: 0 8px 20px rgba(255, 176, 0, 0.28);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost {
  background: transparent;
  color: #f7f3ea;
  border: 1px solid rgba(247, 243, 234, 0.28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Sections */
.section { padding: 80px 24px; }
.section h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.section-lead {
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 40em;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 20px;
}
.product-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  height: 100%;
}
.product-card.is-soon {
  background: #efece3;
  box-shadow: none;
  color: #7a756c;
  filter: grayscale(0.35);
}
.product-card .logo { width: 64px; height: 64px; margin-bottom: 18px; }
.product-card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.product-card p { margin: 0 0 20px; color: var(--ink-soft); flex: 1; }
.product-card.is-soon p { color: #7a756c; }
.badge-soon {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ddd8cc;
  color: #5c5850;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  text-decoration: none;
  color: #7a4a00;
}
.card-cta:hover { color: #000; }

/* Trust */
.trust { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
}
.trust-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.trust-item p { margin: 0; color: var(--ink-soft); }
.trust-item .num {
  display: inline-block;
  color: var(--yellow-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Contact */
.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--dark);
  color: #f7f3ea;
  border-radius: 24px;
  padding: 36px;
}
.contact-box h2 { color: #fff; margin-bottom: 8px; }
.contact-box p { color: #d9d3c6; margin: 0; }
.contact-box .btn-primary { margin-left: auto; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #b9b3a6;
  padding: 40px 24px 100px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}
.site-footer a { color: #e8e2d6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand { color: #f7f3ea; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 22px; height: 22px; }
.footer-meta { margin-left: auto; }

/* Floating Zalo */
.zalo-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--zalo);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 104, 255, 0.38);
}
.zalo-float:hover { filter: brightness(1.08); }
.zalo-float svg { width: 28px; height: 28px; flex: none; }

/* ========== D Edit product page ========== */
.product-hero {
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(255, 184, 0, 0.26), transparent 55%),
    var(--dark);
  color: #f7f3ea;
  padding: 64px 24px 72px;
}
.product-hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.product-hero .logo-hero { width: 112px; height: 112px; margin-bottom: 22px; }
.product-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 8px;
}
.version-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 16px;
}
.product-hero .lede { margin-bottom: 28px; }

/* Platform download buttons */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 14px;
  max-width: 520px;
}
.platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  min-height: 64px;
  height: 100%;
}
.platform-btn svg { width: 26px; height: 26px; flex: none; }
.platform-btn .os {
  display: block;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.platform-btn .meta {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}
.platform-btn.is-active {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-mid) 100%);
  color: #1a1400;
  box-shadow: 0 6px 16px rgba(255, 176, 0, 0.28);
}
.platform-btn.is-active .meta { opacity: 0.8; color: #4a3a00; }
.platform-btn.is-soon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #9a958c;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}
.dl-secondary {
  font-size: 13.5px;
  color: #c9c3b6;
  margin: 0;
  line-height: 1.7;
}
.dl-secondary a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.dl-secondary a:hover { color: #fff; }

/* Light surface variant used in #tai-ve */
.download-section { background: var(--paper-2); border-top: 1px solid var(--line); }
.download-section .platform-grid { max-width: 640px; }
.download-section .platform-btn.is-active { color: #1a1400; }
.download-section .platform-btn.is-soon {
  background: #efece3;
  border-color: var(--line);
  color: #8a857c;
  opacity: 1;
}
.download-section .dl-secondary { color: var(--ink-soft); }
.download-section .dl-secondary a { color: #8a4b00; }

.draft-download-note {
  margin-top: 20px;
  max-width: 640px;
  background: #fff6d6;
  border: 1px solid #ebd48a;
  color: #3d3200;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.02em; }
.feature p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.feature .ico {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--yellow-deep);
}

/* Screenshots */
.shots { background: #ece7dc; }
.shot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.shot {
  margin: 0;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot figcaption {
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 10px 14px;
}
.shot--wide { grid-column: 1 / -1; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.price-card, .pay-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.price-card h3, .pay-card h3 { margin: 0 0 12px; font-size: 20px; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.price-list li strong { color: var(--ink); font-weight: 650; }
.price-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
}
.pay-placeholder {
  border: 1px dashed #cbbd8a;
  background: #fff8e3;
  border-radius: 14px;
  padding: 22px;
  color: #6a5a20;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.wm-preview {
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.wm-preview img { width: 100%; }
.wm-preview p { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--ink-soft); background: #faf7f0; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--line);
  background: transparent;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item > button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
  padding: 18px 36px 18px 0;
  cursor: pointer;
  position: relative;
}
.faq-item > button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-weight: 500;
  color: var(--muted);
}
.faq-item.is-open > button::after { content: "–"; }
.faq-body {
  display: none;
  padding: 0 8px 18px 0;
  color: var(--ink-soft);
  max-width: 62ch;
}
.faq-item.is-open .faq-body { display: block; }
.faq-body p { margin: 0 0 10px; }
.faq-body ol { margin: 0 0 10px; padding-left: 20px; }

/* Misc */
.hero-shot-frame {
  background: #0d0c0b;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-shot-frame figcaption { display: none; }

@media (max-width: 900px) {
  .product-grid, .product-hero-grid, .price-grid, .feature-grid, .shot-grid, .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .product-hero-grid { gap: 28px; }
  .hero-shot-frame { display: none; }
  .contact-box .btn-primary { margin-left: 0; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .btn-zalo-head { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--header-h) + 0px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 16px 16px;
    margin: 0;
  }
  .site-nav.is-open { display: flex; }
  .header-inner { position: relative; }
  .hero, .product-hero { padding: 40px 20px 56px; }
  .product-hero { padding-top: 28px; padding-bottom: 100px; }
  .product-hero .logo-hero { width: 84px; height: 84px; margin-bottom: 14px; }
  .product-hero .lede { margin-bottom: 18px; font-size: 16px; }
  .zalo-float { right: 14px; bottom: 14px; padding: 10px 14px 10px 10px; font-size: 14px; }
  .section { padding: 56px 20px; }
  .product-grid, .price-grid, .trust-grid, .feature-grid, .shot-grid, .platform-grid, .product-hero-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 24px; }
  .zalo-float span { /* keep label visible, slightly compact */ }
  .footer-meta { margin-left: 0; }
}

/* Giữ 2 cột nút nền tảng trên màn hình hẹp, để bốn nút hiện đủ. */
