:root {
  color-scheme: light dark;
  --berry: #b4174e;
  --berry-deep: #721232;
  --teal: #007f7b;
  --gold: #d8a928;
  --blue: #007aff;
  --ink: #17171a;
  --muted: #66646d;
  --paper: #fbfafc;
  --surface: #ffffff;
  --soft: #f2f1f4;
  --line: #dedbe2;
  --focus: #0a84ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: 0;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--berry); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-link img { width: 38px; height: 38px; border-radius: 8px; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 650; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--berry); }

.product-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero-panel {
  display: block;
  margin-bottom: 20px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid #2a2930;
  border-radius: 28px;
  background: #101013;
  color: #fff;
}

.app-lockup {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.app-lockup img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.hero-panel h1 {
  color: #fff;
}

.title-tagline {
  margin: 8px 0 0;
  color: #c9c5cf;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 760;
  line-height: 1.14;
}

.hero-panel .eyebrow {
  color: #ff7eaa;
}

.lead {
  width: min(650px, 100%);
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 820;
}

.intro {
  width: min(620px, 100%);
  margin: 0 0 26px;
  color: #c9c5cf;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-panel .secondary-button {
  background: #242329;
  border-color: #3b3942;
  color: #fff;
}

.hero-panel .purchase-note {
  color: #a7a1ad;
}

.product-section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.store-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.store-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 750;
}

.store-hero {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.app-summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.app-icon-large {
  width: 190px;
  height: 190px;
  border-radius: 42px;
  box-shadow: 0 14px 42px rgba(38, 20, 35, 0.18);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
h1 { margin: 2px 0 6px; font-size: clamp(2.4rem, 8vw, 4.35rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin: 0 0 7px; font-size: 1.05rem; }

.age-rating {
  color: var(--muted);
  font-size: 0.36em;
  font-weight: 760;
  vertical-align: super;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
}

.developer {
  margin: 4px 0 22px;
  color: var(--blue);
  font-weight: 650;
}

.purchase-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.store-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.store-button {
  background: var(--blue);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue);
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-facts div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.app-facts div:last-child { border-right: 0; }
.app-facts dt { color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.app-facts dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 760; }

.store-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.section-heading a {
  font-weight: 750;
  text-decoration: none;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 270px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
}

.screenshot-strip figure {
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(28, 18, 28, 0.14);
}

.screenshot-strip figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
}

.description-section > p {
  width: min(760px, 100%);
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.feature-list p, .legal-page p, .legal-page li { color: var(--muted); }

.whats-new p,
.app-privacy > p {
  width: min(760px, 100%);
  margin: 0;
  color: var(--muted);
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.privacy-summary div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.privacy-summary strong,
.privacy-summary span {
  display: block;
}

.privacy-summary strong {
  margin-bottom: 6px;
}

.privacy-summary span {
  color: var(--muted);
  font-size: 0.96rem;
}

.info-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 650;
}

.info-list dd {
  margin: 0;
  text-align: right;
}

.privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise-lines { color: var(--berry-deep); font-size: clamp(1.45rem, 4vw, 2.25rem); font-weight: 800; line-height: 1.18; }
.promise-lines span { display: block; }
.privacy-card p { margin: 0; color: var(--muted); }
.policy-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 750; }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.split-section p {
  margin: 0 0 18px;
  color: var(--muted);
}

.legal-page { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 84px; }
.legal-page header { padding-bottom: 24px; border-bottom: 3px solid var(--berry); }
.legal-page h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); }
.legal-page h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1.32rem; }
.effective { margin: 6px 0 0; color: var(--muted); }
.contact-block { padding: 20px; border-left: 5px solid var(--teal); background: var(--surface); }
.contact-block p { margin: 4px 0; }
.plain-list { padding-left: 22px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 24px 36px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .product-page { padding-top: 18px; }
  .hero-panel {
    min-height: auto;
    padding: 30px;
  }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section { grid-template-columns: 1fr; gap: 20px; }
  .store-page { padding-top: 30px; }
  .app-summary { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
  .app-icon-large { width: 112px; height: 112px; border-radius: 24px; }
  h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
  .app-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-facts div:nth-child(2) { border-right: 0; }
  .app-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .privacy-summary { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 1fr; padding: 22px; }
}

@media (max-width: 560px) {
  .nav { align-items: flex-start; padding: 12px 0; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .brand-link span { display: none; }
  .hero-panel { padding: 24px; border-radius: 22px; }
  .app-lockup { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; margin-bottom: 22px; }
  .app-lockup img { width: 74px; height: 74px; border-radius: 17px; }
  .lead { font-size: clamp(1.8rem, 11vw, 2.75rem); }
  .feature-list { grid-template-columns: 1fr; }
  .app-summary { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; }
  .app-icon-large { width: 86px; height: 86px; border-radius: 19px; }
  .developer { margin-bottom: 16px; }
  .actions { grid-column: 1 / -1; }
  .store-button, .secondary-button { width: 100%; }
  .section-heading { display: block; }
  .screenshot-strip { grid-auto-columns: minmax(210px, 74vw); }
  .info-list div { grid-template-columns: 1fr; gap: 3px; }
  .info-list dd { text-align: left; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f2f6;
    --muted: #b0abb3;
    --paper: #111114;
    --surface: #1c1b1f;
    --soft: #18161b;
    --line: #39363c;
    --berry: #ff6d9e;
    --berry-deep: #ff8bb0;
    --teal: #44c7c0;
    --blue: #0a84ff;
  }
  .site-header { background: color-mix(in srgb, var(--paper) 86%, transparent); }
  .app-icon-large, .screenshot-strip img { box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34); }
}
