/*
 * Astrolith — ana sayfa (Apple ürün sayfası dili).
 * Az söz, büyük yazı, bol boşluk; sahne olarak gerçek dokulu gezegenler.
 * Gezegenler Cycles'ta kare kare çizildi; sayfa kaydırmaya göre kareyi seçer (home.js).
 * Ortak jetonlar site.css'ten gelir; burada yalnızca bu sayfanın düzeni var.
 */

body.home { background: var(--void); }
body.home .progress { display: none; }

/* ------------------------------------------------------------ kıpırtısız metin geçişleri */
.ap-up { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.ap-up.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ açılış */
.ap-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; overflow: clip; text-align: center; padding-top: 52px; }
.ap-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, var(--void)); z-index: 2; pointer-events: none; }
.ap-hero .copy { position: relative; z-index: 3; padding: clamp(48px, 9vh, 100px) var(--gutter) 0; }
.ap-hero .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.ap-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 8.6vw, 128px); line-height: 1.0; letter-spacing: -.028em; margin: 22px auto 0; max-width: 11em; text-wrap: balance; }
.ap-hero .sub { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; color: var(--reading); max-width: 30em; margin: 26px auto 0; text-wrap: pretty; }
.ap-hero .links { display: flex; justify-content: center; gap: 30px; margin-top: 30px; font-size: 18px; }
.ap-hero .links a { color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.ap-hero .links a::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .3s var(--ease); }
.ap-hero .links a:hover::after { transform: translateX(3px); }
.ap-hero .links a.ghost { color: var(--muted); }
.ap-hero .links a.ghost::after { content: none; }
.ap-stage { position: relative; min-height: 46svh; }
.ap-hero canvas, .ap-hero img.poster { width: min(118vw, 1500px); aspect-ratio: 1; position: absolute; left: 50%; top: 8%; translate: -50% 0; }
.ap-hero img.poster { filter: blur(14px); transform: scale(.985); opacity: .9; transition: opacity .6s; }
.ap-hero.ready img.poster { opacity: 0; }
.ap-hero .glow { position: absolute; left: 50%; top: 0; translate: -50% 0; width: min(100vw, 1600px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 241, 247, .09), transparent 70%); pointer-events: none; }
.ap-now { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; text-align: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); padding: 0 var(--gutter); }
.ap-now b { color: var(--text); font-weight: 500; font-family: var(--sans); }
.ap-now i { font-style: normal; color: var(--lime); }
.ap-now .sep { margin: 0 12px; color: var(--ghost); }
@media (max-width: 700px) { .ap-now { font-size: 11.5px; line-height: 1.7; } .ap-now .sep { margin: 0 8px; } .ap-hero .links { flex-direction: column; gap: 12px; align-items: center; } }

/* ------------------------------------------------------------ gezegen hikâyesi: tek yapışkan sahne */
.ap-story { position: relative; }
.ap-story .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.ap-story .drivers { margin-top: -100vh; margin-top: -100svh; padding-bottom: 100vh; padding-bottom: 100svh; pointer-events: none; }
.ap-story .ch { position: absolute; inset: 0; opacity: 0; will-change: opacity; pointer-events: none; }
.ap-story .ch.on { pointer-events: auto; }
.ap-story .planet { position: absolute; width: var(--planet-w, min(84vh, 92vw)); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; will-change: transform, opacity; opacity: 0; }
.ap-story .planet canvas, .ap-story .planet img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-story .planet img.poster { filter: blur(12px); opacity: .9; transition: opacity .5s; }
.ap-story .planet.ready img.poster { opacity: 0; }
.ap-story .beat { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; padding: 0 var(--gutter); opacity: 0; pointer-events: none; z-index: 2; will-change: transform, opacity; }
.ap-story .beat .box { width: min(100%, 1180px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 470px); }
.ap-story .beat.center .box { grid-template-columns: minmax(0, 620px); }
.ap-story .beat.right .box { justify-content: end; }
.ap-story .beat.center .box { justify-content: center; text-align: center; }
.ap-story .ch[data-kind="pair"] .beat { align-content: start; padding-top: 14vh; }
.ap-story .k { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--id-ink); }
.ap-story h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.024em; margin-top: 18px; text-wrap: balance; }
.ap-story h2 em { font-style: normal; color: var(--id-ink); }
.ap-story p { margin-top: 20px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--reading); text-wrap: pretty; }
.ap-story .live { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-top: 18px; }
.ap-story .live b { color: var(--text); font-weight: 500; }
.ap-story .more { margin-top: 22px; display: inline-flex; gap: 6px; align-items: center; color: var(--id-ink); font-weight: 500; font-size: 17px; }
.ap-story .more::after { content: "›"; font-size: 1.25em; line-height: 1; }
.ap-story .dim { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent 30%, var(--void) 100%); opacity: .2; pointer-events: none; z-index: 1; }
.ap-story .pair { position: absolute; inset: 0; }
.ap-story .pair .planet { width: min(40vh, 36vw); top: 62%; }
@media (max-width: 900px) {
  .ap-story .planet { --planet-w: min(74vw, 46vh); top: 38%; }
  .ap-story .beat { align-content: end; padding-bottom: 12vh; }
  .ap-story .beat .box, .ap-story .beat.right .box { justify-content: start; }
  .ap-story .pair .planet { top: 36%; width: 36vw; }
}

