/* Style chung cho mọi trang app — "white room with a single blue switch".
   Sửa ở đây rồi chạy `node scripts/sites.mjs build`; file được chép vào dist/<site>/assets/apple.css. */
:root {
  color-scheme: light;
  --blue: #0071e3;        /* chỉ dùng làm nền nút chính */
  --link: #0066cc;        /* link và nút viền */
  --signal: #2997ff;      /* trang trí */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ash: #707070;
  --frost: #f5f5f7;
  --ice: #f4f8fb;
  --pebble: #e2e2e5;
  --hair: #d2d2d7;
  --white: #fff;
  --radius: 8px;
  --pill: 980px;
  --shadow-product: rgba(0, 0, 0, .22) 3px 5px 30px 0;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --gutter: 22px;
  --text-max: 692px;
  --content-max: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.47 var(--text);
  letter-spacing: -.016em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
strong, b { font-weight: 600; }
h1, h2, h3, .tagline, .tagline-sm { text-wrap: balance; }
code { font: .88em/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--white); padding: 8px 12px; }

/* ——— Global nav ——— */
.gnav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.gnav-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gnav-brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); font: 600 21px/1.24 var(--display); letter-spacing: .011em;
}
.gnav-brand:hover { text-decoration: none; }
.gnav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.gnav-links { display: flex; align-items: center; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.gnav-links::-webkit-scrollbar { display: none; }
.gnav-links a { color: var(--ink); font-size: 12px; letter-spacing: -.01em; white-space: nowrap; opacity: .8; padding: 14px 0; }
.gnav-links a:hover { opacity: 1; text-decoration: none; color: var(--link); }
.gnav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnav-links .lang { border: 1px solid var(--hair); border-radius: var(--pill); padding: 3px 10px; opacity: 1; }

/* ——— Buttons ——— */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: var(--pill);
  font: 400 17px/1.18 var(--text); letter-spacing: -.016em; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn-fill { background: var(--blue); color: var(--white); }
.btn-fill:hover { background: #0077ed; }
.btn-line { border-color: var(--link); color: var(--link); }
.btn-line:hover { background: var(--link); color: var(--white); }
.link-more::after { content: " ›"; }

/* ——— Hero ——— */
.hero { background: var(--frost); text-align: center; padding: 72px var(--gutter) 0; overflow: hidden; }
.eyebrow { font: 600 17px/1.24 var(--text); color: var(--ink-2); margin: 0 0 8px; letter-spacing: -.016em; }
.hero h1, .display {
  font: 600 56px/1.07 var(--display); letter-spacing: -.005em; margin: 0 auto; max-width: 16ch;
}
.tagline { font: 300 28px/1.18 var(--display); letter-spacing: .007em; margin: 12px auto 0; max-width: 30ch; }
.tagline-sm { font: 300 21px/1.38 var(--display); letter-spacing: .011em; color: var(--ink); margin: 12px auto 0; max-width: 40ch; }
.shots {
  display: flex; justify-content: center; align-items: flex-start; gap: 28px;
  margin: 56px auto 0; max-width: var(--content-max); height: 520px; overflow: hidden;
}
.shots img { width: 240px; margin-top: 64px; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-product); }
.shots img.lead { width: 280px; margin-top: 0; }
.shots .mock { width: 300px; height: auto; margin-top: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(3px 5px 30px rgba(0, 0, 0, .22)); }
.shots .framed { border-radius: 0; box-shadow: none; }
.shots.pair img { width: 260px; margin-top: 0; }
.shots.free { height: auto; overflow: visible; }
.hero.has-mock { padding-bottom: 64px; }
.hero + .section, .hero + .doc { border-top: 0; }

/* ——— Sections ——— */
.section { padding: 104px var(--gutter) 88px; text-align: center; }
.section.alt { background: var(--frost); }
.section h2 { font: 600 40px/1.1 var(--display); letter-spacing: 0; margin: 0 auto; max-width: 20ch; }
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: var(--content-max); margin: 56px auto 0; text-align: left;
}
.features h3 { font: 600 21px/1.24 var(--display); letter-spacing: .011em; margin: 0 0 8px; }
.features p { margin: 0; color: var(--ink-2); }
.features .num { display: block; font: 600 14px/1 var(--text); color: var(--signal); margin-bottom: 12px; letter-spacing: 0; }

