/* Layout, spacing and colour take after Apple's clean pages: grouped white cards
   on a light grey ground, solid greys and Apple's system colours. The type is
   odeo's own: the system font at 16px, bold headlines with tight tracking. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --border: #d2d2d7;
  --separator: #e5e5ea;
  --fill: #e8e8ed;
  --fill-2: #f0f0f5;
  --thumb: #ffffff;
  --accent: #1d74e7;
  --accent-soft: #e8f1fd;
  --button: #1d74e7;
  --button-hover: #1666d1;
  --like: #e0245e;
  --repost: #17a35b;
  --danger: #c62828;
  --flash: #fff4d6;
  --note: #5145e0;
  --note-soft: #efeefe;
  --long: #b85600;
  --long-soft: #fff1e3;
  --material: rgb(251 251 253 / 0.8);
  --focus: color-mix(in srgb, var(--accent) 28%, var(--surface));
  --soft-mix: 13%;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #d2d2d7;
    --muted: #a1a1a6;
    --faint: #8e8e93;
    --border: #424245;
    --separator: #38383a;
    --fill: #2c2c2e;
    --fill-2: #2c2c2e;
    --thumb: #636366;
    --accent: #4c9bff;
    --accent-soft: #10243f;
    --button: #1d74e7;
    --button-hover: #2f80ed;
    --like: #f4588b;
    --repost: #35c47c;
    --danger: #ff6b6b;
    --flash: #3a3214;
    --note: #9d97ff;
    --note-soft: #24234a;
    --long: #ffa040;
    --long-soft: #3a2614;
    --material: rgb(22 22 23 / 0.8);
    --soft-mix: 24%;
    color-scheme: dark;
  }
}

/* Apple's system colours, without red and pink. --tint is the colour itself,
   --tint-ink the shade that reads as text on a light background. */
