/* Gori landing: page CSS for what sits inside the visuals (the kit has no phone frame or 3D stage). */

.logo-word { display: block; height: 30px; width: auto; }
@media (max-width: 639px) { .logo-word { height: 26px; } }

.btn .apple { width: 15px; height: 18px; margin-right: var(--s-2); flex: none; }

/* hero stage: the 3D phones over an aurora ground; the still (three flat phones) shows until the scene draws,
   and stays on a phone, under reduced motion and when WebGL fails */
.hero--product .hero__stage.phones {
  background:
    radial-gradient(40% 60% at 30% 70%, rgb(77 155 255 / .28), transparent 70%),
    radial-gradient(35% 55% at 72% 62%, rgb(45 212 191 / .18), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgb(106 69 200 / .22), transparent 75%),
    #0d1322;
  border: 1px solid rgb(255 255 255 / .06);
}
.phones canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 600ms var(--ease, ease); }
.phones.is-live canvas { opacity: 1; }
.phones.is-live .phones__still { opacity: 0; }
.phones__still { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4%; transition: opacity 600ms var(--ease, ease); }
/* the still phones take the same iPhone frame as the section phones (.device) */
.still { position: relative; height: 86%; width: auto; }
.still--l, .still--r { height: 74%; opacity: .9; }
@media (max-width: 639px) { .phones__still .still--l, .phones__still .still--r { display: none; } .phones__still .still--c { height: 90%; } }

/* section phones: the client's real screens in a plain phone frame, two side by side ending on the right line */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter, 24px); align-items: start; }
.device {
  /* iPhone 17 Pro: screen corners about 14% of its width, a thin even black border (1.8%), a titanium band */
  position: relative; margin: 0; width: 100%; aspect-ratio: 660 / 1434;
  border-radius: 16.5% / 7.6%; padding: 1.8%; background: #05070b;
  box-shadow: 0 0 0 1.5px #565c68, 0 0 0 3px #2a2f3a, 0 40px 80px -40px rgb(0 0 0 / .9);
}
.device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14.9% / 6.9%; }
/* the Dynamic Island: 126 x 37 pt on the 440 x 956 pt screen of the captures, 11 pt from its top */
.device::after {
  content: ""; position: absolute; left: 50%; top: 1.96%; transform: translateX(-50%);
  width: 27.6%; aspect-ratio: 126 / 37; border-radius: 999px; background: #000;
}
/* the side buttons: action and volume on the left, the side button on the right */
.device::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    linear-gradient(#565c68, #565c68) left -3px top 19% / 3px 3.5% no-repeat,
    linear-gradient(#565c68, #565c68) left -3px top 26% / 3px 6.5% no-repeat,
    linear-gradient(#565c68, #565c68) left -3px top 34% / 3px 6.5% no-repeat,
    linear-gradient(#565c68, #565c68) right -3px top 27% / 3px 10% no-repeat;
}
.device { isolation: isolate; }
.phones__still .device { width: auto; }
/* progress cards: a crop of the real screen, from --crop down */
.panel--crop { --p-h: 320px; overflow: hidden; background: #1c2232; }
.panel--crop .frame__img { width: 100%; height: auto; object-fit: initial; transform: translateY(calc(-1 * var(--crop, 0%))); }
@media (max-width: 639px) { .panel--crop { --p-h: 180px; } }
.panel--shot { overflow: hidden; }
.panel--shot .frame__img { object-position: 50% 30%; }

/* plans */
.plan-card { position: relative; }
.plan-card__gori { position: absolute; right: var(--s-6); top: var(--s-5); width: 120px; height: auto; }
.ticks { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.ticks li { position: relative; padding-left: var(--s-6); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in oklab, var(--p-action) 22%, transparent);
  -webkit-mask: none;
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.3em + 4px); width: 6px; height: 4px;
  border-left: 1.6px solid var(--p-action); border-bottom: 1.6px solid var(--p-action); transform: rotate(-45deg);
}
@media (max-width: 639px) { .plan-card__gori { width: 84px; right: var(--s-4); top: var(--s-4); } }

.faq__gori { display: block; margin-top: var(--s-6); width: 200px; height: auto; }
@media (max-width: 1023px) { .faq__gori { width: 120px; margin-top: var(--s-4); } }
@media (max-width: 639px) { .faq__gori { width: 96px; } }

.body-stats { margin-top: var(--s-7); max-width: 520px; }
.plan-card { min-height: 440px; }

.faq--cols { display: grid; grid-template-columns: 1fr; column-gap: var(--gutter, 24px); }
@media (min-width: 1024px) { .faq > .faq__item { padding: var(--s-4) 0; } .faq > .faq__item:first-child { padding-top: 0; } }

/* screen fits (layout-v4.md section 2) */
@media (min-width: 1024px) and (max-width: 1279px) {
  #progress .grid > .card { grid-column: auto / span 4; }
  #progress .panel--crop { --p-h: 230px; }
}
/* tablet: splits stay side by side, the progress cards three across; the FAQ runs in two columns under its head */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid > .split-copy { grid-column: 1 / span 6; }
  .grid > .shots { grid-column: 7 / -1; margin-top: 0; }
  #progress .grid > .card { grid-column: auto / span 4; }
  #progress .panel--crop { --p-h: 200px; }
  .faq--cols { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: var(--s-6); }
  .faq--cols > .faq__item:nth-child(2) { padding-top: 0; }
  .faq__gori { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { .plan-card { min-height: 520px; } }
/* phone: a split section is two screens (g2m): its words, then its two phones on a screen of their own */
@media (max-width: 639px) {
  .g2m > .wrap > .grid { display: contents; }
  /* one phone across the column, cut by its frame's foot: the top of the screen is the point */
  .shots { display: block; margin-top: var(--s-5); height: 320px; }
  .g2m .shots { margin-top: 0; align-self: stretch; height: 100%; min-height: 0; position: relative; }
  .g2m .shots .device { position: absolute; inset: 0; }
  .shots .device--back { display: none; }
  .shots .device { aspect-ratio: auto; height: 100%; border-radius: 56px 56px 0 0; padding: 6px 6px 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .shots .device img { object-position: 50% 0; border-radius: 50px 50px 0 0; }
  .shots .device::after { top: 15px; width: 29%; }
  .shots .device::before { display: none; }
  .body-stats { margin-top: var(--s-5); }
  .btn--xl { white-space: normal; text-align: center; }
  .footer__legal { flex-wrap: wrap; row-gap: var(--s-2); }
  #progress, #faq { --hm: 2; }
  #progress .panel--crop { --p-h: 270px; }
  .plan-card { min-height: 620px; }
  .ticks { gap: var(--s-4); }
  #plans { --hm: 2; }
  .faq__gori { width: 280px; margin-top: var(--s-5); }
  .faq > .faq__item { padding: var(--s-5) 0; }
  .faq > .faq__item:first-child { padding-top: 0; }
  .hero--product .hero__stage.phones { flex: 1 1 auto; aspect-ratio: auto; min-height: 220px; margin-bottom: 0; }
  .hero--product h1 { font-size: 34px; }
}
