*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0b60ff;
  color: #fdffff;
  font-family: 'Onest', sans-serif;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.case-top {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 20px;
  background: #0b60ff;
}

.case-back {
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  opacity: 0.78;
}

.case-back:hover {
  opacity: 1;
}

.case-tag {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.case-top h1 {
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-article {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 80px;
}

.case-section {
  margin: 56px 0;
}

.case-stage {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.case-stage--inline {
  width: min(100%, 520px);
  height: 640px;
  margin: 0 auto;
}

body.is-mac .case-stage--inline {
  width: min(100%, 640px);
  height: 460px;
}

.case-slot {
  width: calc(var(--dw) * var(--ds, 1));
  height: calc(var(--dh) * var(--ds, 1));
  position: relative;
  overflow: visible;
  background: transparent;
}

.case-slot.is-mac {
  --screen-w: 1024px;
  --screen-h: 640px;
  --dw: 1088px;
  --dh: 674px;
}

.case-slot.is-phone {
  --screen-w: 390px;
  --screen-h: 844px;
  --dw: 412px;
  --dh: 866px;
  overflow: hidden;
  border-radius: calc(48px * var(--ds, 1));
}

.case-device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--dw);
  height: var(--dh);
  transform: translate(-50%, -50%) scale(var(--ds, 1));
  transform-origin: center center;
}

.lid,
.screen,
.chin,
.home,
.pad,
.notch {
  display: block;
}

.lid {
  margin: 0 auto;
  overflow: hidden;
}

.screen {
  position: relative;
  width: var(--screen-w);
  height: var(--screen-h);
  overflow: hidden;
  background: #fff;
}

.screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.notch {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.case-slot.is-mac .lid,
.mini-scale.is-mac .lid {
  width: calc(var(--screen-w) + 24px);
  padding: 12px 12px 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #d4d6da 0%, #b8bcc4 100%);
  box-shadow: 0 28px 64px -16px rgba(1, 18, 38, 0.38);
}

.case-slot.is-mac .screen,
.mini-scale.is-mac .screen {
  border-radius: 8px 8px 0 0;
  border: 1px solid #8e8e95;
}

.case-slot.is-mac .notch,
.mini-scale.is-mac .notch {
  top: 0;
  left: 50%;
  width: 148px;
  height: 18px;
  transform: translateX(-50%);
  background: #000d10;
  border-radius: 0 0 12px 12px;
}

.case-slot.is-mac .chin,
.mini-scale.is-mac .chin {
  width: var(--dw);
  height: 12px;
  margin: -1px auto 0;
  background: linear-gradient(180deg, #c8ccd2 0%, #a8adb6 100%);
  border-radius: 0 0 12px 12px;
}

.case-slot.is-mac .pad,
.mini-scale.is-mac .pad {
  display: block;
  width: 160px;
  height: 4px;
  margin: 6px auto 0;
  background: #9aa0a8;
  border-radius: 4px;
  opacity: 0.55;
}

.case-slot.is-mac .home,
.mini-scale.is-mac .home {
  display: none;
}

.case-slot.is-phone .lid,
.mini-scale.is-phone .lid {
  width: var(--dw);
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2a2b2e 0%, #141516 40%, #0a0a0b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 72px -18px rgba(1, 18, 38, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.case-slot.is-phone .screen,
.mini-scale.is-phone .screen {
  border-radius: 38px;
  background: #050506;
  box-shadow: inset 0 0 0 1px rgb(35, 37, 42);
}

.case-slot.is-phone .notch,
.mini-scale.is-phone .notch {
  top: 10px;
  left: 50%;
  width: 126px;
  height: 34px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
}

.case-slot.is-phone .chin,
.case-slot.is-phone .pad,
.mini-scale.is-phone .chin,
.mini-scale.is-phone .pad {
  display: none;
}

.case-slot.is-phone .home,
.mini-scale.is-phone .home {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 134px;
  height: 5px;
  transform: translateX(-50%);
  background: rgba(247, 248, 248, 0.28);
  border-radius: 999px;
  pointer-events: none;
}

.case-missing {
  padding: 80px 24px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.case-cover-section {
  margin: 18px 0 40px;
}

.case-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.45rem, 1.6vw, 1.15rem);
  min-height: clamp(280px, 38vw, 440px);
  padding: 1.25rem 0 0.35rem;
}

.case-cover.is-mac {
  gap: clamp(0.75rem, 2.2vw, 1.65rem);
  min-height: clamp(220px, 28vw, 320px);
}

.case-cover__caption {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: center;
}

body.is-mac .case-intro {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.case-hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-hero__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.case-hero__lead {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.case-hero__note {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.48);
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr auto 1.2fr;
  gap: 18px;
  align-items: start;
  padding: 22px 26px;
  border-radius: 28px;
  background: #f3f4f5;
  color: #111;
}

.case-meta__label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.case-meta__value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.case-meta__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.08);
}

.case-meta__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-meta__pills li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 96, 255, 0.1);
  font-size: 13px;
}

.case-context {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

body.is-mac .case-context {
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1fr);
}

.case-context__visual,
.case-feature__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.case-context h2,
.case-h2,
.case-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.case-h2 {
  text-align: center;
}

.case-narrative p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.case-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-bullets li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 16px;
}

.case-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.case-panel {
  padding: 32px;
  border-radius: 32px;
  background: #f3f4f5;
  color: #111;
}

