/* gemtwin.app: one container, one left edge, one spacing scale (8 / 16 / 24 / 48 / 72). No web fonts. */
:root {
  --ink: #16161a; --muted: #6b6b73; --line: #e6e6ea; --bg: #fff; --surface: #f6f6f7;
  --accent: #16161a; --on-accent: #fff; --r: 14px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

.home { max-width: 1080px; margin: 0 auto; padding: 0 20px calc(32px + env(safe-area-inset-bottom)); }
.home h1, .home h2 { text-wrap: balance; letter-spacing: -0.02em; }
.home p { text-wrap: pretty; }
.home-nav { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.home-nav .logo { font-size: 18px; }
.home-nav nav { display: flex; align-items: center; gap: 16px; }
.home-nav nav > a:not(.btn) { text-decoration: none; color: var(--muted); }

/* ---- hero ---- */
.hero { display: grid; gap: 48px; align-items: center; padding: 48px 0 64px; }
.hero h1 { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.08; margin: 0 0 16px; }
.hero h1 > span { display: block; }
.hero .lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; max-width: 30em; }
.claim { display: flex; gap: 8px; max-width: 460px; }
.claim label { flex: 1; display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s; }
.claim label:focus-within { border-color: var(--ink); }
.claim span { color: var(--muted); white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-weight: 600; padding: 0 0 0 1px; background: transparent; }
.or { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; }
/* Continue with Threads: black, the Threads mark in white (Simple Icons, CC0). */
.btn-threads { gap: 10px; background: #000; border-color: #000; color: #fff; }
.btn-threads .th { width: 20px; height: 20px; fill: currentColor; }

/* Three example pages in 3D: staggered, tilted, the middle one in front. The group leans toward the pointer (main.js),
   each phone floats a little and springs up on hover. Reduced motion: no floating, no entrance, no lean; hover stays. */
.phones { position: relative; height: 600px; perspective: 1400px; }
.phones-in { top: 32px !important; }
.phones-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pslot { position: absolute; top: 0; left: 50%; width: 240px; transform: translate3d(calc(-50% + var(--x, 0px)), var(--y, 0px), var(--z, 0px)) rotate(var(--rot, 0deg)); animation: pop .9s var(--spring) both; animation-delay: var(--d, 0s); }
.pslot.mid { --rot: -2deg; --z: 40px; z-index: 3; }
.pslot.left { --x: -168px; --y: 54px; --rot: -9deg; --z: -40px; --d: .12s; z-index: 1; width: 200px; }
.pslot.right { --x: 172px; --y: 84px; --rot: 8deg; --z: -20px; --d: .24s; z-index: 2; width: 200px; }
.phone { margin: 0; padding: 10px 10px 14px; border-radius: 34px; background: var(--pbg); border: 8px solid #16161a; box-shadow: 0 30px 60px -12px rgba(22, 22, 26, .35), 0 8px 18px rgba(22, 22, 26, .12); display: grid; gap: 10px; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 6); transition: transform .5s var(--spring), box-shadow .5s; }
.pslot:hover .phone { transform: translateY(-14px) scale(1.04); box-shadow: 0 40px 70px -14px rgba(22, 22, 26, .4), 0 10px 22px rgba(22, 22, 26, .14); }
.phone img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.phone figcaption { display: grid; gap: 6px; color: var(--pink); text-align: center; }
.phone figcaption b { font-size: 16px; }
.phone figcaption span { font-size: 11px; opacity: .65; }
.phone .pb { font-style: normal; font-size: 12px; font-weight: 600; padding: 9px 0; border-radius: 12px; background: var(--pacc); color: var(--pon, #fff); }
.phone .pb.ghost { background: transparent; color: var(--pink); border: 1px solid currentColor; opacity: .8; }
.pslot.left figcaption span, .pslot.right figcaption span, .pslot.left .pb, .pslot.right .pb { display: none; }
.pslot.left figcaption { text-align: left; padding-left: 6px; }
.pslot.right figcaption { text-align: right; padding-right: 6px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pop { from { opacity: 0; scale: .86; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .pslot, .phone { animation: none; } .phones-in { transform: none; } }
/* Phones on a phone: the three pages in a row you swipe, the middle one centred first, the others peeking at the edges. */
@media (max-width: 639px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > * { min-width: 0; }
  .phones { height: auto; perspective: none; margin: 4px -20px 0; }
  .phones-in { position: static; inset: auto; top: 0 !important; transform: none !important; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 18px calc(50% - 112px) 30px; scrollbar-width: none; }
  .phones-in::-webkit-scrollbar { display: none; }
  .pslot, .pslot.left, .pslot.right, .pslot.extra { display: block; position: relative; left: auto; top: auto; flex: 0 0 224px; width: 224px; transform: none; animation: none; scroll-snap-align: center; scroll-snap-stop: always; }
  .pslot.left figcaption span, .pslot.right figcaption span, .pslot.left .pb, .pslot.right .pb { display: revert; }
  .tw-field { height: 600px; margin-inline: -20px; border-radius: 0; }
  .pslot.left figcaption, .pslot.right figcaption { text-align: center; padding: 0; }
  .phone-dots { display: flex; justify-content: center; gap: 8px; margin: -14px 0 4px; }
  .phone-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
  .phone-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9c9cf; transition: width .3s, background .3s; }
  .phone-dots button[aria-current="true"]::before { width: 20px; border-radius: 4px; background: #16161a; }
}
@media (min-width: 640px) { .phone-dots { display: none; } .pslot.extra { display: none; } }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; gap: 56px; padding: 88px 0 104px; } }

/* ---- sections ---- */
.sec-head { margin: 0 0 24px; }
.sec-head h2, .promise h2, .cta-end h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; margin: 0 0 8px; }
.sec-head p { margin: 0; max-width: 48em; }


.promise { background: var(--surface); border-radius: var(--r); padding: 32px 24px; margin: 0 0 48px; }
.promise ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.cta-end { text-align: center; padding: 24px 0 48px; }
.cta-end h2 { margin-bottom: 16px; }
.home-foot { text-align: center; border-top: 1px solid var(--line); padding-top: 24px; }
.home-foot p { margin: 8px auto 0; max-width: 46em; }

/* "Shopee": a hand-drawn underline in Shopee's orange-red, drawn once by Rough Notation (main.js). */
.brush { white-space: nowrap; }

/* Click a girl (hero phone or wall tile): the viewer slides up; swipe, arrows, ←/→, Esc. */
[data-view] { cursor: zoom-in; }
.viewer { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 12px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.viewer::backdrop { background: rgba(22, 22, 26, .55); backdrop-filter: blur(4px); }
.viewer[open] { animation: rise .55s var(--spring); }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; }
.viewer-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; }
.viewer-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; }
.viewer-slide img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100dvh - 190px); object-fit: cover; border-radius: 16px; }
.viewer-slide figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 600; }
.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.viewer-prev, .viewer-next { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .35s var(--spring); }
.viewer-prev:hover, .viewer-next:hover { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .viewer[open] { animation: none; } }
.nw { white-space: nowrap; }

