/* Product storytelling and the self-contained, fictional tracker demonstration. */
.wide-content { width: min(1120px,100%); margin-inline: auto; }
.section-intro { max-width: 850px; }
.section-description { max-width: 650px; margin-top: 25px; font-size: 21px; line-height: 1.5; color: var(--secondary); letter-spacing: -.4px; }
.demo-section { padding: 112px 32px 100px; }
.demo-disclosure { margin-top: 42px; margin-bottom: 17px; font-size: 12px; color: var(--secondary); line-height: 1.6; }
.demo-layout { display: grid; grid-template-columns: minmax(0,1.15fr) 46px minmax(0,.85fr); align-items: center; }
.demo-app { background: #f4f6fa; border: 1px solid #d8e1ec; border-radius: 15px; overflow: hidden; font-family: 'Segoe UI',sans-serif; color: #122034; box-shadow: 0 16px 45px -25px #12203435; }
.demo-titlebar { display: flex; justify-content: space-between; align-items: center; background: white; padding: 17px 24px; border-bottom: 1px solid #d8e1ec; }
.demo-titlebar>span:first-child { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.demo-titlebar img { border-radius: 5px; }
.demo-tag { color: #5c6b7e; font-size: 11px; }
.demo-app-body { padding: 27px; }
.demo-view-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.demo-view-heading h3 { font-size: 23px; margin: 0; letter-spacing: -.5px; }
.session-state { font-size: 11px; color: #5c6b7e; }
.is-running .session-state { color: #087856; }
.demo-torrent { display: flex; align-items: center; gap: 12px; padding: 17px; background: white; border: 1px solid #d8e1ec; border-radius: 6px; }
.demo-torrent svg { flex: 0 0 22px; height: 26px; fill: none; stroke: #60748c; stroke-width: 1.4; stroke-linejoin: round; }
.demo-torrent>div { display: grid; gap: 5px; min-width: 0; }
.demo-torrent strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.demo-torrent span { font-size: 11px; color: #5c6b7e; }
.speed-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 27px 0 9px; font-size: 12px; }
.speed-label output { font-weight: 600; color: #1d4ed8; white-space: nowrap; }
#demo-speed { width: 100%; margin: 0; min-height: 30px; accent-color: #1d4ed8; cursor: pointer; }
#demo-speed:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
.speed-scale { display: flex; justify-content: space-between; font-size: 10px; color: #5c6b7e; }
.demo-counters { display: grid; grid-template-columns: 1fr 1fr; margin-block: 25px; gap: 20px; }
.demo-counters>div { display: grid; gap: 7px; }
.demo-counters span { font-size: 11px; color: #5c6b7e; }
.demo-counters strong { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-controls .button { border: 0; border-radius: 5px; padding: 10px 15px; min-height: 40px; font-size: 12px; }
.demo-reset { min-height: 40px; padding: 10px 15px; border: 1px solid #d8e1ec; border-radius: 5px; background: white; font-size: 12px; }
.demo-announce { padding: 10px 0; border: 0; background: none; margin-left: auto; color: #1d4ed8; font-size: 11px; min-height: 40px; }
.demo-controls button:disabled { opacity: .45; cursor: default; }
.demo-event { margin-top: 18px; min-height: 36px; font-size: 11px; color: #5c6b7e; line-height: 1.6; }
.announce-bridge { position: relative; display: grid; place-items: center; height: 30px; color: #8895a6; font-size: 24px; overflow: hidden; }
/* A brief receipt marker; numbers and arrow remain stationary. */
.announce-bridge i { position: absolute; left: calc(50% - 3px); top: 13px; width: 6px; height: 6px; background: #0071e3; border-radius: 50%; opacity: 0; transition: opacity 160ms var(--ease-out); }
.announce-received .announce-bridge i { opacity: 1; }
.tracker-card { background: #171a20; color: #f4f6fa; border: 1px solid #303641; border-radius: 15px; padding: 24px; font-variant-numeric: tabular-nums; }
.tracker-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 23px; border-bottom: 1px solid #353b46; }
.tracker-header>strong { display: flex; align-items: center; gap: 7px; font-size: 20px; letter-spacing: -.6px; font-weight: 600; }
.tracker-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: #c5f1da; color: #171a20; font-size: 19px; font-weight: 500; }
.tracker-word { color: #a7aebc; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.tracker-header>span { font-size: 10px; color: #bac2ce; }
.tracker-account { display: flex; gap: 9px; align-items: center; margin-top: 20px; font-size: 11px; color: #c5cbd5; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #303641; font-size: 10px; }
.tracker-badge { margin-left: auto; font-size: 10px; color: #e9c781; }
.tracker-badge.positive { color: #80dfad; }
.tracker-ratio-label { margin-top: 25px; color: #bac2ce; font-size: 12px; }
.tracker-ratio { margin-top: 5px; font-size: 70px; letter-spacing: -3px; line-height: 1.15; font-weight: 600; color: #b6edcf; }
.ratio-history { margin-top: 15px; }
.ratio-history svg { width: 100%; height: 90px; display: block; }
.chart-grid { stroke: #353b46; fill: none; stroke-width: .7; }
#ratio-line { stroke: #8ae4b4; stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ratio-history>span { display: flex; justify-content: space-between; color: #a7aebc; font-size: 9px; margin-top: 6px; }
.tracker-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.tracker-totals>div { display: grid; gap: 7px; }
.tracker-totals span { font-size: 10px; color: #bac2ce; }
.tracker-totals strong { font-size: 19px; font-weight: 500; }
.tracker-footer { margin-top: 23px; padding-top: 16px; border-top: 1px solid #353b46; display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: #a7aebc; }
.demo-counters, .speed-label output { font-variant-numeric: tabular-nums; }
.demo-explanation { max-width: 850px; color: var(--secondary); font-size: 12px; line-height: 1.7; margin: 24px auto 0; text-align: center; }
.demo-explanation strong { color: #424245; font-weight: 600; }
.announce-story { padding: 105px 32px; background: #f5f5f7; }
.message-flow { display: flex; align-items: center; justify-content: space-between; margin-top: 66px; }
.message-flow>div { display: flex; flex-direction: column; align-items: center; gap: 13px; text-align: center; width: 190px; }
.message-flow img { border-radius: 12px; }
.message-flow strong { font-size: 20px; letter-spacing: -.5px; font-weight: 600; }
.message-flow small { font-size: 12px; color: var(--secondary); }
.flow-symbol { font-size: 39px; height: 54px; line-height: 54px; }
.flow-connection { position: relative; flex: 1; height: 1px; background: #c6c6cc; margin: -53px 20px 0; overflow: hidden; }
.flow-connection::after { content: ''; position: absolute; width: 100%; height: 1px; background: linear-gradient(90deg, transparent 45%, #0071e3 45%); left: 0; transform: translateX(-100%); }

@keyframes message-move { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.story-caption { max-width: 670px; margin: 42px auto 0; font-size: 14px; line-height: 1.7; text-align: center; color: var(--secondary); }
.personal-section { padding: 112px 32px; overflow: hidden; }
.personal-layout { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 60px; }
.personal-layout h2 { font-size: 54px; }
.personal-layout .section-description { font-size: 20px; }
.personal-layout .learn-link { margin-top: 25px; }
.detail-screenshot { height: 445px; border-radius: 19px; overflow: hidden; background: #253247; box-shadow: 0 20px 50px -25px #0004; }
.detail-screenshot img { width: 900px; max-width: none; height: auto; display: block; margin-left: -170px; }
.getting-started { padding: 100px 32px; background: #f5f5f7; }
.onboarding-steps { list-style: none; margin: 55px 0 35px; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 38px; }
.onboarding-steps li>span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #bcbcc4; border-radius: 50%; font-size: 18px; color: #424245; margin-bottom: 24px; }
.onboarding-steps h3 { font-size: 23px; }
.onboarding-steps p { font-size: 17px; line-height: 1.55; color: var(--secondary); }
.reveal, .feature-heading, .feature-pair article, .desktop-note, .get-app { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.reveal-pending { opacity: 0; transform: translateY(12px); }
.is-visible { opacity: 1; transform: none; }
.hero .product-name, .hero h1 > span, .hero-description { animation: hero-appear 240ms var(--ease-out) both; }
.hero h1 > span:first-child { animation-delay: 40ms; }
.hero h1 > span:nth-child(2) { animation-delay: 80ms; }
.hero-description { animation-delay: 120ms; }
@keyframes hero-appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Documentation has its own reading layout; product navigation remains shared. */
.docs-shell { max-width: 1100px; width: calc(100% - 64px); margin: 65px auto 95px; display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 80px; }
.docs-toc { position: sticky; top: 130px; align-self: start; }
.docs-toc>p { font-size: 10px; letter-spacing: 1px; color: var(--secondary); margin-bottom: 17px; }
.docs-toc nav { display: grid; gap: 4px; }
.docs-toc nav a { padding: 9px 0; font-size: 13px; color: #424245; }
.docs-toc nav a:hover { color: #0066cc; }
.docs-source { display: block; margin-top: 28px; font-size: 12px; color: #0066cc; }
.docs-content { min-width: 0; }
.docs-intro h1 { font-size: 58px; letter-spacing: -2.8px; }
.docs-intro .eyebrow { font-size: 18px; }
.docs-intro>p:last-child { margin-top: 23px; font-size: 21px; line-height: 1.5; color: var(--secondary); }
.docs-content section { padding-top: 50px; margin-top: 44px; border-top: 1px solid #dedee3; scroll-margin-top: 90px; }
.docs-content h2 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; margin-bottom: 22px; }
.docs-content section p, .docs-content li { font-size: 16px; line-height: 1.8; color: #515158; }
.docs-content p+p { margin-top: 17px; }
.docs-content a { color: #0066cc; }
.docs-content a:hover { text-decoration: underline; }
.docs-content ol { padding-left: 23px; margin-block: 20px; }
.docs-content li { padding-left: 5px; margin-bottom: 10px; }
.doc-note { font-size: 14px; line-height: 1.8; color: #515158; padding: 21px 24px; background: #f5f5f7; border-radius: 10px; margin-top: 25px; }
.doc-note strong { color: #1d1d1f; }
.docs-content code { background: #f0f0f3; border-radius: 4px; padding: 3px 6px; font-size: 13px; overflow-wrap: anywhere; }
.doc-table-wrap { margin: 27px 0; }
.doc-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table-wrap caption { text-align: left; font-weight: 600; margin-bottom: 15px; }
.doc-table-wrap th, .doc-table-wrap td { border-bottom: 1px solid #dedee3; padding: 13px 12px; text-align: left; line-height: 1.6; }
.doc-table-wrap th { font-weight: 400; color: #515158; width: 64%; }
.doc-table-wrap td { overflow-wrap: anywhere; }
.interface-list { margin: 0; }
.interface-list>div { padding-block: 17px; border-bottom: 1px solid #e5e5e9; display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.interface-list dt { font-size: 15px; font-weight: 600; }
.interface-list dd { margin: 0; color: #515158; font-size: 15px; line-height: 1.6; }
.docs-content details { border-bottom: 1px solid #dedee3; }
.docs-content summary { cursor: pointer; font-size: 16px; padding: 19px 0; line-height: 1.5; }
.docs-content summary:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
.docs-content details p { padding-bottom: 22px; }
#troubleshooting>p { margin-top: 25px; }
[aria-current="page"] { color: var(--secondary); }
@media (max-width: 1000px) {
  .demo-layout { grid-template-columns: minmax(0,1.1fr) 26px minmax(0,.9fr); }
  .demo-app-body, .tracker-card { padding: 21px; }
  .tracker-word { display: none; }
  .demo-announce { margin-left: 0; }
  .personal-layout { gap: 35px; }
  .personal-layout h2 { font-size: 44px; }
  .docs-shell { gap: 40px; grid-template-columns: 180px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .demo-layout { grid-template-columns: 1fr; max-width: 510px; margin-inline: auto; }
  .announce-bridge { height: 40px; transform: rotate(90deg); width: 40px; justify-self: center; }
  .tracker-word { display: inline; }
  .demo-app-body { padding: 24px; }
  .demo-announce { margin-left: auto; }
  .tracker-card { padding: 26px; }
  .personal-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-screenshot { max-width: 560px; width: 100%; }
  .onboarding-steps { grid-template-columns: 1fr; gap: 35px; }
  .onboarding-steps li>span { margin-bottom: 16px; }
  .docs-shell { grid-template-columns: 1fr; gap: 42px; margin-top: 30px; }
  .docs-toc { position: static; border-bottom: 1px solid #dedee3; padding-bottom: 23px; }
  .docs-toc nav { display: flex; flex-wrap: wrap; column-gap: 19px; row-gap: 0; }
  .docs-source { display: none; }
}
@media (max-width: 560px) {
  .demo-section, .announce-story, .personal-section, .getting-started { padding: 64px 23px; }
  .section-description { font-size: 18px; margin-top: 21px; }
  .demo-disclosure { font-size: 11px; margin-top: 29px; }
  .demo-app-body { padding: 20px; }
  .demo-titlebar { padding: 16px 20px; }
  .demo-torrent { padding: 13px; }
  .demo-torrent strong { font-size: 11px; }
  .demo-torrent span { font-size: 10px; }
  .demo-counters strong { font-size: 23px; }
  .demo-announce { flex-basis: 100%; text-align: left; min-height: 32px; padding: 4px 0; }
  .demo-event { margin-top: 12px; }
  .tracker-card { padding: 23px; }
  .tracker-ratio { font-size: 64px; }
  .demo-explanation { font-size: 11px; text-align: left; }
  .message-flow { margin-top: 43px; gap: 9px; }
  .message-flow>div { width: 90px; gap: 10px; }
  .message-flow strong { font-size: 15px; }
  .message-flow small { font-size: 10px; line-height: 1.6; }
  .message-flow img { width: 42px; height: 42px; border-radius: 9px; }
  .flow-symbol { font-size: 30px; height: 42px; line-height: 42px; }
  .flow-connection { margin: -70px 0 0; min-width: 8px; }
  .story-caption { font-size: 12px; margin-top: 30px; }
  .personal-layout h2 { font-size: 40px; }
  .personal-layout .section-description { font-size: 18px; }
  .detail-screenshot { height: 340px; border-radius: 12px; }
  .detail-screenshot img { width: 710px; margin-left: -150px; }
  .docs-shell { width: calc(100% - 42px); margin-bottom: 60px; }
  .docs-intro h1 { font-size: clamp(35px,9vw,47px); letter-spacing: -1.8px; }
  .docs-intro>p:last-child { font-size: 19px; }
  .docs-content section { margin-top: 34px; padding-top: 35px; }
  .docs-content h2 { font-size: 28px; }
  .docs-content section p, .docs-content li { font-size: 15px; }
  .doc-note { padding: 17px; }
  .doc-table-wrap th, .doc-table-wrap td { padding: 11px 5px; font-size: 12px; }
  .interface-list>div { grid-template-columns: 1fr; gap: 7px; }
  .hero { padding-top: 52px; }
  .docs-shell { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 160ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* Product navigation: clear central links, quiet utility controls. */
.header { position: sticky; top: 0; z-index: 20; padding-top: 16px; background: transparent; pointer-events: none; }
.navigation { width: min(1160px, calc(100% - 48px)); min-height: 68px; margin: auto; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border: 1px solid #e8e8eb; border-radius: 999px; background: #fffffff2; backdrop-filter: blur(20px); box-shadow: 0 4px 24px #1d1d1f0a, 0 1px 3px #1d1d1f05; pointer-events: auto; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.7px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; display: block; padding: 24px 0; color: #6e6e73; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current=page] { color: #1d1d1f; }
.nav-link[aria-current=page]::after { content: ''; position: absolute; bottom: 13px; left: 0; right: 0; height: 2px; background: #1d1d1f; }
.nav-actions { display: flex; justify-self: end; align-items: center; gap: 20px; }
.languages { position: relative; display: flex; align-items: center; gap: 8px; color: #55555a; }
.languages select { appearance: none; border: 0; background: transparent; padding: 12px 17px 12px 0; font: inherit; font-size: 14px; font-weight: 500; color: #333336; cursor: pointer; border-radius: 4px; }
.languages select:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.select-chevron { position: absolute; right: 0; pointer-events: none; }
.nav-download { display: inline-flex; gap: 9px; min-height: 36px; padding: 10px 16px; border-radius: 999px; background: #1d1d1f; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-download:hover { background: #3b3b3f; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
 .navigation { width: calc(100% - 32px); gap: 16px; padding-inline: 20px; }
 .nav-links { gap: 20px; }
 .nav-actions { gap: 14px; }
}
@media (max-width: 1000px) {
 .header { top: 0; padding-top: 10px; }
 .navigation { width: calc(100% - 24px); min-height: 60px; grid-template-columns: 1fr auto; padding: 0 16px; gap: 0; }
 .navigation.menu-open { border-radius: 26px; }
 .brand { font-size: 21px; gap: 9px; }
 .brand img { width: 26px; height: 26px; }
 .nav-actions { gap: 10px; }
 .nav-download { display: none; }
 .languages select { min-height: 44px; font-size: 16px; }
 .nav-toggle { width: 44px; height: 44px; padding: 8px 4px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: none; border: 0; }
 .nav-toggle span { width: 22px; height: 1.5px; background: #1d1d1f; transition: none; }
 .nav-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
 .nav-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
 .nav-links { display: none; grid-column: 1 / -1; grid-row: 2; padding: 8px 0 20px; }
 .navigation.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
 .nav-links .nav-link { display: block; font-size: 20px; letter-spacing: -.4px; padding: 12px 0; color: #1d1d1f; }
 .nav-link[aria-current=page]::after { display: none; }
}

/* Full application views, with space to read the complete window. */
.personal-layout { grid-template-columns: minmax(0,1fr); gap: 54px; }
.personal-layout > .reveal:first-child { text-align: center; max-width: 760px; margin-inline: auto; }
.personal-layout h2 { font-size: clamp(40px,5vw,62px); text-wrap: balance; }
.personal-layout .section-description { margin-inline: auto; }
.detail-screenshot { width: 100%; max-width: 1060px; height: auto; margin-inline: auto; border-radius: 12px; overflow: hidden; box-shadow: 0 35px 65px -35px #17233366; }
.detail-screenshot img { width: 100%; max-width: 100%; height: auto; margin: 0; display: block; }
.product-window { aspect-ratio: auto; }
.product-window img { position: static; width: 100%; height: auto; display: block; }
.demo-app, .tracker-card { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.tracker-card { transition-delay: 60ms; }
.onboarding-steps li:nth-child(2) { transition-delay: 60ms; }
.onboarding-steps li:nth-child(3) { transition-delay: 120ms; }
@media (max-width: 760px) {
 .personal-layout { gap: 32px; }
 .detail-screenshot { border-radius: 7px; }
 .product-window { aspect-ratio: auto; }
 .tracker-card { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition-duration: 160ms !important; transition-delay: 0s !important; }
 .reveal-pending { opacity: 1; transform: none; }
}

/* A complete app window moves through light and dim as the reader scrolls. */
.personal-section { overflow: visible; }
.gallery-scroll { width: 100%; }
.gallery-sticky { width: 100%; }
.gallery-sticky .detail-screenshot { position: relative; isolation: isolate; }
.gallery-light { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; background: #f4f6fa; opacity: 0; }
.gallery-timeline { display: flex; align-items: center; gap: 20px; justify-content: center; margin: 28px auto 0; max-width: 350px; font-size: 12px; color: var(--secondary); }
.gallery-timeline > div { height: 2px; flex: 1; background: #dedee3; overflow: hidden; }
.gallery-timeline i { display: block; height: 100%; width: 100%; background: #1d1d1f; transform-origin: left; transform: scaleX(1); }
.cinematic .detail-screenshot img { animation: none; }
.flow-example { margin-top: 36px; font-size: 15px; line-height: 1.5; color: var(--secondary); }
.message-flow { margin-top: 42px; }
.flow-number { font-size: 38px; font-weight: 600; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; margin-top: 7px; }
[data-flow-adjusted], [data-flow-received] { color: #0066cc; }
.flow-connection { height: 2px; margin-top: -96px; }
.flow-connection::after { height: 2px; }
.message-flow.flow-playing .flow-connection::after { animation: message-move 1.2s .15s var(--ease-in-out) 1 both; }
.message-flow.flow-playing .flow-connection:nth-of-type(2)::after { animation-delay: 1.2s; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
 .cinematic .gallery-scroll { min-height: 155vh; }
 .cinematic .gallery-sticky { position: sticky; top: 130px; }
 .cinematic .gallery-sticky .detail-screenshot { width: min(100%, 1060px, calc((100svh - 250px) * 1.545)); }
}
@media (max-width: 760px) {
 .gallery-timeline { max-width: 240px; margin-top: 20px; }
 .flow-number { font-size: 30px; }
 .flow-connection { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .gallery-light { opacity: 0; }
 .gallery-timeline { display: none; }
 .product-stage, .gallery-sticky .detail-screenshot { transform: none !important; }
}

/* Turn the whole window over; never blend two different text layouts. */
.cinematic .gallery-sticky .detail-screenshot img { backface-visibility: hidden; border-radius: 12px; box-shadow: 0 30px 65px -30px #17233355; }
.cinematic .gallery-sticky .detail-screenshot > img:first-child { transform: rotateY(180deg); }
.cinematic .gallery-sticky .gallery-light { opacity: 1; transform: translateZ(1px); }

/* The occasional gallery flip explains the two themes without blending text. */
.cinematic .gallery-sticky .detail-screenshot { overflow: visible; isolation: auto; transform-style: preserve-3d; background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
 .reveal, .feature-heading, .feature-pair article, .desktop-note, .get-app, .demo-app, .tracker-card { transform: none; transition-property: opacity; }
 .button { transform: none !important; }
}

/* Touch targets use real layout space, so neighboring controls never overlap. */
@media (max-width: 760px), (pointer: coarse) {
 .nav-toggle { width: 44px; min-height: 44px; }
 .theme-switch button, .demo-controls button, #demo-speed { min-width: 44px; min-height: 44px; }
 .close-preview { width: 44px; height: 44px; margin-bottom: -56px; }
}

.section-description, .onboarding-steps p { letter-spacing: normal; text-wrap: pretty; }
.docs-content { max-width: 72ch; }
/* Keep all four translations comfortable before switching to the mobile menu. */
@media (min-width: 1001px) and (max-width: 1100px) {
 .navigation { grid-template-columns: auto 1fr auto; gap: 16px; padding-inline: 16px; }
 .nav-links { justify-content: center; gap: 16px; }
 .nav-actions { gap: 12px; }
 .nav-download { padding-inline: 12px; }
}

/* Native keyboard semantics, with a site-styled picker where supported. */
.languages select { border-radius: 10px; padding: 10px 22px 10px 8px; min-height: 44px; }
.languages select:focus-visible { outline: 2px solid #6e6e73; outline-offset: 2px; }
.languages select:open { background: #f5f5f7; }
.select-chevron { right: 6px; }
@supports (appearance: base-select) {
 .languages select, .languages select::picker(select) { appearance: base-select; }
 .languages select { align-items: center; }
 .languages select::picker-icon { display: none; }
 .languages select::picker(select) {
  margin-top: 8px; padding: 6px; min-width: 164px;
  border: 1px solid #e8e8eb; border-radius: 14px;
  background: #fff; color: #1d1d1f;
  box-shadow: 0 12px 32px #1d1d1f1a, 0 2px 6px #1d1d1f08;
  font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 14px;
 }
 .languages option {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: 8px; background: transparent; color: #424245;
  font-weight: 500; line-height: 1.5;
 }
 .languages option:checked { background: #f5f5f7; color: #1d1d1f; font-weight: 600; }
 .languages option:focus-visible { outline: 2px solid #6e6e73; outline-offset: -2px; }
 .languages option::checkmark { order: 1; margin-left: auto; color: #1d1d1f; }
 @media (hover: hover) and (pointer: fine) {
  .languages option:hover { background: #f0f0f3; color: #1d1d1f; }
 }
}

.language-flag { display: block; flex: 0 0 21px; width: 21px; height: 14px; object-fit: cover; border-radius: 2px; outline: 1px solid #00000014; outline-offset: -1px; }

/* Readable supporting text and resilient controls at narrow widths. */
.hero-actions { margin-top: 30px; }
.appearance { margin-top: 24px; }
.theme-switch button { min-height: 44px; font-size: 14px; }
.appearance p, .requirements, .release-link, .footer-inner { font-size: 13px; line-height: 1.6; }
.demo-tag, .session-state, .demo-torrent span, .speed-scale,
.demo-counters span, .demo-event, .tracker-header > span,
.tracker-account, .tracker-word, .tracker-badge, .tracker-totals span,
.tracker-footer, .ratio-history > span, .demo-disclosure, .demo-explanation,
.message-flow small { font-size: 12px; line-height: 1.5; }
.demo-torrent strong { font-size: 13px; }
.speed-label, .demo-controls .button, .demo-reset, .demo-announce { font-size: 14px; }
.demo-controls button { min-height: 44px; }
.demo-announce { margin-inline-start: 0; padding-inline: 8px; }
.tracker-header, .tracker-footer, .demo-view-heading { flex-wrap: wrap; }
.demo-counters > div, .tracker-totals > div { min-width: 0; }
.demo-counters strong, .tracker-totals strong { overflow-wrap: anywhere; }
.footer-inner > div { flex-wrap: wrap; gap: 12px 24px; }
.footer-inner a, .release-link { min-height: 24px; display: inline-flex; align-items: center; }
.docs-content a { text-decoration: underline; text-underline-offset: 3px; }
dialog { overscroll-behavior: contain; }
@media (max-width: 1000px) {
 .navigation { grid-template-columns: minmax(0,1fr) auto; }
}
@media (max-width: 380px) {
 .navigation { padding-inline: 12px; gap: 8px; }
 .brand { font-size: 18px; gap: 6px; }
 .brand img { width: 24px; height: 24px; }
 .nav-actions { gap: 4px; }
 .language-flag { display: none; }
 .languages select { padding-inline-start: 4px; }
 .hero { padding-top: 36px; }
 .demo-app-body, .tracker-card { padding: 16px; }
 .demo-counters, .tracker-totals { gap: 12px; }
 .message-flow { flex-direction: column; gap: 20px; }
 .message-flow > div { width: 100%; }
 .flow-connection { flex: none; width: 2px; height: 24px; margin: 0; }
 .flow-connection::after { display: none; }
}
@media (forced-colors: active) {
 :focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
}
