:root {
  color-scheme: light dark;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-muted: #e8eef1;
  --surface-strong: #101315;
  --text: #151719;
  --muted: #5d6872;
  --brand: #00796b;
  --brand-soft: #dcefed;
  --accent: #315f94;
  --line: #d6dee3;
  --shadow: 0 18px 48px rgb(19 31 41 / 12%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101416;
    --surface: #171d20;
    --surface-muted: #20282c;
    --surface-strong: #f3f6f7;
    --text: #f3f6f7;
    --muted: #a8b3ba;
    --brand: #63d5c8;
    --brand-soft: #16302d;
    --accent: #9ebcff;
    --line: #303a40;
    --shadow: 0 18px 48px rgb(0 0 0 / 28%);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
}

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

main.site {
  padding-top: 0;
}

.topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-links,
footer nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--surface-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset -7px -7px 0 var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 56px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.page-hero h1 {
  font-size: 46px;
  line-height: 1.12;
}

h2 {
  font-size: 32px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

p,
li,
span {
  color: var(--muted);
}

a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.eyebrow,
.section-title span {
  display: block;
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero,
.page-hero,
.support-band,
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.product-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  gap: 56px;
  min-height: 620px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 50px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy > p,
.page-hero p,
.support-band p,
.split-panel p,
.detail-copy p,
.screen-copy p {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
}

.hero-copy h1 + p,
.detail-copy h2 + p,
.screen-copy h2 + p {
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.store-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 800;
}

.button.primary {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: var(--surface);
}

.button.secondary {
  background: var(--surface);
}

.store-button {
  min-width: 178px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: var(--surface);
  padding: 9px 18px 10px;
}

.store-button span {
  color: inherit;
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.76;
}

.store-button strong {
  color: inherit;
  font-size: 20px;
  line-height: 1.05;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.hero-device {
  position: relative;
  min-height: 540px;
}

.device-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-device {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 70%);
  aspect-ratio: 554 / 1200;
}

.sub-device {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: min(230px, 54%);
  aspect-ratio: 554 / 1200;
}

.device-note {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: min(280px, 68%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 92%);
  padding: 14px;
  box-shadow: 0 10px 30px rgb(19 31 41 / 12%);
}

@media (prefers-color-scheme: dark) {
  .device-note {
    background: rgb(23 29 32 / 92%);
  }
}

.device-note strong,
.device-note span {
  display: block;
}

.device-note strong {
  color: var(--text);
  font-size: 15px;
}

.device-note span {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
}

.download-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.download-strip strong,
.download-strip span {
  display: block;
}

.download-strip strong {
  color: var(--text);
  font-size: 18px;
}

.download-strip span {
  margin-top: 2px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 28px;
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.metrics div,
.metrics p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.compact-metrics p {
  min-height: 104px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: transparent;
  padding: 20px 18px 22px 0;
}

.compact-metrics p + p {
  padding-left: 18px;
}

.compact-metrics p:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span,
.tile strong,
.tile p {
  display: block;
}

.metrics strong {
  color: var(--text);
  font-size: 18px;
}

.metrics span {
  margin-top: 3px;
}

.detail-section,
.screen-feature,
.editorial-section,
.showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: start;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list {
  border-top: 1px solid var(--line);
}

.spec-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.spec-list span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.spec-list strong {
  color: var(--text);
  font-size: 18px;
}

.screen-feature {
  align-items: center;
}

.screen-copy .text-link {
  display: inline-flex;
  margin-top: 22px;
}

.screen-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 210px));
  justify-content: end;
  gap: 16px;
}

.screen-stack img,
.screen-row img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0 72px;
  border-bottom: 1px solid var(--line);
}

.product-grid article,
.tile,
.share-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-grid article {
  min-height: 210px;
  padding: 22px;
}

.product-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--brand);
  font-weight: 900;
}

.product-grid h3 {
  margin-bottom: 10px;
}

