/* Frogget — landing page. Màu và chữ lấy đúng từ app (lib/app/theme/tokens.dart). */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --leaf: #17824f;
  --leaf-deep: #126f44;
  --leaf-text: #126c41;
  --frog: #7ad7a0;
  --frog-shade: #4dbb7e;
  --pad: #34a868;
  --mist: #eaf7ef;
  --mist-deep: #ddf1e4;
  --surface: #f3f8f4;
  --border: #e6eee8;
  --moss: #12301f;
  --muted: #55685c;
  --lotus: #ffa9c1;
  --lotus-deep: #ff8fae;
  --lotus-glow: #ffe3ea;
  --sun: #ffd166;
  --white: #ffffff;
  --radius-card: 26px;
  --radius-hero: 32px;
  --shadow-card: 0 10px 30px rgba(18, 48, 31, 0.08);
  --shadow-lift: 0 18px 50px rgba(18, 48, 31, 0.16);
  --max: 1140px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--moss);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 650;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

p,
figure {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--lotus-deep);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--moss);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(18, 48, 31, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moss);
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(18, 48, 31, 0.12);
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--mist);
  color: var(--leaf-text);
}
.nav-cta {
  margin-left: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(23, 130, 79, 0.28);
}
.btn-primary:hover {
  background: var(--leaf-deep);
  transform: translateY(-1px);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 182px;
  height: 58px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--moss);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 48, 31, 0.22);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.store-btn:hover {
  background: #0b2215;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 48, 31, 0.28);
}
.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}
.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-btn small,
.store-btn strong {
  white-space: nowrap;
}
.store-btn small {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.82;
  letter-spacing: 0.01em;
}
.store-btn strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.store-btn.is-soon {
  cursor: default;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 92%);
  padding: 56px 0 84px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}
.hero-grid > *,
.showcase > * {
  min-width: 0;
}
.eyebrow {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--leaf-text);
  font-weight: 900;
  font-size: 14px;
}
.eyebrow img {
  width: 22px;
  height: 22px;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 66px);
  overflow-wrap: break-word;
}
/* Gạch chân hồng sen dưới cụm chữ nhấn, vẫn xuống dòng được trên màn hẹp. */
.hero h1 em {
  font-style: normal;
  color: var(--leaf);
  background: linear-gradient(
    transparent 64%,
    var(--lotus-glow) 64%,
    var(--lotus-glow) 90%,
    transparent 90%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.04em;
}
.hero .lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
  font-weight: 700;
}
.hero .store-buttons {
  margin-top: 28px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 800;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.facts svg {
  width: 18px;
  height: 18px;
  color: var(--leaf);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}
.hero-visual .phone {
  width: min(300px, 74vw);
  transform: rotate(3deg);
  z-index: 2;
}
.hero-perch {
  position: absolute;
  left: -6%;
  bottom: -6px;
  width: 46%;
  z-index: 3;
  filter: drop-shadow(0 14px 18px rgba(18, 48, 31, 0.18));
  animation: bob 5.5s ease-in-out infinite;
}
.hero-lotus {
  position: absolute;
  right: 0;
  top: 8%;
  width: 82px;
  z-index: 1;
  transform: rotate(10deg);
}
.hero-bubble {
  position: absolute;
  right: -6%;
  bottom: 22%;
  z-index: 4;
  padding: 12px 16px;
  max-width: 210px;
  background: var(--white);
  border-radius: 20px 20px 20px 6px;
  box-shadow: var(--shadow-card);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}
.hero-bubble b {
  color: var(--leaf-text);
}

/* Lá sen mờ trang trí nền. */
.pad {
  position: absolute;
  border-radius: 50%;
  background: var(--mist-deep);
  pointer-events: none;
}
.pad::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--notch, 210deg), var(--white) 0 26deg, transparent 26deg);
  opacity: var(--notch-opacity, 1);
}
.hero .pad-1 {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  --notch: 200deg;
  --notch-opacity: 0.9;
}
.hero .pad-2 {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: 40px;
  --notch: 20deg;
  --notch-opacity: 0.9;
}

/* Khung máy vẽ bằng CSS quanh ảnh màn hình thật của app. */
.phone {
  position: relative;
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 46px;
  background: #0f2418;
  box-shadow:
    0 0 0 2px #2b4537 inset,
    var(--shadow-lift);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  background: var(--white);
}
.phone::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  background: #0f2418;
  border-radius: 999px;
  z-index: 1;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--leaf);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 46px);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18.5px;
}

