/* marKit landing page styles. One file: tokens, layout, then each section in page order.
   The one loud element is the yellow highlighter (from the logo); everything else stays quiet. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --paper: #F6F7FB;
  --surface: #FFFFFF;
  --sunk: #EDF0F8;
  --ink: #0E1430;
  --muted: #565D7E;
  --faint: #868CA8;
  --line: #E0E4EF;
  --blue: #2B4FF0;
  --band: #1A3BDB;
  --mark: #FFDE45;
  --on-mark: #0E1430;
  --high: #D9442E;
  --med: #A86E00;
  --free: #17804F;
  --paid: #A9520D;
  --shadow: 0 1px 2px rgba(14, 20, 48, 0.06), 0 12px 32px -8px rgba(14, 20, 48, 0.14);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A0F24;
    --surface: #111839;
    --sunk: #0D1330;
    --ink: #EDF0FA;
    --muted: #A3AACA;
    --faint: #737BA3;
    --line: #232C55;
    --blue: #7C95FF;
    --band: #1832C2;
    --high: #FF7A64;
    --med: #F2B53C;
    --free: #4CD08F;
    --paid: #F39A55;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.6 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--mono); }
p code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--sunk); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* Platform colours, used only on their logos. */
.brand-reddit { color: #FF4500; }
.brand-bluesky { color: #1185FE; }
.brand-youtube { color: #FF0000; }
.brand-hn { color: #FF6600; }
.brand-se { color: #1E5397; }
@media (prefers-color-scheme: dark) { .brand-se { color: #5A8ED6; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  font: 500 15px/1 "Poppins", sans-serif; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, background-color 0.15s;
}
.btn:hover { border-color: var(--faint); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
}
/* A blur that fades out below the bar instead of ending at a hard line. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 88%, transparent) 40%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; }
.logo-word { width: 77px; height: 32px; }

/* Hero */
.hero {
  padding: 72px 0 88px;
  overflow-x: clip; /* the tilted card behind the example post may poke past a phone's edge */
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.035em;
}
/* All four phrases share one grid cell, so the headline is always as tall as the longest
   one and nothing below it jumps when the phrase changes. */
.rotator { display: grid; margin-top: 0.06em; }
.phrase { grid-area: 1 / 1; visibility: hidden; }
.phrase.is-active { visibility: visible; }
.mark {
  color: var(--ink);
  padding: 0 0.12em;
  margin: 0 -0.06em;
  border-radius: 0.12em;
  /* The highlighter stroke: a background that grows left to right, one stroke per line. */
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 85% / 0% 64%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.phrase.is-active .mark { animation: sweep 0.7s cubic-bezier(0.6, 0, 0.3, 1) 0.1s forwards; }
/* The phrase keeps the page's text colour until the highlighter reaches it (matters in dark mode). */
@keyframes sweep { from { color: var(--ink); } 45% { color: var(--ink); } to { color: var(--on-mark); background-size: 100% 64%; } }

.lede { margin-top: 28px; max-width: 34em; font-size: 17.5px; color: var(--muted); }

.install {
  display: flex; align-items: center; gap: 12px;
  margin-top: 32px; max-width: 560px;
  padding: 7px 7px 7px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.install code { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.5; }
.install .prompt { color: var(--faint); user-select: none; }
.copy {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 10px 15px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 500 14px/1 "Poppins", sans-serif;
}
.copy:hover { opacity: 0.88; }
.fine { margin-top: 16px; font-size: 14px; color: var(--faint); }
.fine code, .sub code { white-space: nowrap; }

/* Hero demo: the intent switcher and the stack of example posts. */
/* A segmented control: one pill holding the four kinds of posts. */
.intents {
  display: inline-flex; gap: 2px; margin-bottom: 18px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.intent {
  padding: 7px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--muted);
  font: 500 13.5px/1.2 "Poppins", sans-serif;
  transition: background-color 0.2s, color 0.2s;
}
.intent:hover { color: var(--ink); }
.intent.is-active { background: var(--ink); color: var(--paper); }

.cards { display: grid; position: relative; }
/* A second post peeking out from under the first, so it reads as a pile of finds. */
.cards::before {
  content: ""; grid-area: 1 / 1; z-index: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  transform: translate(12px, 12px) rotate(1.6deg);
  opacity: 0.7;
}
.card {
  grid-area: 1 / 1; z-index: 1;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s, visibility 0s 0.35s;
}
.card.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s, transform 0.35s; }
.card-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.card-head .src { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.card-head .when { color: var(--faint); }
.score {
  margin-left: auto; padding: 3px 9px; border-radius: 8px;
  font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums;
}
.score::before { content: "Score "; font-weight: 400; opacity: 0.8; }
.score-high { color: var(--high); background: color-mix(in srgb, var(--high) 12%, transparent); }
.score-med { color: var(--med); background: color-mix(in srgb, var(--med) 14%, transparent); }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.card-body { font-size: 15px; color: var(--muted); line-height: 1.6; }
.card-body-lg { font-size: 17px; color: var(--ink); }
.card mark {
  color: inherit;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 60% / 0% 90%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 2px;
}
.card.is-active mark { animation: sweep-sm 0.6s cubic-bezier(0.6, 0, 0.3, 1) 0.45s forwards; }
@keyframes sweep-sm { from { color: inherit; } 45% { color: inherit; } to { color: var(--on-mark); background-size: 100% 90%; } }
.why { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.why .ic { color: var(--blue); margin-top: 1px; }
.draft { margin-top: 2px; padding: 14px 16px; border-radius: 14px; background: var(--sunk); font-size: 14px; line-height: 1.6; }
.draft-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.draft-head .ic { color: var(--blue); }
.demo-note { margin-top: 26px; font-size: 12.5px; color: var(--faint); text-align: right; }

/* Shared section bits */
.section { padding: 104px 0; }
.section-alt { background: var(--sunk); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; max-width: 18em; }
.sub { margin-top: 16px; max-width: 38em; font-size: 17px; color: var(--muted); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.split-head .sub { margin-top: 0; }

/* How it works */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
/* One line joins the step numbers, because it's a real sequence. */
.steps::before { content: ""; position: absolute; top: 15px; left: 16px; right: 0; height: 1px; background: var(--line); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-num {
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.cmd { align-self: flex-start; font-size: 13px; color: var(--blue); }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.step > p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
/* Step visuals: four small, same-size mock-ups of what each step looks like. */
.vis {
  margin-top: auto; height: 168px; padding: 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  font-size: 12.5px; overflow: hidden;
}
.pill { padding: 3px 9px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); white-space: nowrap; font-size: 12px; }

.p-app { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.p-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.p-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--free); font-size: 12px; font-weight: 500; }
.p-for { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.p-k { width: 18px; flex: none; color: var(--faint); font-size: 12px; }

.vis-sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: center; }
.vis-sources span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--sunk); }
.vis-sources .ic { width: 22px; height: 22px; }

.s-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-num { color: var(--faint); font-weight: 500; }
.s-num b { color: var(--high); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-right: 2px; }
.s-pri { padding: 3px 9px; border-radius: 8px; font-weight: 600; font-size: 12px; color: var(--high); background: color-mix(in srgb, var(--high) 12%, transparent); }
.s-bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.s-bar i { display: block; width: 85%; height: 100%; border-radius: 3px; background: var(--high); }
.caution {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  color: var(--ink); background: color-mix(in srgb, var(--med) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--med) 30%, transparent);
}
.caution .ic { color: var(--med); }

.seg { display: flex; padding: 3px; gap: 3px; border-radius: 11px; background: var(--sunk); border: 1px solid var(--line); }
.seg span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 20, 48, 0.12); }
.why-skip { color: var(--faint); font-size: 12px; }
.reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.reasons span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.reasons .on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* The blue band */
.band { background: var(--band); color: #fff; padding: 96px 0; }
.band-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.band .h2 { color: #fff; }
.band-copy p { margin-top: 18px; color: rgba(255, 255, 255, 0.82); font-size: 16.5px; max-width: 30em; }
.agents { display: flex; gap: 8px; margin-top: 28px; }
.agents li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; font-size: 14px; font-weight: 500; }
.term { background: #090E22; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -20px rgba(4, 8, 30, 0.6); min-width: 0; }
.term-bar { display: flex; gap: 7px; padding: 14px 16px 0; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
/* Long lines wrap instead of scrolling sideways. */
.term pre { margin: 0; padding: 18px 22px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; color: #D8DDF2; }
.t-you { color: #fff; font-weight: 600; }
.t-dim { color: #7E86AD; }
.t-hl { color: var(--on-mark); background: var(--mark); padding: 1px 3px; border-radius: 3px; }

/* Dashboard */
.shot { margin-top: 48px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #12121A; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.keys li { display: inline-flex; align-items: center; gap: 4px; }
kbd {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface); color: var(--ink); font-size: 12px;
}
.keys kbd + kbd { margin-left: 2px; }
.keys li kbd:last-of-type { margin-right: 4px; }

/* Sources table */
.table { margin-top: 48px; border-top: 1px solid var(--line); font-size: 15px; }
.tr { display: grid; grid-template-columns: 1.1fr 0.85fr 0.85fr 2.2fr; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tr > span { color: var(--muted); }
.th > span { font-size: 13px; font-weight: 500; color: var(--faint); }
.tr .src { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.tr .src .ic { width: 20px; height: 20px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.tag-free { color: var(--free); background: color-mix(in srgb, var(--free) 12%, transparent); }
.tag-paid { color: var(--paid); background: color-mix(in srgb, var(--paid) 13%, transparent); }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; margin-top: 48px; }
.rules li { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.rules .ic { width: 26px; height: 26px; color: var(--blue); }
.rules h3 { margin-top: 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.rules p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 32px 22px 0; color: var(--muted); font-size: 15.5px; }

/* Closing call to action */
.cta { padding: 112px 0 120px; text-align: center; border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .h2, .cta .sub { margin-left: auto; margin-right: auto; }
.cta .install { width: 100%; text-align: left; }
.cta .btn { margin-top: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13.5px; color: var(--faint); }
.foot-inner { display: flex; align-items: center; gap: 24px; }
.foot-inner p { flex: 1; }
.foot-inner > a:last-child { color: var(--muted); }
.foot .logo-mark { width: 26px; height: 26px; }
.foot .logo-word { width: 62px; height: 26px; }

/* ~1000px and below */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-demo { max-width: 600px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .band-grid, .split-head, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .split-head .sub { margin-top: 0; }
  .rules { grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .lede { font-size: 16.5px; }
  .install { padding-left: 14px; }
  .install code { font-size: 12px; }
  .intents { display: flex; }
  .intent { flex: 1; padding: 7px 4px; font-size: 13px; }
  .card { padding: 18px 16px 16px; }
  .demo-note { text-align: left; }
  .section { padding: 72px 0; }
  .band { padding: 72px 0; }
  .steps, .rules { grid-template-columns: 1fr; }
  .term pre { font-size: 12px; padding: 16px; }
  .th { display: none; }
  .tr { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tr > span:nth-child(3), .tr > span:nth-child(4) { grid-column: 1 / -1; font-size: 14px; }
  .tr > span:nth-child(3)::before { content: "Key: "; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
