/* Coneccti website. Tokens from DESIGN.md / BRAND.md. One accent (presence) that means one thing:
   the partner, the connection. No gradients, no glass, no cards as structure. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  --paper: #F9F9F6;
  --paper-raised: #F1F2EC;
  --ink: #292E27;
  --ink-2: #5F635C;          /* inkSecondary, darkened for 5.6:1 on paper-raised too */
  --presence: #82977B;       /* graphics only */
  --presence-text: #5E7357;
  --warmth-text: #7A6440;
  --divider: #E3E4DE;
  --alert: #B3392F;
  --device: #1B1E1A;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1E1A; --paper-raised: #242823; --ink: #E8E9E3; --ink-2: #A3A79F;
    --presence: #9DB096; --presence-text: #9DB096; --warmth-text: #C9B48F; --divider: #33372F;
    --alert: #E8877E; --device: #0E100D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1E1A; --paper-raised: #242823; --ink: #E8E9E3; --ink-2: #A3A79F;
  --presence: #9DB096; --presence-text: #9DB096; --warmth-text: #C9B48F; --divider: #33372F;
  --alert: #E8877E; --device: #0E100D; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--presence); color: var(--paper); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--presence-text); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
strong { font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--ink); color: var(--paper);
        padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
                   clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent);
               border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.site-header.scrolled { border-bottom-color: var(--divider); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--presence); text-underline-offset: 0.45em; }
.btn.header-cta { flex: none; gap: 0; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 10px; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
              background: var(--paper); border: 1px solid var(--divider); border-radius: 12px; padding: 8px;
              box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.18); }
.menu-panel a { padding: 12px 14px; border-radius: 8px; text-decoration: none; }
.menu-panel a:hover { background: var(--paper-raised); }
@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { gap: 8px; }
  .header-cta .btn-label-long { display: none; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
       padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font: 600 1rem/1.2 var(--sans);
       text-decoration: none; cursor: pointer; transition: transform 150ms var(--ease), background-color 150ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); text-decoration: none; }
.btn-quiet { color: var(--ink); border-color: var(--divider); background: transparent; font-weight: 500; }
.btn-quiet:hover { background: var(--paper-raised); text-decoration: none; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.9375rem; border-radius: 10px; }
.btn-large { min-height: 56px; padding: 16px 26px; font-size: 1.0625rem; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--presence-text);
            text-decoration: none; padding: 12px 0; }
.btn-text:hover { text-decoration: underline; }
.btn-text svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem);
           line-height: 1; letter-spacing: -0.028em; font-optical-sizing: auto; }
.display em, .h2 em { font-style: italic; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
      line-height: 1.05; letter-spacing: -0.022em; }
.h3 { font: 600 1.125rem/1.35 var(--sans); }
.lead { font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }
.tagline { color: var(--ink-2); font-size: 1rem; margin: 0 0 20px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; text-align: center; }
.hero .display { max-width: 11.5em; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.availability { margin: 18px auto 0; font-size: 0.9375rem; color: var(--ink-2); max-width: 34em; }
.availability strong { color: var(--ink); font-weight: 500; }

/* platform-specific blocks; JS sets html[data-platform]. Without JS: the Android block shows. */
.for-ios, .for-desktop { display: none; }
html[data-platform="ios"] .for-ios { display: revert; }
html[data-platform="ios"] .for-android-dl { display: none; }
html[data-platform="desktop"] .for-desktop { display: revert; }

/* Two phones, one thread. The thread stops short of both phones (BRAND.md §1). */
.duo { position: relative; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 980px;
       display: grid; grid-template-columns: 1fr minmax(48px, 0.9fr) 1fr; align-items: center; }
.duo figure { margin: 0; }
.duo figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); }
.duo .thread { width: 100%; height: auto; overflow: visible; }
.thread-line { fill: none; stroke: var(--presence); stroke-width: 2.25; stroke-linecap: round; }
.thread-dot { fill: var(--presence); }
.thread-dot.you { fill: var(--ink); }
.js .thread-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .thread-dot { opacity: 0; }
.js .drawn .thread-line { animation: draw 1400ms var(--ease) 250ms forwards; }
.js .drawn .thread-dot { animation: appear 400ms var(--ease) forwards; }
.js .drawn .thread-dot.partner { animation-delay: 1300ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .thread-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .js .thread-dot { opacity: 1; animation: none !important; }
}

