/*
 * Trang giới thiệu Shotpik Agent (/shotpik-agent, /en/shotpik-agent).
 * Header, footer và font lấy từ style.css của trang chủ; ở đây chỉ có phần thân trang.
 * Mọi class bắt đầu bằng ag- để không đụng class của trang chủ.
 * Theo kiểu trang chủ: khung 1336px, tiêu đề hai dòng (đậm + Playfair nghiêng đỏ), thẻ xám bo 28px, nút viên thuốc đỏ.
 */
.agent-page {
  --ag-soft: #f5f5f7;
  --ag-ink: #1D1D1F;
  --ag-body: #6E6E73;
  --ag-mute: #a1a1a6;
  --ag-primary: #CC2C2C;
  --ag-rose: #fdecec;
  --ag-dark: #141416;
  --ag-ok: #1f8a55;
  color: var(--ag-body);
  font-size: 16px;
  line-height: 1.6;
}
.agent-page *, .agent-page *::before, .agent-page *::after { box-sizing: border-box; }
.agent-page h1, .agent-page h2, .agent-page h3 { color: var(--ag-ink); margin: 0; text-wrap: balance; }
.agent-page p { margin: 0; }
.agent-page img { max-width: 100%; }

.ag-wrap { max-width: 1336px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .ag-wrap { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .ag-wrap { padding-left: 48px; padding-right: 48px; } }

/* Nút: giống .btn-primary / .btn-outline của trang chủ */
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px; border-radius: 3rem; font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.ag-btn svg { width: 18px; height: 18px; flex: none; }
.ag-btn-primary { background: var(--ag-primary); color: #fff; box-shadow: 0 10px 25px -3px rgba(204, 44, 44, .38), 0 4px 10px -2px rgba(204, 44, 44, .22); }
.ag-btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -4px rgba(204, 44, 44, .48), 0 6px 14px -2px rgba(204, 44, 44, .28); }
.ag-btn-outline { background: #fff; color: var(--ag-ink); border: 1px solid #d1d1d6; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }
.ag-btn-outline:hover { border-color: #b9b9bf; background: #fafafa; }
.ag-btn:active { transform: translateY(1px); }
.agent-page a:focus-visible, .agent-page summary:focus-visible { outline: 2px solid var(--ag-primary); outline-offset: 3px; }

/* Đầu mỗi khối: dòng nhỏ đỏ + tiêu đề hai dòng, như trang chủ */
.ag-section { padding-top: 96px; padding-bottom: 96px; }
.ag-tagline { color: var(--ag-primary); font-weight: 500; font-size: 16px; letter-spacing: .01em; }
.ag-title { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.ag-t1, .ag-t2 { display: block; font-size: clamp(30px, 5.2vw, 60px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.ag-t1 { font-weight: 700; color: var(--ag-ink); }
.ag-t2 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; color: var(--ag-primary); }
.ag-t2.ag-grey { font-family: inherit; font-style: normal; font-weight: 700; color: var(--ag-mute); }
.ag-desc { font-size: clamp(16px, 1.6vw, 20px); color: var(--ag-body); max-width: 62ch; margin-top: 18px; }
.ag-center { text-align: center; }
.ag-center .ag-title { align-items: center; }
.ag-center .ag-desc { margin-left: auto; margin-right: auto; }
.ag-left { text-align: left; }

/* Đường dẫn trang (breadcrumb) */
.ag-crumb { display: flex; gap: 8px; justify-content: center; font-size: 14px; color: var(--ag-body); margin-bottom: 18px; }
.ag-crumb a { color: var(--ag-body); text-decoration: none; }
.ag-crumb a:hover { color: var(--ag-primary); }

/* Hero */
.ag-hero { padding-top: 40px; padding-bottom: 72px; }
.ag-ctas { display: flex; gap: 12px 16px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.ag-os { margin-top: 16px; font-size: 14px; color: var(--ag-body); }
.ag-stage { position: relative; max-width: 1160px; margin: 56px auto 0; }
.ag-desk { margin: 0; }
.ag-desk img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 40px 70px -45px rgba(60, 30, 10, .45); }
.ag-float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 9px 16px 9px 10px; font-size: 14px; font-weight: 500; color: var(--ag-ink); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .22); white-space: nowrap; }
.ag-float i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; color: #fff; background: var(--ag-primary); }
.ag-float i svg { width: 15px; height: 15px; }
.ag-float.ag-ok i { background: var(--ag-ok); }
.ag-f1 { left: -28px; top: 18%; }
.ag-f2 { right: -28px; top: 30%; }
.ag-f3 { left: 4%; bottom: 12%; }

/* Đồng bộ từ PC */
.ag-soft { background: var(--ag-soft); }
.ag-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 48px; }
.ag-card { background: #fff; border-radius: 28px; padding: 30px; min-width: 0; }
.ag-card h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ag-card p { margin-top: 8px; color: var(--ag-body); }
.ag-shotcard { grid-column: span 8; padding: 30px 0 0 30px; overflow: hidden; display: flex; flex-direction: column; }
.ag-shotcard .ag-shot { margin-top: 24px; border-radius: 14px 0 0 0; overflow: hidden; background: #111; }
.ag-shotcard .ag-shot img { display: block; width: 100%; height: auto; }
.ag-stack { grid-column: span 4; display: grid; gap: 20px; }
.ag-mini { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.ag-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--ag-rose); color: var(--ag-primary); display: grid; place-items: center; flex: none; }
.ag-ico svg { width: 22px; height: 22px; }
.ag-dark { grid-column: span 12; background: var(--ag-dark); color: #c7c7cc; display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 40px; align-items: center; }
.ag-dark h3 { color: #fff; }
.ag-dark p { color: #c7c7cc; }
.ag-dark a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ag-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ag-checks li { background: #1f1f22; border-radius: 18px; padding: 16px 18px; color: #e5e5ea; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.ag-checks svg { width: 20px; height: 20px; flex: none; color: #ff6b6b; margin-top: 1px; }

/* 6 công cụ */
.ag-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.ag-tools > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.ag-tool { background: var(--ag-soft); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ag-tool .ag-name { display: flex; align-items: center; gap: 12px; }
.ag-tool .ag-name h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.ag-tool .ag-ico { background: #fff; }
.ag-tool p { color: var(--ag-body); flex: 1; }
.ag-tool a { color: var(--ag-primary); font-weight: 500; text-decoration: none; align-self: flex-start; }
.ag-tool a:hover { text-decoration: underline; }
.ag-tool.ag-wide { grid-column: 1 / 3; grid-row: 1 / 3; gap: 22px; }
.ag-tool.ag-wide p { flex: 0 0 auto; }
.ag-tool.ag-wide .ag-gridshot { margin-top: auto; border-radius: 16px; overflow: hidden; background: #111; }
.ag-tool.ag-wide .ag-gridshot img { display: block; width: 100%; height: auto; }
.ag-keep { margin-top: 28px; display: flex; justify-content: center; gap: 10px; align-items: center; color: var(--ag-ink); font-weight: 500; text-align: left; }
.ag-keep svg { width: 22px; height: 22px; color: var(--ag-ok); flex: none; }

/* Tải về */
.ag-osgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 48px auto 0; max-width: 1060px; text-align: left; }
.ag-osbox { background: #fff; border-radius: 28px; padding: 34px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ag-oshead { display: flex; align-items: center; gap: 16px; }
.ag-oslogo { width: 56px; height: 56px; border-radius: 16px; background: var(--ag-soft); display: grid; place-items: center; color: var(--ag-ink); flex: none; }
.ag-oslogo svg { width: 28px; height: 28px; }
.ag-oshead h3 { font-size: 26px; font-weight: 700; }
.ag-oshead p { font-size: 15px; color: var(--ag-body); }
.ag-osbox .ag-btn { width: 100%; }
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ag-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; color: var(--ag-body); line-height: 1.5; }
.ag-steps .ag-n { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; font-size: 24px; line-height: 1; color: var(--ag-primary); }
.ag-steps b, .ag-after b { color: var(--ag-ink); font-weight: 500; }
.agent-page .ag-after { max-width: 1060px; margin: 24px auto 0; text-align: center; color: var(--ag-body); }

/* Câu hỏi thường gặp */
.ag-faq { max-width: 860px; margin: 44px auto 0; display: grid; gap: 12px; text-align: left; }
.ag-faq details { background: var(--ag-soft); border-radius: 20px; padding: 20px 24px; }
.ag-faq summary { cursor: pointer; color: var(--ag-ink); font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: "+"; color: var(--ag-primary); font-size: 22px; line-height: 1; }
.ag-faq details[open] summary::after { content: "–"; }
.ag-faq details p { margin-top: 10px; }

/* Khối cuối */
.ag-close { padding-top: 0; }
.ag-closecard { background: var(--ag-rose); border-radius: 32px; padding: 64px 24px; text-align: center; }
.ag-closecard .ag-title { align-items: center; margin-top: 0; }
.ag-closecard .ag-ctas { margin-top: 26px; }

@media (max-width: 1024px) {
  .ag-shotcard { grid-column: span 12; }
  .ag-stack { grid-column: span 12; grid-template-columns: repeat(3, 1fr); }
  .ag-stack .ag-card { padding: 24px; }
  .ag-stack .ag-mini { grid-template-columns: 1fr; }
  .ag-dark { grid-template-columns: 1fr; }
  .ag-tools { grid-template-columns: 1fr 1fr; }
  .ag-tools > :last-child:nth-child(3n + 1) { grid-column: auto; }
  .ag-tools > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
  .ag-tool.ag-wide { grid-column: span 2; grid-row: auto; }
  .ag-tool:last-child { grid-column: span 2; }
  .ag-f1 { left: -8px; }
  .ag-f2 { right: -8px; }
}
@media (max-width: 700px) {
  .ag-section { padding-top: 64px; padding-bottom: 64px; }
  .ag-hero { padding-top: 24px; }
  .ag-stack { grid-template-columns: 1fr; }
  .ag-stack .ag-mini { grid-template-columns: 44px 1fr; }
  .ag-checks { grid-template-columns: 1fr; }
  .ag-tools { grid-template-columns: 1fr; }
  .ag-tool.ag-wide, .ag-tool:last-child { grid-column: span 1; }
  .ag-osgrid { grid-template-columns: 1fr; }
  .ag-osbox { padding: 26px 22px; }
  .ag-ctas .ag-btn { width: 100%; }
  .ag-desk img { border-radius: 18px; }
  .ag-float { font-size: 12px; padding: 6px 12px 6px 7px; gap: 7px; }
  .ag-float i { width: 22px; height: 22px; }
  .ag-f1 { left: -4px; top: auto; bottom: -16px; }
  .ag-f2 { right: -4px; top: -16px; }
  .ag-f3 { display: none; }
  .ag-card { padding: 24px; }
  .ag-shotcard { padding: 24px 0 0 24px; }
  .ag-closecard { padding: 48px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-btn { transition: none; }
}