/* Ộp và các cảm xúc. */
.moods {
  padding: 72px 0;
  background: var(--white);
}
.mood-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mood {
  padding: 22px 14px 20px;
  text-align: center;
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: transform 0.2s, background 0.2s;
}
.mood:hover {
  transform: translateY(-4px);
  background: var(--mist);
}
.mood img {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
}
.mood strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
}
.mood span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Lưới tính năng. */
.features {
  background: var(--mist);
  position: relative;
  overflow: hidden;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-card {
  padding: 26px 24px 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.feature-card .icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--icon-bg, var(--mist));
  color: var(--moss);
}
.feature-card .icon svg {
  width: 26px;
  height: 26px;
}
.feature-card h3 {
  font-size: 20px;
}
.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.tint-food { --icon-bg: #fff4d6; }
.tint-pink { --icon-bg: var(--lotus-glow); }
.tint-blue { --icon-bg: #e5f3fb; }
.tint-lilac { --icon-bg: #f1eafb; }
.tint-mint { --icon-bg: #e3f6ea; }
.tint-peach { --icon-bg: #fff0e5; }

/* Hàng giới thiệu: ảnh màn hình + chữ, xen kẽ trái phải. */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 40px 0;
}
.showcase + .showcase {
  margin-top: 40px;
}
.showcase.is-flipped .showcase-media {
  order: 2;
}
.showcase-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 36px 0;
}
.showcase-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 92%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--glow, var(--mist));
  z-index: -1;
}
.showcase-media .phone {
  width: min(290px, 72vw);
}
.showcase-media .deco {
  position: absolute;
  width: 92px;
  right: 12%;
  bottom: 8%;
  filter: drop-shadow(0 8px 10px rgba(18, 48, 31, 0.14));
}
.showcase.is-flipped .showcase-media .deco {
  right: auto;
  left: 12%;
}
.showcase-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showcase-copy h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3.8vw, 42px);
}
.showcase-copy > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18.5px;
}
.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 36px;
  font-weight: 750;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mist)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23126C41' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* Dải ảnh màn hình cuộn ngang. */
.gallery {
  background: linear-gradient(180deg, var(--white), var(--mist));
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 10px var(--gutter) 34px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1180px) {
  .gallery-track {
    padding-left: calc((100vw - var(--max)) / 2 + var(--gutter));
    padding-right: calc((100vw - var(--max)) / 2 + var(--gutter));
  }
}
.gallery-track li {
  flex: none;
  scroll-snap-align: center;
  text-align: center;
}
.gallery-track .phone {
  width: 220px;
  border-radius: 36px;
  padding: 7px;
}
.gallery-track .phone img {
  border-radius: 30px;
}
.gallery-track .phone::before {
  top: 14px;
  height: 16px;
}
.gallery-track figcaption {
  margin-top: 14px;
  font-weight: 900;
  font-size: 15.5px;
}
.gallery-hint {
  margin-top: -10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

/* Riêng tư. */
.privacy-band {
  position: relative;
  overflow: hidden;
  background: var(--leaf);
  color: var(--white);
  border-radius: var(--radius-hero);
  padding: 64px 56px;
}
.privacy-band .pad {
  background: var(--leaf-deep);
}
.privacy-band .pad-1 {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -130px;
  --notch: 230deg;
  --notch-opacity: 0;
}
.privacy-band .pad-2 {
  width: 220px;
  height: 220px;
  right: 140px;
  bottom: -150px;
  --notch-opacity: 0;
}
.privacy-band > :not(.pad) {
  position: relative;
}
.privacy-band h2 {
  font-size: clamp(30px, 4vw, 44px);
  max-width: 14em;
}
.privacy-band > p {
  margin-top: 12px;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18.5px;
}
.privacy-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.privacy-points li {
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.privacy-points svg {
  width: 26px;
  height: 26px;
  color: var(--frog);
}
.privacy-points strong {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 900;
}
.privacy-points span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  line-height: 1.45;
}

/* Câu hỏi thường gặp. */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-list details {
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: background 0.2s;
}
.faq-list details[open] {
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.faq-list summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 17.5px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--mist)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23126C41' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Lời mời cuối trang. */
.cta {
  text-align: center;
  padding: 40px 0 110px;
}
.cta-card {
  position: relative;
  padding: 72px 24px 64px;
  border-radius: var(--radius-hero);
  background: linear-gradient(180deg, var(--mist), var(--lotus-glow));
  overflow: hidden;
}
.cta-card img.frog {
  width: 128px;
  height: 128px;
  margin: 0 auto 8px;
  animation: bob 4.5s ease-in-out infinite;
}
.cta-card h2 {
  font-size: clamp(32px, 4.6vw, 48px);
}
.cta-card p {
  margin: 12px auto 0;
  max-width: 30em;
  color: var(--muted);
  font-size: 18.5px;
}
.cta-card .store-buttons {
  justify-content: center;
  margin-top: 28px;
}
.cta-card .lotus-l,
.cta-card .lotus-r {
  position: absolute;
  width: 96px;
  bottom: 18px;
}
.cta-card .lotus-l {
  left: 5%;
}
.cta-card .lotus-r {
  right: 6%;
  width: 70px;
  bottom: 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-grid .brand {
  font-size: 19px;
}
.footer-grid .brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--leaf-text);
  text-decoration: underline;
}
.footer-note {
  width: 100%;
  margin-top: 6px;
  font-size: 14px;
}

