/* Tuggy website — tuggy.macplanet.vn */
:root {
  --bg: #ffffff; --bg-2: #f7f5f3; --card: #ffffff; --text: #1d1d1f; --muted: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --accent: #d9480f; --accent-2: #ff8a1f; --accent-ink: #ffffff; --accent-soft: rgba(217, 72, 15, .09);
  --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: #121110; --card: #1c1b1a; --text: #f5f5f7; --muted: #a1a1a6;
    --line: rgba(255, 255, 255, .12);
    --accent: #ff8a3d; --accent-2: #ffb347; --accent-ink: #2a0f00; --accent-soft: rgba(255, 138, 61, .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(255,106,26,.3)); }
.hero h1 { font-size: clamp(42px, 7.4vw, 80px); font-weight: 700; }
.hero h1 span { background: linear-gradient(90deg, #f2590d, #ff9a2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 700px; 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: 0 0 0 1px var(--line), var(--shadow); background: #fff; 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 { 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); }
.shot img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
/* Ảnh chụp app thật: nền trong suốt, bóng đổ có sẵn trong ảnh */
.shot.real { margin: -20px -24px; display: flex; justify-content: center; }
.shot.real img { border-radius: 0; box-shadow: none; }
.shot.real.narrow img { width: auto; max-width: 318px; }
@media (max-width: 820px) { .shot.real { margin: -8px -12px; } }
@media (max-width: 820px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 72px; } .feature.flip .feature-text { order: 0; } }

.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; }

/* 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; }
.cta p.release-line { font-size: 14px; margin: 14px 0 0; }

/* 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 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; }

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

/* Press kit */
.page .wrap.press-grid { max-width: var(--wrap); display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin-top: 8px; margin-bottom: 24px; }
@media (max-width: 760px) { .page .wrap.press-grid { grid-template-columns: 1fr; } }
.press-shot { margin: 0; }
.press-shot img { width: 100%; height: 300px; object-fit: contain; background: var(--bg-2); border-radius: 18px; padding: 10px; }
.press-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.press-shot figcaption strong { color: var(--text); }
.press-logos { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; margin: 18px 0 14px; }
.press-logos figure { margin: 0; text-align: center; font-size: 14px; }
.press-logos img { margin: 0 auto 10px; }
.press-logos .glyph img { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-sizing: content-box; }
.press-video { width: 100%; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: #fff; margin-top: 8px; aspect-ratio: 16 / 9; }

/* 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); }

/* Waitlist (before sales open) */
.wl { display: flex; gap: 8px; max-width: 440px; margin: 16px auto 8px; position: relative; }
.wl input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.wl .btn { white-space: nowrap; }
.wl-msg { min-height: 1.4em; font-size: 15px; margin-top: 6px; }
.wl-fine { font-size: 13px; margin-top: 6px; }
@media (max-width: 480px) { .wl { flex-direction: column; } }