.phone { position: relative; background: var(--device); border-radius: clamp(22px, 3.6vw, 40px);
         padding: clamp(5px, 0.7vw, 9px); box-shadow: 0 30px 60px -30px rgb(20 24 18 / 0.45), 0 2px 6px rgb(20 24 18 / 0.08);
         aspect-ratio: 1080 / 2340; max-width: 340px; margin: 0 auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(17px, 2.9vw, 32px);
             background: var(--paper-raised); }
.duo .phone { max-width: 320px; }
.duo .tilt-l { transform: rotate(-2.5deg); }
.duo .tilt-r { transform: rotate(2.5deg) translateY(28px); }
@media (max-width: 640px) {
  .duo { grid-template-columns: 1fr 28px 1fr; gap: 0; margin-top: 40px; }
  .duo figcaption { font-size: 0.8125rem; }
  .duo .tilt-l, .duo .tilt-r { transform: none; }
  .duo .tilt-r { transform: translateY(16px); }
}

/* ---------------------------------------------------------------- facts strip */
.facts { margin: clamp(64px, 9vw, 120px) 0 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.facts ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px;
            font-size: 0.9375rem; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--presence); flex: none; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { margin-bottom: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Feature rows: screenshot + words, alternating. Dividers separate, cards don't. */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 104px);
           align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--divider); }
.feature:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media .phone { max-width: 300px; }
.feature-copy { max-width: 32rem; }
.feature-copy .h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); margin-bottom: 18px; }
.feature-copy p { color: var(--ink-2); font-size: 1.0625rem; }
.feature-copy ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--divider); }
.feature-copy li { padding: 12px 0; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 1fr; }
.feature-copy li b { font-weight: 600; }
.feature-copy li span { color: var(--ink-2); font-size: 0.9375rem; }
.note { font-size: 0.875rem; color: var(--ink-2); margin-top: 16px; }
@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media .phone { max-width: 260px; }
}

/* Compact feature list (features page, second tier) */
.flist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 48px;
         border-top: 1px solid var(--divider); margin: 0; padding: 0; list-style: none; }
.flist li { padding: 22px 0; border-bottom: 1px solid var(--divider); }
.flist h3 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: 6px; }
.flist p { margin: 0; color: var(--ink-2); font-size: 0.9875rem; }
.flist .status { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--warmth-text); }

/* ---------------------------------------------------------------- how it works: three dots on one thread */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
         position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 9px; left: 10px; right: calc(33.33% - 22px); height: 2px;
                 background: var(--presence); opacity: 0.55; }
.steps li { position: relative; padding-top: 44px; counter-increment: step; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%;
                    background: var(--paper); border: 2px solid var(--presence); }
.steps li:last-child::before { background: var(--presence); }
.steps .h3 { margin-bottom: 8px; }
.steps .h3::before { content: counter(step) ". "; color: var(--ink-2); font-weight: 500; }
.steps p { color: var(--ink-2); margin: 0; max-width: 22rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 10px; bottom: 30px; left: 9px; right: auto; width: 2px; height: auto; }
  .steps li { padding: 0 0 32px 44px; }
}

/* ---------------------------------------------------------------- privacy promises */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; padding: 0; margin: 0; }
.promises li { padding: 22px 0; border-top: 1px solid var(--divider); }
.promises h3 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: 6px; }
.promises p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- what's new teaser */
.whatsnew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start;
            border-top: 1px solid var(--divider); padding-top: 40px; }
@media (max-width: 760px) { .whatsnew { grid-template-columns: 1fr; gap: 20px; } }

/* ---------------------------------------------------------------- final cta */
.closing { text-align: center; padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--divider); }
.closing .display { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem); margin-bottom: 32px; }
.closing .mark { width: 56px; height: 56px; margin: 0 auto 28px; }

/* QR block (desktop) */
.qr { display: none; align-items: center; gap: 18px; text-align: left; margin: 28px auto 0; width: fit-content;
      padding: 14px 18px 14px 14px; border: 1px solid var(--divider); border-radius: 14px; }
