/* Landing vietnoteapp.com: phong cách sticker, viền đen dày, bóng lệch. Trang pháp lý dùng site.css. */
:root {
  --blue: #3d4ff5;
  --blue-deep: #1e2fb8;
  --yellow: #ffd23f;
  --purple: #7c4dff;
  --purple-deep: #5b3fe0;
  --ink: #15172b;
  --text-2: #3a3f5c;
  --bg: #f6f7ff;
  --tint: #e6e9ff;
  --lilac: #ede6ff;
  --paper: #fffdf6;
  --display: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  --hand: 'Playpen Sans', 'Be Vietnam Pro', cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
body.vi .l-en, body:not(.vi) .l-vi { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
.hand { font-family: var(--hand); font-weight: 500; }
.kicker { font-family: var(--hand); font-size: 22px; color: var(--purple); }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-weight: 700; font-size: 18px; text-decoration: none; padding: 16px 28px;
  border-radius: 18px; border: 2px solid var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:hover { color: #fff; box-shadow: 7px 7px 0 var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 5px 5px 0 var(--blue); }
.btn-dark:hover { color: #fff; box-shadow: 7px 7px 0 var(--blue); }

/* Header */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; display: inline-flex; align-items: center; gap: 3px; line-height: 1; }
.wordmark b { background: var(--yellow); color: var(--blue-deep); border-radius: 9px; padding: 4px 8px 2px; transform: rotate(-3deg); font-weight: 800; }
.nav { margin-left: auto; display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; min-height: 36px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.top .open { background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 14px; box-shadow: 3px 3px 0 var(--yellow); }
.top .open:hover { color: #fff; }

/* Hero */
.hero { padding: 48px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.hero h1 { font-size: 72px; }
.hero h1 .mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); }
.hero h1 .blue { color: var(--blue); }
.hero h1 .hand { color: var(--purple); font-weight: 600; font-size: .9em; }
.lead { margin: 0; font-size: 20px; color: var(--text-2); max-width: 34em; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.art { position: relative; height: 520px; }
.art > * { position: absolute; }
.art .slab { inset: 30px 10px 20px 30px; background: var(--blue); border-radius: 40px; transform: rotate(4deg); }
.card { background: #fff; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); }
.typed { left: 0; top: 40px; width: 300px; padding: 24px; transform: rotate(-5deg); display: flex; flex-direction: column; gap: 12px; }
.typed .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--purple); }
.typed .title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.bar { height: 10px; border-radius: 5px; background: #d9ddfb; }
.bar.y { background: var(--yellow); }
.todo { display: flex; gap: 8px; align-items: center; }
.todo i { width: 18px; height: 18px; border-radius: 5px; background: var(--blue); flex: none; }
.todo i.off { background: transparent; border: 2px solid var(--blue); }
.handcard { right: 0; top: 130px; width: 330px; height: 330px; padding: 26px; transform: rotate(6deg);
  background-color: var(--paper); background-image: repeating-linear-gradient(transparent 0 33px, #dce1f5 33px 35px); }
.handcard p { margin: 0; font-family: var(--hand); color: #2a2e8f; }
.handcard .big { font-size: 28px; line-height: 1.15; }
.handcard .hl { font-size: 22px; margin-top: 8px; }
.handcard .hl span { background: rgba(255, 210, 63, .6); padding: 0 4px; }
.handcard svg { margin-top: 14px; }
.art .pen { right: 18px; top: 330px; transform: rotate(-18deg); }
.sticker { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.sticker.y { background: var(--yellow); }
.art .s1 { left: 40px; bottom: 30px; transform: rotate(-4deg); }
.art .s2 { right: 40px; top: 70px; transform: rotate(5deg); }

/* Dải chữ */
.ticker { background: var(--ink); color: #fff; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -20px; }
.ticker ul { display: flex; gap: 22px 40px; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0 20px; list-style: none; font-family: var(--display); font-weight: 700; font-size: 24px; }
.ticker li + li::before { content: "✦"; color: var(--yellow); margin-right: 40px; }

/* Tiêu đề section */
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.section-head h2 { font-size: 52px; }

/* Tính năng */
.features { padding: 120px 0 100px; }
.features .wrap { display: flex; flex-direction: column; gap: 48px; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { border: 2px solid var(--ink); border-radius: 28px; padding: 32px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 12px; background: #fff; }
.tile h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; }
.tile p { margin: 0; font-size: 16px; color: var(--text-2); }
.tile.span4 { grid-column: span 4; }
.tile.span2 { grid-column: span 2; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: none; }
.tile.wide > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.tile.blue { background: var(--blue); color: #fff; min-height: 260px; }
.tile.blue h3 { font-size: 32px; }
.tile.blue p { color: #dde2ff; font-size: 17px; max-width: 34em; }
.tile.yellow { background: var(--yellow); }
.tile.yellow p { color: #3a2f00; }
.tile.lilac { background: var(--lilac); }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark p { color: #c9cce0; font-size: 17px; }

/* Hai tay */
.split { padding: 40px 0 120px; }
.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-art { position: relative; height: 380px; }
.split-art > * { position: absolute; }
.split-art .doc { left: 0; top: 0; width: 62%; height: 300px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 6px 6px 0 var(--blue); }
.split-art .doc strong { font-family: var(--display); font-size: 20px; }
.split-art .block { height: 64px; border-radius: 12px; background: #f1f3ff; border: 2px dashed #b9c1f5; }
.split-art .sketch { right: 0; bottom: 0; width: 58%; height: 280px; padding: 24px; transform: rotate(3deg); box-shadow: 6px 6px 0 var(--purple);
  background-color: var(--paper); background-image: radial-gradient(#c9cfea 1.5px, transparent 1.5px); background-size: 22px 22px; }
.split-art .sketch p { margin: 0; font-family: var(--hand); font-size: 22px; color: #2a2e8f; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split-copy h2 { font-size: 48px; }
.split-copy p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text-2); }

/* Quyền riêng tư */
.privacy { padding: 100px 0; background: var(--tint); border-block: 2px solid var(--ink); }
.privacy .wrap { display: flex; flex-direction: column; gap: 40px; }
.privacy .kicker { color: var(--purple-deep); }
.privacy h2 { font-size: 48px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise { background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.promise h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.15; }
.promise p { margin: 0; font-size: 16px; color: var(--text-2); }
.privacy .more { align-self: flex-start; font-weight: 700; }

/* CTA cuối */
.final { padding: 120px 0; }
.final-box { background: var(--yellow); border: 2px solid var(--ink); border-radius: 40px; box-shadow: 10px 10px 0 var(--ink); padding: 72px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.final-box h2 { font-size: 60px; max-width: 14em; }
.final-box p { margin: 0; font-size: 19px; color: #3a2f00; max-width: 32em; }
.final-box .ctas { justify-content: center; }

/* Footer */
.bottom { padding: 36px 0 48px; border-top: 2px solid var(--ink); background: #fff; }
.bottom .wrap { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; font-size: 15px; color: var(--text-2); }
.bottom .name { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.bottom .spacer { flex: 1; }
.bottom a { color: var(--text-2); }

/* Nội dung tiếng Việt dài hơn: gạch đầu dòng trong ô, dòng nền tảng, câu chốt */
.tile ul { margin: 0; padding-left: 1.2em; font-size: 16px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.tile.blue ul { color: #dde2ff; font-size: 17px; }
.tile.yellow ul { color: #3a2f00; }
.platforms { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.split-copy .closer { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }
.section-head > p { margin: 0; font-size: 18px; color: var(--text-2); }
.final-box .tagline { font-family: var(--hand); font-size: 22px; color: var(--ink); }

/* Video giới thiệu: ảnh bìa + nút phát, bấm mới nạp iframe YouTube */
.demo { padding: 96px 0 0; }
.demo .wrap { display: flex; flex-direction: column; gap: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: #fff; }
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; margin: 0; background: none; cursor: pointer; display: block; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: grid; place-items: center; transition: transform .12s ease; }
.video-play:hover .video-icon, .video-play:focus-visible .video-icon { transform: translate(-50%, -50%) scale(1.08); }
.video-note { margin: 0; font-size: 14px; color: var(--text-2); }

@media (max-width: 960px) {
  .hero .wrap, .split .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 52px; }
  .section-head h2, .split-copy h2, .privacy h2 { font-size: 38px; }
  .final-box h2 { font-size: 42px; }
  .bento, .trio { grid-template-columns: minmax(0, 1fr); }
  .tile.span4, .tile.span2 { grid-column: auto; }
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .demo { padding-top: 64px; }
  .video { border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .video-icon { width: 64px; height: 64px; }
  .wrap { padding: 0 20px; }
  .top .open { display: none; }
  .art { height: 460px; }
  .typed { width: 250px; }
  .handcard { width: 260px; height: 290px; top: 150px; }
  .art .pen { display: none; }
  .art .s2 { top: auto; bottom: 90px; right: 8px; }
  .final-box { padding: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
