/* iPhone 18 Pro dựng bằng CSS. Màn hình 402 × 874 điểm như máy thật, phóng to/thu nhỏ bằng --scale.
   Màu vỏ là màu phần cứng (Bạc, Đen, Glacier, Anh đào) nên khai báo hex tại đây, không phải màu giao diện. */
.iphone-stage { position: relative; width: calc(432px * var(--scale, 1)); height: calc(904px * var(--scale, 1)); margin-inline: auto; }
.iphone {
  --frame-a: #e4e5e7; --frame-b: #a9acb0; --frame-c: #f4f5f6; --btn: #c4c6c9;
  position: absolute; left: 0; top: 0; width: 432px; height: 904px;
  transform: scale(var(--scale, 1)); transform-origin: 0 0;
  filter: drop-shadow(0 40px 60px rgba(30, 20, 10, .28)) drop-shadow(0 8px 16px rgba(30, 20, 10, .18));
}
.iphone[data-color="black"]   { --frame-a: #4a4b50; --frame-b: #1d1e21; --frame-c: #6b6c71; --btn: #333438; }
.iphone[data-color="glacier"] { --frame-a: #d5e3ee; --frame-b: #8fa9bf; --frame-c: #eef5fa; --btn: #b3c7d7; }
.iphone[data-color="cherry"]  { --frame-a: #8e2a36; --frame-b: #4a0f18; --frame-c: #b44a56; --btn: #6d1c26; }

.iphone__body {
  position: absolute; inset: 0; border-radius: 74px; padding: 5px;
  background: linear-gradient(135deg, var(--frame-c), var(--frame-a) 18%, var(--frame-b) 50%, var(--frame-a) 82%, var(--frame-c));
}
.iphone__body::before { /* đường sáng mảnh trên cạnh khung */
  content: ""; position: absolute; inset: 1.5px; border-radius: 72px; border: 1px solid rgba(255,255,255,.45); pointer-events: none;
}
.iphone__glass { position: relative; width: 100%; height: 100%; border-radius: 69px; background: #050506; padding: 10px; }
.iphone__screen {
  position: relative; width: 402px; height: 874px; border-radius: 59px; overflow: hidden; background: #000;
  isolation: isolate; transform: translateZ(0);
}
.iphone__screen iframe, .iphone__screen > img { position: absolute; left: 0; top: 0; width: 402px; height: 874px; border: 0; display: block; }
.iphone__screen.has-status iframe { top: 54px; height: 820px; }
.iphone__status {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 54px; padding: 0 34px 0 50px;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 17px/1 -apple-system, "SF Pro Text", var(--font-sans); letter-spacing: -.01em;
  background: var(--app-bar, #f7f6fb); color: var(--app-bar-ink, #111);
}
.iphone__status svg { height: 13px; width: auto; fill: currentColor; }
.iphone__status .icons { display: flex; gap: 6px; align-items: center; }
.iphone__island {
  position: absolute; z-index: 3; top: 21px; left: 50%; translate: -50% 0; width: 96px; height: 33px;
  border-radius: 20px; background: #000;
}
.iphone__island::after { /* ống kính */
  content: ""; position: absolute; right: 11px; top: 50%; width: 11px; height: 11px; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2c3550, #0a0c14 60%);
}
.iphone__home { position: absolute; z-index: 3; bottom: 8px; left: 50%; translate: -50% 0; width: 140px; height: 5px; border-radius: 3px; background: currentColor; opacity: .55; pointer-events: none; color: #111; }
.iphone__glare { position: absolute; inset: 0; border-radius: 59px; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 32%); }

/* Nút cạnh: trái là Action + âm lượng, phải là nguồn + Camera Control */
.iphone__btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--frame-b), var(--btn), var(--frame-a)); }
.iphone__btn--action { left: -3px; top: 168px; height: 34px; }
.iphone__btn--vol-up { left: -3px; top: 228px; height: 62px; }
.iphone__btn--vol-down { left: -3px; top: 304px; height: 62px; }
.iphone__btn--power { right: -3px; top: 254px; height: 98px; }
.iphone__btn--camera { right: -2px; top: 560px; height: 70px; width: 4px; border-radius: 2px; }

@media (prefers-color-scheme: dark) {
  .iphone { --app-bar: #12142e; --app-bar-ink: #f2f2f7; }
  .iphone__home { color: #fff; }
}

/* ---------- Trang thử ngay ---------- */
.try { position: relative; min-height: calc(100dvh - 68px); padding: var(--space-8) 0 var(--space-8); overflow: hidden; }
.try__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.try__side { display: grid; gap: var(--space-5); align-content: center; }
.try__side h1 { font: 500 clamp(32px, 3.6vw, 46px)/1.12 var(--font-serif); }
.try__side .lead { color: var(--ink-muted); font-size: 17px; line-height: 1.65; }
.jump { display: grid; gap: var(--space-2); }
.jump button {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-sm); padding: var(--space-2) var(--space-4);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-fill-strong); color: var(--ink);
  font: 500 15px/20px var(--font-sans); text-align: left; cursor: pointer;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform 120ms ease-out, border-color 120ms ease-out;
}
.jump button:hover { border-color: var(--line-strong); }
.jump button[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 0; }
.jump button .ko { font-size: 20px; width: 28px; text-align: center; color: var(--script-consonant); }
.jump button small { display: block; color: var(--ink-muted); font-size: 12px; line-height: 16px; }
.swatches { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.swatch { width: var(--tap-min); height: var(--tap-min); border-radius: 50%; border: 0; padding: 5px; background: transparent; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 0; }
.swatch-label { font-size: 14px; color: var(--ink-muted); min-width: 6em; }
.try__tools { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.try__mobile { display: none; }
.try .gk-hint { max-width: 420px; }

@media (max-width: 1100px) {
  .try__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .try__side--right { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 720px) {
  .try__grid { grid-template-columns: 1fr; }
  .try__device { display: none; }
  .try__mobile { display: grid; gap: var(--space-4); }
  .try__side--right { display: none; }
}
