:root {
  color-scheme: light;
  --ink: #0f1419;
  --muted: #65717b;
  --line: #eff1f3;
  --blue: #1d9bf0;
  --link: #006fba;
  --paper: #fff;
  --soft: #f7f9fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; letter-spacing: -0.02em; }
body { margin: 0; }
[hidden] { display: none !important; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  transform: translateY(-160%); padding: 12px 18px; border-radius: 24px;
  background: var(--ink); color: white;
}
.skip-link:focus { transform: none; }
.page {
  width: 100%; max-width: 1300px; min-height: 100svh; margin: 0 auto;
  padding: 0 56px; display: flex; flex-direction: column;
}
.landing {
  flex: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr);
  align-items: center; gap: 90px; padding: 64px 0;
}
.intro { padding-bottom: 12px; }
.app-icon {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; padding: 12px; border-radius: 24px;
  background: var(--blue); margin-bottom: 28px;
}
.app-icon-mark { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.app-icon-mark img { position: absolute; left: 1.8384px; top: 1.824px; }
h1 { font-size: 46px; line-height: 1.13; font-weight: 720; }
.tagline { margin-top: 19px; font-size: 23px; line-height: 1.4; font-weight: 450; }
.description { margin-top: 16px; max-width: 320px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.download-group { display: inline-flex; flex-direction: column; align-items: center; margin-top: 12px; }
.download {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; color: #65717b; font-size: 14px; font-weight: 650;
  text-decoration: none;
}
.chrome-icon { display: grid; place-items: center; width: 24px; height: 24px; }
.download:hover { opacity: 0.8; }
.download:active { transform: translateY(1px); }
.install { margin-top: 24px; font-size: 13px; max-width: 320px; }
.install summary {
  width: fit-content; display: flex; align-items: center; gap: 7px;
  cursor: pointer; color: var(--muted); list-style: none; min-height: 32px;
}
.install summary::-webkit-details-marker { display: none; }
.install summary:hover { color: var(--ink); }
.disclosure { font-size: 17px; line-height: 1; }
.install[open] .disclosure { transform: rotate(45deg); }
.install-content { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 16px; line-height: 1.6; }
.install-content > p:first-child { font-weight: 600; }
.install ol { padding-left: 18px; margin: 12px 0; }
.install li { padding-left: 4px; margin-bottom: 8px; }
.install code { font-size: 11px; background: var(--soft); padding: 2px 4px; border-radius: 4px; }
.install-footnote { color: var(--muted); font-size: 11px; line-height: 1.5; }
.demo { min-width: 0; position: relative; }
.browser-window {
  border: 1px solid #e4e8eb; border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 6px -1px #0f141905, 0 24px 48px -16px #0f141919;
  background: #fff;
}
.browser-content {
  height: 423px; display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  overflow: hidden;
}
.profile-preview { min-width: 0; border-right: 1px solid var(--line); border-radius: 14px 0 0 14px; overflow: hidden; }
.profile-top { height: 46px; display: flex; align-items: center; padding: 0 16px; font-size: 13px; }
.profile-top small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-cover { height: 110px; background: #e0ebf2; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { position: relative; padding: 41px 14px 0; }
.avatar { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.profile-avatar { position: absolute; top: -28px; left: 13px; width: 64px; height: 64px; border: 4px solid white; }
.following {
  position: absolute; right: 12px; top: 10px; font-size: 10px; font-weight: 650;
  border: 1px solid #dce1e5; border-radius: 20px; padding: 5px 10px;
}
.profile-name { display: block; font-size: 16px; font-weight: 750; white-space: nowrap; }
.verified-name { display: inline-flex; align-items: center; gap: 3px; }
.verified-badge { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.profile-handle { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; margin-top: 3px; }
.follows-you { font-size: 9px; background: #eff3f4; padding: 2px 4px; border-radius: 3px; white-space: nowrap; }
.profile-bio { font-size: 11px; line-height: 1.5; margin-top: 12px; min-height: 50px; }
.mention { color: var(--link); }
.profile-details { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.profile-counts { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; line-height: 1.4; color: var(--muted); margin-top: 12px; font-variant-numeric: tabular-nums; }
.profile-counts strong { color: var(--ink); font-weight: 700; }
.profile-tabs { display: flex; justify-content: space-around; margin: 17px -14px 0; border-bottom: 1px solid var(--line); height: 39px; font-size: 11px; color: var(--muted); }
.profile-tabs span { display: flex; align-items: center; position: relative; }
.profile-tabs span:first-child { color: var(--ink); font-weight: 700; }
.profile-tabs span:first-child::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 4px; background: var(--blue); }
.sidebar-preview { padding: 12px 12px 0; min-width: 0; }
.search-preview {
  height: 32px; background: #f5f7f8; color: #65717b; border-radius: 999px;
  font-size: 11px; display: flex; align-items: center; gap: 11px; padding: 0 16px; margin-bottom: 12px;
}
.search-mark { position: relative; width: 11px; height: 11px; border: 1.3px solid #8c98a1; border-radius: 50%; }
.search-mark::after { content: ""; position: absolute; width: 4px; height: 1px; background: #8c98a1; bottom: -2px; right: -3px; transform: rotate(45deg); }
.conversation-card { background: #fff; border: 1px solid #e7ecef; border-radius: 14px; overflow: hidden; }
.card-heading { padding: 13px 12px 5px; }
.card-heading h3 { font-size: 16px; line-height: 1.3; font-weight: 800; }
.card-heading p { font-size: 10px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.conversation-scroll {
  height: 250px; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #ccd6dd transparent; outline-offset: -3px !important;
}
.conversations { list-style: none; margin: 0; padding: 0; }
.reply { display: flex; gap: 8px; padding: 13px 12px 10px; }
.reply.is-entering { animation: reply-enter 200ms cubic-bezier(0.16, 1, 0.3, 1) backwards; will-change: transform, opacity; transform-origin: top left; }
.reply.is-entering:focus-within { animation: none; }
@keyframes reply-enter {
  from { opacity: 0; filter: blur(1.5px); transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
.reply-avatar { width: 29px; height: 29px; flex-basis: 29px; }
.reply-body { min-width: 0; flex: 1; }
.reply-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px; font-size: 11px; line-height: 1.4; }
.reply-meta strong { font-weight: 700; }
.reply-author, .viewer-caption a { text-decoration: none; text-underline-offset: 3px; }
.reply-author:hover, .reply-author:focus-visible, .viewer-caption a:hover, .viewer-caption a:focus-visible { text-decoration: underline; }
.reply-date { font-size: 9px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.reply-date::before { content: "· "; }
.reply-body p { font-size: 11px; line-height: 1.55; margin-top: 3px; overflow-wrap: anywhere; }
.profile-link {
  display: block; border-top: 1px solid #f5f7f8; background: #fff;
  min-height: 40px; font-size: 11px; padding: 11px 12px; color: var(--link); text-decoration: none;
}
.profile-link:focus-visible { outline-offset: -4px; }
.viewer-caption { min-width: 100px; font-size: 10px; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.demo-controls { position: absolute; z-index: 2; top: 100%; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; margin-top: 14px; }
.slide-nav { display: flex; gap: 6px; align-items: center; }
.slide-nav button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 6px; border: 0; background: transparent; border-radius: 50%; transition: transform 180ms ease-out; }
.slide-nav button::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--blue); border-radius: inherit; opacity: 0; transform: scale(0.82); transition: transform 180ms ease-out, opacity 180ms ease-out; }
.slide-nav button img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; opacity: 0.65; transition: opacity 180ms ease-out, transform 180ms ease-out; }
.slide-nav button.is-active::before { opacity: 1; transform: scale(1); }
.slide-nav button.is-active img { opacity: 1; transform: scale(1.04); }
.slide-nav button:hover, .slide-nav button:focus-visible { transform: translateY(-4px); }
.slide-nav button:hover img, .slide-nav button:focus-visible img { opacity: 1; transform: scale(1.1) rotate(-3deg); }
.slide-nav button:nth-child(2):hover img { transform: scale(1.1) rotate(3deg); }
.slide-nav button:active { transform: translateY(-1px) scale(0.92); }
.slide-nav button.is-selected img { animation: avatar-pop 200ms ease-out; }
@keyframes avatar-pop { 0% { transform: scale(0.9); } 65% { transform: scale(1.14); } 100% { transform: scale(1.04); } }
.viewer-tooltip { position: absolute; z-index: 1; bottom: calc(100% + 7px); left: 50%; width: max-content; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 500; line-height: 1.4; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: opacity 160ms ease-out, transform 160ms ease-out; pointer-events: none; }
.slide-nav button:hover .viewer-tooltip, .slide-nav button:focus-visible .viewer-tooltip { opacity: 1; transform: translate(-50%, 0); }
.slide-nav:has(button:focus-visible) button:not(:focus-visible) .viewer-tooltip { opacity: 0; }
.no-script { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 12px; text-align: center; }
.footer { min-height: 83px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.footer > div { display: flex; gap: 24px; align-items: center; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.privacy-main { width: 100%; max-width: 640px; margin: 80px auto 100px; flex: 1; }
.privacy-main h1 { font-size: 34px; }
.privacy-main .lead { font-size: 20px; line-height: 1.5; margin: 24px 0 36px; color: var(--ink); }
.privacy-main h2 { font-size: 17px; line-height: 1.4; margin: 28px 0 10px; }
.privacy-main p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 12px 0; }
.privacy-main a { color: var(--link); text-underline-offset: 3px; }
.privacy-main code { font-size: 12px; overflow-wrap: anywhere; }
.privacy-main .back { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: 13px; text-decoration: none; }
.has-modal { overflow: hidden; }
.privacy-dialog { width: min(440px, calc(100% - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 48px #0f14191f; overflow-y: auto; }
.privacy-dialog::backdrop { background: #0f141947; }
.privacy-dialog[open] { animation: dialog-enter 180ms ease-out; }
.privacy-dialog[open]::backdrop { animation: backdrop-enter 180ms ease-out; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-header h2 { font-size: 22px; line-height: 1.3; font-weight: 720; }
.dialog-close { min-height: 36px; border: 0; border-radius: 8px; padding: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.dialog-close:hover { color: var(--ink); background: var(--soft); }
.dialog-intro { font-size: 15px; line-height: 1.5; margin-top: 12px; }
.privacy-copy { margin: 22px 0; }
.privacy-copy p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 14px; }
.privacy-full { color: var(--link); font-size: 12px; text-underline-offset: 3px; }
@media (max-width: 1120px) {
  .page { padding: 0 36px; }
  .landing { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
  .browser-content { grid-template-columns: minmax(0, 1fr) 260px; }
  .description { font-size: 15px; }
  .following, .follows-you { display: none; }
}
@media (max-width: 960px) {
  .page { max-width: 740px; padding: 0 36px; }
  .landing { grid-template-columns: 1fr; gap: 48px; padding: 60px 0 48px; }
  .intro { text-align: center; padding-bottom: 0; max-width: 410px; margin: auto; }
  .app-icon { margin: 0 auto 28px; }
  .description { margin: 16px auto 0; max-width: 340px; }
  .install { margin: 24px auto 0; text-align: left; }
  .install summary { margin: auto; }
  .browser-content { grid-template-columns: minmax(0, 1fr) 300px; }
  .following, .follows-you { display: block; }
  .demo { width: 100%; }
  .demo-controls { position: static; }
}
@media (max-width: 560px) {
  .page { padding: 0 24px; }
  .landing { padding: 48px 0 36px; gap: 40px; }
  h1 { font-size: 40px; }
  .tagline { font-size: 22px; margin-top: 16px; }
  .description { max-width: 300px; font-size: 15px; }
  .download-group { margin-top: 12px; }
  .browser-window { max-width: 360px; margin: auto; }
  .browser-content { display: block; height: auto; }
  .profile-preview { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
  .profile-top, .profile-cover, .profile-bio, .profile-details, .profile-counts, .profile-tabs, .following, .follows-you { display: none; }
  .profile-info { padding: 20px 16px 20px 76px; min-height: 84px; }
  .profile-avatar { width: 44px; height: 44px; top: 20px; left: 16px; border: 0; }
  .profile-handle { font-size: 12px; }
  .sidebar-preview { padding: 16px; }
  .search-preview { display: none; }
  .card-heading { padding: 15px 15px 7px; }
  .card-heading h3 { font-size: 19px; }
  .card-heading p { font-size: 12px; }
  .conversation-scroll { height: 300px; }
  .reply { padding: 14px 15px 13px; gap: 10px; }
  .reply-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .reply-meta { font-size: 13px; }
  .reply-date { font-size: 11px; }
  .reply-body p { font-size: 13px; line-height: 1.5; }
  .profile-link { font-size: 13px; min-height: 45px; padding-left: 15px; }
  .footer { min-height: 72px; }
  .footer > div { margin-left: auto; gap: 20px; }
  .privacy-main { margin: 48px auto; }
  .privacy-main h1 { font-size: 30px; }
  .privacy-main .lead { font-size: 18px; }
}
@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .install { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reply.is-entering { animation: none; will-change: auto; }
  .slide-nav button, .slide-nav button::before, .slide-nav button img, .viewer-tooltip { transition: none; }
  .slide-nav button:hover, .slide-nav button:focus-visible, .slide-nav button:active, .slide-nav button img, .slide-nav button:hover img, .slide-nav button:focus-visible img, .slide-nav button:nth-child(2):hover img { transform: none; }
  .slide-nav button.is-selected img, .privacy-dialog[open], .privacy-dialog[open]::backdrop { animation: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e7e9ea;
    --muted: #9ba6af;
    --line: #2f3336;
    --link: #55b6f7;
    --paper: #0f1419;
    --soft: #202830;
  }
  .browser-window, .conversation-card, .profile-link { background: var(--paper); border-color: var(--line); }
  .browser-window { box-shadow: 0 4px 6px -1px #00000026, 0 24px 48px -16px #00000066; }
  .profile-avatar { border-color: var(--paper); }
  .following { border-color: #536471; }
  .follows-you, .search-preview { background: var(--soft); color: var(--muted); }
  .profile-cover { background: var(--soft); }
  .conversation-scroll { scrollbar-color: #536471 transparent; }
  .skip-link, .viewer-tooltip { color: var(--paper); }
  .privacy-dialog { box-shadow: 0 20px 48px #00000066; }
  .privacy-dialog::backdrop { background: #00000099; }
}

[data-viewer-name] { display: inline-flex; vertical-align: bottom; }
.name-character { position: relative; display: inline-block; overflow: hidden; height: 1.5em; }
.name-character > span { display: block; }
.name-outgoing { position: absolute; inset: 0; }
.is-rolling .name-incoming { animation: name-roll-in 240ms ease-out var(--roll-delay) both; }
.is-rolling .name-outgoing { animation: name-roll-out 240ms ease-out var(--roll-delay) both; }
@keyframes name-roll-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes name-roll-out { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .is-rolling .name-incoming { animation: none; }
  .is-rolling .name-outgoing { display: none; animation: none; }
}

.download-privacy { margin-top: 12px; font-size: 11px; color: var(--muted); }
.download-privacy a { display: inline-block; padding: 5px 0; text-decoration: none; }
.download-privacy a:hover { text-decoration: underline; text-underline-offset: 4px; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 180ms ease-in both; }
::view-transition-new(root) { animation: page-in 260ms ease-out both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.conversation-empty { padding: 30px 12px; }
.conversation-empty h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.conversation-empty p { color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) {
  .demo-controls { flex-wrap: wrap; gap: 4px; }
  .viewer-caption { flex-basis: 100%; text-align: center; }
}
