/* Peek website — peek.macplanet.vn */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --accent: #7c4dff;
  --accent-2: #a77bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(124, 77, 255, .1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
  --radius: 22px;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #111113;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, .12);
    --accent: #a582ff;
    --accent-2: #c7adff;
    --accent-ink: #12002e;
    --accent-soft: rgba(165, 130, 255, .14);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif; letter-spacing: -.022em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; text-decoration: none; }
.nav .btn { padding: 7px 15px; font-size: 14px; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer;
  font: 600 16px/1.2 inherit; font-family: inherit;
  background: var(--accent); color: var(--accent-ink); transition: filter .15s, transform .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.release-line { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 40px; text-align: center; }
.hero .app-icon { width: 112px; height: 112px; margin: 0 auto 22px; filter: drop-shadow(0 10px 24px rgba(124,77,255,.25)); }
.hero h1 { font-size: clamp(42px, 7.4vw, 80px); font-weight: 700; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 680px; margin: 20px auto 32px; line-height: 1.4; }
.hero-media { margin: 56px auto 0; max-width: 1000px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec.alt { background: var(--bg-2); }
.eyebrow { display: block; color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
.sec-head p { font-size: 19px; color: var(--muted); margin-top: 16px; }

/* Feature rows with screenshot */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 14px; }
.feature-text p { color: var(--muted); font-size: 18px; }
.feature-text .keys { margin-top: 16px; font-size: 15px; color: var(--muted); }
kbd { font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
/* Ảnh tính năng: chỉ cửa sổ Peek + nút, nền trong suốt (bóng đổ có sẵn trong ảnh) */
.shot { display: flex; justify-content: center; margin: -24px -20px; }
.shot img { width: auto; height: auto; max-width: 100%; max-height: 560px; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 72px; }
  .feature.flip .feature-text { order: 0; }
}

/* Pro feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.tile { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.sec.alt .tile { box-shadow: none; }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { position: relative; background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.best { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 20px; letter-spacing: -.01em; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.plan li.off { color: var(--muted); text-decoration: line-through; }
.plan li.off svg { color: var(--muted); opacity: .5; }
.plan .btn { width: 100%; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; line-height: 1.7; }
.notice { display: none; max-width: 620px; margin: 24px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: 15px; text-align: center; }
.notice.show { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 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: "+"; color: var(--accent); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta img { width: 88px; height: 88px; margin: 0 auto 20px; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 19px; margin-bottom: 30px; }

/* ---------- Simple pages ---------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5.5vw, 56px); font-weight: 700; margin-bottom: 10px; }
.page .updated { color: var(--muted); margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.015em; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .lede { font-size: 19px; color: var(--muted); }

/* Changelog */
.release { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 170px 1fr; gap: 28px; }
.release:first-of-type { border-top: 0; }
.release .meta h2 { font-size: 28px; margin: 0 0 4px; }
.release .meta .muted { font-size: 14px; }
.release .badge { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.release .notes h3 { font-size: 16px; margin: 0 0 8px; letter-spacing: 0; }
.release .notes ul { margin: 0 0 18px; padding-left: 20px; }
.release .notes li { margin: 5px 0; }
.release .notes p { margin-bottom: 10px; }
.release .dl { font-size: 14px; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* Support cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0 8px; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Thanks */
.steps { text-align: left; max-width: 520px; margin: 30px auto; padding-left: 22px; }
.steps li { margin: 10px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); color: var(--muted); font-size: 13px; padding: 36px 0 44px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
