/* CasperTalk for iPhone & iPad — page-specific styles on top of landing.css.
   Phone mockups are CSS (like the feature art on the home page), so they stay
   crisp and animate without screenshots. */

/* ---------- hero ---------- */
.ios-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(52% 40% at 50% -4%, rgba(48, 230, 153, .62), rgba(48, 230, 153, .16) 46%, transparent 72%),
    radial-gradient(30% 40% at 4% 46%, rgba(16, 140, 104, .38), transparent 62%),
    radial-gradient(30% 40% at 96% 46%, rgba(16, 140, 104, .38), transparent 62%),
    linear-gradient(180deg, #0a1a15 0%, #05070a 34%, #05070a 100%);
}
.ios-top {
  max-width: var(--max); margin: 0 auto; padding: 22px 20px 0;
  display: flex; align-items: center; gap: 16px;
}
.ios-top .brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.ios-top nav { margin-left: auto; display: flex; gap: 22px; }
.ios-top nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font: 500 14px/1 var(--sans); }
.ios-top nav a:hover { color: #fff; }

.ios-copy { text-align: center; max-width: 860px; margin: 0 auto; padding: 72px 20px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font: 600 13px/1 var(--sans); color: rgba(255, 255, 255, .86);
}
.eyebrow b { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 4px 8px; font-size: 11px; letter-spacing: .02em; }
.ios-hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; margin-top: 22px; }
.ios-hero .lede { max-width: 640px; }
.ios-hero .fine { color: rgba(255, 255, 255, .5); margin-top: 18px; }

/* "Coming soon on the App Store": looks like a button, isn't a link yet. */
.btn-soon { background: #fff; color: var(--ink); cursor: default; }
.btn-soon:hover { transform: none; }
.btn-soon small { font: 600 11px/1 var(--sans); color: var(--accent-deep); background: rgba(48, 230, 153, .18); padding: 4px 7px; border-radius: 999px; letter-spacing: .02em; }

/* ---------- phones ---------- */
.phones {
  position: relative; max-width: var(--max); margin: 64px auto 0; padding: 0 20px 96px;
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 4vw, 56px);
}
.phone-wrap { display: grid; justify-items: center; gap: 18px; }
.phone-wrap figcaption { font: 600 14px/1.3 var(--sans); color: rgba(255, 255, 255, .78); text-align: center; }
.phone-wrap figcaption span { display: block; font-weight: 500; color: rgba(255, 255, 255, .5); margin-top: 3px; }
.phone-wrap.center { transform: translateY(-36px); }

.phone {
  --w: 236px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--w) * .17); padding: calc(var(--w) * .034);
  background: linear-gradient(145deg, #42464e, #15171b 38%, #2c2f35 70%, #17191d);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.phone.lg { --w: 270px; }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .14); background: #000; isolation: isolate;
}
.island {
  position: absolute; z-index: 9; top: calc(var(--w) * .03); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * .088); border-radius: 999px; background: #000;
}

/* A selfie camera's view, out of focus behind the UI: window light, a
   room, a person. */
