/* icut.css - Bang mau cua app Icut (khung giong web Splayer) */

:root {
  --nen: #FFFBF2;
  --the: #FFFFFF;
  --chu-chinh: #0F2A33;
  --chu-phu: #46606A;
  --nhan: #D97706;
  --nhan-sang: #F59E0B;
  --tim: #B45309;
  --vien: rgba(15, 42, 51, 0.20);
  --vien-nhat: rgba(15, 42, 51, 0.10);
  --bong: 0 4px 18px rgba(15, 42, 51, 0.08);

  --bk-nut: 10px;
  --bk-the: 14px;
  --bk-lg: 20px;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Dat lai co ban */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  background-color: var(--nen);
  color: var(--chu-chinh);
  line-height: 1.5;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
}

/* Tiep can: focus */
:focus-visible {
  outline: 2px solid var(--nhan-sang);
  outline-offset: 4px;
}

/* Kieu chu */
h1, h2, h3, h4 {
  color: var(--chu-chinh);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p {
  color: var(--chu-phu);
  margin-top: 0;
  margin-bottom: 16px;
}

a {
  color: var(--nhan);
  text-decoration: none;
}

a:hover {
  color: var(--nhan-sang);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  color: var(--chu-phu);
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

/* Layout chung */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
}

.section.container {
  padding-left: 16px;
  padding-right: 16px;
}

/* Bo qua toi noi dung */
.bo-qua {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--the);
  color: var(--chu-chinh);
  padding: 12px 16px;
  border-radius: var(--bk-nut);
  z-index: 1000;
  transition: top 0.2s;
}

.bo-qua:focus {
  top: 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--vien-nhat);
  z-index: 100;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--chu-chinh);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-group:hover {
  text-decoration: none;
  color: var(--nhan-sang);
}

.logo-img {
  height: 32px;
  width: 32px;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--chu-chinh);
  font-weight: 700;
  padding: 8px 0; /* Muc tieu cham >= 44px (8+8+~24) */
}

.nav-links a:hover {
  color: var(--nhan-sang);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content h1 {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.nut-nhom {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nut {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--bk-nut);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  min-height: 44px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.nut:hover {
  text-decoration: none;
}

.nut-chinh {
  background: linear-gradient(135deg, var(--nhan), var(--tim));
  color: #FFFFFF;
}

.nut-chinh:hover {
  background: linear-gradient(135deg, var(--nhan-sang), var(--tim));
  color: #FFFFFF;
}

.nut-phu {
  background: var(--the);
  color: var(--chu-chinh);
  border: 1px solid var(--vien);
}

.nut-phu:hover {
  background: #EAF3F5;
  color: var(--chu-chinh);
}

.nut-cho {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--the);
  color: var(--chu-phu);
  border: 1px solid var(--vien-nhat);
}

.nut-cho:hover {
  background: var(--the);
  color: var(--chu-phu);
}

/* Khung dien thoai */
.dien-thoai {
  border: 4px solid var(--vien);
  border-radius: 24px; /* Bo goc ngoai lon hon 1 chut so voi khung trong */
  overflow: hidden;
  background: var(--the);
  aspect-ratio: 768 / 1376;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 10px 28px rgba(15, 42, 51, 0.18);
}

.dien-thoai img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The chung */
.the {
  background: var(--the);
  border: 1px solid var(--vien-nhat);
  border-radius: var(--bk-the);
  padding: 24px;
  box-shadow: var(--bong);
}

/* Luoi 3 dieu khac biet */
.luoi-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .luoi-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cau truc phan tinh nang co anh */
.tinh-nang-lon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .tinh-nang-lon {
    grid-template-columns: 1fr 1fr;
  }
  .tinh-nang-lon.nguoc {
    direction: rtl;
  }
  .tinh-nang-lon.nguoc > * {
    direction: ltr;
  }
}

/* Khoi phu de */
.khoi-phu {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--vien-nhat);
}

/* Luoi 12 the tinh nang */
.luoi-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .luoi-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .luoi-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.the-nho {
  background: var(--the);
  border: 1px solid var(--vien-nhat);
  border-radius: var(--bk-the);
  padding: 16px;
  box-shadow: var(--bong);
}

