:root {
  --brand-950: #101828;
  --brand-900: #162A52;
  --brand-700: #1D3F8F;
  --brand-600: #2457D6;
  --brand-500: #3974FF;
  --ink: #101828;
  --text: #1D2939;
  --muted: #344054;
  --subtle: #475467;
  --line: #D0D5DD;
  --line-soft: #EAECF0;
  --soft: #F8FAFC;
  --white: #FFFFFF;
  --page: #FFFFFF;
  --on-brand: #FFFFFF;
  --link: #1D3F8F;
  --footer-bg: #101828;
  --footer-fg: #E4E7EC;
  --footer-muted: #98A2B3;
  --footer-link: #D0D5DD;
  --footer-line: #1D2939;
  --max: 1120px;
  --reading: 40rem;
  --radius: 6px;
  --header: 58px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --z-skip: 40;
  --z-header: 20;
  --z-nav: 30;
  --z-modal: 50;
  color-scheme: light;
}

html.theme-dark {
  --ink: #F8FAFC;
  --text: #E4E7EC;
  --muted: #D0D5DD;
  --subtle: #98A2B3;
  --line: #344054;
  --line-soft: #1D2939;
  --soft: #152033;
  --page: #101828;
  --link: #8BB4FF;
  --footer-bg: #0B1220;
  --footer-line: #152033;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --ink: #F8FAFC;
    --text: #E4E7EC;
    --muted: #D0D5DD;
    --subtle: #98A2B3;
    --line: #344054;
    --line-soft: #1D2939;
    --soft: #152033;
    --page: #101828;
    --link: #8BB4FF;
    --footer-bg: #0B1220;
    --footer-line: #152033;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font: 16px/1.6 var(--font);
}
body.nav-open,
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .16em; }
h1, h2, h3, h4 { margin: 0 0 .75rem; color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.038em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
p { max-width: 68ch; margin: 0 0 1rem; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; }

.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: var(--z-skip);
  padding: .55rem .8rem; color: var(--page); background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid var(--line-soft);
  background: var(--page);
}
.site-header__inner {
  min-height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header__actions {
  display: flex; align-items: center; gap: .75rem 1.35rem;
  margin-left: auto;
}
.site-header__actions .theme-switch { margin-left: 0; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
}
.brand__mark { width: 32px; height: 32px; flex: none; object-fit: contain; }
.brand__word {
  font-size: 1.02rem; font-weight: 500; letter-spacing: -.035em; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  color: var(--subtle); font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: color .16s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); content: "";
  transition: transform .16s var(--ease), opacity .16s var(--ease);
}
.nav-toggle::before { top: 16px; }
.nav-toggle span { top: 21.25px; }
.nav-toggle::after { top: 26.5px; }
body.nav-open .nav-toggle span { opacity: 0; }
body.nav-open .nav-toggle::before { top: 21.25px; transform: rotate(45deg); }
body.nav-open .nav-toggle::after { top: 21.25px; transform: rotate(-45deg); }

.theme-switch {
  display: flex;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.theme-switch button {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0;
  color: var(--subtle); background: transparent; cursor: pointer;
}
.theme-switch button + button { border-left: 1px solid var(--line); }
.theme-switch button[aria-pressed="true"] {
  color: var(--ink); background: var(--line-soft);
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button span {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.button, .button-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .6rem 1rem;
  border-radius: var(--radius); font-size: .92rem; font-weight: 600;
  text-decoration: none; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.button { border: 1px solid var(--brand-600); color: var(--on-brand); background: var(--brand-600); }
.button:hover { border-color: var(--brand-700); background: var(--brand-700); }
.button:active { border-color: var(--brand-900); background: var(--brand-900); }
.button-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--page); }
.button-ghost:hover { border-color: var(--ink); }
.button-ghost:active { background: var(--soft); }
.text-link { color: var(--link); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--subtle); font-size: .88rem; text-decoration: none; }
.back-link:hover { color: var(--ink); }

.page-intro { padding: clamp(2.6rem, 6vw, 4.2rem) 0 0; }
.page-intro h1 { max-width: 14ch; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-intro p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; max-width: 42rem; }

