/* Ambysto — trang công ty (index, terms, privacy-policy, refund-policy).
   Độc lập với style.css / legal.css (steady/*.html còn dùng hai file đó). */
body { margin: 0; }
a { color: #0B1020; }
a:not([class]):hover { color: #B8466B; }

.page { background: #FFFFFF; color: #0B1020; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.6; }

/* header */
.site-header { border-bottom: 1px solid #E3E5EC; background: #FFFFFF; }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #0B1020; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; flex-wrap: wrap; }
.nav-link { text-decoration: none; color: #3A4157; }
.nav-cta { text-decoration: none; color: #FFFFFF; background: #0B1020; padding: 11px 20px; border-radius: 999px; font-weight: 500; }
.back-btn { text-decoration: none; color: #FFFFFF; background: #0B1020; padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; }

/* buttons */
.btn-solid { text-decoration: none; color: #FFFFFF; background: #0B1020; border: 1px solid #0B1020; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.btn-outline { text-decoration: none; color: #0B1020; border: 1px solid #0B1020; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.btn-light { display: inline-block; text-decoration: none; color: #0B1020; background: #FFFFFF; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.card-link { margin-top: auto; align-self: flex-start; text-decoration: none; color: #0B1020; border: 1px solid #0B1020; padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 112px 24px 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.eyebrow { margin: 0 0 18px; color: #B8466B; font-weight: 500; font-size: 15px; }
.hero-title { margin: 0 0 28px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; max-width: 15ch; }
.hero-lead { margin: 0; font-size: 20px; line-height: 1.55; color: #3A4157; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-art { flex: 1 1 280px; display: flex; justify-content: center; }

/* sections */
.section-rule { border-top: 1px solid #E3E5EC; }
.section-inner { max-width: 1120px; margin: 0 auto; padding: 104px 24px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; margin-bottom: 56px; }
.section-title { flex: 1 1 400px; margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.section-intro { flex: 1 1 400px; margin: 0; color: #3A4157; max-width: 52ch; }
.section-intro-short { flex: 1 1 400px; margin: 0; color: #3A4157; }
.text-muted { margin: 0; color: #3A4157; }
.text-muted-mb { margin: 0 0 16px; color: #3A4157; }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.product-card { border: 1px solid #E3E5EC; border-radius: 14px; padding: 36px; display: flex; flex-direction: column; min-width: 0; }
.product-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.product-icon-df { background: #1F1D1A; color: #FBFAF7; margin-bottom: 28px; }
.product-icon-ds { background: #0B0B0C; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.product-name { margin: 0 0 12px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 26px; line-height: 1.15; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FBEFF3; color: #8E2F51; font-size: 13px; font-weight: 500; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #B8466B; }
.spec-list { margin: 24px 0 28px; border-top: 1px solid #E3E5EC; font-size: 15px; }
.spec-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E3E5EC; }
.spec-row > * { min-width: 0; overflow-wrap: anywhere; }
.spec-label { color: #636A80; }
.product-card-wide { grid-column: 1 / -1; }
.product-icon-img { width: 48px; height: 48px; border-radius: 13px; display: block; }
.app-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.app-tile { border: 1px solid #E3E5EC; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.app-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.2; }
.app-text { color: #3A4157; font-size: 15px; line-height: 1.5; }
.app-meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; overflow-wrap: anywhere; }
.app-status { padding: 2px 9px; border-radius: 999px; background: #F4F5F8; color: #3A4157; font-size: 13px; font-weight: 500; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.principle { border-top: 2px solid #0B1020; padding-top: 20px; }
.principle-title { margin: 0 0 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 20px; line-height: 1.2; }
.principle-text { margin: 0; color: #3A4157; font-size: 16px; }

/* company */
.company-inner { max-width: 1120px; margin: 0 auto; padding: 104px 24px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.company-copy { flex: 1 1 420px; min-width: 0; }
.company-title { margin: 0 0 24px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.company-facts { flex: 1 1 380px; min-width: 0; margin: 0; border: 1px solid #E3E5EC; border-radius: 14px; background: #F4F5F8; }
.fact-row { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #E3E5EC; }
.fact-row-last { border-bottom: 0; }
.fact-row > * { min-width: 0; overflow-wrap: anywhere; }
.fact-label { color: #636A80; font-size: 15px; }
.fact-value { margin: 0; font-weight: 500; }

/* contact */
.contact { background: #0B1020; color: #FFFFFF; }
.contact-inner { max-width: 1120px; margin: 0 auto; padding: 104px 24px 88px; }
.contact-title { margin: 0 0 18px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; color: #FFFFFF; }
.contact-text { margin: 0 0 32px; color: #C4C8D6; font-size: 18px; max-width: 54ch; }

/* footer */
.site-footer { background: #0B1020; color: #A9AEC0; font-size: 14px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 36px 24px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner-rule { border-top: 1px solid #262C40; }
.footer-brand { margin: 0 0 6px; color: #FFFFFF; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; }
.footer-line { margin: 0 0 4px; }
.flush { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav-top { align-items: flex-start; }
.footer-link { color: #DDE0EA; text-decoration: none; }

/* trang pháp lý */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 104px; color: #3A4157; }
.legal-title { margin: 0 0 12px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: #0B1020; }
.legal-updated { margin: 0 0 48px; color: #636A80; }
.legal-updated-tight { margin: 0 0 40px; color: #636A80; }
.legal-h2 { margin: 44px 0 14px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.2; color: #0B1020; }
.para { margin: 0 0 16px; }
.legal-list { margin: 0 0 16px; padding-left: 22px; }
.legal-list-item { margin-bottom: 6px; }
.strong-ink { color: #0B1020; }
.callout { margin: 0 0 40px; padding: 18px 22px; background: #F4F5F8; border-radius: 10px; color: #0B1020; font-size: 16px; }
.refund-table { border: 1px solid #E3E5EC; border-radius: 10px; overflow: hidden; font-size: 15px; margin-bottom: 16px; }
.refund-head { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; background: #F4F5F8; font-weight: 600; color: #0B1020; }
.refund-row { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; border-top: 1px solid #E3E5EC; }
.refund-th { padding: 12px 16px; }
.refund-cell { padding: 14px 16px; }
.refund-head > *, .refund-row > * { min-width: 0; overflow-wrap: anywhere; }

/* điện thoại */
@media (max-width: 480px) {
  .product-card { padding: 28px 22px; }
  .refund-head, .refund-row { grid-template-columns: 104px 1fr; }
  .refund-th, .refund-cell { padding-left: 12px; padding-right: 12px; }
  .fact-row { grid-template-columns: 1fr; gap: 2px; padding: 16px 18px; }
}
