:root {
  --ink: #20252a;
  --ink-2: #5b6168;
  --ink-3: #8b9097;
  --line: #e7e8ea;
  --soft: #f4f5f6;
  --bg: #ffffff;
  --radius: 18px;
  --row: 214px;
  --gap: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ chrome */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc((100vw - 1280px) / 2 + 16px));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; color: var(--ink); }
.topbar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.topbar nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.topbar nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--soft); color: var(--ink); }
.btn-light:hover { background: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ------------------------------------------------------------ feed */

.feed {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--row);
  grid-auto-flow: row dense;
  gap: var(--gap);
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
}
.tile.w2 { grid-column: span 2; }
.tile.h2 { grid-row: span 2; }
.tile.full { grid-column: 1 / -1; }

/* Blocked content: a typical feed card. */
.post { display: flex; flex-direction: column; cursor: default; }
.post .art { flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; background: var(--soft); }
.post .art svg, .post .art img { display: block; width: 100%; height: 100%; }
.post .art img { object-fit: cover; object-position: 50% 45%; }
.post .body { padding: 10px 2px 0; }
.post h3 { margin: 0; font-size: 14.5px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .meta b { font-weight: 600; color: var(--ink-2); }
.post .sponsored { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #fde68a; color: #7c5b00; font-weight: 700; font-size: 11px; }

/* The panels that stay. */
.panel { border: 1px solid var(--line); background: var(--bg); box-shadow: 0 1px 2px rgba(20, 24, 28, 0.04), 0 8px 24px rgba(20, 24, 28, 0.05); }

/* Hero */
.hero { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, min(3vw, 4vh), 40px); background: radial-gradient(120% 90% at 100% 0%, #f5f6f7 0%, #fff 55%); }
.hero .hero-head { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.hero .mark { flex: none; width: clamp(60px, min(7vw, 12vh), 116px); height: auto; color: var(--ink); overflow: visible; }
.hero h1 { margin: 0; font-size: clamp(30px, min(4.2vw, 6.6vh), 58px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 span { color: var(--ink-3); font-weight: 700; }
.hero p { margin: clamp(12px, 2vh, 18px) 0 0; max-width: 44ch; font-size: clamp(14px, min(1.2vw, 2.1vh), 18px); color: var(--ink-2); }
.hero .ctas { margin-top: clamp(14px, 2.6vh, 24px); display: flex; flex-wrap: wrap; gap: 10px; }
.hero .jev { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }

/* Logo animation: cubes draw in one by one, then one lifts out and returns. */
.mark path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 900ms cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.mark path:nth-child(1) { animation-delay: 0ms; }
.mark path:nth-child(2) { animation-delay: 70ms; }
.mark path:nth-child(3) { animation-delay: 140ms; }
.mark path:nth-child(4) { animation-delay: 210ms; }
.mark path:nth-child(5) { animation-delay: 280ms; }
.mark path:nth-child(6) { animation-delay: 350ms; }
.mark path:nth-child(7) { animation-delay: 420ms; }
.mark path:nth-child(8) { animation-delay: 490ms; }
.mark path:nth-child(9) { animation-delay: 560ms; }
.mark path:nth-child(5) { transform-box: fill-box; transform-origin: center; animation: draw 900ms cubic-bezier(0.6, 0, 0.2, 1) 280ms forwards, lift 5.2s ease-in-out 2.2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lift {
  0%, 62%, 100% { transform: translate(0, 0); opacity: 1; }
  72% { transform: translate(0, -46px); opacity: 0.25; }
  82% { transform: translate(0, -46px); opacity: 0.25; }
  92% { transform: translate(0, 0); opacity: 1; }
}

/* Popup (a stylised copy of the extension) */
.popup { display: flex; flex-direction: column; padding: 16px; gap: 12px; }
.popup .pop-head { display: flex; align-items: center; justify-content: space-between; }
.popup .pop-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.popup .pop-brand svg { width: 20px; height: 20px; }
.popup .switch { width: 30px; height: 18px; border-radius: 999px; background: var(--ink); position: relative; }
.popup .switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.popup .pop-input { display: flex; gap: 6px; }
.popup .field { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1.5px solid var(--ink); display: flex; align-items: center; padding: 0 12px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.popup .field .ph { color: var(--ink-3); }
.popup .caret { display: inline-block; width: 1.5px; height: 17px; margin-left: 1px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.popup .enter { width: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; opacity: 0.25; transition: opacity 120ms, transform 120ms; }
.popup .enter.ready { opacity: 1; }
.popup .enter.press { transform: scale(0.9); }
.popup ul { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.popup li { display: flex; align-items: center; gap: 10px; padding: 7px 4px 7px 10px; border-radius: 9px; font-size: 13.5px; animation: pop-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.popup li .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popup li .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--ink-3); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; transition: background 200ms, color 200ms; }
.popup li .n.hot { background: var(--ink); color: #fff; }
.popup li .n.bump { animation: bump 300ms ease; }
.popup li .x { color: var(--ink-3); font-size: 14px; width: 18px; text-align: center; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes bump { 40% { transform: scale(1.3); } }
.popup .pop-foot { border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.popup .pop-foot b { color: var(--ink); }

/* Inbox */
.inbox { display: flex; flex-direction: column; padding: 14px 0 0; }
.inbox .in-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 10px; border-bottom: 1px solid var(--line); }
.inbox .in-title { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.inbox .in-title svg { width: 18px; height: 18px; }
.inbox .in-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.inbox ul { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.inbox li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 13px; background: var(--bg); }
.inbox .av { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.inbox .from { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .time { font-size: 11.5px; color: var(--ink-3); }
.inbox .line { grid-column: 2 / 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.inbox .line b { color: var(--ink); font-weight: 500; }
.inbox li.unread .from, .inbox li.unread .line b { font-weight: 700; }

/* Download */
.download { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: var(--ink); color: #fff; border: 0; }
.download .dl-top { display: flex; align-items: center; gap: 10px; }
.download .dl-top svg { width: 28px; height: 28px; color: #fff; }
.download h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; line-height: 1.15; }
.download p { margin: 6px 0 0; font-size: 13px; color: #b9bdc2; }
.download .btn { background: #fff; color: var(--ink); width: 100%; }
.download .btn:hover { background: #eef0f2; }
@media (min-width: 761px) {
  .download.full { flex-direction: row; align-items: center; gap: 24px; padding: 28px 32px; }
  .download.full .dl-copy { flex: 1; }
  .download.full h2 { font-size: 26px; }
  .download.full .btn { width: auto; padding: 14px 26px; }
}

/* ------------------------------------------------------------ poof */

.tile.poofing { pointer-events: none; animation: poof 520ms cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes poof {
  0% { transform: scale(1); filter: blur(0); opacity: 1; }
  25% { transform: scale(1.04); filter: blur(0); opacity: 1; }
  100% { transform: scale(0.55); filter: blur(10px); opacity: 0; }
}
.inbox li.poofing { animation: row-poof 420ms ease-in forwards; }
@keyframes row-poof { to { opacity: 0; transform: translateX(24px); filter: blur(4px); } }

.puff { position: fixed; z-index: 30; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.puff i { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--c, #cfd3d8); opacity: 0.9; animation: puff 700ms cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }
@keyframes puff {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 0.95; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; }
}

/* ------------------------------------------------------------ below the fold */

.replay-wrap { display: flex; justify-content: center; margin: 28px 0 0; min-height: 44px; }
.replay { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; animation: pop-in 300ms ease both; }
.replay svg { width: 16px; height: 16px; }
.replay:hover { border-color: var(--ink); }

.how { max-width: 1080px; margin: 72px auto 0; padding: 0 16px; }
.how h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.04em; margin: 0 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }
.steps h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

.footer { max-width: 1280px; margin: 80px auto 0; padding: 24px 16px 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

.install { border: 0; border-radius: 20px; padding: 28px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); color: var(--ink); }
.install::backdrop { background: rgba(20, 24, 28, 0.35); backdrop-filter: blur(3px); }
.install h2 { margin: 0 0 6px; letter-spacing: -0.03em; }
.install ol { padding-left: 20px; line-height: 1.8; }
.install code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--ink-2); }

/* ------------------------------------------------------------ responsive */

/* Fit the whole feed in the first view where the screen allows: row height
   follows the window height (header + margins ~ 150px, plus the gaps). */
@media (min-width: 1200px) {
  :root { --row: clamp(150px, calc((100vh - 150px - 3 * var(--gap)) / 4), 240px); }
  .feed { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1440px; }
}
@media (min-width: 1081px) and (max-width: 1199px) {
  :root { --row: clamp(140px, calc((100vh - 150px - 4 * var(--gap)) / 5), 214px); }
}
@media (max-width: 1080px) {
  :root { --row: 196px; }
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --row: 188px; --gap: 12px; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .topbar nav a:not(.btn) { display: none; }
  .download.full { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .feed { grid-template-columns: 1fr; }
  .tile.w2 { grid-column: span 1; }
  .hero { grid-row: span 2; }
  .inbox { grid-row: span 2; }
  /* One row, so the feed stays in view below it while tiles disappear. */
  .tile.popup { grid-row: span 1; padding: 14px; gap: 10px; }
  .popup .pop-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none !important; stroke-dashoffset: 0; }
  .tile.poofing, .inbox li.poofing { animation-duration: 1ms; }
  .puff { display: none; }
}

/* ------------------------------------------------------------ legal pages */

.legal { max-width: 760px; margin: 48px auto 0; padding: 0 20px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.04em; margin: 0 0 6px; }
.legal .updated { color: var(--ink-3); margin: 0 0 32px; font-size: 14px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal h3 { font-size: 16px; margin: 24px 0 6px; }
.legal p, .legal li { color: #353a40; font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .callout { border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.legal .callout p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--ink); background: var(--soft); }
.legal code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
