/* Affilyatics one-pager. Self-contained: everything is relative to this folder, so the whole folder can be moved to a new domain root. */
@font-face { font-family: "Oswald"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Oswald-Regular.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Oswald-Medium.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("fonts/Oswald-SemiBold.woff2") format("woff2"); }

:root {
  --navy: #14244a; --orange: #f8991d;
  --bg: #f3f5fa; --panel: #ffffff; --text: #14244a; --muted: #536083; --line: #dde2ee; --soft: #e9edf6;
  --accent: #f8991d; --on-accent: #14244a; --good: #1a7f4b;
  --shadow: 0 18px 50px rgba(20, 36, 74, .16);
  --head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #020b1e; --panel: #07142e; --text: #f1f3f8; --muted: #a9b2c8; --line: rgba(255,255,255,.14); --soft: rgba(255,255,255,.06);
  --good: #5bbf85; --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #020b1e; --panel: #07142e; --text: #f1f3f8; --muted: #a9b2c8; --line: rgba(255,255,255,.14); --soft: rgba(255,255,255,.06);
    --good: #5bbf85; --shadow: 0 18px 50px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* logos / theme swapping */
.logo-dark-theme { display: none; }
:root[data-theme="dark"] .logo-light-theme { display: none; }
:root[data-theme="dark"] .logo-dark-theme { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light-theme { display: none; }
  :root:not([data-theme="light"]) .logo-dark-theme { display: block; }
}
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--head); font-weight: 500; letter-spacing: .04em; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.iconbtn.menubtn { display: none; }                             /* phones and tablets only (site.js adds the button) */
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; color: var(--text); cursor: pointer; }
.iconbtn:hover { border-color: var(--accent); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; } :root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-sun { display: block; } :root:not([data-theme="light"]) .icon-moon { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 600; letter-spacing: .04em; font-size: 17px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(.96); }
.top .btn { padding: 9px 18px; font-size: 15px; }

/* hero */
.hero { padding: 64px 0 36px; }
.hero .wrap { text-align: center; }
.eyebrow { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-family: var(--head); font-weight: 500; letter-spacing: .12em; font-size: 14px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 40em; margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero .cta, .hero .note { justify-content: center; }
.hero .note { font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 40px; }
.hero .note span::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 6px; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--panel); }
.shot img { width: 100%; }

/* sections */
section { padding: 20px 0 72px; }   /* titles sit close to the top of their section */
.sechead { max-width: 720px; margin-bottom: 38px; }
.sechead h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.sechead p { color: var(--muted); font-size: 18px; margin: 0; }
.alt { background: var(--soft); }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: center; margin-bottom: 60px; }
.showcase.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.showcase.flip .txt { order: 2; }
.showcase h3 { font-size: 28px; margin-bottom: 12px; }
.showcase p { color: var(--muted); }
.showcase ul { padding-left: 20px; color: var(--muted); margin: 0; } .showcase li { margin: 6px 0; }
.showcase:last-child { margin-bottom: 0; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 6px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 600; font-size: 22px; margin-bottom: 14px; }
:root[data-theme="dark"] .step::before { background: var(--accent); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step::before { background: var(--accent); color: var(--on-accent); } }
.step h3 { font-size: 22px; margin-bottom: 6px; } .step p { color: var(--muted); margin: 0; }

