@layer base, components;

/* Token màu, khoảng cách, bo góc, font: chép từ app (sunn-v/looklab, src/styles/tokens.css, sinh từ design/tokens.json).
   Đổi bảng màu ở app thì chép lại khối này. */
:root {
  --paper: #f3efe7;
  --paper-raised: #fdfbf7;
  --paper-tint: #eae5db;
  --shade: #e1dbcf;
  --ink: #1a1b21;
  --ink-muted: #4f505a;
  --line: #e6e0d5;
  --line-control: #76767f;
  --primary: #2448b8;
  --on-primary: #ffffff;
  --primary-container: #dde4fb;
  --on-primary-container: #0e225f;
  --glass: #fdfbf7c7;
  --glass-edge: #1a1b2114;
  --inuse: #3f6f52;
  --on-inuse: #ffffff;
  --inuse-soft: #dcebdd;
  --inuse-ink: #2a5238;
  --inuse-track: #b3d2ba;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --on-danger: #ffffff;
  --scrim: #1a1b2166;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --stroke-hair: 1px;
  --stroke-control: 1px;
  --stroke-strong: 2px;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --font-display:
    ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI',
    Roboto, 'Helvetica Neue', sans-serif;
  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue',
    'Noto Sans', sans-serif;
  --font-num:
    ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-float: 0 1px 2px rgba(26, 27, 33, 0.06), 0 6px 16px rgba(26, 27, 33, 0.08);
}

