:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --panel: rgba(246, 242, 244, 0.9);
  --tile: rgba(255, 255, 255, 0.7);
  --blue: #4267ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0d5db3;
  overflow: hidden;
}

button,
select {
  font: inherit;
}

.wallpaper {
  min-height: 100vh;
  padding: 56px 32px 78px;
  background:
    linear-gradient(180deg, #3274c5 0%, #54a2da 47%, #83d2df 48%, #2366a9 72%, #163752 100%);
  position: relative;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42vh;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255,255,255,.85) 0 7%, transparent 8%),
    radial-gradient(ellipse at 73% 35%, rgba(255,255,255,.75) 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 90%, rgba(12,37,47,.5) 0 18%, transparent 19%);
  opacity: .45;
  pointer-events: none;
}

.menu-bar {
  position: fixed;
  inset: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  z-index: 5;
}

.apple {
  color: white;
  font-size: 12px;
}

.bar-spacer {
  flex: 1;
}

.window {
  width: min(1330px, calc(100vw - 64px));
  height: min(820px, calc(100vh - 122px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.75);
  overflow: hidden;
  backdrop-filter: blur(28px);
}

.traffic {
  position: absolute;
  top: 15px;
  left: 18px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

.traffic span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d0d0d4;
}

.traffic span:nth-child(1) { background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }

.back {
  position: absolute;
  left: 28px;
  top: 74px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  font-size: 36px;
  line-height: 34px;
  color: #333;
}

.home-grid {
  height: 100%;
  padding: 74px 92px 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: minmax(290px, .9fr) minmax(260px, 1fr);
  gap: 20px 24px;
}

.badge,
.device-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 9px;
  background: #f6e9e1;
  color: #a64f25;
  font-weight: 700;
  font-size: 14px;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.chip {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}

.ai {
  margin: 6px 0 10px;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, #126dff, #bc47cf, #f17135);
  color: transparent;
  background-clip: text;
}

.price {
  max-width: 520px;
  margin-top: 26px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
}

.swatches {
  display: flex;
  gap: 12px;
  align-items: center;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.18);
  background: var(--color);
  display: inline-block;
}

button.swatch {
  cursor: pointer;
}

.swatch.active {
  outline: 3px solid #2867ff;
  outline-offset: 3px;
}

.hero-art {
  display: grid;
  align-content: end;
  justify-items: center;
}

.product-art {
  width: 230px;
  height: auto;
  display: block;
  pointer-events: none;
}

.product-art.large {
  width: min(520px, 100%);
}

