:root {
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --line: #d2d2d7;
  --canvas: #f5f5f7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --paper: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Rubik", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: #fff;
}

.skip:focus { top: calc(0.6rem + env(safe-area-inset-top)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding:
    calc(0.45rem + env(safe-area-inset-top))
    calc(1rem + env(safe-area-inset-right))
    0.45rem
    calc(1rem + env(safe-area-inset-left));
  background: rgba(251, 251, 253, 0.84);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.languages {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.languages a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--secondary);
  font-size: 0.88rem;
  text-decoration: none;
}

.languages a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

main {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0 calc(6.2rem + env(safe-area-inset-bottom));
}

.listing {
  padding: 0.4rem 0 0;
}

.product {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  grid-template-areas: "icon copy action";
  gap: 0 0.75rem;
  align-items: center;
}

.app-icon {
  grid-area: icon;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.15rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-copy { grid-area: copy; min-width: 0; }

.product h1,
.story h2,
.guide h2,
.safety h2,
.opinions h2,
.step h3,
.hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.product h1 { font-size: 1.55rem; }

.subtitle {
  margin: 0.15rem 0 0;
  color: var(--secondary);
  font-size: 0.98rem;
}

.product .button {
  grid-area: action;
  width: auto;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  touch-action: manipulation;
}

.button:active { transform: scale(0.98); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0 0;
  padding: 0.85rem 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.facts div {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0 0.35rem;
}

.facts div + div { border-left: 0.5px solid var(--line); }

.facts strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.facts span {
  color: var(--tertiary);
  font-size: 0.75rem;
}

.stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  line-height: 0;
}

.star {
  width: 0.78rem;
  height: 0.78rem;
  display: block;
}

.star path { fill: #e4e4e8; }
.star.full path,
.star.half .gold { fill: #f5b400; }

.star.half .gold { clip-path: inset(0 50% 0 0); }

.story { margin-top: 1.7rem; }

.story h2,
.guide h2,
.safety h2,
.opinions h2 { font-size: 1.45rem; }

.lead {
  margin: 0.7rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.story p,
.step p,
.intro,
.hint {
  margin: 0.75rem 0 0;
  color: var(--ink);
}

.hint,
.intro { color: var(--secondary); }

.story h3,
.safety h3 {
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.features,
.collected,
.practices {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.features li { margin: 0; }

.collected li,
.practices li {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 0.5px solid var(--line);
}

.collected span,
.practices span {
  color: var(--secondary);
  font-size: 0.95rem;
}

.safety,
.opinions { margin-top: 2.1rem; }

.safety-block { margin-top: 0.4rem; }

.rating-board {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.rating-number {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rating-score .star {
  width: 0.95rem;
  height: 0.95rem;
}

.bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.bars li {
  display: grid;
  grid-template-columns: 0.8rem 1fr;
  gap: 0.45rem;
  align-items: center;
  color: var(--tertiary);
  font-size: 0.75rem;
}

.track {
  display: block;
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: #ececf0;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d1d1f;
}

.fill-5 { width: 80%; }
.fill-4 { width: 14%; }
.fill-3 { width: 3%; }
.fill-2 { width: 2%; }
.fill-1 { width: 1%; }

.reviews {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.review header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #e8e8ed;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.review header div { display: grid; }

.review time,
.reply time {
  color: var(--tertiary);
  font-size: 0.8rem;
}

.helpful {
  margin: 0.45rem 0 0;
  color: var(--tertiary);
  font-size: 0.82rem;
}

.reply {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--paper);
}

.reply p { margin: 0.35rem 0 0; }

.guide { margin-top: 2.1rem; }

#steps-title { scroll-margin-top: 5rem; }

.steps {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.step {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 0 1.35rem;
  border-top: 0.5px solid var(--line);
}

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1.28rem;
}

.index {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.shot {
  margin: 0.2rem auto 0;
  width: min(100%, 20.5rem);
  padding: 0.55rem;
  background: var(--paper);
  border-radius: 1.6rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.frame {
  position: relative;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
}

.pointer {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 28%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  transform-origin: right center;
  transform: translate(-100%, -50%) rotate(var(--turn));
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.aim-1 { --x: 55%; --y: 50.8%; --turn: 0deg; width: 28%; }
.aim-2 { --x: 44%; --y: 89.6%; --turn: 180deg; width: 13%; }
.aim-3 { --x: 84.5%; --y: 59.5%; --turn: 90deg; width: 14%; }
.aim-4 { --x: 90.9%; --y: 41.1%; --turn: 90deg; width: 16%; }
.aim-5 { --x: 83%; --y: 54%; --turn: 90deg; width: 16%; }
.aim-6 { --x: 50%; --y: 59.7%; --turn: 180deg; width: 20%; }
.aim-7 { --x: 36%; --y: 31.8%; --turn: 180deg; width: 16%; }
.aim-8 { --x: 88%; --y: 25.2%; --turn: 90deg; width: 16%; }
.aim-9 { --x: 51%; --y: 63.2%; --turn: 90deg; width: 16%; }
.aim-10 { --x: 90.5%; --y: 40.5%; --turn: 90deg; width: 16%; }

.site-footer {
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--line);
  color: var(--tertiary);
  font-size: 0.82rem;
  text-align: center;
}

.site-footer p,
.fine { margin: 0.2rem 0 0; }

.hero { padding-top: 1.5rem; }
.hero h1 { font-size: 2rem; }
.lede { margin: 0.8rem 0 0; }
.text-link { color: var(--blue); }

.dock {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(251, 251, 253, 0.9);
  border-top: 0.5px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
}

.dock img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.6rem;
}

.dock-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.dock strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.dock span {
  color: var(--secondary);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock .button {
  width: auto;
  min-height: 2.15rem;
  padding: 0 1rem;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .button:hover { background: var(--blue-hover); }
}

@media (min-width: 840px) {
  main {
    width: min(66rem, calc(100% - 4rem));
    padding: 2.5rem 0 4.5rem;
  }

  .product {
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    grid-template-areas: "icon copy action";
    gap: 0 1.25rem;
    align-items: center;
  }

  .app-icon {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 1.7rem;
  }

  .product h1 { font-size: 2.1rem; }
  .subtitle { font-size: 1.15rem; }
  .product .button { width: auto; margin-top: 0; min-width: 7.5rem; }

  .story h2,
  .guide h2,
  .safety h2,
  .opinions h2 { font-size: 1.85rem; }

  .lead { font-size: 1.45rem; max-width: 36rem; }

  .story p,
  .hint { max-width: 40rem; }

  .step {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    align-items: start;
    padding: 1.8rem 0;
  }

  .step h3 { font-size: 1.65rem; }
  .shot { width: 100%; margin-top: 0; }

  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active { transform: none; }
}