/* Style component chép từ app (sunn-v/looklab, src/styles/components.css): Button, Tag, ItemCard, Placeholder, Countdown. Chỉ dùng biến token. */
@layer components {
  /* focus: one rule for every control */
  .sh-btn:focus-visible,
  .sh-chip:focus-visible,
  .sh-tab:focus-visible,
  .sh-card:focus-visible,
  .sh-field input:focus-visible,
  .sh-field textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  /* Icon */
  .sh-icon {
    display: block;
    flex-shrink: 0;
  }

  /* Button: pill */
  .sh-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 48px;
    padding: 0 var(--space-6);
    border: var(--stroke-control) solid var(--line-control);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--primary);
    font: 600 15px/1 var(--font-sans);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
      background-color 0.2s ease-out,
      border-color 0.2s ease-out;
  }
  .sh-btn .sh-icon {
    margin-left: -4px;
  }
  .sh-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
  }
  .sh-btn-tonal {
    background: var(--primary-container);
    border-color: var(--primary-container);
    color: var(--on-primary-container);
  }
  .sh-btn-signal {
    background: var(--inuse);
    border-color: var(--inuse);
    color: var(--on-inuse);
  }
  .sh-btn-return {
    background: var(--inuse-soft);
    border-color: var(--inuse-soft);
    color: var(--inuse-ink);
  }
  .sh-btn-ghost {
    background: transparent;
    border-color: transparent;
  }
  .sh-btn-danger {
    background: var(--danger-soft);
    border-color: var(--danger-soft);
    color: var(--danger);
  }
  .sh-btn-danger-solid {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--on-danger);
  }
  .sh-btn-sm {
    height: 44px;
    padding: 0 var(--space-5);
    font-size: 14px;
  }
  .sh-btn-block {
    display: flex;
    width: 100%;
  }
  .sh-btn:disabled,
  .sh-btn[aria-disabled='true'] {
    background: var(--shade);
    border-color: var(--shade);
    color: var(--ink-muted);
    cursor: not-allowed;
  }

  /* Tag: pill hang tag */
  .sh-tag {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px 0 10px;
    border-radius: var(--radius-full);
    background: var(--shade);
    color: var(--ink);
    font: 600 12px/1 var(--font-sans);
    white-space: nowrap;
  }
  .sh-tag-eyelet {
    width: 6px;
    height: 6px;
    border: 1.5px solid currentColor;
    border-radius: var(--radius-full);
    box-sizing: border-box;
    opacity: 0.8;
  }
  .sh-tag-time {
    font-family: var(--font-num);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .sh-tag-inuse {
    background: var(--inuse);
    color: var(--on-inuse);
  }
  .sh-tag-archived {
    background: transparent;
    border: var(--stroke-control) dashed var(--line-control);
    color: var(--ink-muted);
  }

  /* ItemCard */
  .sh-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
    border-radius: var(--radius-lg);
  }
  .sh-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--shade);
    overflow: hidden;
    border-radius: var(--radius-lg);
  }
  .sh-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .sh-ph {
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shade);
    color: var(--ink-muted);
  }
  .sh-ph .sh-icon {
    opacity: 0.75;
  }
  .sh-ph-fill {
    position: absolute;
    inset: 0;
  }
  .sh-card-band {
    position: absolute;
    left: var(--space-2);
    bottom: var(--space-2);
    height: 28px;
    box-sizing: border-box;
    padding: 0 12px 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-full);
    background: var(--inuse);
    color: var(--on-inuse);
    font: 600 12px/1 var(--font-sans);
    white-space: nowrap;
  }
  .sh-card-band::before {
    content: '';
    width: 6px;
    height: 6px;
    box-sizing: border-box;
    border: 1.5px solid currentColor;
    border-radius: var(--radius-full);
    opacity: 0.8;
  }
  .sh-card-band b {
    font: 600 12px/1 var(--font-num);
    font-variant-numeric: tabular-nums;
  }
  .sh-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 4px;
  }
  .sh-card-meta {
    font: 400 13px/18px var(--font-sans);
    color: var(--ink-muted);
  }
  .sh-card-name {
    font: 500 15px/20px var(--font-sans);
  }
  .sh-card-archived .sh-card-photo img,
  .sh-card-archived .sh-ph {
    filter: grayscale(1);
    opacity: 0.6;
  }

  /* Countdown */
  .sh-count {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--inuse-soft);
    border-radius: var(--radius-lg);
    color: var(--ink);
  }
  .sh-count-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
  }
  .sh-count-label {
    font: 600 13px/18px var(--font-sans);
    color: var(--inuse-ink);
  }
  .sh-count-due {
    font: 500 12px/16px var(--font-num);
    font-variant-numeric: tabular-nums;
    color: var(--inuse-ink);
  }
  .sh-count-time {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    font: 600 40px/44px var(--font-num);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
  }
  .sh-count-unit {
    font: 500 13px/16px var(--font-sans);
    letter-spacing: 0;
    color: var(--inuse-ink);
  }
  .sh-count-ticks {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 3px;
  }
  .sh-tick {
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--inuse-track);
  }
  .sh-tick-on {
    background: var(--inuse);
  }
  .sh-count-scale {
    display: flex;
    justify-content: space-between;
    font: 500 11px/14px var(--font-num);
    font-variant-numeric: tabular-nums;
    color: var(--inuse-ink);
  }
}

