/* pollen.chat landing page */
:root {
  --bg: #faf7f0;
  --bg-2: #f3eee2;
  --card: #fffdf8;
  --ink: #1f1b16;
  --ink-2: #4a443b;
  --muted: #7a7266;
  --rule: #e7e0d0;
  --gold: #f2a93b;
  --amber: #d9822b;
  --accent: #b4632c;
  --peach: #f7b98f;
  --rose: #eea2b4;
  --green: #7cc59a;
  --blue: #8fb6e8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 12px 40px -12px rgba(120, 80, 20, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17140f;
    --bg-2: #1f1b15;
    --card: #221e17;
    --ink: #f1ece2;
    --ink-2: #cfc7b8;
    --muted: #9b9282;
    --rule: #342e25;
    --accent: #eea064;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
    --bg: #17140f;
    --bg-2: #1f1b15;
    --card: #221e17;
    --ink: #f1ece2;
    --ink-2: #cfc7b8;
    --muted: #9b9282;
    --rule: #342e25;
    --accent: #eea064;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px -16px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; }
em { font-style: italic; }
code { font: .88em var(--mono); background: var(--bg-2); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 5px; }
kbd {
  font: 500 .78em var(--sans); display: inline-block; min-width: 1.7em; text-align: center;
  padding: 1px 6px; margin: 0 1px; border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: 6px; background: var(--card); color: var(--ink);
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: var(--bg); font: 500 15px/1 var(--sans);
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(60, 40, 10, .45); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--card); }
.btn .chrome { width: 19px; height: 19px; }

/* Nav (floating pill) */
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 14px 16px 0; }
.nav {
  max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 4px 24px -12px rgba(120, 80, 20, .25);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 500 20px var(--serif); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.nav-links a:hover { color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.d1 { background: var(--amber); } .d2 { background: var(--gold); } .d3 { background: var(--rose); } .d4 { background: var(--green); }

/* Hero */
.hero { position: relative; text-align: center; padding: 88px 16px 40px; isolation: isolate; }
.glow {
  position: absolute; inset: -140px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 50% 34%, color-mix(in srgb, var(--bg) 92%, transparent) 0 40%, transparent 70%),
    radial-gradient(60% 55% at 30% 40%, rgba(242, 169, 59, .55), transparent 70%),
    radial-gradient(50% 50% at 72% 38%, rgba(238, 162, 180, .45), transparent 70%),
    radial-gradient(70% 60% at 50% 70%, rgba(247, 185, 143, .35), transparent 70%);
  filter: blur(30px);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
@media (prefers-color-scheme: dark) { .glow { opacity: .55; } }
.eyebrow { font: 500 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(46px, 8.4vw, 96px); line-height: .98; letter-spacing: -.03em; }
.hero h1 em { color: var(--accent); }
.lede { max-width: 600px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

/* Showcase */
.showcase { max-width: 1080px; margin: 64px auto 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); margin-bottom: 18px; box-shadow: var(--shadow); }
.seg button {
  font: 500 14px var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
}
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.browser {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--rule); box-shadow: 0 2px 4px rgba(60, 40, 10, .05), 0 40px 100px -30px rgba(150, 90, 20, .45);
}
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--rule); background: var(--bg-2); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #e3dccc; }
@media (prefers-color-scheme: dark) { .lights i { background: #3b352b; } }
.url { flex: 1; max-width: 420px; margin: 0 auto; font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 4px 10px; text-align: left; }
.ext img { width: 18px; height: 18px; border-radius: 5px; }
.shots { position: relative; aspect-ratio: 1280 / 800; background: #faf9f5; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.shot.is-on { opacity: 1; }
.caption { font-size: 14px; color: var(--muted); margin: 18px auto 0; max-width: 560px; }

/* Manifesto */
.manifesto { padding: 110px 16px 60px; }
.manifesto p {
  max-width: 860px; margin: 0 auto; text-align: center;
  font: 400 clamp(26px, 3.6vw, 40px)/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink-2);
}
.manifesto em { color: var(--ink); }

/* Feature rows */
.features { max-width: 1120px; margin: 0 auto; padding: 40px 16px 40px; }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding: 64px 0; }
.feature.flip .feature-copy { order: 2; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p { color: var(--ink-2); margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 28%, transparent);
  -webkit-mask: none;
}
.ticks li::after {
  content: ""; position: absolute; left: 5.5px; top: 9px; width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg);
}
.feature-art { margin: 0; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.shot-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); background: #faf9f5; }

