/* 402-point native layout, scaled inside the existing phone frame.
   Metrics mirror FrugalDesign.swift and the native Scan views. */
.app-screen {
  position: absolute;
  inset: 6px;
  border-radius: 40px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.app-screen.is-active { opacity: 1; transform: none; z-index: 2; }
.native-canvas {
  position: relative;
  width: 402px;
  height: 834.28767px;
  transform: scale(.7263681592);
  transform-origin: top left;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: normal;
  background: var(--paper);
}
.native-symbol { width: 24px; height: 24px; flex-shrink: 0; }
.native-wordmark { display: flex; align-items: center; gap: 7px; font-size: 29px; font-weight: 400; letter-spacing: -1.2px; }
.native-wordmark>span { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.native-wordmark .frugal-emblem { width: 33px; height: 33px; }
.native-header {
  height: 64px;
  margin: 0 22px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  color: var(--blue);
}
.native-header .native-wordmark { position: absolute; left: 50%; transform: translateX(-50%); }
.native-circle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(145deg, #fff, #ffffff70);
  border: 1px solid #fff;
  box-shadow: inset 0 1px 1px #fff, 0 3px 10px #1f212408;
}
.native-circle .native-symbol { width: 19px; height: 19px; }
.native-card { padding: 20px; background: #fff; border-radius: 25px; }
.native-green { color: var(--green); }
.native-glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #3d6eb308;
  border-radius: 50px;
  background: linear-gradient(145deg, #f9fbfd, #eff3f8);
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  box-shadow: inset 0 1px 1px #fff, 0 1px 3px #1f212408;
}
.native-glass-pill .native-symbol { width: 12px; height: 12px; }
.native-artwork { position: relative; display: grid; place-items: center; overflow: hidden; }
.native-artwork img { width: 100%; height: 100%; object-fit: contain; }
.native-artwork.is-sony img { position: absolute; width: 400px; height: 243px; max-width: none; }

/* ScanLandingView + the system floating tab bar. */
.native-screen-scan, .native-screen-scan .native-canvas { background: linear-gradient(145deg, #3b3b3b, #292929 57%, #1a1a1a); color: #fff; }
.native-scan-header { position: absolute; top: 59px; left: 0; right: 0; height: 64px; padding-top: 12px; display: grid; place-items: center; color: #fffffff0; }
.native-scan-body { position: absolute; top: 213px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.native-scan-illustration { width: 332px; height: 185px; overflow: visible; }
.native-scan-body h3 { font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -1px; margin-top: 32px; }
.native-scan-body p { color: #ffffff94; font-size: 15px; line-height: 20px; margin-top: 16px; }
.native-primary-light { display: flex; align-items: center; gap: 10px; height: 49px; padding: 0 22px; margin-top: 29px; border-radius: 40px; background: var(--paper); border: 1px solid #fff; color: var(--ink); font-size: 16px; font-weight: 600; box-shadow: 0 14px 24px #0003; }
.native-primary-light .native-symbol { width: 19px; height: 19px; stroke-width: 2; }
.native-manual { margin-top: 21px; padding: 5px 12px; border: 1px solid #ffffff12; border-top-color: #ffffff2b; border-radius: 30px; background: #ffffff03; font-size: 12px; font-weight: 500; }
.native-tab-bar { position: absolute; bottom: 20px; left: 21px; right: 21px; display: flex; align-items: center; gap: 9px; }
.native-tab-group { display: flex; flex: 1; align-items: center; height: 62px; padding: 3px; border-radius: 40px; background: #30303080; border: 1px solid #ffffff26; }
.native-tab { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; color: #fffffff0; border-radius: 30px; }
.native-tab .native-symbol { width: 27px; height: 27px; stroke-width: 1.8; }
.native-tab:nth-child(2) .native-symbol { fill: currentColor; stroke-width: 0; }
.native-tab.is-selected { background: #ffffff26; }
.native-tab small { font-size: 10px; font-weight: 500; }
.native-search-tab { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #30303080; border: 1px solid #ffffff26; }
.native-search-tab .native-symbol { width: 26px; height: 26px; stroke-width: 2; }

/* The result is a full-screen cover, so it has no tab bar. */
.native-result-viewport { position: absolute; inset: 59px 0 34px; overflow: hidden; }
.native-result-content { padding: 24px 22px 30px; }
.native-product-heading { text-align: center; }
.native-product-heading .native-artwork { width: 155px; height: 188px; margin: 0 auto 18px; }
.native-product-heading h3 { font-size: 27px; font-weight: 500; line-height: 32px; letter-spacing: -.9px; }
.native-product-heading p { font-size: 14px; color: var(--secondary); margin-top: 7px; }
.native-barcode { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--secondary); font-size: 12px; font-family: ui-monospace, "SFMono-Regular", monospace; margin-top: 11px; }
.native-barcode .native-symbol { width: 14px; height: 14px; }
.native-comparison { margin-top: 27px; }
.native-price-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.native-price-columns>div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.native-price-columns>div+div { border-left: 1px solid var(--paper); padding-left: 15px; }
.native-price-columns small { font-size: 12px; color: var(--secondary); }
.native-price-columns strong { font-size: 29px; font-weight: 500; letter-spacing: -1px; white-space: nowrap; }
.native-price-columns .native-entered { font-size: 10px; }
.native-price-columns .native-delivery { font-size: 11px; margin-top: 5px; }
.native-verdict { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--paper); margin-top: 20px; padding-top: 20px; }
.native-verdict>.native-symbol { width: 19px; height: 19px; color: var(--green); margin-top: 2px; }
.native-verdict b { color: var(--green); font-size: 15px; font-weight: 600; }
.native-verdict p { margin-top: 5px; font-size: 12px; line-height: 17px; color: var(--secondary); }
.native-verdict small { display: block; margin-top: 5px; font-size: 10px; color: var(--secondary); }
.native-offers { margin-top: 30px; }
.native-offers>h3, .native-section-heading h3 { font-size: 23px; font-weight: 500; letter-spacing: -.7px; line-height: 28px; }
.native-offer { margin-top: 15px; }
.native-offer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.native-offer-top>div { display: flex; flex-direction: column; gap: 7px; }
.native-offer-top>div:last-child { align-items: flex-end; gap: 6px; }
.native-offer-top b { font-size: 16px; font-weight: 500; }
.native-offer-top small { font-size: 12px; color: var(--secondary); }
.native-offer-top strong { font-size: 23px; font-weight: 500; letter-spacing: -.7px; }
.native-offer-top small.native-green { font-size: 10px; font-weight: 500; color: var(--green); }
.native-offer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.native-offer-bottom>small { font-size: 10px; color: var(--secondary); }
.native-alternative-teaser { margin-top: 28px; }
.native-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.native-teaser-row { display: flex; align-items: center; gap: 16px; }
.native-teaser-row .native-artwork { width: 60px; height: 85px; flex-shrink: 0; }
.native-teaser-row .native-artwork img { width: 200px; height: 121.5px; }
.native-teaser-row>div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.native-teaser-row b { font-size: 15px; font-weight: 500; }
.native-teaser-row strong { font-size: 20px; font-weight: 500; color: var(--green); }
.native-teaser-row small { font-size: 12px; color: var(--secondary); }
.native-teaser-row>.native-symbol { width: 12px; height: 12px; color: var(--secondary); }
.native-screen-offers .native-result-page { transform: translateY(-395px); }

/* AlternativesView's sheet, with the native large product card. */
.native-sheet-toolbar { position: absolute; top: 59px; left: 22px; right: 22px; height: 54px; display: flex; align-items: center; justify-content: flex-end; }
.native-sheet-toolbar>span { color: var(--blue); background: #fff; border-radius: 30px; padding: 10px 15px; font-size: 16px; font-weight: 500; box-shadow: 0 2px 8px #1f212405; }
.native-alternatives-content { padding: 128px 22px 28px; text-align: center; }
.native-alternatives-content>h3 { font-size: 29px; font-weight: 500; line-height: 35px; letter-spacing: -1px; margin-bottom: 18px; }
.native-alternative-card { display: flex; flex-direction: column; align-items: center; gap: 18px; background: #fff; border-radius: 29px; padding: 22px; }
.native-alternative-card>.native-artwork { width: 140px; height: 175px; }
.native-alternative-card h4 { font-size: 22px; font-weight: 500; line-height: 27px; letter-spacing: -.6px; margin: 0; }
.native-alternative-card>p { font-size: 13px; color: var(--secondary); }
.native-alternative-card>strong { font-size: 37px; font-weight: 500; letter-spacing: -1.5px; color: var(--green); }
.native-alternative-card .native-offer { width: 100%; text-align: left; margin: 0; }

.story-stage:not([data-step="0"]) .phone-status { color: var(--ink); }
.story-stage:not([data-step="0"]) .status-symbols>i { border-color: var(--ink); }
.story-stage:not([data-step="0"]) .status-symbols>i::before,
.story-stage:not([data-step="0"]) .status-symbols>i::after,
.story-stage:not([data-step="0"]) .home-indicator { background: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .app-screen { transition: none; transform: none; }
}