/* Sözün karşısındaki gerçek ekran: gezegen geri çekilir, telefon öne gelir. */
.ap-story .shot { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: min(34vh, 300px); opacity: 0; will-change: transform, opacity; z-index: 2; pointer-events: none; }
.ap-story .beat.left .shot { left: auto; right: 10vw; translate: 0 -50%; }
.ap-story .beat.right .shot { left: 10vw; translate: 0 -50%; }
.ap-story .shot .phone { width: 100%; box-shadow: 0 0 0 1px #2b2b36, 0 0 0 2px #0c0c11, 0 80px 140px -40px rgba(0,0,0,.95), 0 0 160px -40px color-mix(in srgb, var(--id) 45%, transparent); }
.ap-story .shot .phone img { opacity: 1; transform: none; }
@media (max-width: 900px) { .ap-story .shot { width: min(40vw, 200px); top: 34%; } .ap-story .beat.left .shot, .ap-story .beat.right .shot { left: auto; right: 6vw; translate: 0 -50%; } }

/* ------------------------------------------------------------ ürün */
.ap-product { padding: clamp(96px, 14vw, 200px) 0; text-align: center; position: relative; overflow: clip; }
.ap-product .wrap { max-width: 1100px; }
.ap-product h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.024em; text-wrap: balance; margin: 0 auto; max-width: 12em; }
.ap-product .sub { margin: 22px auto 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 21px); color: var(--reading); }
.ap-product .shots { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3.4vw, 56px); margin-top: clamp(48px, 7vw, 96px); }
.ap-product .phone { width: min(400px, 34vw); flex: 0 0 auto; will-change: transform, opacity; }
.ap-product .phone.side { width: min(330px, 26vw); }
.ap-product .phone img { opacity: 1; transform: none; }
.ap-product .receipt { text-align: left; max-width: 560px; margin: clamp(40px, 6vw, 72px) auto 0; }
.ap-product .note { margin-top: 18px; }
@media (max-width: 700px) { .ap-product .phone.side { display: none; } .ap-product .phone { width: min(340px, 82vw); } }

/* ------------------------------------------------------------ sayılar, planlar, indir (Apple'ın sakin ızgaraları) */
.ap-grid { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line-soft); }
.ap-grid .wrap { max-width: 1100px; }
.ap-grid .head { text-align: center; }
.ap-grid h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
.ap-grid .sub { margin: 18px auto 0; max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.ap-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.ap-tile { border-radius: 26px; background: var(--surface); padding: 34px 30px 36px; display: grid; align-content: start; gap: 10px; min-height: 220px; }
.ap-tile .big { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -.03em; }
.ap-tile .big small { font-size: .44em; color: var(--muted); margin-left: .1em; }
.ap-tile h3 { font-size: 19px; font-weight: 600; margin-top: 6px; }
.ap-tile p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.ap-tile.lime { background: linear-gradient(160deg, color-mix(in srgb, var(--lime) 16%, var(--surface)), var(--surface) 70%); }
.ap-tile.cyan { background: linear-gradient(160deg, color-mix(in srgb, var(--cyan) 14%, var(--surface)), var(--surface) 70%); }
.ap-tile.peri { background: linear-gradient(160deg, color-mix(in srgb, var(--peri) 18%, var(--surface)), var(--surface) 70%); }
.ap-tile.pink { background: linear-gradient(160deg, color-mix(in srgb, var(--pink) 14%, var(--surface)), var(--surface) 70%); }
.ap-tile.wide { grid-column: span 2; }
@media (max-width: 900px) { .ap-tiles { grid-template-columns: 1fr; } .ap-tile.wide { grid-column: auto; } }
.ap-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.ap-plan { border-radius: 26px; background: var(--surface); padding: 36px 34px 38px; }
.ap-plan.plus { background: linear-gradient(160deg, color-mix(in srgb, var(--lime) 12%, var(--surface)), var(--surface) 65%); outline: 1px solid color-mix(in srgb, var(--lime) 35%, transparent); }
.ap-plan h3 { font-family: var(--serif); font-weight: 300; font-size: 40px; letter-spacing: -.02em; }
.ap-plan .price { margin-top: 8px; color: var(--muted); font-size: 15px; }
.ap-plan .price b { font-size: 22px; color: var(--text); font-weight: 500; }
.ap-plan ul { margin-top: 24px; display: grid; gap: 11px; }
.ap-plan li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--reading); font-size: 15.5px; }
.ap-plan li svg { margin-top: 4px; color: var(--lime); }
.ap-plan .fine { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .ap-plans { grid-template-columns: 1fr; } }
.ap-get { text-align: center; padding: clamp(80px, 12vw, 160px) 0 clamp(70px, 10vw, 120px); border-top: 1px solid var(--line-soft); position: relative; overflow: clip; }
.ap-get .mark { width: 84px; height: 84px; border-radius: 22.37%; margin: 0 auto 26px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 90px -30px color-mix(in srgb, var(--lime) 50%, transparent); }
.ap-get h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: 1.04; letter-spacing: -.022em; }
.ap-get .sub { margin: 18px auto 0; color: var(--muted); max-width: 30em; font-size: 18px; }
.ap-get .stores { margin-top: 34px; }
.ap-credits { font-size: 12px; color: var(--faint); text-align: center; padding: 0 var(--gutter) 28px; }
.ap-credits a { color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ap-up { opacity: 1; transform: none; }
}