.product-grid p {
  margin: 0;
}

.panel,
.support-band,
.split-panel {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding: 30px 0 0;
}

.panel > h2 {
  margin-top: 30px;
}

.panel > h2:first-child {
  margin-top: 0;
}

.section-title {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  min-height: 142px;
  padding: 20px;
}

.tile strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.tile p {
  margin: 0;
}

.phone-preview,
.mini-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-preview {
  width: min(360px, 34vw);
  aspect-ratio: 554 / 1200;
}

.mini-preview {
  width: min(240px, 28vw);
  aspect-ratio: 554 / 1200;
}

.phone-preview img,
.mini-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  min-height: 300px;
  padding: 20px 0 32px;
}

.page-hero.compact {
  min-height: 200px;
}

.final-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 0;
  border-top: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 26px;
}

.final-band h2,
.final-band p {
  color: var(--surface);
}

.final-band p {
  opacity: 0.78;
}

.final-band .button.primary {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--surface-strong);
}

.final-band .button.secondary {
  border-color: rgb(255 255 255 / 32%);
  background: transparent;
  color: var(--surface);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.share-hero {
  align-items: end;
}

.share-detail {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  align-items: stretch;
}

.share-media {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.share-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.share-spec-grid {
  margin-top: 18px;
}

.compact-tile {
  min-height: 112px;
  padding: 16px;
}

.share-note {
  margin-top: 14px;
  padding: 16px;
}

.share-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.share-note p {
  margin: 0;
}

.affiliate-note {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: 13px;
}

.contact-line {
  margin-top: 18px;
  font-size: 20px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

ul {
  padding-left: 22px;
}

@media (max-width: 900px) {
  .product-hero,
  .download-strip,
  .compact-metrics,
  .detail-section,
  .screen-feature,
  .editorial-section,
  .showcase,
  .product-grid,
  .final-band {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
    gap: 32px;
    padding: 44px 0 40px;
  }

  .hero-device {
    min-height: 410px;
  }

  .main-device {
    width: min(230px, 62%);
  }

  .sub-device {
    width: min(180px, 48%);
  }

  .device-note {
    width: min(260px, 72%);
  }

  .download-strip {
    align-items: start;
  }

  .compact-metrics p {
    border-width: 0 0 1px;
    padding-left: 0;
  }

  .compact-metrics p + p {
    padding-left: 0;
  }

  .screen-stack {
    justify-content: start;
  }

  .final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 28px, 1120px);
    padding: 24px 0 46px;
  }

  main.site {
    padding-top: 0;
  }

  .topbar {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .topbar-links {
    justify-content: flex-start;
    gap: 14px;
    font-size: 14px;
  }

  .hero,
  .page-hero,
  .support-band,
  .split-panel,
  .share-detail,
  .metrics,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 39px;
    line-height: 1.12;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-copy > p,
  .page-hero p,
  .support-band p,
  .split-panel p,
  .detail-copy p,
  .screen-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .store-button {
    width: 100%;
  }

  .hero-facts {
    gap: 6px;
  }

  .hero-facts span {
    font-size: 12px;
  }

  .hero-device {
    min-height: 344px;
  }

  .main-device {
    width: 156px;
  }

  .sub-device {
    bottom: 34px;
    width: 128px;
  }

  .device-note {
    right: 0;
    bottom: 0;
    width: 226px;
    padding: 12px;
  }

  .download-strip {
    padding: 20px 0;
  }

  .detail-section,
  .screen-feature,
  .editorial-section,
  .showcase {
    gap: 24px;
    padding: 46px 0;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .screen-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-grid {
    padding: 24px 0 48px;
  }

  .product-grid article {
    min-height: auto;
  }

  .product-grid span {
    margin-bottom: 20px;
  }

  .phone-preview,
  .mini-preview {
    width: min(72vw, 340px);
    justify-self: center;
  }

  .share-media {
    min-height: 260px;
  }
}