/* ---- template gallery (/mau) and the strip on the home page ---- */
.home-nav .logo { color: inherit; text-decoration: none; font-weight: 700; }
.home-nav nav > a[aria-current="page"] { color: var(--ink); }
.mau-hero { padding: 32px 0 24px; max-width: 46em; }
.mau-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 12px; }
.mau-hero .lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.mau-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mau-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.mau-jump a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mau-sec { padding: 40px 0 16px; scroll-margin-top: 16px; }
.mau-h3 { font-size: 18px; margin: 28px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mau-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
.mau-grid li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mau-grid li[hidden] { display: none; }
.mau-grid b { font-size: 15px; margin-top: 6px; }
.mau-card, .strip a { display: block; padding: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .35); transition: transform .45s var(--spring), box-shadow .45s; }
.mau-card img, .strip img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; }
.mau-card:hover, .strip a:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 22px 40px -20px rgba(0, 0, 0, .45); }
.mau-card:focus-visible, .strip a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 640px) { .mau-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mau-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1060px) { .mau-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mau .viewer { width: min(440px, calc(100vw - 24px)); }
.mau .viewer-slide img { aspect-ratio: 390 / 844; object-fit: contain; width: 100%; height: auto; max-height: calc(100dvh - 150px); background: var(--surface); }
.mau .viewer-slide figcaption { bottom: 10px; }

.mau-teaser { padding: 24px 0 48px; }
.strip { list-style: none; margin: 0 -20px; padding: 4px 20px 20px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 min(42vw, 190px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.strip a { cursor: pointer; }
.strip span { font-size: 13px; color: var(--muted); }
.mau-teaser .more { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 0; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .mau-card, .strip a { transition: none; } .mau-card:hover, .strip a:hover { transform: none; } }

/* ---- field of templates with clouds (home) ---- */
.center { text-align: center; }
.sec-head.center p { margin-inline: auto; }
.field-sec { padding: 40px 0 56px; position: relative; }
.field-sec .more { display: flex; justify-content: center; margin: 8px 0 8px; position: relative; z-index: 3; }
.tw-field { height: clamp(420px, 46vw, 620px); margin: 8px -20px 0; overflow: hidden; border-radius: 28px;
  background: linear-gradient(180deg, #dfeaf6 0%, #eef4fb 46%, #fbfcfe 100%); }
.tw-field .hm-plane { z-index: 1; }
/* clouds: the composite's layers, placed by a wrapper; far ones sit behind the field, near ones drift in front of it */
.tw-clouds { position: absolute; inset: 0; pointer-events: none; }
.tw-clouds.back { z-index: 0; opacity: .75; }
.tw-clouds.front { z-index: 2; }
.tw-cloud { position: absolute; width: 500px; height: 275px; transform-origin: 0 0; transform: scale(var(--s, 1)); animation: twDrift var(--d, 100s) linear infinite alternate; will-change: transform; }
.tw-cloud .cloud { top: -300px; left: -300px; }
.tw-clouds.back .tw-cloud { filter: blur(2px); }
@keyframes twDrift { from { transform: translateX(-4%) scale(var(--s, 1)); } to { transform: translateX(10%) scale(var(--s, 1)); } }
.hm-paused .tw-cloud { animation-play-state: paused; }
/* GemMotion rail band */
.band-rail { padding: 32px 0 40px; border-radius: 28px; background: var(--gm-tint, #f6f6f7); transition: background-color .6s ease; }
.band-rail .sec-head { padding: 0 16px; }
@media (max-width: 640px) { .tw-field { border-radius: 20px; margin-inline: -12px; } }
/* Reduced motion: clouds stop drifting (travel); the light and the sheen-less still field stay. */
@media (prefers-reduced-motion: reduce) { .tw-cloud { animation: none; } }
/* The name box must shrink on a 390 px phone (the input's intrinsic width pushed "Tạo trang" off screen). */
.claim { min-width: 0; }
.claim label { min-width: 0; }
.claim input { min-width: 0; width: 100%; }
.claim .btn { flex: none; }

/* The cloud field has no frame: the sky fades into the page at the top and bottom (Chris 20/11, "không gian mở"). */
.tw-field { border-radius: 0; background: linear-gradient(180deg, #fff 0%, #e4eef8 22%, #edf3fa 70%, #fff 100%); }
@media (min-width: 640px) { .tw-field { margin-inline: calc(50% - 50vw); } }
body { overflow-x: clip; } /* the full-bleed field is 100vw wide, scrollbar included */

/* ---- "Hoa hồng của bạn là của bạn": a big 100% in Shopee orange, circled by hand (Rough Notation, like the hero). ---- */
.promise { display: grid; gap: 24px; align-items: center; padding: 40px 28px; border-radius: 28px; background: #fff3ee; border: 0; }
.promise-big { text-align: center; display: grid; justify-items: center; gap: 6px; }
.promise-num { display: inline-block; padding: 10px 18px; }
.promise-num .pct { font-size: clamp(64px, 12vw, 112px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #ee4d2d; }
.promise-big p { margin: 0; max-width: 16em; color: #6b3a2c; font-size: 15px; }
.promise-body h2 { margin: 0 0 12px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.promise .pi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #d73f20; box-shadow: 0 6px 16px -8px rgba(238, 77, 45, .55); }
@media (min-width: 760px) { .promise { grid-template-columns: 0.9fr 1.1fr; padding: 48px 44px; gap: 40px; } }
/* phone: the cloud field taller (this rule must come after the base .tw-field rules) */
@media (max-width: 639px) { .tw-field { height: 600px; margin-inline: -20px; } }

/* ---- the field, livelier (Chris 20/11: it read like a memorial) ----
   A bright daytime sky with a warm sun, white puffy clouds (GEMTWIN: the composite's dark front layer is left out and the
   mid layer tinted sky-blue, so clouds are lit from above instead of storm-grey), bright pages only, and little tags
   that pop up on cards. */
.tw-field { background:
  radial-gradient(60% 50% at 82% 8%, rgba(255, 226, 150, .55), transparent 70%),
  linear-gradient(180deg, #fff 0%, #bfe3ff 16%, #d9efff 52%, #f3faff 82%, #fff 100%); }
.tw-sun { position: absolute; right: 9%; top: 7%; width: 110px; height: 110px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, #fff6d6 0%, #ffe39a 45%, rgba(255, 214, 120, 0) 72%); filter: blur(1px); }
.tw-cloud .cloud-front { display: none; }
.tw-cloud .cloud-mid { box-shadow: 300px 340px 70px -60px rgba(176, 210, 240, .55); }
.tw-clouds.back { opacity: .9; }
.tw-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tw-tag { position: absolute; transform: translate(-50%, -100%) scale(.6); opacity: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: #fff; color: #16161a; font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(22, 22, 26, .35); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.tw-tag i { width: 8px; height: 8px; border-radius: 50%; background: #ee4d2d; }
.tw-tag.on { transform: translate(-50%, -100%) scale(1); opacity: 1; }
.tw-tag.t2 i { background: #2f80ed; } .tw-tag.t3 i { background: #1f9d55; } .tw-tag.t4 i { background: #b44ce0; }

/* ---- 20/11 late: back to a neutral, sharper field; more air between sections; the phone menu ---- */
/* Neutral sky (Chris: the sun and warm sky looked "quê", the neutral look is the elegant one); two light clouds at the
   lower corners only, so the pages stay sharp. */
.tw-field { background: linear-gradient(180deg, #fff 0%, #f3f4f6 18%, #f1f3f6 70%, #fff 100%); }
.tw-field .hm-plane { -webkit-mask-image: radial-gradient(140% 150% at 50% 100%, #000 64%, transparent 92%); mask-image: radial-gradient(140% 150% at 50% 100%, #000 64%, transparent 92%); }
.tw-clouds.front { opacity: .9; }
.tw-cloud .cloud-mid { box-shadow: 300px 340px 70px -60px rgba(200, 206, 214, .5); }
.tw-tag { box-shadow: 0 8px 22px -10px rgba(22, 22, 26, .3); }
.tw-tag i, .tw-tag.t2 i, .tw-tag.t3 i, .tw-tag.t4 i { background: #16161a; }
.tw-tag:nth-child(3n) i { background: #ee4d2d; }
/* more air between sections; the reset sits in :where() so the per-section margins below win over it */
:where(.home > section) { margin-block: 0; }
.hero { padding: 56px 0 88px; }
.band-rail { margin: 112px 0 0; }
.field-sec { padding: 112px 0 48px; }
.flow4 { margin: 96px 0 0; }
.promise { margin: 112px 0 0; }
.cta-end { padding: 112px 0 72px; }
@media (max-width: 639px) { .hero { padding: 32px 0 56px; } .field-sec { padding-top: 80px; } .flow4 { margin-top: 72px; } .band-rail { margin-top: 80px; } .promise { margin-top: 80px; } .cta-end { padding: 80px 0 56px; } }

/* the header: logo mark + word; on phones a menu button opens the links */
.home-nav .logo { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -0.01em; }
.home-nav .logo img { width: 28px; height: 28px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 639px) {
  .home-nav { position: relative; gap: 8px; }
  .home-nav .nav-cta { margin-left: auto; }
  .nav-toggle { display: grid; }
  .home-nav nav { display: none; position: absolute; z-index: 50; top: 64px; left: -8px; right: -8px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(22, 22, 26, .35); }
  .home-nav.open nav { display: flex; }
  .home-nav nav > a:not(.btn) { min-height: 52px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; font-size: 17px; color: var(--ink); }
  .home-nav nav > a:not(.btn):hover { background: var(--surface); }
  .home-nav nav .btn { margin-top: 6px; }
}
@media (min-width: 640px) { .home-nav .nav-cta { display: none; } }

/* ---- guide (/huong-dan) and FAQ (/hoi-dap) ---- */
.g-hero { padding: 40px 0 8px; max-width: 46em; }
.g-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 12px; }
.g-hero .lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
.g-jump a { text-decoration: none; }
.g-step { display: grid; gap: 28px; align-items: center; padding: 72px 0 0; scroll-margin-top: 16px; }
.g-num { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #ee4d2d; margin-bottom: 6px; }
.g-text h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 14px; }
.g-text ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.6; color: #2b2b31; }
.g-figs { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.g-phone { margin: 0; width: min(270px, 70vw); border-radius: 36px; border: 8px solid #16161a; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -24px rgba(22, 22, 26, .35); }
.g-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.g-desk { margin: 0; width: 100%; max-width: 640px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -28px rgba(22, 22, 26, .3); }
.g-desk::before { content: ""; display: block; height: 22px; background: #f2f2f4; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at 12px 11px, #ff5f57 4px, transparent 4.5px), radial-gradient(circle at 26px 11px, #febc2e 4px, transparent 4.5px), radial-gradient(circle at 40px 11px, #28c840 4px, transparent 4.5px); }
.g-desk img { display: block; width: 100%; height: auto; }
@media (min-width: 860px) {
  .g-step { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 104px; }
  .g-step:nth-of-type(even) .g-text { order: 2; }
  .g-step.wide { grid-template-columns: 1fr; }
  .g-step.wide .g-text { max-width: 40em; }
}
.faq-group { padding: 56px 0 0; scroll-margin-top: 16px; }
.faq-group h2 { font-size: 22px; margin: 0 0 14px; }
.faq-group details { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; background: #fff; margin: 0 0 10px; }
.faq-group summary { min-height: 56px; display: flex; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-size: 22px; color: var(--muted); }
.faq-group details[open] summary::after { content: "–"; }
.faq-group details p { margin: 0 0 16px; line-height: 1.6; color: #2b2b31; }

/* Meet Twin: the mascot (a plush cat with the GemTwin gem) and what it does; "sắp có" marks what is not live yet. */
.meet-twin { display: grid; gap: 24px; align-items: center; padding: 32px 24px; border-radius: var(--r); background: linear-gradient(160deg, #fff6fa 0%, #f6f2ff 50%, #eef8f4 100%); }
@media (min-width: 760px) { .meet-twin { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: 40px; } }
.twin-art { display: grid; justify-items: center; gap: 8px; }
.twin-cat { width: min(320px, 80%); height: auto; }
.twin-say { margin: 0; font-size: 14px; background: #fff; border-radius: 999px; padding: 8px 14px; box-shadow: 0 4px 14px rgba(120, 90, 140, .12); }
.twin-copy h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; margin: 0 0 8px; }
.twin-copy > p { margin: 0 0 16px; }
.twin-does { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.twin-does li { padding-left: 28px; position: relative; }
.twin-does li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #f7b7d2, #a9bdf5); }
.twin-does span { display: block; margin-top: 2px; color: var(--muted); line-height: 1.5; }
.twin-does em, .soon em { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-left: 6px; white-space: nowrap; vertical-align: 2px; }
/* Twin blinks even with Reduce motion on (a blink is not movement across the screen); only the floating bob stops. */
.twin-eyes { animation: twinBlink 5s infinite; transform-origin: 100px 104px; }
@keyframes twinBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: no-preference) { .twin-bob { animation: twinBob 3.4s ease-in-out infinite; } @keyframes twinBob { 50% { transform: translateY(-5px); } } }
.meet-twin { margin: 96px 0 0; }
@media (max-width: 639px) { .meet-twin { margin-top: 80px; padding: 28px 20px; } }
/* The first action in four steps (Chris 21/11: one thing to do first, not every feature at once). */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: f; }
@media (min-width: 640px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { counter-increment: f; position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; background: #fff; transition: transform .45s var(--spring), border-color .3s; }
.flow li:hover { transform: translateY(-4px); border-color: #cfcfd6; }
.flow li::before { content: counter(f); position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
@media (min-width: 960px) { .flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -13px; top: 42px; width: 8px; height: 8px; border-top: 2px solid #cfcfd6; border-right: 2px solid #cfcfd6; transform: rotate(45deg); } }
.flow .fi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg, #fff6fa, #f1efff 55%, #eef8f4); color: var(--ink); margin-bottom: 14px; }
.flow .fi svg { width: 24px; height: 24px; }
.flow b { display: block; font-size: 18px; margin-bottom: 6px; }
.flow p { margin: 0; color: var(--muted); line-height: 1.55; }
.soon { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.soon em { margin: 0 6px 0 0; }
