/* ===== About Us: cerita singkat + media sosial asli Mosu di layar iPhone ===== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 391px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about-lede { font: 800 clamp(26px, 3vw, 38px)/1.15 var(--f-display); letter-spacing: -0.02em; margin: 0 0 18px; }
.about-copy > p:not(.about-lede) { max-width: 34em; color: var(--muted); margin: 0 0 clamp(28px, 4vw, 44px); }

/* Pilihan akun (tab): baris besar, yang aktif ditandai garis hijau */
.socials { display: grid; border-top: 2px solid currentColor; }
.social {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 4px 20px 0;
  border: 0; border-bottom: 2px solid currentColor;
  background: none; color: inherit; text-align: left;
  font: inherit; cursor: pointer;
  position: relative;
}
.social-name { font: 800 clamp(26px, 3.2vw, 40px)/1 var(--f-display); letter-spacing: -0.02em; transition: color .2s ease, translate .25s ease; }
.social-handle { font-weight: 600; color: var(--muted); }
.social::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--green); scale: 0; transition: scale .25s ease;
}
.social.is-on .social-name { color: var(--green-ink); translate: 22px 0; }
.social.is-on::before { scale: 1; }
.social:hover .social-name { color: var(--green-ink); }
.social:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

/* ---------- iPhone ---------- */
/* iPhone dirender di ukuran asli (391 x 800) lalu diperkecil sesuai layar oleh about.js (--s),
   supaya embed di dalamnya tetap selebar aslinya dan iPhone selalu terlihat utuh */