html[data-platform="desktop"] .qr { display: flex; }
.qr img { width: 112px; height: 112px; border-radius: 6px; background: #fff; }
.qr p { margin: 0; font-size: 0.9375rem; max-width: 15rem; color: var(--ink-2); }
.qr p strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------------------------------------------------------------- download page */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head .display { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem); margin-bottom: 18px; }
.dl { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }
.release-id { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.release-id img { width: 64px; height: 64px; border-radius: 15px; }
.release-id .h3 { font-size: 1.25rem; }
.facts-table { margin: 0 0 28px; border-top: 1px solid var(--divider); }
.facts-table div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.facts-table dt { color: var(--ink-2); }
.facts-table dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; }
@media (max-width: 480px) { .facts-table div { grid-template-columns: 1fr; gap: 2px; } }
.hash { display: flex; align-items: flex-start; gap: 8px; }
.hash code { word-break: break-all; line-height: 1.5; font-size: 0.8125rem; }
.copy { flex: none; border: 1px solid var(--divider); background: transparent; color: var(--ink); border-radius: 8px;
        font: 500 0.8125rem/1 var(--sans); padding: 7px 10px; cursor: pointer; }
.copy:hover { background: var(--paper-raised); }
.skeleton { display: inline-block; min-width: 6ch; color: transparent; background: var(--paper-raised); border-radius: 4px; }
.state { padding: 16px 18px; border: 1px solid var(--divider); border-radius: 12px; margin: 0 0 24px; }
.state[hidden] { display: none; }
.state.error { border-color: color-mix(in srgb, var(--alert) 40%, var(--divider)); }
.state h2 { font: 600 1rem/1.4 var(--sans); margin-bottom: 4px; }
.state p { margin: 0; color: var(--ink-2); }
.notes { color: var(--ink-2); }
.notes p { margin: 0 0 0.75em; }
.notes ul { margin: 0 0 0.75em; padding-left: 1.2em; }
.install { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; }
.install li { counter-increment: s; position: relative; padding: 0 0 18px 44px; }
.install li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
                      border: 1.5px solid var(--presence); display: grid; place-items: center; font-size: 0.875rem;
                      font-weight: 600; color: var(--ink); }
.install li b { display: block; font-weight: 600; }
.install li span { color: var(--ink-2); }
.aside { border-top: 1px solid var(--divider); padding-top: 24px; margin-top: 8px; }
.aside h2, .prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }

/* ---------------------------------------------------------------- releases list */
.rel { border-top: 1px solid var(--divider); padding: 28px 0; display: grid; grid-template-columns: 14rem 1fr; gap: 24px; }
.rel h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.rel .meta { color: var(--ink-2); font-size: 0.9375rem; margin-top: 6px; }
.rel .tag { display: inline-block; font-size: 0.8125rem; font-weight: 500; padding: 2px 8px; border-radius: 6px;
            border: 1px solid var(--divider); color: var(--ink-2); margin-top: 10px; margin-right: 6px; }
.rel .tag.latest { color: var(--presence-text); border-color: color-mix(in srgb, var(--presence) 55%, var(--divider)); }
.rel .tag.withdrawn { color: var(--alert); }
@media (max-width: 700px) { .rel { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------------------------------------------------------- prose (privacy, terms, support) */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 48px; }
.prose h3 { font: 600 1.0625rem/1.4 var(--sans); margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.prose .toc { list-style: none; padding: 0; columns: 2; column-gap: 32px; border-top: 1px solid var(--divider); padding-top: 16px; }
.prose details { border-bottom: 1px solid var(--divider); padding: 4px 0; }
.prose details:first-of-type { border-top: 1px solid var(--divider); }
.prose summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--ink-2); font-weight: 400; }
.prose details[open] summary::after { content: "–"; }
.prose details > div { padding: 0 0 16px; }
@media (max-width: 560px) { .prose .toc { columns: 1; } }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--divider); padding: 48px 0 40px; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; color: var(--ink); }
.site-footer .fine { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; }
.site-footer .brand img { height: 22px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 64px 0; }
.lost .display { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem); margin-bottom: 16px; }