/* plans */
.plan { display: flex; flex-direction: column; }
.plan .tag { font-family: var(--head); letter-spacing: .12em; font-size: 13px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.plan h3 { font-size: 30px; margin-bottom: 4px; }
.plan .price { font-family: var(--head); font-size: 20px; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.small { font-size: 14.5px; color: var(--muted); }

/* privacy */
.priv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.priv ul { margin: 0; padding: 0; list-style: none; } .priv li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.priv li::before { content: "🔒"; position: absolute; left: 0; font-size: 15px; top: 12px; }

/* faq */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-family: var(--head); font-weight: 500; letter-spacing: .03em; font-size: 20px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; color: var(--accent); transition: transform .15s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* closing + footer */
.closing { text-align: center; }
.closing h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.closing p { color: var(--muted); max-width: 34em; margin-inline: auto; }
.closing .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer img { height: 60px; width: auto; }
footer a { text-decoration: none; border-bottom: 1px solid var(--line); } footer a:hover { border-bottom-color: var(--accent); color: var(--text); }
.disclaimer { max-width: 900px; font-size: 13.5px; line-height: 1.55; }

/* terms page */
.doc { padding: 56px 0 30px; }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 54px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 15px; }
.toc b { font-family: var(--head); letter-spacing: .1em; font-size: 13px; color: var(--muted); display: block; margin-bottom: 10px; text-transform: uppercase; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc article { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 48px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 26px; margin: 38px 0 10px; }
.doc h3 { font-size: 20px; margin: 22px 0 6px; }
.doc ul { padding-left: 22px; } .doc li { margin: 5px 0; }
.callout { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border-radius: 10px; padding: 14px 18px; margin: 0 0 26px; font-size: 16px; }

@media (max-width: 960px) {
  .showcase, .showcase.flip, .priv { grid-template-columns: 1fr; }
  .showcase.flip .txt { order: 0; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .doc .wrap { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; }
  .nav { display: none; }
  .top .wrap { gap: 12px; } .top .iconbtn { margin-left: auto; }
}
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } section { padding: 20px 0 54px; } .hero { padding-top: 40px; } .top .btn { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* live demo frame (the real dashboard in an iframe, scaled down on small screens by site.js) */
.demo { text-align: left; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; background: var(--panel); margin-top: 8px; }
.demo-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 13.5px; color: var(--muted); }
.demo-chrome .dots { display: inline-flex; gap: 6px; } .demo-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.demo-chrome .dots i:nth-child(1) { background: #ec6a5e; } .demo-chrome .dots i:nth-child(2) { background: #f4bf4f; } .demo-chrome .dots i:nth-child(3) { background: #61c554; }
.demo-title { flex: 1; text-align: center; font-family: var(--head); letter-spacing: .05em; }
.demo-chrome a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); white-space: nowrap; }
.demo-viewport { position: relative; overflow: hidden; background: var(--bg); }
.demo-viewport iframe { border: 0; display: block; transform-origin: top left; width: 1160px; height: 880px; background: var(--bg); }
.demo-note { margin-top: 14px; text-align: center; }

/* trial + guarantee */
.trial { display: inline-block; align-self: flex-start; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--head); font-weight: 600; letter-spacing: .04em; font-size: 15px; }
.guarantee { margin-top: 22px; display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--good); border-radius: 12px; background: color-mix(in srgb, var(--good) 8%, var(--panel)); }
.guarantee b { font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.guarantee span { color: var(--muted); font-size: 16px; }
.guarantee a { color: var(--text); }

/* the three headline values, right under the hero text */
.pillars { margin: 28px auto 8px; max-width: 980px; text-align: left; }
.pillars .card { border-top: 3px solid var(--orange, #f8991d); }
.pillars .card h3 { margin-top: 0; }

/* 8 feature cards on two rows of four */
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g4 { grid-template-columns: 1fr; } }
.g4 .card { padding: 20px; }
.g4 .card p { font-size: 15px; }
/* section titles alternate: left, right, left... */
@media (min-width: 761px) {
  main > section:nth-of-type(even) .wrap:not(.priv) > .sechead { margin-left: auto; text-align: right; }
  main > section:nth-of-type(even) .priv > .sechead { text-align: right; }
}

/* footer centered */
footer { text-align: center; }
footer .row { justify-content: center; }
footer .disclaimer { margin-left: auto; margin-right: auto; }

/* compact hero: the live demo is on the first screen */
.hero { padding: 26px 0 28px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 8px; }
.hero p.lead { font-size: 17px; margin-bottom: 0; }
.hero .cta { margin: 14px 0 8px; }
.hero .cta .btn { padding-top: 9px; padding-bottom: 9px; }
.hero .note { margin-bottom: 18px; font-size: 13.5px; }
.pillars { margin-top: 34px; }
.hero p.lead { max-width: 60em; }
.hero h1 { font-size: clamp(26px, 3vw, 40px); }
.hero h1 { font-size: clamp(22px, 2.55vw, 36px); text-wrap: balance; }

/* pricing: three plans */
.plans .price { font-size: 38px; }
.plans .price small { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plans .altprice { margin: -4px 0 12px; font-size: 15px; color: var(--muted); }
.plans .altprice b { color: var(--text); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* the demo is clearly a framed, separate thing */
.demo-badge { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #14244a); font-family: var(--font, inherit); font-size: 11px; font-weight: 700; letter-spacing: .1em; vertical-align: 1px; }
.demopage h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 8px; }
.backlink { margin: 0 0 6px; text-align: left; font-size: 15px; } .backlink a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); } .backlink a:hover { color: var(--text); border-bottom-color: var(--accent); }
.stage { margin-top: 22px; padding: 16px; border: 2px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 22px; background: color-mix(in srgb, var(--accent) 5%, var(--soft)); }
.stage-label { margin: 0 0 12px; font-size: 14px; color: var(--muted); text-align: left; }
.stage .demo { margin-top: 0; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.nav a[aria-current="page"] { color: var(--accent); }
.plans .price { color: var(--text); }

/* ---- pricing cards: identical rows, billing toggle, comparison table ---- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .pnote { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.plan .feats { list-style: none; margin: 14px 0 18px; padding: 0; border-top: 1px solid var(--line); }
.plan .feats li { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 42px; box-sizing: border-box; padding: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan .feats .f { color: var(--text); }
.plan .feats .v { text-align: right; color: var(--muted); font-size: 14px; white-space: nowrap; }
.plan .feats li::before { content: none; }
.yes { color: var(--good); font-weight: 700; font-size: 16px; line-height: 1; } .no { color: var(--muted); opacity: .55; }
.plan > .btn { margin-top: auto; }
.btn.wide { width: 100%; justify-content: center; text-align: center; }
.trialnote { margin: 8px 0 0; text-align: center; font-size: 13px; line-height: 1.4; min-height: 2.8em; color: var(--muted); }
.plan:not(.pro) > .btn + .trialnote, .plan:not(.pro) .trialnote { min-height: 0; }
.billing { display: flex; width: fit-content; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft, transparent); margin: 0; }
.billing button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #14244a); font-weight: 600; }
.billing .save { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--good) 22%, transparent); color: inherit; font-size: 11.5px; font-weight: 700; }
.billing button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .55); color: #14244a; }
.pro .p-month, .pro .p-year { display: none; }
.pro:not(.is-year) .p-month, .pro.is-year .p-year { display: block; }
/* same header height in all three cards so the feature rows line up */
.plan .phead { min-height: 252px; text-align: center; }
.plan .slot { display: flex; justify-content: center; align-items: center; height: 40px; margin: 6px 0 14px; }
.plan .pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--soft, transparent); }
.plan .pricebox { min-height: 118px; }
.compare { margin-top: 38px; }
.compare h3 { font-size: 24px; margin: 0 0 14px; }
.compare table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-family: var(--head); font-size: 18px; letter-spacing: .03em; background: var(--soft, transparent); }
.compare tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); }
.compare th:first-child { width: 34%; text-align: left; }
.compare .hl { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare thead th.hl { color: var(--accent); }
.compare tr.grp th { text-align: left; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--soft, transparent); padding: 8px 14px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .muted { font-size: 13px; }
.compare .tablewrap { overflow-x: auto; }
@media (max-width: 960px) { .plan .phead { min-height: 0; } .compare table { min-width: 640px; } }

/* the three headline values under the demo */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px auto 6px; max-width: 1120px; text-align: left; }
.pillar { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel) 62%); transition: transform .18s, box-shadow .18s, border-color .18s; }
.pillar:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.pico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #14244a); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.pico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 2px 0 6px; font-size: 20px; line-height: 1.2; }
.pillar p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pillar { transition: none; } .pillar:hover { transform: none; } }