/* Bố cục trang giới thiệu. Chỉ dùng biến trong tokens.css; chỉ có giao diện sáng. */
/* Reset trong layer base để style component (layer components) thắng */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  main {
    flex-grow: 1;
  }
  h1,
  h2,
  h3,
  p,
  ol,
  ul,
  figure {
    margin: 0;
  }
  ol,
  ul {
    padding: 0;
    list-style: none;
  }
  a {
    color: inherit;
  }
  a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
  }
  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    font-weight: 600;
  }
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: 13px;
}
.link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lead {
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-muted);
}
.sh-btn .sh-icon {
  margin-left: -4px;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  display: block;
}
.brand-name {
  font: 600 19px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--paper-tint);
}
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font: 600 13px/1 var(--font-sans);
  color: var(--ink-muted);
  text-decoration: none;
}
.lang-switch a[aria-current='true'] {
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.signin {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font: 600 15px/1 var(--font-sans);
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 399px) {
  .brand-name {
    display: none;
  }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 600 13px/1 var(--font-sans);
  color: var(--ink-muted);
  text-decoration: none;
}

/* ── Văn bản pháp lý ── */
.legal {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 56px;
  font-size: 15px;
  line-height: 24px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.legal header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.legal h1 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.01em;
}
.legal section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal h2 {
  font-size: 19px;
  line-height: 24px;
}
.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}
.legal li::marker {
  color: var(--ink-muted);
}
.legal-other {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.not-found {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.not-found div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.not-found h1 {
  font-size: 28px;
  line-height: 34px;
}

/* Trang chủ: font hiển thị, màu phụ lấy từ logo, các khối và chuyển động. Chỉ giao diện sáng. */

/* Bricolage Grotesque (SIL OFL 1.1, public/fonts/OFL.txt): chỉ cho tiêu đề; chữ thường vẫn là font hệ thống */
@font-face {
  font-family: 'Bricolage';
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/bricolage-vietnamese.woff2) format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
    U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Màu phụ của logo (nhãn cobalt trên nền vàng bơ, sọc hồng và kem, dây xanh navy) */
  --butter: #f6c945;
  --blush: #f49ab4;
  --navy: #0e225f;
  --cream: #fdfbf7;
  --font-display: 'Bricolage', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.02;
  text-wrap: balance;
}
.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
}
.btn-lg .sh-icon:last-child {
  margin: 0 -6px 0 0;
}
.btn-cream {
  background: var(--cream);
  border-color: var(--navy);
  color: var(--navy);
}
.btn-butter {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--navy);
}
.sh-btn {
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background-color 0.2s ease-out;
}
.sh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--navy);
}
.sh-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Header trên nền vàng ── */
.home .site-header {
  position: relative;
  z-index: 2;
  background: var(--butter);
  /* Nền vàng tràn hết chiều ngang dù header nằm trong .wrap */
  box-shadow: 0 0 0 100vmax var(--butter);
  clip-path: inset(0 -100vmax);
}
.home .lang-switch {
  background: rgb(253 251 247 / 0.55);
}
.home .signin {
  color: var(--navy);
}

/* ── Hero ── */
.hero-band {
  position: relative;
  background: var(--butter);
  color: var(--navy);
  overflow: hidden;
  /* Sọc dệt hồng + kem ở mép dưới, như trên chiếc nhãn của logo */
  border-bottom: 10px solid var(--blush);
  box-shadow: 0 6px 0 var(--cream);
}
.hero-band::before {
  /* Vòng tròn lớn mờ phía sau thanh treo */
  content: '';
  position: absolute;
  right: -200px;
  top: 10px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(253 251 247 / 0.55), rgb(253 251 247 / 0) 68%);
  pointer-events: none;
}
.hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 56px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero .sh-tag {
  background: var(--cream);
  color: var(--navy);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
}
.hero h1 em {
  display: inline;
  font-style: normal;
  color: var(--primary);
  background: linear-gradient(transparent 68%, var(--blush) 68% 90%, transparent 90%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .lead {
  max-width: 34rem;
  font-size: 18px;
  line-height: 28px;
  color: var(--navy);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 30rem;
  font-size: 13px;
  line-height: 20px;
  color: var(--navy);
}
.note .sh-icon {
  margin-top: 1px;
}
.hero-art {
  /* Điện thoại: thanh treo tràn ra mép phải như một giá dài, món thứ tư bị cắt */
  width: 138%;
  margin: 0 -8px;
}
.home main {
  overflow-x: clip;
}
.rail {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.rail text {
  font: 600 11.5px/1 var(--font-sans);
}
.rail .ghost,
.rail .outtag {
  opacity: 0;
}

/* ── Băng chữ chạy ── */
.marquee {
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  transform: rotate(-1.2deg);
  margin: 28px -12px 0;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  align-items: center;
  font: 700 clamp(22px, 3vw, 32px) / 1 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee i {
  font-style: normal;
  color: var(--butter);
}

/* ── Các khối chung ── */
.block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 24px;
}

/* ── Bước: thẻ hình nhãn treo trên thanh ── */
.tag-steps {
  position: relative;
  display: grid;
  gap: 28px;
  padding-top: 40px;
}
.tag-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  right: -8px;
  height: 7px;
  border-radius: 99px;
  background: var(--navy);
}
.tag-step {
  position: relative;
  display: flex;
  justify-content: center;
}
.tag-step::before {
  /* Dây treo từ thanh xuống lỗ xỏ */
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 64px;
  background: var(--navy);
}
.tag-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 58px 26px 28px;
  background: var(--primary);
  color: var(--cream);
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%, 0 28px);
  border-radius: 0 0 22px 22px;
  transform: rotate(-2deg);
  transform-origin: 50% 0;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tag-card::before {
  /* Lỗ xỏ dây */
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--navy);
}
.t2 .tag-card {
  background: var(--butter);
  color: var(--navy);
  transform: rotate(1.5deg);
}
.t3 .tag-card {
  background: var(--blush);
  color: var(--navy);
  transform: rotate(-1deg);
}
.tag-step:hover .tag-card {
  transform: rotate(0);
}
.tag-no {
  position: absolute;
  top: 18px;
  right: 22px;
  font: 800 44px/1 var(--font-display);
  letter-spacing: -0.04em;
  opacity: 0.35;
}
.tag-icon {
  display: flex;
}
.tag-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.tag-card p {
  font-size: 15px;
  line-height: 23px;
}