/* ——— Document pages ——— */
.doc-head { background: var(--frost); padding: 72px var(--gutter) 56px; text-align: center; }
.doc-head h1 { font: 600 48px/1.08 var(--display); letter-spacing: -.003em; margin: 0 auto; max-width: 22ch; }
.doc-head .tagline-sm { color: var(--ink-2); }
.meta { font-size: 14px; line-height: 1.43; color: var(--ash); letter-spacing: -.016em; margin: 16px 0 0; }
.doc { max-width: calc(var(--text-max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 96px; }
.doc > :first-child { margin-top: 0; }
.doc:has(+ .contact) { padding-bottom: 72px; }
.doc h2 {
  font: 600 28px/1.14 var(--display); letter-spacing: .007em;
  margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--hair);
}
.doc h2:first-child { border-top: 0; padding-top: 0; }
.doc h3 { font: 600 21px/1.24 var(--display); margin: 32px 0 8px; }
.doc p, .doc li { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 16px; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--ash); }
.doc .lead { font: 300 21px/1.38 var(--display); letter-spacing: .011em; margin-bottom: 40px; }
.doc .lead strong { font-weight: 600; }
.toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li { margin: 0; }
.toc a { display: inline-block; font-size: 14px; padding: 6px 14px; border: 1px solid var(--hair); border-radius: var(--pill); color: var(--ink); }
.toc a:hover { border-color: var(--link); color: var(--link); text-decoration: none; }

/* Điểm nổi bật: chữ trên nền trắng, không thẻ, không bóng */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 0 8px; padding: 0; list-style: none; }
.facts li { margin: 0; padding-left: 30px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--signal);
  background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.5' fill='none' stroke='%232997ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.facts b { display: block; font: 600 17px/1.3 var(--text); margin-bottom: 4px; }
.facts span { color: var(--ink-2); font-size: 14px; line-height: 1.43; display: block; }

/* FAQ */
.faq { border-bottom: 1px solid var(--hair); margin: 0 0 16px; }
.faq details { border-top: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font: 600 17px/1.35 var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > :not(summary) { color: var(--ink-2); margin: -4px 0 20px; }

/* Khối liên hệ: CTA thuần chữ */
.contact { background: var(--frost); text-align: center; padding: 80px var(--gutter); }
.contact h2 { font: 600 40px/1.1 var(--display); margin: 0; }
.contact .actions { margin-top: 28px; }
.contact .meta { margin-top: 20px; }

/* ——— Footer ——— */
.gfoot { background: var(--frost); border-top: 1px solid var(--hair); color: var(--ash); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; }
.gfoot-inner { max-width: var(--content-max); margin: 0 auto; padding: 20px var(--gutter) 24px; }
.gfoot nav { display: flex; flex-wrap: wrap; gap: 4px 0; padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 12px; }
.gfoot nav a { color: var(--ink-2); }
.gfoot nav a + a::before { content: "|"; color: var(--hair); margin: 0 10px; }
.gfoot p { margin: 0; }

/* ——— Responsive ——— */
@media (max-width: 834px) {
  .hero h1, .display { font-size: 48px; }
  .features { grid-template-columns: 1fr; gap: 32px; max-width: var(--text-max); }
  .shots { height: 440px; }
  .shots img { width: 200px; }
  .shots img.lead { width: 232px; }
  .features { text-align: center; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .gnav-brand { font-size: 17px; }
  .gnav-brand img { width: 24px; height: 24px; border-radius: 6px; }
  .gnav-links { gap: 14px; }
  .hero { padding-top: 48px; }
  .hero h1, .display { font-size: 40px; line-height: 1.1; }
  .tagline { font-size: 21px; line-height: 1.24; }
  .actions { gap: 12px; }
  .shots { gap: 12px; margin-top: 40px; height: 400px; }
  .shots img.side { display: none; }
  .shots img.lead { width: 66%; margin-top: 0; border-radius: 24px 24px 0 0; }
  .shots.pair { height: 360px; }
  .shots.pair img { display: block; width: 46%; }
  .shots .mock { width: 72%; }
  .section { padding: 72px var(--gutter) 64px; }
  .section h2, .contact h2 { font-size: 32px; }
  .doc-head { padding: 48px var(--gutter) 40px; }
  .doc-head h1 { font-size: 36px; }
  .tagline-sm { font-size: 19px; line-height: 1.32; }
  .doc .lead { font-size: 19px; }
  .actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .gfoot nav { gap: 6px 18px; }
  .gfoot nav a + a::before { content: none; }
  .doc { padding-top: 40px; }
  .doc h2 { font-size: 24px; margin-top: 44px; padding-top: 28px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .contact { padding: 64px var(--gutter); }
}
@media (max-width: 440px) {
  .gnav-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gnav-links { gap: 16px; }
  .gnav-links a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