.iphone-col { position: relative; width: 100%; max-width: 391px; height: calc(800px * var(--s, 1)); justify-self: center; }
.iphone {
  position: absolute; left: 50%; top: 0;
  width: 391px; height: 800px;
  margin-left: -195.5px;
  transform: scale(var(--s, 1));
  transform-origin: 50% 0;
  filter: drop-shadow(0 40px 60px rgba(22, 74, 62, .28)) drop-shadow(0 8px 16px rgba(0, 0, 0, .12));
}
.iphone-frame { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Layar: ukuran mengikuti area transparan di gambar bingkai (391 x 800) */
.iphone-screen {
  position: absolute;
  left: 4.86%; top: 2%;
  width: 90.54%; height: 96.13%;
  border-radius: 14.5% / 6.7%;
  overflow: hidden;
  background: #FFFFFF;
  color: #000000;
  container-type: inline-size;
  font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", var(--f-body);
}

/* Status bar iOS */
.ios-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  height: 15cqw;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6cqw 7.5cqw 0 9.5cqw;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  backdrop-filter: saturate(1.8) blur(12px);
}
.ios-time { font-size: 4.7cqw; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ios-icons { display: flex; align-items: center; gap: 1.6cqw; }
.ios-icons svg { fill: currentColor; height: 3.5cqw; width: auto; }
.ios-icons svg:last-child { height: 3.7cqw; }

/* Garis home indicator */
.ios-home {
  position: absolute; left: 50%; bottom: 2.2cqw; z-index: 4;
  width: 38%; height: 1.5cqw; translate: -50% 0;
  border-radius: 99px; background: #000000;
  pointer-events: none;
}

/* Isi layar: tampilan ala aplikasi iOS (latar abu-abu grouped, judul besar, widget dalam kartu) */
.ph-panel {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  display: flex; flex-direction: column;
  padding: 15cqw 4cqw 10cqw;
  background: #F2F2F7;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ph-panel::-webkit-scrollbar { display: none; }
.ph-panel:not([hidden]) { animation: phIn .35s ease both; }
@keyframes phIn { from { opacity: 0; } }
.iphone-screen .ios-bar { background: rgba(242, 242, 247, .9); }

/* Judul besar gaya iOS */
.ph-head { flex: none; padding: 2cqw 1.5cqw 3.5cqw; }
.ph-title { margin: 0; font-size: 8.6cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #000000; }
.ph-sub { margin: .8cqw 0 0; font-size: 3.9cqw; color: #8A8A8E; font-weight: 500; }

/* Widget embed di dalam kartu putih bersudut; kartu + tombol berada di tengah sisa layar */
.ph-box {
  flex: none;
  position: relative;
  margin-top: auto;
  border-radius: 5cqw;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .18);
  min-height: 40cqw;
}
/* Tulisan "Memuat..." di belakang widget, hilang setelah widget tampil */
.ph-box::before {
  content: "Loading…";
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  text-align: center; font-size: 3.8cqw; color: #8A8A8E;
}
.ph-panel.is-loaded .ph-box::before { content: none; }
.ph-box > * { position: relative; }

.ph-frame { display: block; width: 100%; height: 470px; border: 0; background: transparent; }
.ph-box .tiktok-embed, .ph-box .text-post-media { margin: 0 !important; }
.ph-box .tiktok-embed { min-width: 0 !important; }
.ph-box .text-post-media { padding: 2cqw; }

/* Tombol di bawah kartu */
.ph-open {
  flex: none;
  display: block; align-self: center;
  margin: 4.5cqw 0 0;
  padding: 3.2cqw 7cqw;
  border-radius: 99px;
  background: var(--forest); color: var(--on-forest);
  font: 700 3.7cqw/1.1 var(--f-body);
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(22, 74, 62, .6);
}
.ph-open:hover { background: #000000; }
.ph-open:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.ph-retry {
  flex: none; align-self: center;
  margin: 3cqw 0 0; padding: 1.5cqw 3cqw;
  border: 0; background: none; color: #8A8A8E;
  font: 600 3.3cqw/1.2 var(--f-body); text-decoration: underline; cursor: pointer;
}
.ph-retry:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* Elemen terakhir mendorong ke atas: kartu + tombol berada di tengah sisa layar */
.ph-panel > :last-child { margin-bottom: auto; }

/* ---------- TikTok: satu video penuh layar ---------- */
.ph-panel.ph-video { padding: 15cqw 0 0; background: #000000; color: #FFFFFF; overflow: hidden; }
.iphone-screen.is-dark .ios-bar { background: #000000; color: #FFFFFF; }
.iphone-screen.is-dark .ios-home { background: #FFFFFF; }
.pv-top { flex: none; display: flex; align-items: center; gap: 2.6cqw; padding: 1.5cqw 4cqw 3cqw; }
.pv-avatar { flex: none; width: 10cqw; aspect-ratio: 1; border-radius: 50%; background: var(--green); position: relative; }
.pv-avatar::after {
  content: ""; position: absolute; top: 26%; right: 26%; bottom: 26%; left: 26%; inset: 26%; background: #FFFFFF;
  -webkit-mask: var(--clover) center / contain no-repeat; mask: var(--clover) center / contain no-repeat;
}
.pv-who { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pv-who b { font-size: 3.9cqw; }
.pv-who span { font-size: 3.2cqw; color: rgba(255, 255, 255, .65); }
.pv-follow {
  flex: none; padding: 2cqw 5.5cqw; border-radius: 1.6cqw;
  background: #FE2C55; color: #FFFFFF;
  font-size: 3.6cqw; font-weight: 700; text-decoration: none;
}
.pv-follow:hover { filter: brightness(1.08); }
.pv-follow:focus-visible, .pv-more:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.pv-player { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: #000000; }
.pv-more {
  flex: none; display: block; padding: 3.4cqw 4cqw 9cqw;
  color: rgba(255, 255, 255, .8); font-size: 3.4cqw; font-weight: 600; text-align: center; text-decoration: none;
}
.pv-more:hover { color: #FFFFFF; }

/* ---------- Threads: satu postingan ---------- */
.ph-panel.ph-thread { padding-top: 15cqw; }
.ph-thread .pv-top { margin: 0 -4cqw; padding: 1.5cqw 4cqw 3cqw; }
.ph-thread .pv-who span { color: #8A8A8E; }
.ph-thread .pv-avatar { background: var(--forest); }
.ph-thread .pv-avatar::after { background: var(--green); }
.th-follow { background: #000000; border-radius: 2.4cqw; }
.th-box { margin-top: auto; }
.th-box .text-post-media { min-width: 0 !important; width: 100% !important; max-width: none !important; }
/* Lapisan klik di atas postingan: diklik di mana pun -> profil Threads Mosu */
.ph-box > .ph-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3; border-radius: inherit; }
.ph-cover:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }

/* Threads: kartu profil (Threads hanya bisa menampilkan postingan, bukan profil) */
.ph-card { display: grid; justify-items: center; padding: 9cqw 7cqw 8cqw; text-align: center; }
.ph-avatar {
  width: 22cqw; aspect-ratio: 1; border-radius: 50%;
  background: var(--forest); position: relative;
}
.ph-avatar::after {
  content: ""; position: absolute; top: 24%; right: 24%; bottom: 24%; left: 24%; inset: 24%;
  background: var(--green);
  -webkit-mask: var(--clover) center / contain no-repeat; mask: var(--clover) center / contain no-repeat;
}
.ph-name { margin: 4cqw 0 0; font: 800 5.6cqw/1.1 var(--f-display); }
.ph-handle { margin: 1cqw 0 0; font-size: 3.8cqw; color: #6B6B6B; font-weight: 600; }
.ph-text { margin: 4cqw 0 0; font-size: 3.8cqw; line-height: 1.5; color: #333333; }

/* ---------- Tablet & HP ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .iphone-col { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-panel:not([hidden]) { animation: none; }
  .social-name, .social::before { transition: none; }
}

/* Threads: link cadangan bawaan embed selalu disembunyikan (di mana pun Threads menaruhnya).
   Isi postingan ada di dalam iframe Threads, jadi tidak terpengaruh; klik kartu tetap ke profil lewat .ph-cover */
.th-box a:not(.ph-cover) { display: none !important; }
.th-box iframe { display: block; max-width: 100%; }