/* ── 24 giờ ── */
.count-band {
  margin-top: 72px;
  padding: 72px 0;
  background: var(--inuse-soft);
  overflow: hidden;
}
.count-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.count-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--inuse-ink);
}
.count-text .display {
  color: var(--ink);
}
.count-text .lead {
  max-width: 30rem;
  color: var(--inuse-ink);
}
.big-num {
  font: 800 clamp(120px, 22vw, 220px) / 0.8 var(--font-display);
  letter-spacing: -0.06em;
  color: var(--inuse);
}
.big-num small {
  font-size: 0.4em;
  letter-spacing: -0.02em;
}
.phone {
  justify-self: center;
  width: min(100%, 360px);
  padding: 12px;
  border-radius: 48px;
  background: var(--navy);
  box-shadow:
    0 30px 60px -20px rgb(14 34 95 / 0.45),
    0 0 0 2px rgb(14 34 95 / 0.2);
  transform: rotate(3deg);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 14px 16px;
  border-radius: 38px;
  background: var(--paper);
  position: relative;
}
.phone-screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 99px;
  background: var(--navy);
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-summary {
  font: 500 12px/1.3 var(--font-num);
  color: var(--ink-muted);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.phone .sh-count {
  padding: 16px;
}

/* ── Lưới tính năng ── */
.bento {
  display: grid;
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius-xl);
  min-height: 250px;
  overflow: hidden;
}
.tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.tile p {
  font-size: 15px;
  line-height: 23px;
  max-width: 30rem;
}
.tile .mock {
  margin-top: auto;
  padding-top: 18px;
}
.tile-search {
  background: var(--primary);
  color: var(--cream);
}
.tile-idle {
  background: var(--butter);
  color: var(--navy);
}
.tile-photo {
  background: var(--blush);
  color: var(--navy);
}
.tile-archive {
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.tile-archive p {
  color: var(--ink-muted);
}
.mock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--navy);
  font:
    500 17px/1 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
}
.typed {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  width: 8.2ch;
}
.mock-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: rgb(253 251 247 / 0.14);
}
.mock-result .sh-ph {
  width: 44px;
  height: 52px;
  border-radius: 10px;
}
.mock-result span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-result small {
  font-size: 13px;
  opacity: 0.8;
}
.mock-idle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-idle li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgb(253 251 247 / 0.7);
  font-size: 15px;
  font-weight: 500;
}
.mock-idle b {
  font: 700 14px/1 var(--font-num);
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--navy);
  color: var(--butter);
}
.mock-photo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mock-photo .sh-ph {
  width: 72px;
  height: 90px;
  border-radius: 14px;
  background: var(--cream);
}
.gps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gps s {
  font:
    600 15px/1.2 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--danger);
}
.gps small {
  font-size: 13px;
  font-weight: 600;
}
.mock-archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.arrow {
  font: 700 20px/1 var(--font-display);
  color: var(--ink-muted);
}