.case-panel__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.case-panel__lead {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.4;
}

.case-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-panel__grid li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.case-panel__index,
.case-panel__check {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0b60ff;
}

.case-panel__grid p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.case-features {
  display: grid;
  gap: 42px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.case-feature.is-reverse {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
}

.case-feature.is-reverse .case-feature__copy {
  order: 2;
}

.case-feature h3 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.case-feature p {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.case-feature__note {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 14px !important;
}

.case-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.case-cta p {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.case-cta__btn {
  flex-shrink: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0b60ff;
  text-decoration: none;
  font-weight: 700;
}

.case-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 34px;
  background: #f3f4f5;
  color: #0c0c0c;
}

.case-lead small,
.case-lead span {
  color: rgba(0, 0, 0, 0.45);
}

.case-lead h3 {
  margin: 0;
  font-size: 28px;
}

.case-lead label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-lead textarea,
.case-lead input,
.contact-select {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #061a35;
  color: #fff;
  padding: 14px 16px;
  resize: none;
  font: inherit;
}

.contact-method {
  position: relative;
}

.contact-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.contact-select span {
  color: #fff;
}

.contact-select::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-135deg) translateY(2px);
  opacity: 0.7;
}

.contact-select[aria-expanded="true"]::after {
  transform: rotate(45deg) translateY(-2px);
}

.contact-method:has([aria-expanded="true"]) {
  z-index: 9;
}

.contact-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: calc(100% + 6px);
  z-index: 8;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 16px;
  background: #061a35;
  box-shadow: 0 18px 40px rgba(1, 18, 38, 0.28);
}

.contact-menu button {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.contact-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.case-lead .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-send {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  background: #061a35;
  color: #fff;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lead-send:disabled {
  opacity: 0.55;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 10050;
  transform: translateX(-50%) translateY(12px);
  padding: 16px 28px;
  border-radius: 18px;
  background: #f8f8f8;
  color: #020202;
  font-family: Onest, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 18px 40px rgba(1, 18, 38, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.case-home {
  display: inline-block;
  margin-top: 22px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.78;
}

.case-home:hover {
  opacity: 1;
}

.mini {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.28s ease;
}

.mini.is-phone {
  --nw: 412;
  --nh: 866;
}

.mini.is-mac {
  --nw: 1088;
  --nh: 674;
}

.mini--cover.is-phone {
  width: clamp(158px, 15.5vw, 200px);
}

.mini--cover.is-mac {
  width: clamp(240px, 24vw, 320px);
}

.mini--context.is-phone {
  width: clamp(260px, 30vw, 340px);
}

.mini--context.is-mac {
  width: clamp(380px, 42vw, 540px);
}

.mini--card.is-phone {
  width: clamp(230px, 26vw, 310px);
}

.mini--card.is-mac {
  width: clamp(320px, 38vw, 520px);
}

.mini:hover {
  z-index: 4;
  transform: translateY(-8px) scale(1.05);
}

.mini-shell {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: var(--nw) / var(--nh);
  overflow: visible;
  background: transparent;
  container-type: inline-size;
}

.mini.is-phone .mini-shell {
  border-radius: 11.65% / 5.54%;
  overflow: hidden;
}

.mini.is-mac .mini-shell {
  border-radius: 1.5% 1.5% 1.1% 1.1%;
  overflow: hidden;
}

.mini-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--nw) * 1px);
  height: calc(var(--nh) * 1px);
  transform-origin: top left;
  transform: scale(calc(100cqw / (var(--nw) * 1px)));
  pointer-events: none;
  background: transparent;
}

.mini-scale.is-phone {
  --screen-w: 390px;
  --screen-h: 844px;
  --dw: 412px;
  --dh: 866px;
}

.mini-scale.is-mac {
  --screen-w: 1024px;
  --screen-h: 640px;
  --dw: 1088px;
  --dh: 674px;
}

.case-expand {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(1, 18, 38, 0.22);
}

.case-expand:hover {
  background: #fff;
}

.case-stage--inline.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100vw;
  height: 100svh;
  max-width: none;
  margin: 0;
  background: #0b60ff;
}

body.is-mac .case-stage--inline.is-expanded {
  width: 100vw;
  height: 100svh;
}

body.is-device-expanded {
  overflow: hidden;
}

body.is-device-expanded .case-top,
body.is-device-expanded .case-cover-section,
body.is-device-expanded .case-intro__copy,
body.is-device-expanded .case-section {
  visibility: hidden;
}

@media (max-width: 980px) {
  .case-intro,
  .case-context,
  .case-feature,
  .case-feature.is-reverse,
  .case-meta,
  .case-panel__grid,
  .case-lead .two {
    grid-template-columns: 1fr;
  }

  .case-feature.is-reverse .case-feature__copy {
    order: 0;
  }

  .case-meta {
    display: flex;
    flex-direction: column;
  }

  .case-meta__divider {
    display: none;
  }

  .mini--cover.is-phone,
  .mini--cover.is-mac {
    width: min(160px, 28vw);
  }

  .mini--context.is-phone,
  .mini--card.is-phone {
    width: min(280px, 72vw);
  }

  .mini--context.is-mac,
  .mini--card.is-mac {
    width: min(100%, 520px);
  }

  .case-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-stage--inline,
  body.is-mac .case-stage--inline {
    width: 100%;
    height: 520px;
  }
}
