:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --separator: #d2d2d7;
  --link: #0066cc;
  --button: #0071e3;
  --button-text: #ffffff;
  --pill: #f0f0f5;
  --shadow: 0 0 0 1px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-secondary: #1d1d1f;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --separator: #424245;
    --link: #2997ff;
    --button: #0a84ff;
    --pill: #2c2c2e;
    --shadow: 0 0 0 1px rgba(255,255,255,.1);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 48px;
  background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.topbar .inner {
  max-width: 980px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.topbar .brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: var(--shadow); }
.topbar nav { display: flex; gap: 20px; font-size: 12px; }
.topbar nav a { color: var(--text); opacity: .8; }
.topbar nav a:hover { opacity: 1; text-decoration: none; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* Product header */
.product-header {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0 34px;
}
.app-icon {
  width: 230px; height: 230px;
  border-radius: 22.5%;
  box-shadow: var(--shadow), 0 4px 18px rgba(0,0,0,.08);
}
.product-header h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: .004em;
}
.badge-age {
  display: inline-block; vertical-align: middle;
  margin-left: 8px; padding: 1px 4px;
  font-size: 12px; font-weight: 500; line-height: 1.3;
  color: var(--text-secondary); background: var(--pill);
  border-radius: 4px; letter-spacing: 0;
}
.subtitle { margin: 4px 0 0; font-size: 21px; line-height: 1.38; color: var(--text-secondary); font-weight: 400; }
.developer { margin: 6px 0 0; font-size: 17px; }
.meta-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-secondary); }
.meta-list li { margin: 2px 0; }
.actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.get-button {
  display: inline-block;
  background: var(--button); color: var(--button-text);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  padding: 6px 22px; border-radius: 980px;
}
.get-button:hover { text-decoration: none; filter: brightness(1.08); }
.actions .note { font-size: 12px; color: var(--text-tertiary); }

/* Sections */
section.block { border-top: 1px solid var(--separator); padding: 32px 0; }
section.block h2 {
  margin: 0 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a, .section-head span { font-size: 17px; }

/* Screenshots */
.platform-label { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--text-secondary); }
.platform-label svg { width: 12px; height: 16px; fill: currentColor; }
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--bg-secondary);
}

/* Description */
.description p { margin: 0 0 1em; }
.description p:last-child { margin-bottom: 0; }
.description ul { margin: 0 0 1em; padding-left: 1.2em; }
.description li { margin: 4px 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
details.more > summary { list-style: none; cursor: pointer; color: var(--link); margin-top: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }
details.more[open] ~ .clamp, .description:has(details.more[open]) .clamp { display: block; -webkit-line-clamp: unset; }

/* What's new */
.whats-new-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }

/* Feature cards (privacy-card style) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}
.card .icon {
  width: 44px; height: 44px; margin: 0 auto 12px;
  display: grid; place-items: center;
  color: var(--button);
}
.card .icon svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; line-height: 1.43; color: var(--text-secondary); }

/* Information table */
dl.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; margin: 0; }
dl.info div { padding: 12px 0; border-top: 1px solid var(--separator); }
dl.info div:nth-child(-n+3) { border-top: 0; padding-top: 0; }
dl.info dt { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
dl.info dd { margin: 0; font-size: 14px; }

/* Supports */
.supports { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.support { display: flex; gap: 14px; align-items: flex-start; }
.support .glyph {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-secondary); color: var(--text);
}
.support .glyph svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support h3 { margin: 0; font-size: 17px; font-weight: 600; }
.support p { margin: 2px 0 0; font-size: 14px; color: var(--text-secondary); }

footer {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  font-size: 12px; line-height: 1.33;
  padding: 20px 0 40px; margin-top: 20px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 734px) {
  .topbar nav { display: none; }
  .product-header { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .app-icon { width: 128px; height: 128px; }
  .product-header h1 { font-size: 28px; }
  .subtitle { font-size: 19px; }
  .shots { grid-auto-columns: 62vw; gap: 12px; }
  .cards, .supports { grid-template-columns: 1fr; }
  dl.info { grid-template-columns: 1fr 1fr; }
  dl.info div:nth-child(3) { border-top: 1px solid var(--separator); padding-top: 12px; }
}

/* Privacy / legal pages */
.product-header.compact { grid-template-columns: 128px 1fr; gap: 28px; padding: 40px 0 28px; }
.product-header.compact .app-icon { width: 128px; height: 128px; }
.legal { max-width: 692px; }
.legal h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; }
.legal p, .legal ul { margin: 0 0 1em; }
.legal li { margin: 4px 0; }
.legal .updated { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
@media (max-width: 734px) {
  .product-header.compact { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
}

/* Support / FAQ */
.faq { max-width: 692px; }
.faq h3 { margin: 32px 0 4px; font-size: 19px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--separator); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 18px; color: var(--text-secondary); font-size: 15px; }
.faq details > div p { margin: 0 0 .8em; }
.faq details > div p:last-child { margin-bottom: 0; }
.faq details > div ul { margin: 0 0 .8em; padding-left: 1.2em; }
.faq code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--pill); padding: 1px 5px; border-radius: 4px; }
.contact-card { background: var(--bg-secondary); border-radius: 18px; padding: 24px; max-width: 692px; }
.contact-card h2 { margin-bottom: 6px !important; }
.contact-card p { margin: 0; color: var(--text-secondary); }
.contact-card p + p { margin-top: 8px; }