.selfie {
  position: absolute; inset: -8%;
  filter: blur(7px) saturate(1.1);
  background:
    radial-gradient(40% 26% at 16% 20%, rgba(255, 232, 196, .55), transparent 70%),
    radial-gradient(30% 22% at 86% 34%, rgba(120, 170, 150, .35), transparent 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(0, 0, 0, .5), transparent 70%),
    linear-gradient(180deg, #4a4c52 0%, #2c2e33 55%, #17181b 100%);
}
.selfie::before { /* head, with hair */
  content: ""; position: absolute; left: 50%; top: 45%; transform: translateX(-50%);
  width: 34%; aspect-ratio: .82; border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(70% 34% at 50% 6%, #2a1d17 0 60%, transparent 62%),
    radial-gradient(circle at 42% 44%, #d8b298 0 28%, #b48b70 52%, #7d5a46 80%);
}
.selfie::after { /* shoulders */
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 92%; height: 30%; border-radius: 46% 46% 0 0;
  background: linear-gradient(180deg, #3d4f6b, #232d3d);
}
.selfie.b {
  background:
    radial-gradient(40% 26% at 84% 18%, rgba(196, 220, 255, .45), transparent 70%),
    radial-gradient(34% 24% at 14% 40%, rgba(255, 190, 120, .3), transparent 70%),
    linear-gradient(180deg, #3c3a40 0%, #26252a 55%, #141417 100%);
}
.selfie.b::before { background: radial-gradient(70% 30% at 50% 4%, #120d0b 0 62%, transparent 64%), radial-gradient(circle at 42% 44%, #a87a5a 0 28%, #865c42 52%, #5a3c2b 80%); }
.selfie.b::after { background: linear-gradient(180deg, #6b5a48, #3b3127); }

/* A creator on camera: the photo fills the screen behind the UI. */
.cam-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-ui, .rec-ui { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cam-ui::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0;
  top: calc(var(--w) * -.22); bottom: calc(var(--w) * -.16); /* past the screen's edge, which clips it */
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .42) 70%); }

/* Script lines that scroll by themselves. */
.lines { position: relative; overflow: hidden; }
.lines .track { animation: ios-scroll 16s linear infinite; }
.lines p { margin: 0; font-weight: 700; color: rgba(255, 255, 255, .45); white-space: nowrap; }
.lines p.on { color: #fff; }
@keyframes ios-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Float: the window across the top of a camera app. */
/* An explicit width: with only left and right, Safari shrinks this
   aspect-ratio box to its longest line. */
.float-win {
  position: absolute; z-index: 6; left: 5%; width: 90%; top: calc(var(--w) * .145);
  aspect-ratio: 2.5 / 1; border-radius: calc(var(--w) * .05);
  background: rgba(0, 0, 0, .9); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .1);
  padding: 7% 7% 0; overflow: hidden;
}
.float-win .lines { height: 76%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.float-win .lines p { font-size: calc(var(--w) * .062); line-height: 1.32; }
.float-win .bar { position: absolute; left: 7%; bottom: 7%; height: 2px; width: 34%; border-radius: 2px; background: var(--accent); animation: ios-bar 16s linear infinite; }
@keyframes ios-bar { from { width: 18%; } to { width: 86%; } }
.cam-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 5%; display: grid; justify-items: center; gap: calc(var(--w) * .035); }
.cam-ui .modes { display: flex; gap: 12px; font: 700 calc(var(--w) * .032)/1 var(--sans); letter-spacing: .06em; color: rgba(255, 255, 255, .85); }
.cam-ui .modes b { color: #ffd23f; }
.shutter { width: calc(var(--w) * .2); aspect-ratio: 1; border-radius: 50%; border: calc(var(--w) * .014) solid #fff; display: grid; place-items: center; }
.shutter i { width: 80%; aspect-ratio: 1; border-radius: 50%; background: #ff453a; }
.shutter.rec i { width: 42%; border-radius: 22%; }

/* Record: the panel right under the lens. */
.panel {
  position: absolute; z-index: 6; left: 4%; right: 4%; top: calc(var(--w) * .13);
  height: 31%; border-radius: calc(var(--w) * .07); background: rgba(0, 0, 0, .86);
  padding: 7% 7% 0; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.panel .lines { height: 100%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 70%, transparent); }
.panel .lines p { font-size: calc(var(--w) * .07); line-height: 1.34; }
.panel-handle { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); top: calc(var(--w) * .13 + 31% + 6px); width: 16%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .5); }
.rec-pill {
  position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(5% + var(--w) * .25);
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  background: #ff453a; color: #fff; font: 700 calc(var(--w) * .045)/1 var(--sans);
}
.rec-pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.rec-ui { position: absolute; z-index: 6; left: 0; right: 0; bottom: 5%; display: flex; justify-content: space-evenly; align-items: center; }

/* Prompter: full screen text. */
.prompter-screen { position: absolute; inset: 0; background: #000; padding: 22% 8% 0; }
.prompter-screen .lines { height: 70%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 74%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 74%, transparent); }
.prompter-screen .lines p { font-size: calc(var(--w) * .086); line-height: 1.3; }
.p-controls { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; justify-content: center; gap: calc(var(--w) * .035); }
.p-controls .play { width: calc(var(--w) * .15); aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.p-controls .play::before { content: ""; margin-left: 12%; border-left: calc(var(--w) * .045) solid var(--accent-ink); border-top: calc(var(--w) * .03) solid transparent; border-bottom: calc(var(--w) * .03) solid transparent; }

/* ---------- light sections ---------- */
.modes-list { list-style: none; margin: 48px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.modes-list li { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; }
.modes-list .tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.modes-list .tag i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-style: normal; font-size: 13px; }
.modes-list h3 { margin-bottom: 8px; }
.modes-list p { color: var(--ink-2); font-size: 15.5px; }

.art-hdr { background: linear-gradient(180deg, rgba(5, 7, 10, .1), rgba(5, 7, 10, .55)), url(/img/ios/card-hdr.jpg) center / cover; }
.art-hdr .hdr-badge { padding: 14px 20px; border-radius: 16px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hdr-badge { display: grid; gap: 8px; justify-items: center; color: #fff; }
.hdr-badge b { font: 700 54px/1 var(--sans); letter-spacing: -.04em; }
.hdr-badge span { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.art-apps { background: linear-gradient(180deg, rgba(5, 7, 10, .15), rgba(5, 7, 10, .6)), url(/img/ios/card-apps.jpg) center 30% / cover; }
.app-chips { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0 8%; }
.app-chips span { padding: 7px 11px; border-radius: 999px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: rgba(255, 255, 255, .85); font: 600 12.5px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.art-apps .mini-float { position: absolute; top: 14%; left: 12%; right: 12%; padding: 12px 14px 14px; border-radius: 12px; background: rgba(0, 0, 0, .9); color: #fff; font: 700 14px/1.3 var(--sans); text-align: left; box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.art-apps .mini-float em { display: block; color: rgba(255, 255, 255, .45); font-style: normal; }
.art-apps .mini-float::after { content: ""; position: absolute; left: 14px; bottom: 7px; width: 40%; height: 2px; border-radius: 2px; background: var(--accent); }
.art-ipad { background: linear-gradient(170deg, #f5f6f8, #e2e6eb); }
.ipad { width: 72%; aspect-ratio: 4 / 3; border-radius: 14px; background: #16181c; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); }
.ipad div { height: 100%; border-radius: 9px; background: #000; color: #fff; display: grid; place-items: center; font: 700 17px/1.3 var(--sans); padding: 12px; transform: scaleX(-1); }
.art-private { background: linear-gradient(170deg, #2b2f36, #0e1116); color: var(--accent); }
.art-private .local-line { color: rgba(255, 255, 255, .7); }
.mini-phone { width: 74px; height: 140px; border-radius: 18px; background: #0e1116; box-shadow: inset 0 0 0 4px #2a2f36; display: grid; place-items: center; }

/* Right under the lens: the top of an iPhone, the panel under the island. */
.art-island { align-content: start; background: linear-gradient(170deg, #2b2f36, #0e1116); }
.art-island .phone-top { width: 78%; height: 46px; margin: 0 auto; border-radius: 0 0 26px 26px; background: #050608; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); display: grid; place-items: center; }
.art-island .pill { width: 34%; height: 18px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), inset 6px 0 0 -2px rgba(48, 230, 153, .0); position: relative; }
.art-island .pill::after { content: ""; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a4a5a 0 25%, #0b1016 60%); box-shadow: 0 0 8px rgba(48, 230, 153, .35); }
.art-island .under-panel { width: 70%; margin: 10px auto 0; padding: 16px 14px; border-radius: 14px; background: rgba(0, 0, 0, .86); color: #fff; font: 600 14.5px/1.35 var(--sans); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .07); }

/* Pricing: "every month" on the free plan. */
.plan .price small { font: 500 13px/1 var(--sans); color: var(--ink-3); }
.btn-soon-dark { background: var(--ink); color: #fff; opacity: .55; cursor: default; }
.btn-soon-dark:hover { transform: none; background: var(--ink); }

/* The carousel's position dots (small screens only, see below). */
.phone-dots { display: none; justify-content: center; gap: 8px; padding: 0 0 72px; }
.phone-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .25s, background .25s; }
.phone-dots i.on { width: 22px; background: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .modes-list { grid-template-columns: 1fr; }
  .phone { --w: 200px; }
  .phone.lg { --w: 228px; }
}
@media (max-width: 720px) {
  /* One phone at a time, swiped sideways (Nov 14: Record and Prompter used
     to be hidden). It opens on Float in the middle, Record peeking in on the
     left and Prompter on the right, so both sides are balanced at any width
     (opening on the first phone left the left side empty). */
  .phones {
    justify-content: flex-start; align-items: flex-start; gap: 16px;
    padding: 0 calc(50% - 125px) 28px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  /* The phone's width (captions wrap); no <figure> side margins, so the next
     phone peeks in. */
  .phone-wrap { flex: none; width: 250px; margin: 0; scroll-snap-align: center; }
  .phone-wrap.center { transform: none; }
  .phone, .phone.lg { --w: 250px; }
  .phone-dots { display: flex; }
  .ios-top nav { display: none; }
  .ios-copy { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .lines .track, .float-win .bar { animation: none; }
}