/* header zone as a column: tag, name, price, note, THEN the toggle / label (same positions in all three cards) */
.plan .phead { display: flex; flex-direction: column; align-items: stretch; }
.plan .phead .pricebox { order: 3; }
.plan .phead .slot { order: 4; margin: 14px 0 12px; }

.compare .rowsub { font-size: 12.5px; font-weight: 400; }
.compare tbody th[scope="row"] .rowsub { color: var(--muted); }

/* corner ribbon on the Free card */
.plan.has-ribbon { position: relative; overflow: hidden; }
.ribbon { position: absolute; top: 0; left: 0; width: 200px; height: 200px; overflow: hidden; pointer-events: none; z-index: 2; }
.ribbon span { position: absolute; top: 44px; left: -80px; width: 290px; padding: 6px 0; text-align: center; transform: rotate(-45deg); background: var(--accent); color: var(--on-accent, #14244a); font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); white-space: nowrap; }
@media (max-width: 960px) { .ribbon span { font-size: 12px; } }
.plan .feats { flex: 1 1 auto; align-content: start; }

.price .was { font-size: .62em; font-weight: 500; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; margin-right: 4px; }

.plan .pill.hot { background: var(--accent); color: var(--on-accent, #14244a); border-color: var(--accent); font-weight: 700; }

.ribbon.right { left: auto; right: 0; }
.ribbon.right span { left: auto; right: -80px; transform: rotate(45deg); }

.buynote { text-align: center; margin: 14px auto 0; max-width: 720px; color: var(--muted); }

/* "Add to Chrome" button (header, hero and a floating one on small screens) */
.btn.store { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border-color: var(--line); color: var(--text); font-weight: 600; white-space: nowrap; }
.btn.store:hover { border-color: var(--accent); }
.btn.store .chromeico { flex: 0 0 auto; }
.btn.store.fab-store { display: none; position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 620px) { .top .btn.store { display: none; } .btn.store.fab-store { display: inline-flex; } body { padding-bottom: 72px; } }
@media (max-width: 960px) and (min-width: 621px) { .top .btn.store span { display: none; } .top .btn.store { padding: 9px 11px; } }
/* full demo page: a wider column so the demo is shown at its natural 1160px width (the dashed frame no longer shrinks it) */
.demopage .wrap { width: min(1220px, 100% - 40px); }
.stage { padding: 12px; }

/* start dialog (Free plan button): two ways to install */
.modal { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 30px 28px 26px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow); text-align: center; }
.modal::backdrop { background: rgba(2, 11, 30, .6); }
.modal h2 { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 26px; }
.modal p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.modal-opts { display: grid; gap: 12px; }
.modal-opts .btn { width: 100%; }
.modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.modal-x:hover { color: var(--text); }

/* analytics choice bar (shown only on the production site, until the visitor answers) */
.cbar { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.5; }
.cbar p { margin: 0; flex: 1 1 340px; color: var(--text); }
.cbar div { display: flex; gap: 8px; }
.cbar .btn { padding: 8px 18px; font-size: 15px; }

/* ---- SEO pages (built by docs/site-pages/build.py) ---- */
.article { padding: 28px 0 56px; }
.article article { max-width: 820px; margin: 0 auto; }
.article .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.article h1 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 8px; text-wrap: balance; }
.article .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.article .lead { font-size: 19px; }
.article h2 { font-size: 26px; margin: 36px 0 10px; }
.article ul, .article ol { padding-left: 22px; } .article li { margin: 6px 0; }
.article article a:not(.btn) { text-decoration-color: var(--accent); text-underline-offset: 3px; }
figure { margin: 22px 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: var(--panel); }
figure.narrow, figure:has(img[width="840"]) { max-width: 440px; margin-left: auto; margin-right: auto; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.article .tablewrap { overflow-x: auto; margin: 14px 0 18px; }
.article table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--panel); font-size: 15px; line-height: 1.45; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article thead th { font-family: var(--head); letter-spacing: .03em; background: var(--soft); }
.sources { font-size: 15px; color: var(--muted); }
.ctabox { margin-top: 44px; padding: 22px 24px; border: 1px solid var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); text-align: center; }
.article .ctabox h2 { margin-top: 0; }
.ctabox .cta { justify-content: center; margin-bottom: 0; }
.article ul.guidelist { list-style: none; padding: 0; }
.guidelist li { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.guidelist a { display: block; font-family: var(--head); font-size: 20px; text-decoration: none; }
.guidelist span { color: var(--muted); font-size: 15.5px; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 18px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.calc label { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font-size: 14.5px; color: var(--muted); }
.calc input { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.calcout { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.calcout span { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.calcout b { display: block; font-family: var(--head); font-size: 26px; color: var(--text); overflow-wrap: anywhere; }
.shots figure { max-width: 980px; margin-left: auto; margin-right: auto; }
footer .sitemap { font-size: 15px; }
@media (max-width: 620px) { .calc { grid-template-columns: 1fr; } .calcout { grid-template-columns: 1fr 1fr; } }

/* language switcher (footer) */
footer .langs { gap: 8px 20px; font-size: 14px; }
footer .langs a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* translated pages: longer labels need a little more room in the plan cards */
html:not([lang="en"]) .plan .feats li { height: 50px; line-height: 1.25; }

/* language menu in the header: a compact button (flag + code) that opens the list with flags and full names */
.langsel { position: relative; flex: none; font-family: var(--head); font-weight: 600; font-size: 15px; }
.langsel summary { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); letter-spacing: .04em; list-style: none; cursor: pointer; user-select: none; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel, .langsel[open] { border: 0; padding: 0; }                         /* not a FAQ entry */
.langsel summary { font: inherit; letter-spacing: .04em; }
.langsel summary::after { content: none; }
.langsel summary:hover, .langsel[open] summary { border-color: var(--accent); }
.langsel summary:focus-visible, .langsel .menu a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.langsel .flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); }
.langsel .chev { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.langsel[open] .chev { transform: rotate(180deg); }
.langsel .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: var(--shadow); }
.langsel .menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 7px; color: var(--text); text-decoration: none; white-space: nowrap; }
.langsel .menu a:hover { background: rgba(248, 153, 29, .14); }
.langsel .menu a[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.langsel + .iconbtn { flex: none; }
@media (max-width: 960px) { .top .langsel { margin-left: auto; } .top .langsel + .iconbtn { margin-left: 0; } }
/* narrower desktops: tighter header so the list fits beside the longer French, German and Spanish labels */
@media (min-width: 961px) and (max-width: 1240px) { .top .wrap { gap: 12px; } .top .nav { gap: 13px; font-size: 14.5px; } .top .btn { padding: 8px 11px; font-size: 14px; } .brand img { height: 48px; } }
html:not([lang="en"]) .top .nav { gap: 14px; font-size: 15px; }
html:not([lang="en"]) .top .wrap { gap: 12px; }
html:not([lang="en"]) .top .btn { padding-left: 12px; padding-right: 12px; }
.top .nav a, .top .btn { white-space: nowrap; }

/* home page video */
.videoblock { padding: 8px 0 56px; text-align: center; }
.videoblock h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 8px; }
.videoblock p { color: var(--muted); }
.yt { position: relative; max-width: 960px; margin: 22px auto 0; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: #050d22; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 34px rgba(0, 0, 0, .45); cursor: pointer; }
.yt-play svg { width: 40px; height: 40px; fill: currentColor; }
.yt-play:hover:not(:disabled) { filter: brightness(1.07); }
.yt-play:disabled { cursor: default; opacity: .75; }
.yt-soon { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; padding: 6px 18px; border-radius: 999px; background: rgba(3, 9, 24, .86); color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .05em; font-size: 16px; white-space: nowrap; }
.yt-soon[hidden] { display: none; }
@media (max-width: 620px) { .yt-play { width: 60px; height: 60px; } .yt-play svg { width: 28px; height: 28px; } .yt-soon { bottom: 8px; font-size: 13px; padding: 4px 12px; } }

/* the menu: the same five items everywhere, with the one you are on highlighted */
.nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 960px) {
  html.hasmenu .iconbtn.menubtn { display: inline-grid; flex: none; }
  html.hasmenu .top .menubtn { margin-left: 0; }
  html.hasmenu .top.menuopen .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 6px 16px 12px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); font-size: 18px; }
  html.hasmenu .top.menuopen .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  html.hasmenu .top.menuopen .nav a:last-child { border-bottom: 0; }
  html.hasmenu .top.menuopen .nav a[aria-current] { color: var(--accent); }
}
@media (max-width: 430px) { .top .wrap { gap: 8px; } .top .brand img { height: 40px; } }

/* the "Bug or idea?" button, in the site's colours */
html body .eblyn-bw-btn { background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
html body .eblyn-bw-btn:hover { background: var(--panel); border-color: var(--accent); }
/* it must never cover the analytics question, and on phones it sits above the floating "Add to Chrome" button */
body:has(#cbar) .eblyn-bw-btn { display: none; }
@media (max-width: 620px) { html body .eblyn-bw-btn { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); padding: 9px 13px; font-size: 12.5px; } }