/* ── Quyền riêng tư + sắp có ── */
.pair {
  display: grid;
  gap: 14px;
  padding-top: 72px;
  padding-bottom: 24px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  line-height: 24px;
}
.panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: -0.02em;
}
.panel-navy {
  background: var(--navy);
  color: var(--cream);
}
.panel-navy .link {
  color: var(--butter);
}
.panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--navy);
}
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: auto;
  padding-top: 8px;
}
.panel-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.panel-later {
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 2px var(--line);
}
.panel-later p {
  color: var(--ink-muted);
}
.string-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 10px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 3px solid var(--navy);
}
.string-tags li {
  position: relative;
}
.string-tags li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: -24px;
  width: 1.5px;
  height: 24px;
  background: var(--navy);
}
.string-tags li:nth-child(odd) .sh-tag {
  transform: rotate(-3deg);
}
.string-tags li:nth-child(even) .sh-tag {
  transform: rotate(2deg);
}
.string-tags .sh-tag {
  transform-origin: 16px 0;
  background: var(--paper-raised);
}

/* ── Kêu gọi cuối ── */
.final {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 72px 0 64px;
  padding: 64px 24px 72px;
  border-radius: 40px;
  background: var(--primary);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.final::after {
  /* Sọc dệt dưới đáy, như chiếc nhãn trong logo */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 18px;
  background: linear-gradient(var(--blush) 0 55%, transparent 55% 70%, var(--cream) 70%);
}
.final .lead {
  color: var(--cream);
}
.final-logo {
  width: 104px;
  height: 104px;
  transform: rotate(-8deg);
  transform-origin: 50% 8%;
  filter: drop-shadow(0 10px 0 rgb(14 34 95 / 0.35));
}

/* ── Bố cục rộng ── */
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tile-search {
    grid-column: span 4;
  }
  .tile-idle {
    grid-column: span 2;
  }
  .tile-photo,
  .tile-archive {
    grid-column: span 3;
  }
}
@media (min-width: 880px) {
  .hero {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .tag-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-art {
    width: auto;
    margin: 0 -40px 0 0;
  }
  .count-grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Chuyển động: chỉ khi người dùng không chọn giảm chuyển động ── */
@media (prefers-reduced-motion: no-preference) {
  .rail .swing {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: swing 4.2s ease-in-out infinite alternate;
  }
  .rail .s2 {
    animation-duration: 5s;
    animation-delay: -1.3s;
  }
  .rail .s3 {
    animation-duration: 3.6s;
    animation-delay: -2.1s;
  }
  .rail .leave {
    animation: leave 11s ease-in-out infinite;
  }
  .rail .ghost {
    animation: ghost 11s ease-in-out infinite;
  }
  .rail .outtag {
    animation: outtag 11s ease-in-out infinite;
  }
  .marquee-track {
    animation: marquee 36s linear infinite;
  }
  .typed {
    animation:
      type 5s steps(8, end) infinite,
      caret 0.8s step-end infinite;
  }
  .mock-result {
    animation: result 5s ease-out infinite;
  }
  .phone .sh-tick-on:nth-child(19) {
    animation: blink 1.6s ease-in-out infinite;
  }
  .final-logo {
    animation: swing-logo 3.4s ease-in-out infinite alternate;
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes swing {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(2deg);
  }
}
@keyframes leave {
  0%,
  32% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  42% {
    transform: translateY(-26px) rotate(-5deg);
    opacity: 1;
  }
  52%,
  80% {
    transform: translate(70px, -90px) rotate(12deg);
    opacity: 0;
  }
  90% {
    transform: translateY(-22px) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}
@keyframes ghost {
  0%,
  42%,
  92%,
  100% {
    opacity: 0;
  }
  52%,
  82% {
    opacity: 0.55;
  }
}
@keyframes outtag {
  0%,
  48%,
  86%,
  100% {
    opacity: 0;
  }
  56%,
  80% {
    opacity: 1;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes type {
  0% {
    width: 0;
  }
  40%,
  100% {
    width: 8.2ch;
  }
}
@keyframes caret {
  50% {
    border-color: transparent;
  }
}
@keyframes result {
  0%,
  42% {
    opacity: 0;
    transform: translateY(8px);
  }
  52%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  50% {
    background: var(--inuse-track);
  }
}
@keyframes swing-logo {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(6deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