@media print { .site-header, .site-footer, .btn, .qr { display: none !important; } body { background: #fff; color: #000; } }

/* small utilities (no inline styles: CSP) */
.m0 { margin: 0; }
.mt-s { margin-top: 10px; }
.mt-l { margin-top: 40px; }
.qr.left { margin-left: 0; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 20px; }

/* download page states: without a release there is nothing to describe or download */
[data-release][data-state="none"] .for-android-dl,
[data-release][data-state="none"] .release-notes-block,
[data-release][data-state="error"] .for-android-dl,
[data-release][data-state="error"] .release-notes-block { display: none; }

/* the history list grows when it loads; reserve room so nothing below it jumps */
[data-release-list] { min-height: 60vh; }

/* ---------------------------------------------------------------- UX pass 2026-11-29 */
/* One download button in view at a time: while the page's own big button is on screen, the header's
   steps aside (JS sets .is-tucked); it comes back as soon as that button scrolls away. No JS: always shown. */
.btn.header-cta { transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 0s; }
.btn.header-cta.is-tucked { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
                            transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms; }
@media (prefers-reduced-motion: reduce) { .btn.header-cta, .btn.header-cta.is-tucked { transition: none; } }
/* Wide screens: the app is visible on the first screen, beside the promise. */
@media (min-width: 1024px) {
  .hero { padding-bottom: clamp(24px, 3vw, 48px); text-align: left; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .hero .display, .hero .lead, .availability, .qr { margin-left: 0; }
  .hero .display { max-width: 9.5em; font-size: clamp(3rem, 4.1vw, 4.25rem); margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; }
  .hero-actions { justify-content: flex-start; }
  .duo { margin-top: 0; }
  .duo .phone { max-width: 270px; }
}

/* Feature tour: jump straight to what you came for; sticks under the header while you read. */
.tour { position: sticky; top: 68px; z-index: 5; margin: 0 0 clamp(32px, 5vw, 56px);
        background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--divider); }
.tour-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 0; }
.tour a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
          border: 1px solid var(--divider); color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
          white-space: nowrap; transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.tour a:hover { border-color: var(--ink-2); }
.tour a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tour a:focus-visible { outline: 2px solid var(--presence); outline-offset: 2px; }
.feature { scroll-margin-top: 60px; }  /* + html scroll-padding-top 88px = just under the tour bar */
@media (max-width: 760px) {
  .tour { margin-left: calc(-1 * var(--gutter, 20px)); margin-right: calc(-1 * var(--gutter, 20px)); }
  .tour-track { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity;
                padding: 10px var(--gutter, 20px); scrollbar-width: none; }
  .tour-track::-webkit-scrollbar { display: none; }
  .tour a { scroll-snap-align: start; min-height: 44px; }
  .feature-media .phone { max-width: 220px; }
  .feature { scroll-margin-top: 56px; }
}

/* FAQ: native disclosure, no script needed. */
.faqs { max-width: 46rem; border-top: 1px solid var(--divider); }
.faq { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
               padding: 18px 0; min-height: 48px; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
                      transform: rotate(45deg) translate(-2px, -2px); transition: transform 150ms var(--ease); }
.faq[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:focus-visible { outline: 2px solid var(--presence); outline-offset: 4px; border-radius: 4px; }
.faq p { margin: 0 0 20px; color: var(--ink-2); max-width: 40rem; }
.faq a { color: var(--presence-text); }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .tour a { transition: none; } }
.note { font-size: 0.9375rem; color: var(--ink-2); max-width: 30rem; }
/* The right phone sits lower (tilt-r translateY): give its caption the same room. */
.duo figure:last-child figcaption { margin-top: 42px; }
@media (max-width: 640px) { .duo figure:last-child figcaption { margin-top: 30px; } }

/* ---------------------------------------------------------------- /join (invitation link) */
.join { padding: clamp(40px, 8vw, 96px) 0; max-width: 34rem; }
.join-mark { display: block; margin-bottom: 20px; }
.join .display { font-size: clamp(2.5rem, 2rem + 3vw, 3.75rem); margin-bottom: 16px; }
.join .lead { margin-bottom: 28px; }
.join-steps { padding-left: 1.25rem; margin: 12px 0 20px; color: var(--ink-2); }
.join-steps li { margin: 8px 0; }
.join-steps a, .join .note a { color: var(--presence-text); }
.mt-l { margin-top: 40px; }
/* JS sets data-state: ready (valid invitation on Android), desktop, or invalid. Without JS: the steps only. */
.join-ready, .join-invalid, .join-desktop { display: none; }
.join[data-state="ready"] .join-ready, .join[data-state="invalid"] .join-invalid,
.join[data-state="desktop"] .join-desktop, .join[data-state="desktop"] .join-ready { display: block; }