.products { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); scroll-margin-top: 58px; }
.products .product:first-child { margin-top: 1.8rem; }
.product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: start;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  border-top: 1px solid var(--line);
}
.product--solo { grid-template-columns: 1fr; }
.product__head {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .7rem;
}
.product__head .product__icon { width: 64px; height: 64px; border-radius: 14px; }
.product__head h2 { margin: 0; max-width: 22ch; }
.product__kicker { margin: 0 0 .45rem; color: var(--subtle); font-size: .82rem; font-weight: 500; }
.product h2 { margin: 0 0 .55rem; font-size: clamp(1.5rem, 3vw, 2rem); max-width: 16ch; }
.product p { color: var(--muted); }
.product__facts { padding: 0; margin: 1.1rem 0 1.4rem; list-style: none; }
.product__facts li {
  padding: .45rem 0; border-bottom: 1px solid var(--line-soft);
  color: var(--text); font-size: .95rem;
}
.product__facts li:first-child { border-top: 1px solid var(--line-soft); }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; }
.product__visual { display: grid; justify-items: start; gap: 1rem; }
.product__icon { width: 72px; height: 72px; border-radius: 16px; }
.app-icon { border-radius: 22.5%; }
.product__frame {
  width: min(100%, 232px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--page);
}
.product__shot { width: 100%; display: block; }
.shot-trigger {
  display: block; width: 100%; padding: 0; border: 0;
  background: transparent; cursor: zoom-in; color: inherit; text-decoration: none;
}
.shot-trigger img { transition: opacity .16s var(--ease); }
.shot-trigger:hover img,
.shot-trigger:focus-visible img { opacity: .88; }

.lightbox {
  position: fixed;
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.lightbox::backdrop { background: rgb(16 24 40 / .84); }
.lightbox__stage {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  min-height: 100%;
  padding: 3.2rem 4.5rem 1.4rem;
}
.lightbox__image {
  max-width: min(100%, 28rem);
  max-height: min(82vh, 920px);
  width: auto; height: auto;
  border-radius: 18px;
  background: var(--white);
}
.lightbox__meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: .2rem .7rem;
  max-width: none;
  margin: .85rem 0 0;
  color: #E4E7EC;
  font-size: .9rem;
}
.lightbox__caption { margin: 0; }
.lightbox__count { color: #98A2B3; font-variant-numeric: tabular-nums; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  color: var(--white); background: rgb(16 24 40 / .72); cursor: pointer;
}
.lightbox__close { top: .7rem; right: .7rem; font-size: 1.4rem; line-height: 1; }
.lightbox__prev,
.lightbox__next { top: 50%; transform: translateY(-50%); font-size: 1.6rem; line-height: 1; }
.lightbox__prev { left: .7rem; }
.lightbox__next { right: .7rem; }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--ink); }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next { display: none; }

.help-band { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line-soft); }
.help-band h2 { margin-bottom: .5rem; }
.help-band p { color: var(--muted); }
.help-band a { color: var(--link); }

.site-footer { padding: 2.8rem 0 2.2rem; color: var(--footer-fg); background: var(--footer-bg); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 2rem; align-items: start;
}
.site-footer .brand { color: var(--on-brand); }
.site-footer .brand__word { font-weight: 500; }
.footer-note { margin: .7rem 0 0; max-width: 36ch; color: var(--footer-muted); font-size: .88rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--footer-link); font-size: .9rem; text-decoration: none; }
.footer-col a:hover { color: var(--on-brand); text-decoration: underline; }
.footer-copy { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--footer-line); color: var(--footer-muted); font-size: .8rem; }

.app-hero { padding: clamp(2.4rem, 6vw, 4.2rem) 0 2.2rem; border-bottom: 1px solid var(--line-soft); background: var(--soft); }
.app-hero--with-shots { padding-bottom: 1.4rem; border-bottom: 0; }
.app-hero__inner { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.6rem 2rem; align-items: start; }
.app-hero__inner > img { width: 96px; height: 96px; border-radius: 20px; }
.app-hero__inner > img.app-icon { border-radius: 22.5%; }
.app-hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.app-hero p { color: var(--muted); font-size: 1.05rem; }
.app-meta { margin: 0 0 .85rem; color: var(--subtle); font-size: .82rem; }
.app-hero .button { margin-top: .4rem; }

.app-shots-wrap {
  padding: 0 0 clamp(2.2rem, 5vw, 3.2rem);
  border-bottom: 1px solid var(--line-soft);
  background: var(--soft);
}
.app-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  max-width: 52rem;
}
.app-shots--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: none;
}
.app-shots .product__frame { width: 100%; }
.app-shots figcaption {
  margin: .55rem 0 0;
  color: var(--subtle);
  font-size: .82rem;
}