.the-nho h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--nhan-sang);
}

.the-nho p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: #E8F1F3;
  padding: 40px 0;
  border-top: 1px solid var(--vien);
  text-align: center;
  color: var(--chu-phu);
}

.footer a {
  padding: 8px; /* Cho muc tieu bam */
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}

/* Hai khung dien thoai canh nhau */
.cap-doi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}




/* Nut hamburger: an tren may tinh, hien tren man hinh nho */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--the);
  border: 1px solid var(--vien);
  border-radius: var(--bk-nut);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--chu-chinh);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--the);
    border: 1px solid var(--vien-nhat);
    border-radius: var(--bk-the);
    box-shadow: 0 12px 32px rgba(15, 42, 51, 0.16);
    padding: 8px;
  }

  .nav-links.mo { display: flex; }

  .nav-links a {
    padding: 14px 12px;
    border-radius: var(--bk-nut);
  }

  .nav-links a:hover { background: #EAF3F5; }
}

/* Trang docs va trang khai bao Google */
.docs-container img { max-width: 320px; display: block; margin: 16px auto; border-radius: 12px; }
.toc { margin-bottom: 24px; background: #EAF3F5; padding: 16px; border-radius: var(--bk-the); }
.toc h3 { margin-top: 0; }
.toc ul { margin-bottom: 0; }

.video-the { margin: 24px 0 32px; }
.video-the video {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 12px auto 0;
  border-radius: var(--bk-the);
  background: #000;
  box-shadow: var(--bong);
}
.ghi-chu {
  background: #EAF3F5;
  border-left: 4px solid var(--nhan);
  padding: 12px 16px;
  border-radius: 0 var(--bk-nut) var(--bk-nut) 0;
}

/* Tieu de dai (ten quyen) khong duoc tran ngang tren dien thoai */
.docs-container h1 { font-size: clamp(1.25rem, 6vw, 2.25rem); overflow-wrap: anywhere; }
.docs-container { overflow-wrap: anywhere; }

/* === REAL IPHONE 15 PRO TITANIUM MOCKUP FRAME (ZERO HORIZONTAL SQUISH) === */
.dien-thoai {
  position: relative;
  border: 11px solid #16181d !important;
  border-radius: 48px !important;
  overflow: hidden !important;
  background: #0d0f12 !important;
  aspect-ratio: auto !important;
  width: 100%;
  max-width: 312px !important;
  margin: 0 auto;
  box-shadow:
    0 0 0 1.5px #4b5262,
    0 0 0 3.5px #1e222a,
    0 24px 52px -10px rgba(15, 23, 42, 0.34),
    0 8px 20px -4px rgba(15, 23, 42, 0.20) !important;
  isolation: isolate;
}

/* Dynamic Island pill */
.dien-thoai::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 23px;
  background: #050608;
  border-radius: 999px;
  z-index: 25;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.45);
  background-image: radial-gradient(circle at 74px 11.5px, #1d2b44 0%, #0d1322 3.5px, #050608 4.5px);
}

/* iOS Home Indicator bar */
.dien-thoai::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4.5px;
  background: rgba(120, 130, 145, 0.65);
  border-radius: 999px;
  z-index: 25;
  pointer-events: none;
}

.dien-thoai img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 36px !important;
  display: block;
}

/* Side-by-side pair of phones (.cap-doi): stack on narrow screens, wider container on desktop so neither phone gets squeezed */
.cap-doi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)) !important;
  gap: 20px !important;
  align-items: start;
}

.cap-doi .dien-thoai {
  max-width: 268px !important;
  border-width: 10px !important;
  border-radius: 44px !important;
}
.cap-doi .dien-thoai::before {
  top: 9px;
  width: 74px;
  height: 20px;
  background-image: radial-gradient(circle at 63px 10px, #1d2b44 0%, #0d1322 3px, #050608 4px);
}
.cap-doi .dien-thoai img {
  border-radius: 33px !important;
}