.tile {
  border: 1px solid rgba(0,0,0,.06);
  background: var(--tile);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.tour-tile {
  padding: 28px 30px 26px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 260px;
  overflow: hidden;
}

.tour-tile .product-art {
  width: 260px;
  justify-self: center;
  align-self: center;
}

.tour-tile strong {
  font-size: 26px;
}

.tile span:last-child {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: white;
  font-size: 24px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.tile.small,
.tile.wide {
  padding: 32px 30px;
  min-height: 150px;
}

.tile.wide {
  grid-column: 1 / -1;
}

.tile i {
  display: block;
  font-style: normal;
  font-size: 34px;
  margin-bottom: 12px;
}

.tile strong {
  font-size: 24px;
  line-height: 1.1;
}

.disclaimer {
  position: absolute;
  left: 92px;
  bottom: 58px;
  border: 0;
  background: transparent;
  color: #3258bb;
  font-size: 13px;
}

.pricing {
  padding: 76px 120px;
}

.pricing header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.pricing h1 {
  font-size: 38px;
}

.segments {
  display: flex;
  gap: 8px;
}

.segments button,
.tour-tabs button {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255,255,255,.45);
}

.segments .selected,
.tour-tabs .active {
  background: #1d1d1f;
  color: white;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  text-align: center;
}

.price-card {
  min-height: 430px;
  position: relative;
}

.price-card .device-badge {
  margin-left: 8px;
  background: #d8d5dd;
  color: #4d4a54;
}

.price-card .product-art {
  margin: 34px auto 8px;
}

.price-card h2 {
  font-size: 22px;
}

.price-card strong {
  display: block;
  max-width: 260px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.22;
}

.or {
  margin: 5px;
  color: var(--muted);
}

.section-title {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.compare {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.compare-head {
  height: 94px;
  padding: 46px 150px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  border-bottom: 1px solid var(--line);
}

select {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  padding: 12px 18px;
  color: #45454a;
}

.compare-body {
  padding: 48px 150px;
  overflow: auto;
}

.spec-section {
  border-bottom: 1px solid var(--line);
}

.spec-toggle {
  width: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.spec-toggle strong {
  font-size: 24px;
}

.spec-toggle span {
  font-size: 34px;
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
  padding: 8px 0 34px;
}

.spec-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-grid li,
.spec-grid p {
  font-size: 16px;
  line-height: 1.35;
}

.tour-window {
  background: rgba(249, 240, 246, .92);
}

.tour {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 70px;
  text-align: center;
}

.tour-visual {
  height: 230px;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.tour-visual .product-art {
  width: 560px;
}

.finder-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 52px;
  background: linear-gradient(135deg, #1e9bff 0 50%, #0d63d8 50%);
}

.tour h1 {
  max-width: 760px;
  margin: 18px 0 68px;
  font-size: 42px;
  line-height: 1.12;
}

.tour h1 span {
  color: var(--blue);
}

.tour-tabs {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  width: min(760px, calc(100% - 120px));
  background: rgba(255,255,255,.62);
  border-radius: 999px;
  padding: 7px;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
}

.tour-tabs button {
  border: 0;
  flex: 1;
}

.pause,
.legal {
  position: absolute;
  border: 0;
  background: transparent;
}

.pause {
  right: 34px;
  bottom: 38px;
  font-size: 22px;
}

.legal {
  left: 30px;
  bottom: 34px;
  color: #68686d;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(20px);
  z-index: 4;
}

.dock span {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: hsl(var(--h), 76%, 54%);
  color: white;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(0,0,0,.22);
}

.modal-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(238,238,242,.58);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(920px, calc(100% - 100px));
  min-height: 520px;
  border-radius: 22px;
  background: rgba(250,250,252,.94);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eee;
  font-size: 26px;
  z-index: 2;
}

.save-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 34px;
}

.saved-card {
  padding: 55px;
  background: rgba(245,245,247,.9);
  border-radius: 14px;
}

.saved-card ul {
  padding-left: 18px;
  line-height: 1.8;
}

.qr-side {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.qr-side h1,
.offers-modal h1 {
  font-size: 38px;
}

.qr {
  width: 190px;
  height: 190px;
  border: 14px solid #dedede;
  border-radius: 38px;
  display: grid;
  place-items: center;
  color: #222;
  margin: 10px 0 20px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(0,0,0,.05) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(0,0,0,.05) 48% 52%, transparent 53%);
}

.qr span {
  display: block;
  font-size: 42px;
}

.qr-side i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #34c759;
  margin-right: 8px;
}

.offers-modal {
  padding: 56px 64px 36px;
  text-align: center;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 30px 0;
  text-align: left;
}

.offer-grid article {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: white;
}

.offer-grid i {
  font-style: normal;
  font-size: 34px;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .wallpaper {
    padding: 52px 16px 82px;
  }

  .window {
    width: calc(100vw - 32px);
    height: auto;
    min-height: calc(100vh - 135px);
    overflow: auto;
  }

  .home-grid,
  .pricing,
  .compare-body {
    padding: 72px 24px 38px;
  }

  .home-grid,
  .pricing-cards,
  .actions,
  .spec-grid,
  .save-modal,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .compare-head {
    padding: 52px 24px 18px;
    height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tour-tabs {
    position: static;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
  }

  .tour {
    min-height: 620px;
    padding: 70px 24px 30px;
  }

  .tour h1 {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .dock {
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }
}