.tint-0 { --tint: #0088ff; --tint-ink: #0066cc; }
.tint-1 { --tint: #6155f5; --tint-ink: #4f44e0; }
.tint-2 { --tint: #00c3d0; --tint-ink: #007c85; }
.tint-3 { --tint: #34c759; --tint-ink: #1f8a3c; }
.tint-4 { --tint: #ff8d28; --tint-ink: #b85600; }
.tint-5 { --tint: #00c0e8; --tint-ink: #00759e; }
.tint-6 { --tint: #00c8b3; --tint-ink: #007a6c; }
.tint-7 { --tint: #ac7f5e; --tint-ink: #7f5a3e; }
.tint-8 { --tint: #ffcc00; --tint-ink: #876a00; }
@media (prefers-color-scheme: dark) {
  .tint-0 { --tint: #0091ff; --tint-ink: #48aaff; }
  .tint-1 { --tint: #6d7cff; --tint-ink: #9aa4ff; }
  .tint-2 { --tint: #00d2e0; --tint-ink: #00d2e0; }
  .tint-3 { --tint: #30d158; --tint-ink: #30d158; }
  .tint-4 { --tint: #ff9230; --tint-ink: #ff9230; }
  .tint-5 { --tint: #3cd3fe; --tint-ink: #3cd3fe; }
  .tint-6 { --tint: #00dac3; --tint-ink: #00dac3; }
  .tint-7 { --tint: #b78a66; --tint-ink: #c9a283; }
  .tint-8 { --tint: #ffd600; --tint-ink: #ffd600; }
}
[class*="tint-"] { --tint-soft: color-mix(in srgb, var(--tint) var(--soft-mix), var(--surface)); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* Header: Apple's translucent bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.mark { width: 21px; height: 21px; flex: none; fill: var(--accent); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; min-width: 0; white-space: nowrap; }
.topnav a { color: var(--text-2); }
.topnav a:hover { color: var(--text); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.topnav .me { overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.topnav a.button { color: #fff; }
.nav-search { display: inline-flex; padding: 4px; margin: -4px; }
.nav-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* New notifications: a small square in the logo's blue on the bell. */
.nav-bell { position: relative; }
.nav-bell svg { stroke-linejoin: round; }
.bell-dot { position: absolute; top: 2px; right: 1px; width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 2px var(--material); }

main.wrap { padding-top: 20px; padding-bottom: 28px; }

/* Buttons: Apple's capsules */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 980px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { text-decoration: none; background: var(--button-hover); }
.button:disabled { opacity: 0.4; cursor: not-allowed; }
.button.small { font-size: 14px; padding: 6px 14px; }
/* Secondary: grey capsule with blue text, like the App Store's Get button. */
.button.secondary { background: var(--fill-2); color: var(--accent); }
.button.secondary:hover { background: var(--fill); }
.button.large { font-size: 17px; padding: 12px 24px; }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:hover { background: var(--danger); opacity: 0.9; }
.button.wide { width: 100%; justify-content: flex-start; padding: 10px 14px; color: var(--text); }
.button.wide .muted { font-weight: 400; }
.button.wide .avatar { width: 28px; height: 28px; font-size: 12px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); cursor: pointer; }
.linklike:hover { color: var(--text); }
form.inline { display: inline; margin: 0; }

/* Grouped cards */
.card, .composer, .feed, .profile, .thread, .people, .empty, .rail-box {
  background: var(--surface);
  border-radius: var(--radius);
}
.card { padding: 22px 24px; margin-bottom: 16px; }
.card h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.card p { margin: 0 0 12px; }
.narrow { max-width: 460px; margin: 28px auto; padding: 28px; }
.page-title { margin: 4px 0 16px; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.flash { background: var(--flash); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; }
.error { color: var(--danger); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 44px 20px; margin: 0 0 16px; font-size: 15px; }

.stack { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.stack label { font-weight: 600; font-size: 14px; }
input, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }

/* Sign in: a bare name means name.bsky.social, so the field shows the rest */
.handle-field { position: relative; }
.handle-suffix {
  display: none;
  position: absolute;
  inset: 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  color: var(--faint);
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
}
.handle-field.bare .handle-suffix { display: block; }
.handle-suffix .typed { visibility: hidden; }

/* Monograms and icon tiles */
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint), var(--tint-ink));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex: none;
  user-select: none;
}
.avatar:hover { text-decoration: none; }
/* A profile picture sits over the monogram, which shows while it loads or if it can't. */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bio { margin: 0 0 8px; font-size: 15px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.picture-row { display: flex; align-items: center; gap: 16px; }
.picture-row > div { display: grid; gap: 8px; justify-items: start; }
.cropper { display: grid; justify-items: center; gap: 10px; margin: 4px 0 8px; }
.cropper[hidden] { display: none; }
.cropper canvas { border-radius: 12px; background: var(--fill); touch-action: none; cursor: grab; max-width: 100%; }
.cropper canvas:active { cursor: grabbing; }
.cropper .zoom { display: flex; align-items: center; gap: 10px; width: 280px; max-width: 100%; font-weight: 400; }
.cropper .zoom input { flex: 1; padding: 0; border: 0; box-shadow: none; accent-color: var(--accent); }
.cropper p { margin: 0; text-align: center; }
.picture-preview .avatar, .picture-chosen { width: 72px; height: 72px; font-size: 27px; border-radius: 50%; object-fit: cover; display: grid; }
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tint);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex: none;
}
.icon-tile svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Composer */
.composer { padding: 14px 16px 12px; margin-bottom: 16px; }
.composer textarea { border: 0; background: transparent; resize: vertical; min-height: 72px; padding: 4px 0; font-size: 18px; border-radius: 0; }
.composer textarea:focus { box-shadow: none; }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-top: 1px solid var(--separator); padding-top: 10px; }
.composer-bar .button { margin-left: auto; }
.counter { font-variant-numeric: tabular-nums; color: var(--faint); font-size: 14px; min-width: 3ch; white-space: nowrap; }
.counter.warn { color: var(--long); }
.counter.over { color: var(--danger); font-weight: 600; }
.hint { font-size: 14px; color: var(--faint); }
.hint.paid { color: var(--long); font-weight: 600; }
.hint.blocked { color: var(--danger); font-weight: 600; }
.composer.signed-out { color: var(--muted); font-size: 15px; }

/* Tabs: a segmented control */
.tabs { display: flex; gap: 2px; padding: 2px; margin-bottom: 16px; background: var(--fill); border-radius: 10px; }
.tabs a { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.tabs a:hover { text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--thumb); font-weight: 600; box-shadow: 0 3px 8px rgb(0 0 0 / 0.12), 0 3px 1px rgb(0 0 0 / 0.04); }

/* Posts */
.feed, .thread { overflow: hidden; margin-bottom: 16px; }
.replies:empty { display: none; }
.post { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px 6px; }
.post > * { grid-column: 2; }
.post > .avatar { grid-column: 1; grid-row: span 20; align-self: start; margin-top: 2px; }
.post + .post::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--separator); }
.post.focus .post-text { font-size: 20px; line-height: 1.5; }
.post-context { display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; font-size: 13px; font-weight: 600; color: var(--faint); }
.post-context a { color: var(--faint); }
.post-context svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post-head { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; font-size: 15px; line-height: 1.33; }
.post-head > * { flex: none; }
.post-head .name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.post-head .handle { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.handle, .dot, .time { color: var(--faint); }
.handle { overflow-wrap: anywhere; }
.check { width: 15px; height: 15px; vertical-align: -2px; flex: none; }
.check circle { fill: var(--accent); }
.check path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip { font-size: 12px; font-weight: 600; color: var(--long); background: var(--long-soft); border-radius: 980px; padding: 2px 9px; margin-left: 2px; }
.reply-context { font-size: 14px; color: var(--faint); margin-top: 1px; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 3px 0 8px; font-size: 16px; }
.more { display: inline-block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.note { margin: 0 0 8px; font-size: 13px; color: var(--faint); }

/* Notifications: likes, reposts and follows as who did it; replies and mentions as posts. New ones are tinted. */
.notices > * + *::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--separator); }
.notices .post + .post::before { display: none; }
.notice-post, .notice { position: relative; }
.notices .unread { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.notice { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px; }
.notice-icon { display: grid; justify-items: end; padding-top: 6px; }
.notice-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-icon.like { color: var(--like); }
.notice-icon.like svg { fill: currentColor; }
.notice-icon.repost { color: var(--repost); }
.notice-icon.follow { color: var(--accent); }
.notice-faces { display: flex; gap: 4px; margin-bottom: 6px; }
.notice-faces .avatar { width: 32px; height: 32px; font-size: 13px; }
.notice-line { margin: 0; font-size: 15px; line-height: 1.4; }
.notice-line a { color: var(--text); font-weight: 700; }
.notice-snippet { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-snippet:hover { text-decoration: none; color: var(--text-2); }

/* A post withheld because of a legal order: a grey mark where the avatar goes, and the notice */
.post.withheld { align-items: center; padding-bottom: 14px; }
.post > .withheld-mark { grid-column: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fill); color: var(--faint); }
.withheld-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.withheld-notice { margin: 0; font-size: 15px; color: var(--muted); }

.actions { display: flex; align-items: center; gap: 28px; margin-left: -8px; }
.actions .push { margin-left: auto; }
.action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px 8px;
  border-radius: 980px;
  color: var(--faint);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  min-height: 32px;
}
.action:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent); }
.action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action span:empty { display: none; }
form[action="/repost"] .action.active { color: var(--repost); }
form[action="/like"] .action.active { color: var(--like); }
form[action="/like"] .action.active svg { fill: currentColor; }
.action.danger:hover { color: var(--danger); background: transparent; }

/* The ⋯ menu on others' posts and profiles: Report and Block */
.more-menu { position: relative; margin-left: auto; }
.more-menu > summary { list-style: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu svg { width: 18px; height: 18px; display: block; }
.more-menu svg circle { fill: currentColor; stroke: none; }
.more-menu .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--separator); border-radius: 14px; box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.25); }
.more-menu .menu form { margin: 0; }
.more-menu .menu a, .more-menu .menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.more-menu .menu a:hover, .more-menu .menu button:hover { background: var(--fill-2); text-decoration: none; }
.more-menu .menu button { color: var(--danger); }
.profile-actions { display: flex; align-items: center; gap: 8px; }
.profile-actions .more-menu { margin-left: 0; }
.profile-actions .menu { left: 0; right: auto; }
.profile-actions summary.button { display: grid; place-items: center; padding-inline: 12px; }
.withheld-notice form.inline { display: inline; }
.choices { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 6px; padding: 0; font-weight: 600; font-size: 14px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 16px; font-weight: 400; }
.choice input { width: auto; margin: 0; }

.older { display: block; text-align: center; padding: 14px; font-size: 15px; font-weight: 600; }

/* Hashtags, places and section headers */
.topics { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 1px; overflow-x: auto; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topics-label { flex: none; font-size: 15px; font-weight: 700; color: var(--text); margin-right: 2px; }
.topic { flex: none; padding: 6px 13px; border-radius: 980px; background: var(--tint-soft, var(--surface)); color: var(--tint-ink, var(--text)); font-size: 14px; font-weight: 600; }
.topic:hover { text-decoration: none; background: var(--tint, var(--fill)); color: #fff; }
.hashtag { font-weight: 500; }
.results-label { margin: 24px 4px 10px; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.search-bar + .results-label { margin-top: 8px; }
.tag-head h1, .local-head h1 { overflow-wrap: anywhere; }
.stats { margin: 0; color: var(--muted); font-size: 15px; }
.stats b { color: var(--text); font-weight: 600; }

.place { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--faint); }
.place svg, .place-pick summary svg, .crumb svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
a.place:hover { color: var(--accent); text-decoration: none; }
.posting-in { margin: 4px 0 8px; }
.place-pick { margin: 2px 0 10px; font-size: 14px; }
.place-pick summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
.place-pick summary::-webkit-details-marker { display: none; }
.place-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.place-fields input { flex: 1 1 140px; padding: 8px 12px; font-size: 15px; }
.crumb { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.place-go { display: flex; flex-wrap: wrap; gap: 8px; }
.place-go input { flex: 1 1 150px; }
.local-head .muted { margin: 0 0 14px; }

/* Lists of people and places */
.people { overflow: hidden; margin-bottom: 16px; }
.person { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 11px 16px; color: var(--text); }
.person + .person::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--separator); }
.person:hover { text-decoration: none; background: var(--fill-2); }
.person .avatar { width: 32px; height: 32px; font-size: 13px; }
.person .name { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.person .handle { font-size: 15px; }

/* Search */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar input, .rail-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 13px center / 17px;
  -webkit-appearance: none;
  appearance: none;
}

/* Profile */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px; margin-bottom: 16px; }
.profile .avatar { width: 72px; height: 72px; font-size: 27px; }
.profile h1 { margin: 0; font-size: 24px; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.profile h1 .check { width: 20px; height: 20px; }
.profile .handle { margin: 2px 0 8px; font-size: 15px; }

.balance { font-size: 17px; margin: 4px 0 14px; }
.balance b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--long); margin-right: 6px; }
.card form + form { margin-top: 10px; }

/* Settings, and bringing follows over from Bluesky */
.settings h2 { margin: 22px 0 6px; font-size: 17px; line-height: 1.3; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* Edits and context notes */
.edited { color: var(--faint); }
.context-note { display: block; margin: 2px 0 10px; padding: 11px 14px; border-radius: 12px; background: var(--note-soft); color: var(--text); font-size: 15px; line-height: 1.4; }
.context-note:hover { text-decoration: none; background: color-mix(in srgb, var(--note) 16%, var(--surface)); }
.note-label { display: block; margin: 0 0 3px; font-size: 13px; font-weight: 700; color: var(--note); }
.notes { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.notes:empty, .notes:not(:has(*)) { display: none; }
.note-box { padding: 16px 18px; }
.note-box.shown { background: var(--note-soft); border-radius: var(--radius); }
.waiting-notes .note-box { padding: 14px 0 6px; border-top: 1px solid var(--separator); }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-meta { margin: 6px 0 0; font-size: 13px; color: var(--faint); }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.chip-button { font: inherit; font-size: 14px; font-weight: 600; padding: 5px 14px; border-radius: 980px; border: 0; background: var(--fill-2); color: var(--accent); cursor: pointer; }
.chip-button:hover { background: var(--fill); }
.chip-button.active { background: var(--button); color: #fff; }
details.card { padding: 14px 18px; }
details.card > summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.card[open] > summary { margin-bottom: 10px; }
.note-composer { margin: 8px 0 6px; padding: 0; border-radius: 0; background: none; }
.note-composer textarea { font-size: 17px; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { padding: 12px 0; border-top: 1px solid var(--separator); }
.history li .muted { margin: 0 0 4px; }

/* Pricing and policy pages */
.policy { padding: 28px; }
.policy h1 { font-size: 26px; margin-bottom: 4px; }
.policy h2 { font-size: 18px; margin: 28px 0 6px; }
.policy p, .policy li { line-height: 1.5; }
.policy ul { padding-left: 20px; }
.prices { width: 100%; border-collapse: collapse; margin: 14px 0 18px; }
.prices th, .prices td { padding: 12px 0; border-bottom: 1px solid var(--separator); text-align: left; font-weight: 400; vertical-align: top; }
.prices td { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }

.footer { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; padding-top: 20px; padding-bottom: 40px; }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--text-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 980px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-banner { background: var(--surface); color: var(--muted); font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--separator); }

/* Side columns on wide screens */
.rail { display: none; }
.rail-box { padding: 16px 16px 8px; }
.rail-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.rail-headline { margin: 0 0 6px; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.join-card { padding: 20px; }
.join-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.join-card .rail-more { margin-left: 12px; }
.rail-empty { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.rail-more { display: inline-block; margin: 4px 0 8px; font-size: 14px; font-weight: 600; }
.you-card { padding: 18px 18px 10px; }
.you-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.you-top .avatar { width: 48px; height: 48px; font-size: 18px; }
.you-name { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; color: var(--text); }
.you-card .handle { margin: 0; font-size: 14px; }
.you-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 4px; padding-top: 12px; border-top: 1px solid var(--separator); }
.you-stats div { display: flex; flex-direction: column-reverse; }
.you-stats dt { font-size: 12px; color: var(--faint); }
.you-stats dd { margin: 0; font-size: 18px; font-weight: 700; }
.trend-list, .rail-list, .follow-list, .rail-notes { list-style: none; margin: 0; padding: 0; }
.trend-list li, .rail-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.trend-list li + li::before, .rail-list li + li::before, .follow-list li + li::before { content: ""; position: absolute; top: 0; left: 42px; right: 0; height: 1px; background: var(--separator); }
.item-body { display: flex; flex-direction: column; min-width: 0; }
.trend-list a, .rail-list a { color: var(--text); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.trend-meta { font-size: 13px; color: var(--faint); }
.trend-meta b { font-weight: 400; }
.rail-search { display: block; }
.rail-search svg { display: none; }
.rail-search input { width: 100%; background-color: var(--surface); }
.rail-notes li { padding: 9px 0; border-top: 1px solid var(--separator); font-size: 15px; line-height: 1.4; }
.rail-notes li:first-child { border-top: 0; padding-top: 2px; }
.rail-notes a { color: var(--text); }
.follow-list li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.follow-list li + li::before { left: 46px; }
.follow-list .avatar { width: 36px; height: 36px; font-size: 14px; }
.follow-who { display: flex; flex-direction: column; flex: 1; min-width: 0; color: var(--text); }
.follow-who:hover { text-decoration: none; }
.follow-who:hover .name { text-decoration: underline; }
.follow-who .name { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.follow-who .handle { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-list .button { font-weight: 700; }
.rail-footer { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px; font-size: 12px; }
.rail-footer a { color: var(--muted); }
.rail-footer p { width: 100%; margin: 4px 0 0; color: var(--faint); }

@media (min-width: 940px) {
  .with-rails .topbar .wrap { max-width: 948px; padding: 0 20px; }
  .app-grid { display: grid; grid-template-columns: minmax(0, 600px) 290px; gap: 24px; max-width: 948px; margin: 0 auto; padding: 0 20px; align-items: start; }
  .app-grid .main-col { max-width: none; margin: 0; padding: 20px 0 28px; }
  .rail { position: sticky; top: 53px; flex-direction: column; gap: 16px; padding: 20px 0 32px; max-height: calc(100vh - 53px); overflow-y: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-right { display: flex; }
}
@media (min-width: 1200px) {
  .with-rails .topbar .wrap { max-width: 1250px; padding: 0 24px; }
  .app-grid { grid-template-columns: 260px minmax(0, 600px) 290px; max-width: 1250px; padding: 0 24px; }
  .rail-left { display: flex; }
  .topics.in-rail { display: none; }
}

/* Landing page: laid out like an Apple product page */
.page-landing { background: var(--surface); }
.page-landing .topbar .wrap { max-width: 1024px; padding: 0 22px; }
.landing { overflow-x: clip; }
.landing .flash { margin-top: 16px; }
.lwrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; background: var(--surface); }
.section.alt { background: var(--bg); }
.section.dark { background: #000; color: #f5f5f7; }
.section-title { margin: 0 0 36px; font-size: clamp(30px, 5vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }

.struck { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--text); text-decoration-thickness: 0.07em; }

.hero { padding: 72px 0 0; text-align: center; background: var(--surface); }
.hero-title { margin: 0 auto 20px; max-width: 11em; font-size: clamp(44px, 9vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.lede { margin: 0 auto 30px; max-width: 30em; font-size: clamp(18px, 2vw, 21px); line-height: 1.4; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.landing .button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.landing .button.secondary:hover { background: var(--accent); color: #fff; }
.cta-note { margin: 16px 0 0; font-size: 14px; color: var(--faint); }

/* The hero phone rises from the bottom of the section, cut off by its edge. It
   has an iPhone's proportions at any width: a 393-point screen has 55-point
   corners, a 59-point status area and a 126 × 37 Dynamic Island 11 points down.
   The frame's corners follow the screen's, a bezel further out. */
.device-stage { display: flex; justify-content: center; height: 540px; margin-top: 64px; overflow: hidden; container-type: inline-size; }
.device {
  --width: min(392px, 100cqw - 44px);
  --screen: calc(var(--width) / 1.07);
  --bezel: calc(var(--screen) * 0.035);
  --corner: calc(var(--screen) * 55 / 393);
  width: var(--width);
  padding: var(--bezel) var(--bezel) 0;
  background: #1d1d1f;
  border-radius: calc(var(--corner) + var(--bezel)) calc(var(--corner) + var(--bezel)) 0 0;
  box-shadow: inset 0 0 0 1px #3a3a3c;
}
.device .shot {
  max-width: none;
  padding-top: calc(var(--screen) * 59 / 393);
  background: var(--surface);
  border: 0;
  border-radius: var(--corner) var(--corner) 0 0;
  box-shadow: none;
  container-type: inline-size;
}
/* The app is laid out 393 points wide, as on the phone, and scaled to the
   screen like a screenshot, so it looks the same at any size (app.js sets --fit). */
.device.fit .shot-bar, .device.fit .shot-body { width: 393px; zoom: var(--fit); }
.device .shot-body { background: var(--bg); }
/* Inside the screen, 1cqw is 1% of its width, so 393 points is 100cqw. */
.status-bar { position: absolute; inset: 0 0 auto; height: calc(100cqw * 59 / 393); display: grid; grid-template-columns: 1fr calc(100cqw * 126 / 393) 1fr; align-items: center; color: var(--text); }
.status-bar .time { justify-self: center; font-size: calc(100cqw * 17 / 393); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.island { height: calc(100cqw * 37 / 393); border-radius: 999px; background: #000; }
.status-icons { justify-self: center; display: flex; align-items: center; gap: calc(100cqw * 6 / 393); }
.status-icons svg { width: auto; height: calc(100cqw * 11.5 / 393); fill: currentColor; }
.status-icons .wifi { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.status-icons .battery-case { fill: none; stroke: currentColor; opacity: 0.4; }
.status-icons .battery-cap { opacity: 0.4; }

/* Screenshots: the real components inside a frame, not clickable. */
.shot {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--separator);
  border-radius: 22px;
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.35);
  user-select: none;
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--separator); color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.shot-bar .mark { width: 18px; height: 18px; }
.shot-search { margin-left: auto; display: inline-flex; color: var(--faint); }
.shot-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shot-body { padding: 12px; }
.shot-body > :last-child { margin-bottom: 0; }
.shot .composer, .shot .tabs, .shot .profile, .shot .thread, .shot .feed, .shot .topics, .shot .search-bar { margin-bottom: 12px; }
.shot .card { margin-bottom: 12px; }
.shot .profile { grid-template-columns: auto minmax(0, 1fr); }
.shot .profile > form, .shot .profile > .button, .shot .profile > .profile-actions { grid-column: 1 / -1; justify-self: start; }
.shot .results-label { margin-top: 4px; font-size: 19px; }
.shot .toast { position: absolute; bottom: 22px; opacity: 1; transform: translateX(-50%); }
.draft { min-height: 72px; padding: 4px 0 10px; font-size: 18px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.draft.long { max-height: 8.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* Feature tiles */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 28px; padding: 40px 36px 0; }
.tile-dark { background: #000; color: #f5f5f7; }
.tile h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.tint-text { color: var(--tint-ink); }
.tile-dark .tint-text { color: var(--tint); }
.tile-copy p { margin: 0 0 10px; max-width: 30em; color: var(--muted); }
.tile-dark .tile-copy p { color: #a1a1a6; }
.tile-dark .tile-copy a { color: #2997ff; }
.tile-shot { display: flex; justify-content: center; margin-top: auto; padding-top: 30px; }
.tile-shot .shot { max-height: 380px; border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: none; }
.tile-dark .tile-shot .shot { border-color: #2c2c2e; }

/* Built differently */
.dark .section-title { color: #f5f5f7; }
.refusals { margin: 0 0 56px; font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.refusals s { color: #6e6e73; text-decoration-color: #f5f5f7; text-decoration-thickness: 0.06em; white-space: nowrap; margin-right: 0.12em; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.fact { background: #1d1d1f; border-radius: 28px; padding: 30px; }
.fact h3 { margin: 16px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; color: #f5f5f7; }
.fact p { margin: 0; color: #a1a1a6; }
.glyph { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact .glyph { color: var(--tint); }

/* Start in a minute */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { background: var(--bg); border-radius: 28px; padding: 32px; }
.step .glyph { color: var(--tint-ink); }
.step h3 { margin: 16px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); }

/* The close */
.final { text-align: center; }
.final h2 { margin: 0 0 16px; font-size: clamp(44px, 9vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.final .caret { width: 0.06em; height: 0.85em; margin-left: 0.08em; vertical-align: -0.06em; }
.page-landing .footer { max-width: 1024px; padding: 22px 22px 40px; border-top: 1px solid var(--separator); }
.page-landing main + .footer { background: var(--bg); max-width: none; }

@media (min-width: 834px) {
  .section { padding: 120px 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 600px; padding: 48px 44px 0; }
  .tile-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; min-height: 0; padding: 0 0 0 56px; }
  .tile-wide .tile-copy { padding: 56px 0; }
  .tile-wide .tile-shot { align-self: end; padding-top: 56px; padding-right: 56px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .device-stage { height: 600px; }
}

@media (prefers-color-scheme: dark) {
  .device { background: #2c2c2e; box-shadow: inset 0 0 0 1px #48484a; }
  .page-landing, .hero, .section, .section.dark { background: #000; }
  .section.alt { background: #0e0e10; }
  .tile-dark { background: #000; box-shadow: inset 0 0 0 1px #2c2c2e; }
  .tile:not(.tile-dark), .step, .fact { background: #1c1c1e; }
}

@media (max-width: 480px) {
  .nav-home { display: none; }
  .topnav { gap: 14px; }
  .cta .button.large { flex: 1; padding: 12px 16px; }
  .actions { gap: 14px; }
  /* The hint drops to its own line under the counter and button. */
  .composer-bar .hint { order: 3; flex-basis: 100%; }
  .composer-bar .hint:empty { display: none; }
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .profile > form, .profile > .button, .profile > .profile-actions { grid-column: 1 / -1; }
  .composer textarea { font-size: 17px; }
  .tile { padding: 32px 24px 0; }
  .device-stage { height: 480px; margin-top: 48px; }
  .page-title { font-size: 26px; }
}
