/* Trang giới thiệu EzE (trang chủ). Trang chính sách dùng style.css. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f7f1;
  --ink: #10140d;
  --ink-2: #4a5444;
  --border: #e1e6dc;
  --card: #ffffff;
  --lime: #9fe870;
  --on-lime: #163300;
  --hero-1: #f4fbec;
  --hero-2: #ddf3c9;
  --hero-3: #c3e9a2;
  --link: #2e7d16;
  --frame: #121412;
  --shadow: 0 30px 60px rgba(30, 60, 10, .18), 0 10px 20px rgba(30, 60, 10, .10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d100c;
    --bg-soft: #151a13;
    --ink: #e8ebe6;
    --ink-2: #a3a8a0;
    --border: #2a3127;
    --card: #1c201b;
    --hero-1: #1a2416;
    --hero-2: #16200f;
    --hero-3: #0f160b;
    --link: #e8ebe6;
    --frame: #2a2d29;
    --shadow: 0 30px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Thanh trên cùng */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--ink-2); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav .opt { display: none; } }

/* Nút */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  background: var(--ink); color: var(--bg);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.lime { background: var(--lime); color: var(--on-lime); }
.btn:hover { opacity: .9; }

/* Hero */
.hero {
  background: radial-gradient(120% 80% at 50% 0%, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
.hero .lead { font-size: 21px; color: var(--ink-2); margin: 0 0 32px; max-width: 32em; }
.hero .note { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.hero .shot { align-self: end; justify-self: center; margin-bottom: -120px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .shot { margin-bottom: -160px; }
}

/* Khung iPhone */
.phone {
  width: 300px; padding: 10px; border-radius: 52px;
  background: var(--frame);
  box-shadow: 0 0 0 2px #3a3d39 inset, var(--shadow);
}
.phone img { display: block; width: 100%; border-radius: 42px; }
.phone.sm { width: 260px; border-radius: 46px; padding: 9px; }
.phone.sm img { border-radius: 37px; }

section { padding: 96px 0; }
section.soft { background: var(--bg-soft); }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.8px; margin: 0 0 16px; font-weight: 800; }
.sub { font-size: 19px; color: var(--ink-2); margin: 0 0 48px; max-width: 40em; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* 3 bước */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); color: var(--on-lime); font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tip { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Tính năng: chữ + màn hình xen kẽ */
.features { margin-top: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature .shot { justify-self: center; }
.feature:nth-of-type(even) .text { order: 2; }
.feature h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 12px; }
.feature p { color: var(--ink-2); font-size: 18px; margin: 0 0 12px; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feature li { padding-left: 30px; position: relative; margin: 10px 0; font-size: 16px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23163300'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature:nth-of-type(even) .text { order: 0; }
  .feature ul { display: inline-block; text-align: left; }
}

/* Quyền riêng tư */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card .ic { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Dải ảnh App Store */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 24px; margin: 0 -24px; }
.gallery img { flex: 0 0 auto; width: 240px; border-radius: 28px; scroll-snap-align: center; box-shadow: var(--shadow); }

/* Giá */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 32px; text-align: left; }
.plan.pro { border: 2px solid var(--ink); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin: 8px 0 4px; }
.plan .per { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 8px 0; font-size: 16px; }
.badge { display: inline-block; background: var(--lime); color: var(--on-lime); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* Hỗ trợ / FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }
.contact { max-width: 760px; margin: 40px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 28px; }
.contact h3 { margin: 0 0 6px; }
.contact p { margin: 0; color: var(--ink-2); }

/* Kêu gọi tải cuối trang */
.cta { text-align: center; }
.cta img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--ink-2); }
footer nav a { margin-left: 18px; }
footer nav a:first-child { margin-left: 0; }
