/* Farstripes plugins site. One stylesheet, no build step. */
@font-face {
  font-family: "Archivo";
  src: local("Archivo"), url("assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10222B;
  --panel: #16303C;
  --paper: #EEF2F1;
  --red: #FF5A45;
  --amber: #FFB53C;
  --green: #34D17B;
  --blue: #4DB6E8;

  /* light theme (default) */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: #E2E9E7;
  --text: var(--ink);
  --muted: #4A5D66;
  --line: rgba(16, 34, 43, .16);
  --link: #B8321F;
  --accent: var(--red);
  --head-bg: var(--ink);
  --head-text: var(--paper);
  --code-bg: #E2E9E7;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 4px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: var(--panel);
    --surface-2: #1C3A48;
    --text: var(--paper);
    --muted: #A9BAC0;
    --line: rgba(238, 242, 241, .14);
    --link: #FF8A7A;
    --code-bg: #0B1A21;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 850; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
p + p { margin-top: .8em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- site header ---------- */
.site-head { background: var(--head-bg); color: var(--head-text); border-bottom: 1px solid rgba(238, 242, 241, .1); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-weight: 900; font-size: 19px; letter-spacing: .06em; transform: scaleX(1.08); transform-origin: left; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: 15.5px; font-weight: 500; }
.nav a { color: var(--head-text); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* ---------- hero (the one loud thing) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% -20% 38%;
  background: repeating-linear-gradient(114deg,
    var(--red) 0 10px, transparent 10px 22px,
    var(--red) 22px 26px, transparent 26px 40px,
    var(--amber) 40px 44px, transparent 44px 58px,
    var(--red) 58px 92px, transparent 92px 300px);
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  transform-origin: right;
  animation: sweep .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes sweep { from { transform: translateX(18%); opacity: 0; } to { transform: none; } }
.hero .wrap { position: relative; }
.hero .wordmark { display: block; font-weight: 900; font-size: clamp(30px, 8.6vw, 128px); letter-spacing: .03em; line-height: .9; transform: scaleX(1.08); transform-origin: left; }
.hero h1 { margin-top: 28px; font-size: clamp(24px, 3.6vw, 40px); font-weight: 800; max-width: 22ch; }
.hero .lede { margin-top: 18px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 19px); color: #C9D6D9; }
.hero .lede strong { color: var(--paper); font-weight: 700; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-band { position: relative; margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; color: #C9D6D9; }
.hero-band b { color: var(--paper); font-weight: 700; }

/* product page hero is quieter */
.hero.small { padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.hero.small::before { inset: -20% -10% -20% 62%; }
.hero.small h1 { margin-top: 0; font-size: clamp(32px, 5vw, 56px); max-width: 18ch; font-weight: 850; }
.crumb { font-size: 15px; margin-bottom: 18px; color: #C9D6D9; }
.crumb a { color: #C9D6D9; }
.hero .plugin-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.hero .plugin-id img { width: 64px; height: 64px; border-radius: 10px; }
.hero .plugin-id span { font-size: 15px; color: #C9D6D9; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--red); color: var(--ink); }
.btn-primary:hover { background: #FF7461; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(238, 242, 241, .08); }
.btn[aria-disabled="true"] { background: transparent; color: inherit; border: 2px dashed currentColor; opacity: .7; cursor: not-allowed; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(22px, 2.6vw, 28px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: .8em 0; }
.prose li + li { margin-top: .35em; }
.prose p + ul, .prose ul + p { margin-top: .8em; }
.note { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--amber); background: var(--surface); font-size: 15.5px; }
.token { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: #FFE3A3; color: var(--ink); padding: .05em .35em; border-radius: 3px; overflow-wrap: anywhere; }

/* ---------- product cards: shelf tags ---------- */
.shelf { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tag { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tag::before { content: ""; height: 10px; background: repeating-linear-gradient(114deg, var(--a, var(--red)) 0 14px, transparent 14px 20px); }
.tag-body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tag-top { display: flex; gap: 16px; align-items: center; }
.tag-top img { width: 56px; height: 56px; border-radius: 8px; flex: none; }
.tag h3 a { color: inherit; text-decoration: none; }
.tag h3 a:hover { text-decoration: underline; }
.tag .price { font-size: 15px; color: var(--muted); margin-top: 2px; }
.tag p { color: var(--muted); font-size: 16px; flex: 1; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.tag-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-actions .btn { min-height: 42px; padding: 8px 14px; font-size: 15px; flex: 1 1 auto; }
.tag-actions .btn-ghost { flex: 0 0 auto; }
.tag .btn-ghost:hover { background: var(--surface-2); }
.pro-strip { margin-top: 22px; display: grid; gap: 18px 32px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 26px 24px; border: 2px solid var(--red); border-radius: var(--radius); background: var(--surface); }
.pro-strip p { color: var(--muted); margin-top: 8px; }
.pro-strip .tag-actions { justify-content: flex-end; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 3px solid var(--text); }
.steps li::before { content: counter(s); display: block; font-weight: 900; font-size: 44px; line-height: 1; margin-bottom: 12px; color: var(--accent); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- coming next ---------- */
.next { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border: 1px dashed var(--line); border-radius: var(--radius); }
.next > div { padding: 24px; }
.next > div + div { border-left: 1px dashed var(--line); }
.next p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- origin story ---------- */
.origin { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.origin p { color: var(--muted); }
.origin .big { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; line-height: 1.3; color: var(--text); }

/* ---------- product page ---------- */
.two { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature-list li { padding-left: 22px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--a, var(--red)); transform: skewX(-24deg); }
.feature-list b { display: block; font-weight: 700; }
.feature-list span { color: var(--muted); font-size: 16px; }
.for-who { list-style: none; padding: 0; margin: 16px 0 0; }
.for-who li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.for-who li:first-child { border-top: 1px solid var(--line); }
.shots { display: grid; gap: 28px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.shots figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 70ch; }
.shots.duo { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; max-width: 68ch; color: var(--muted); }

table.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 800; border-bottom: 2px solid var(--text); }
.compare td.c, .compare th.c { text-align: center; width: 18%; }
.compare tbody th { font-weight: 500; }
.compare .yes { font-weight: 800; color: var(--text); }
.compare .no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

.hooks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hooks li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hooks code { background: transparent; padding: 0; font-weight: 700; font-size: 15px; }
.hooks span { display: block; margin-top: 4px; color: var(--muted); font-size: 15.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border: 2px solid var(--red); }
.plan .amount { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.plan .amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 16px; flex: 1; }
.plan li + li { margin-top: .3em; }

/* ---------- changelog ---------- */
.log { display: grid; gap: 40px; }
.log article h2 { font-size: clamp(22px, 2.6vw, 28px); }
.release { margin-top: 18px; padding-left: 18px; border-left: 3px solid var(--a, var(--red)); }
.release h3 { font-size: 17px; }
.release h3 span { font-weight: 500; color: var(--muted); }
.release ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 16px; }
.release li + li { margin-top: .25em; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #C9D6D9; padding: 48px 0 56px; font-size: 15px; }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-foot h2 { font-size: 15px; font-weight: 800; color: var(--paper); margin-bottom: 10px; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #C9D6D9; }
.site-foot a:hover { color: var(--paper); }
.site-foot .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(238, 242, 241, .12); font-size: 13.5px; color: #8EA2A9; }

@media (max-width: 820px) {
  .origin, .two, .pro-strip { grid-template-columns: 1fr; }
  .pro-strip .tag-actions { justify-content: flex-start; }
  .next > div + div { border-left: 0; border-top: 1px dashed var(--line); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .hero::before { inset: -10% -45% 25% 40%; opacity: .75; }
  .hero.small::before { inset: -10% -30% 50% 55%; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .nav { gap: 2px 18px; }
  .shelf, .plans { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 10px 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