/* Heatmap */
.heat-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.heat-head strong { font: 500 22px var(--serif); color: var(--ink); margin-right: 4px; }
.heat-stats { display: flex; gap: 16px; color: var(--muted); font-size: 13px; align-items: center; }
.heat-stats b { color: var(--ink); font-weight: 500; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--bg-2); }
.heat i.l1, .heat-legend .l1 { background: #f8dcae; }
.heat i.l2, .heat-legend .l2 { background: #f4bf6b; }
.heat i.l3, .heat-legend .l3 { background: #e8973a; }
.heat i.l4, .heat-legend .l4 { background: #bf6a22; }
.heat i.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.heat-legend .l0 { background: var(--bg-2); }
.heat-day { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 8px; }
.heat-day-title { font-size: 13px; color: var(--muted); }
.row { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; margin-right: 8px; background: var(--bg-2); color: var(--ink-2); }

/* Markup mock */
.markup-card { padding: 30px; display: flex; flex-direction: column; }
.mk-label { font: 600 13px var(--sans); color: #c96442; margin: 0 0 8px; }
.mk-text { font: 400 19px/1.65 var(--serif); margin: 0; color: var(--ink); }
.mk-text mark { color: inherit; border-radius: 3px; padding: 0 1px; }
.hl-green { background: rgba(124, 197, 154, .38); }
.hl-yellow { background: rgba(250, 213, 90, .55); border-bottom: 1.5px dotted #c9962a; }
.has-note { position: relative; }
.note-dot { position: absolute; top: -6px; right: -7px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--card); }
.mk-text u { text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mk-toolbar {
  align-self: flex-start; margin-top: 22px; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font: 500 14px var(--sans);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
}
.mk-toolbar .sw { width: 15px; height: 15px; border-radius: 50%; }
.sw.y { background: #fad55a; } .sw.g { background: var(--green); } .sw.b { background: var(--blue); } .sw.p { background: var(--rose); }
.mk-toolbar .sep { width: 1px; height: 16px; background: color-mix(in srgb, var(--bg) 30%, transparent); }
.mk-toolbar svg { width: 16px; height: 16px; }
.mk-note {
  align-self: flex-end; margin-top: -8px; width: min(300px, 100%);
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2);
}
.mk-note p { margin: 0 0 6px; }
.mk-quote { font: 400 14px var(--serif); color: var(--ink); border-left: 2px solid var(--amber); padding-left: 8px; }
.mk-link { color: var(--muted); font-size: 12.5px; margin: 0 !important; }

/* Meter mock (dark, like the real one) */
.meter-card { background: #2a2722; border-color: #3a362f; color: #ece6da; font-family: var(--serif); max-width: 440px; justify-self: center; width: 100%; }
.mt-head { font: 500 12px var(--serif); letter-spacing: .12em; text-transform: uppercase; color: #a69e90; margin: 0 0 14px; }
.mt-head:not(:first-child) { margin-top: 18px; padding-top: 16px; border-top: 1px solid #3a362f; }
.mt-row { display: flex; justify-content: space-between; font-size: 16px; }
.bar { height: 6px; border-radius: 99px; background: #3d3931; margin: 8px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: #e9826b; }
.mt-sub { font-size: 13.5px; color: #a69e90; margin: 0 0 12px; }
.pill { display: flex; gap: 16px; justify-content: center; margin: 20px auto 0; width: max-content; max-width: 100%; padding: 6px 14px; border-radius: 99px; background: #1f1c18; border: 1px solid #3a362f; font: 13px var(--sans); color: #a69e90; }
.pill span { display: inline-flex; align-items: center; gap: 6px; }
.mini { width: 40px; height: 4px; border-radius: 9px; background: linear-gradient(90deg, #e9826b var(--w), #3d3931 var(--w)); display: inline-block; }

/* Small feature grid */
.grid-head { text-align: center; padding: 80px 0 34px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid li { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.grid .ic {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--gold) 22%, var(--card)); color: var(--accent); font: 500 17px var(--sans);
}
.grid h3 { font-size: 21px; margin-bottom: 6px; }
.grid p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Privacy band */
.private { padding: 40px 16px; }
.private-inner {
  max-width: 1120px; margin: 0 auto; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(242, 169, 59, .35), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(238, 162, 180, .22), transparent 60%),
    #221c14;
  color: #f4ede0;
}
.private h2 { font-size: clamp(34px, 5vw, 56px); }
.kicker.light { color: #cdbfa8; }
.private-lede { font-size: 19px; color: #d8ccb8; max-width: 620px; margin: 16px 0 34px; }
.checks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.checks li { position: relative; padding-left: 34px; color: #cdbfa8; font-size: 15.5px; }
.checks b { color: #f4ede0; font-weight: 500; display: block; margin-bottom: 2px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(242, 169, 59, .22); }
.checks li::after { content: ""; position: absolute; left: 6.5px; top: 8px; width: 7px; height: 4px; border-left: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(-45deg); }
.text-link { color: var(--gold); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* Vault */
.vault { max-width: 1120px; margin: 0 auto; padding: 100px 16px 60px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.vault-copy > p { color: var(--ink-2); }
.vault-copy h2 { margin-bottom: 16px; }
.muted { color: var(--muted) !important; font-size: 15px; }
.term { margin: 0; border-radius: 16px; overflow: hidden; background: #1b1814; border: 1px solid #2f2a22; box-shadow: var(--shadow); min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; font: 12.5px var(--mono); color: #8c8374; border-bottom: 1px solid #2f2a22; }
.term-bar .lights i { background: #3b352b; }
.term pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #e9e2d4; }
.term code { all: unset; white-space: pre; }
.term .p { color: var(--gold); }
.term .dim { color: #8c8374; }
.term .ok { color: var(--green); }
.term mark { background: rgba(242, 169, 59, .28); color: #fff3dc; border-radius: 3px; padding: 0 2px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: 60px 16px 40px; }
.faq h2 { text-align: center; margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font: 400 21px/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 26px var(--sans); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); }

/* Final CTA */
.final { padding: 60px 16px 80px; position: relative; isolation: isolate; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1; filter: blur(40px); opacity: .9;
  background:
    radial-gradient(40% 60% at 35% 55%, rgba(242, 169, 59, .45), transparent 70%),
    radial-gradient(40% 60% at 65% 50%, rgba(238, 162, 180, .38), transparent 70%);
}
@media (prefers-color-scheme: dark) { .final::before { opacity: .45; } }
.final-card {
  max-width: 880px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--rule);
  border-radius: 28px; padding: clamp(40px, 7vw, 80px) 24px; box-shadow: var(--shadow);
}
.final-card img { margin: 0 auto 22px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(217, 130, 43, .6); }
.final-card h2 { font-size: clamp(36px, 5.4vw, 60px); }
.final-card > p:not(.fine) { color: var(--ink-2); max-width: 470px; margin: 16px auto 28px; }

/* Footer */
.foot { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.foot .brand { font-size: 17px; color: var(--ink); }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0 0 0 auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .vault { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .feature { padding: 48px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero { padding-top: 60px; }
  .showcase { margin-top: 44px; }
  .browser-bar .url { display: none; }
  .shots { aspect-ratio: 4 / 5; }
  .shot { object-position: 100% 0; }
  .browser-bar { justify-content: space-between; }
  .checks { grid-template-columns: 1fr; }
  .manifesto { padding-top: 80px; }
  .foot p { margin: 0; width: 100%; }
  .markup-card { padding: 24px 20px; }
  .mk-note { margin-top: 14px; width: 100%; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .seg button { padding: 8px 12px; font-size: 13px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .heat-stats { gap: 10px; }
}