.app-content {
  display: grid; grid-template-columns: 170px minmax(0, var(--reading));
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-nav { position: sticky; top: 74px; align-self: start; padding-top: .4rem; border-top: 1px solid var(--ink); }
.page-nav p { margin: 0 0 .55rem; color: var(--subtle); font-size: .75rem; font-weight: 600; }
.page-nav a { display: block; padding: .32rem 0; color: var(--subtle); font-size: .9rem; text-decoration: none; }
.page-nav a:hover, .page-nav a.is-active { color: var(--ink); font-weight: 600; }
.app-content__body section { padding: 0 0 2.2rem; margin: 0 0 2.2rem; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 82px; }
.app-content__body section h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.app-content__body p { color: var(--muted); }
.app-content__body a { color: var(--link); }
.app-content__body .back-link { color: var(--subtle); }
.plain-list { padding: 0; margin: 0 0 1rem; list-style: none; }
.plain-list li { padding: .5rem 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.platform-list { padding: 0; margin: 0 0 1rem; list-style: none; }
.platform-list li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.platform-list strong { display: block; color: var(--ink); font-weight: 600; }
.platform-list span { display: block; margin-top: .15rem; color: var(--muted); }
.quiet { color: var(--subtle); font-size: .92rem; }
.legal-note {
  margin: 2.2rem 0 0;
  color: var(--subtle);
  font-size: .85rem;
}
.app-content__body h3 {
  margin-top: 1.35rem;
  font-size: 1.02rem;
}
.app-content__body ul:not(.plain-list),
.app-content__body ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.app-content__body li { margin: 0 0 .35rem; }
.app-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: .95rem;
}
.app-content__body th,
.app-content__body td {
  padding: .55rem .75rem .55rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.app-content__body th { color: var(--ink); font-weight: 600; width: 36%; }
.app-content__body td { color: var(--muted); }
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.2rem 0 0;
}
.language-break {
  margin-top: 1.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.legal-home { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.legal-home h1 { max-width: 16ch; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.legal-home > .container > header {
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 1.6rem;
  max-width: 40rem;
}
.legal-home > .container > header p { color: var(--muted); font-size: 1.05rem; }
.app-content__body h1 { max-width: none; font-size: clamp(1.75rem, 3.4vw, 2.35rem); letter-spacing: -.03em; }

.app-dest {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem 1.4rem;
  padding: clamp(1.8rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 74px;
}
.app-dest > img {
  width: 56px; height: 56px; border-radius: 14px;
}
.app-dest > img.app-icon { border-radius: 22.5%; }
.app-dest h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  max-width: 22ch;
}
.app-dest > div > p { color: var(--muted); margin-bottom: .85rem; }
.app-dest .button { margin-top: .2rem; }

.doc-index { margin: 0; padding: 0; list-style: none; }
.app-dest .doc-index {
  grid-column: 1 / -1;
  margin: .4rem 0 0;
}
.legal-home > .container > .doc-index { margin-top: .4rem; border-top: 1px solid var(--line); }
.doc-index a {
  display: block;
  min-height: 44px;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.doc-index li:first-child a { border-top: 1px solid var(--line-soft); }
.legal-home > .container > .doc-index li:first-child a { border-top: 0; padding-top: 1.5rem; }
.legal-home > .container > .doc-index strong { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.doc-index strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: color .16s var(--ease);
}
.doc-index span {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .95rem;
}
.doc-index a:hover strong { color: var(--link); }

.contact-action {
  display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
  padding: 0 0 2.2rem;
}
.contact-action p { margin: 0; color: var(--muted); max-width: 42rem; }
.legal-home .note {
  max-width: var(--reading);
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.legal-home .note h2 { font-size: 1.15rem; }
.legal-home .note p { color: var(--muted); }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .app-shots--five {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    max-width: none;
    padding-bottom: .2rem;
    scroll-snap-type: x mandatory;
  }
  .app-shots--five figure { flex: 0 0 168px; scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  h1 { font-size: clamp(2.1rem, 10vw, 3.1rem); }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header); right: 0; left: 0; z-index: var(--z-nav);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem .9rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--page);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; padding: 0 .2rem; border-bottom: 1px solid var(--line-soft); }
  .app-dest { grid-template-columns: 48px minmax(0, 1fr); gap: .85rem 1rem; }
  .app-dest > img { width: 48px; height: 48px; }
  .app-content, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .app-hero__inner { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; }
  .app-hero__inner > img { width: 72px; height: 72px; }
  .app-shots {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    max-width: none;
    padding-bottom: .2rem;
    scroll-snap-type: x mandatory;
  }
  .app-shots figure { flex: 0 0 168px; scroll-snap-align: start; }
  .page-nav { position: static; display: flex; flex-wrap: wrap; gap: .2rem 1rem; border-top: 0; padding: 0 0 .6rem; }
  .page-nav p { width: 100%; }
  .product__icon { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .page-intro { padding-top: 2.2rem; }
  .product__frame { width: min(100%, 196px); }
  .lightbox__stage { padding: 3.4rem .7rem 1.2rem; }
  .lightbox__prev { left: .25rem; }
  .lightbox__next { right: .25rem; }
  .site-header__inner { gap: .75rem; }
  .theme-switch button { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