/* ---------- Trang pháp lý ---------- */

.legal-hero {
  background: linear-gradient(180deg, var(--mist), var(--white));
  padding: 64px 0 36px;
  text-align: center;
}
.legal-hero img {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
}
.legal-hero p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px var(--gutter) 96px;
}
.legal .summary {
  padding: 20px 22px;
  margin-bottom: 30px;
  border-radius: 20px;
  background: var(--mist);
  font-weight: 800;
}
.legal h2 {
  margin: 38px 0 10px;
  font-size: 24px;
}
.legal h3 {
  margin: 24px 0 6px;
  font-size: 18.5px;
}
.legal p,
.legal li {
  color: #2c4436;
  font-weight: 600;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal .caps {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.01em;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px var(--gutter);
}
.not-found img {
  width: 150px;
  margin: 0 auto 10px;
}
.not-found h1 {
  font-size: 40px;
}
.not-found p {
  margin: 10px 0 24px;
  color: var(--muted);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 13px 20px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px);
  border-radius: 18px;
  background: var(--moss);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Chuyển động ---------- */

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Màn vừa và nhỏ ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .store-buttons,
  .facts {
    justify-content: center;
  }
  .hero-visual {
    min-height: 0;
    padding-bottom: 30px;
  }
  .hero-perch {
    left: 2%;
    width: 46%;
  }
  .hero-bubble {
    right: 0;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mood-row {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .mood {
    scroll-snap-align: start;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .showcase.is-flipped .showcase-media {
    order: 0;
  }
  .showcase .ticks {
    text-align: left;
    max-width: 30em;
    margin-left: auto;
    margin-right: auto;
  }
  .privacy-band {
    padding: 52px 28px;
  }
  .privacy-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .nav {
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
    height: 40px;
    padding: 0 16px;
  }
  .hero {
    padding: 36px 0 64px;
  }
  .hero .lead {
    font-size: 17.5px;
  }
  .store-buttons {
    justify-content: center;
  }
  .store-btn {
    min-width: 0;
    flex: 1 1 150px;
    max-width: 220px;
    height: 54px;
    gap: 9px;
    padding: 0 14px 0 12px;
    justify-content: center;
  }
  .store-btn svg {
    width: 22px;
    height: 22px;
  }
  .store-btn small {
    font-size: 10.5px;
  }
  .store-btn strong {
    font-size: 16.5px;
  }
  .hero-bubble {
    display: none;
  }
  .hero-lotus {
    width: 60px;
  }
  .section {
    padding: 72px 0;
  }
  .showcase-media {
    padding: 20px 0;
  }
  .showcase-media .phone {
    width: min(250px, 68vw);
  }
  .showcase-media .deco,
  .showcase.is-flipped .showcase-media .deco {
    width: 66px;
    left: auto;
    right: 2%;
    bottom: 4%;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .privacy-band {
    border-radius: 24px;
    padding: 44px 22px;
  }
  .privacy-points {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
