/* onlyfansplugin.com: a "browser lab" guide. Moss green hero, paper body,
   lime highlights. Familjen Grotesk for display, Figtree for
   reading. */

:root {
  --paper: oklch(0.975 0.008 120);
  --paper-2: oklch(0.945 0.014 125);
  --white: oklch(0.995 0.003 120);
  --ink: oklch(0.22 0.02 160);
  --ink-soft: oklch(0.42 0.02 160);
  --ink-mute: oklch(0.55 0.018 160);
  --line: oklch(0.88 0.015 140);
  --moss: oklch(0.34 0.07 162);
  --moss-deep: oklch(0.26 0.055 162);
  --moss-ink: oklch(0.93 0.03 140);
  --lime: oklch(0.9 0.17 125);
  --accent: oklch(0.47 0.11 158);
  --flag: oklch(0.55 0.17 30);
  --flag-soft: oklch(0.955 0.025 35);
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar { background: var(--moss-deep); color: var(--moss-ink); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; }
.topbar nav a { color: var(--moss-ink); text-decoration: none; font-size: 15px; margin-left: 22px; opacity: 0.85; }
.topbar nav a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { background: var(--moss); color: var(--moss-ink); padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--lime); margin-bottom: 18px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34ch; margin: 0 0 26px; color: var(--moss-ink); }
.hero .meta { font-size: 14px; color: oklch(0.8 0.04 145); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 16px; padding: 13px 20px; border-radius: 12px; text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--moss-deep); }
.btn-ghost { color: var(--white); background: oklch(1 0 0 / 0.08); }
.btn-ghost:hover { background: oklch(1 0 0 / 0.14); }

.mock { filter: drop-shadow(0 30px 50px oklch(0.15 0.04 160 / 0.45)); animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- body layout ---------- */
.page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(48px, 7vw, 88px) 0 24px; }
.rail { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.rail p { font-family: var(--display); font-weight: 700; margin: 0 0 10px; }
.rail ol { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rail li { counter-increment: r; margin: 0 0 8px; }
.rail a { color: var(--ink-soft); text-decoration: none; display: flex; gap: 10px; }
.rail a::before { content: counter(r, decimal-leading-zero); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.rail a:hover { color: var(--ink); }

.content { max-width: 720px; }
.content section { margin-bottom: clamp(56px, 7vw, 88px); scroll-margin-top: 24px; }
.content h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; }
.content h3 { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.015em; margin: 0 0 6px; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin-bottom: 6px; }

/* feature tokens: what an extension adds */
.content .adds, .content .chips, .content .pb-list { padding-left: 0; }
.adds { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.content .adds li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.adds li b { color: var(--accent); }

/* ---------- extension spec rows ---------- */
.ext { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.ext:last-of-type { border-bottom: 1px solid var(--line); }
.ext .who h3 { font-size: 22px; }
.ext .who .src { font-size: 14px; color: var(--ink-mute); line-height: 1.4; }
.ext .glyph { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; object-fit: contain; background: var(--white); border: 1px solid var(--line); padding: 5px; }
.tl { display: inline-flex; align-items: center; gap: 8px; }
.tl img { width: 20px; height: 20px; object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 0; list-style: none; }
.content .chips li { margin: 0; font-size: 14px; background: var(--paper-2); border-radius: 8px; padding: 4px 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15.5px; margin: 0 0 6px; }
.facts dt { color: var(--ink-mute); }
.facts dd { margin: 0; }
.ext .links { font-size: 15.5px; margin: 10px 0 0; }

/* ---------- comparison ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: 15px; color: var(--ink-mute); font-weight: 700; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- partner popup: looks like an extension popup opening from a toolbar ---------- */
.partner-box { margin: 0 0 clamp(56px, 7vw, 88px); }
.toolbar-strip { display: flex; align-items: center; gap: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.toolbar-strip .dots { display: flex; gap: 6px; }
.toolbar-strip .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.toolbar-strip .url { flex: 1; background: var(--white); border-radius: 8px; padding: 6px 12px; font-size: 14px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar-strip .pin { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--lime); }
.toolbar-strip .pin img { width: 18px; height: 18px; }
.popup { position: relative; margin: 14px 0 0 auto; width: min(480px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 24px 50px oklch(0.25 0.04 160 / 0.16); }
.popup::before { content: ""; position: absolute; top: -8px; right: 22px; width: 14px; height: 14px; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.pb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pb-head img { width: 34px; height: 34px; }
.pb-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.pb-note { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-mute); background: var(--paper-2); border-radius: 999px; padding: 3px 10px; }
.popup .pb-title { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
.popup p { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; }
.pb-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 15.5px; }
.content .pb-list li { display: flex; gap: 10px; margin: 0 0 6px; }
.pb-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23163a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.pb-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pb-cta .price { font-size: 14px; color: var(--ink-mute); }
.btn-moss { background: var(--moss); color: var(--white); }
.btn-moss:hover { background: var(--moss-deep); }

/* ---------- downloaders ---------- */
.stop { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--flag-soft); border-radius: 18px; padding: 24px 26px; margin-bottom: 30px; }
.stop svg { width: 64px; height: 64px; }
.content .stop p { margin: 0; font-size: 19px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 18px; }
.reasons div { font-size: 16.5px; }
.reasons .n { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--flag); margin-bottom: 8px; }
.content .reasons h3 { font-size: 19px; margin-bottom: 6px; }
.content .reasons p { margin: 0; }

/* ---------- install check ---------- */
.check { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 8px; margin-bottom: 18px; }
.check label { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; border-radius: 12px; cursor: pointer; transition: background 0.2s var(--ease); }
.check label:hover { background: var(--paper); }
.check input { appearance: none; width: 26px; height: 26px; margin: 2px 0 0; border-radius: 8px; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.check input:checked { background: var(--lime); border-color: var(--lime); }
.check input:checked::after { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='%23163a2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.check strong { display: block; font-family: var(--display); font-size: 18px; }
.check span { color: var(--ink-soft); font-size: 16px; }
.score { display: flex; align-items: center; gap: 14px; padding: 14px 16px 10px; font-family: var(--display); font-weight: 700; }
.meter { flex: 1; height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }

/* ---------- faq ---------- */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-family: var(--display); font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
.content details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { background: var(--moss-deep); color: oklch(0.82 0.03 145); padding: 40px 0 48px; font-size: 15px; margin-top: 40px; }
footer .brand { margin-bottom: 14px; }
footer p { margin: 0 0 8px; max-width: 70ch; }

/* 404 */
.notfound { padding: clamp(60px, 10vw, 120px) 0; }
.notfound h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; margin: 0 0 12px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .content { min-width: 0; }
  .rail { display: none; }
  .mock { animation: none; }
  .reasons { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .topbar nav { display: none; }
  .ext { grid-template-columns: 1fr; gap: 6px; }
  .table-scroll table { min-width: 560px; font-size: 15px; }
  .table-scroll { margin-inline: -20px; padding-inline: 20px; }
  .stop { grid-template-columns: 1fr; }
  .popup { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
