:root {
  color-scheme: light dark;
  --bg: #efefe9;
  --ink: #241b42;
  --muted: #514a63;
  --surface: #fbfaf6;
  --line: #ded8e5;
  --focus: #7854dc;
  --hero: #d8cafa;
  --start: #f8edff;
  --end: #adc9fb;
  --accent: #46336e;
  --button: #261b47;
  --button-ink: #fff;
  --soft: rgba(255,255,255,.52);
  --shadow: rgba(43,33,76,.14);
}
.pilllog {
  --hero: #d2e7d8;
  --start: #eef4dd;
  --end: #b7dfd0;
  --accent: #254c3c;
  --button: #244b3b;
  --focus: #3c785d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: #bbff9d; color: #1a1538; }
.topbar {
  width: min(calc(100% - 32px),1140px);
  margin: 19px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: #20192f;
  box-shadow: 0 12px 35px var(--shadow);
  color: #d3cee3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
}
.brand { color: #fff; font-size: 17px; font-weight: 850; letter-spacing: -.065em; text-decoration: none; }
.brand::after { content: "✳"; margin-left: 7px; color: #c5ffa6; font-size: 12px; vertical-align: top; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 3px; font-size: .84rem; }
.topbar nav a { padding: 5px 9px; border-radius: 999px; text-decoration: none; }
.topbar nav a:is(:hover,[aria-current="page"]) { color: #20192f; background: #dcfbc2; }
main, footer { width: min(calc(100% - 32px),1140px); margin-inline: auto; }
main { margin-block: clamp(24px,4vw,47px) 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr);
  align-items: center;
  gap: clamp(20px,3vw,40px);
  padding: clamp(25px,4vw,56px);
  border-radius: 34px;
  background: radial-gradient(ellipse at 0% 0%,var(--start) 0,transparent 58%),
    radial-gradient(ellipse at 87% 95%,var(--end) 0,transparent 68%),var(--hero);
  box-shadow: 0 19px 48px var(--shadow);
}
.product-meta { display: flex; align-items: center; gap: 13px; color: var(--accent); font-size: .83rem; font-weight: 700; }
.icon { width: 49px; height: 49px; border-radius: 13px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 16px; font-size: clamp(2.85rem,6.1vw,5.25rem); font-weight: 850; line-height: .98; letter-spacing: -.075em; }
.tagline { margin-top: 15px; max-width: 20ch; font-size: clamp(1.35rem,2.4vw,2.18rem); line-height: 1.16; font-weight: 770; letter-spacing: -.045em; text-wrap: balance; }
.summary { margin-top: 13px; max-width: 39ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.button { display: inline-flex; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-weight: 720; font-size: .84rem; text-decoration: none; }
.button.primary { background: var(--button); color: var(--button-ink); border-color: transparent; }
.button:hover { box-shadow: 0 4px 12px var(--shadow); text-decoration: underline; text-underline-offset: .25em; }
.gallery { display: grid; align-items: end; justify-items: center; gap: clamp(8px,2vw,20px); }
.gallery.flow { grid-template-columns: minmax(0,3fr) minmax(0,1fr); align-items: center; }
.gallery.phones { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 436px; width: 100%; margin-inline: auto; }
figure { margin: 0; width: 100%; min-width: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 13px; box-shadow: 0 12px 30px rgba(32,25,48,.23); }
.gallery figcaption { margin-top: 9px; color: var(--accent); font-size: .75rem; font-weight: 680; text-align: center; }
.details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.product-detail, .privacy { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: clamp(18px,2.4vw,29px); }
h2 { font-size: clamp(1.19rem,2.05vw,1.55rem); letter-spacing: -.045em; line-height: 1.15; }
.product-detail p, .privacy p { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.privacy { margin-top: 14px; }
.privacy p { max-width: 78ch; }
footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 0 28px; color: var(--muted); font-size: .86rem; }
footer a, .privacy a { text-underline-offset: .18em; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .gallery.flow { max-width: 590px; width: 100%; margin-inline: auto; }
  .gallery.phones { max-width: 366px; }
}
@media (max-width: 590px) {
  .topbar { padding: 8px 13px; }
  .topbar nav { font-size: .76rem; }
  .topbar nav a { padding-inline: 5px; }
  .hero { padding: 23px 17px; border-radius: 23px; gap: 22px; }
  .details { grid-template-columns: 1fr; }
  .gallery img { border-radius: 8px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171521; --ink: #f5eefc; --muted: #dbd3e6; --surface: #211e2c;
    --line: #494057; --focus: #c7acee; --hero: #31284d; --start: #49365e; --end: #303e61;
    --accent: #e7d7ff; --button: #e3d3ff; --button-ink: #241b42;
    --soft: rgba(20,17,29,.26); --shadow: rgba(0,0,0,.26);
  }
  .pilllog {
    --hero: #203c32; --start: #34462e; --end: #204741; --accent: #c9efda;
    --button: #c5e8d2; --button-ink: #17362a; --focus: #addfc5;
  }
}
.product-license { margin-top: 12px; color: var(--muted); font-size: .79rem; }
.product-license a { text-underline-offset: .17em; }
.product-license span { margin-inline: .22em; }
.screenshot-zoom { display: block; border-radius: 13px; cursor: zoom-in; }
.screenshot-zoom:hover { outline: 2px solid var(--focus); outline-offset: 3px; }
.screenshot-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 56px);
}
.screenshot-dialog::backdrop { background: rgba(15, 12, 24, .86); }
.screenshot-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 64px); border-radius: 10px; object-fit: contain; }
.zoom-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: #20192f;
  color: #fff;
  cursor: pointer;
  font: 26px/1 system-ui, sans-serif;
}
.zoom-close:focus-visible { outline: 3px solid #c7acee; outline-offset: 2px; }
