/* The account pages (/login, /downloads, /account): the /plugins page's Pro Dark look, without its stage. */
:root {
  --bg: #111416; --raise: #171b1e; --surface: #1f2528; --ink: #f4f3ef; --text: #c9cdd1; --muted: #9aa0a6; --line: #2c3337; --edge: #5a646b;
  --accent: #7fa3d6; --hit: #e07a6c; --ring: #4faf84; --amber: #d9a441;
  --f-display: 'Geist', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Geist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font: 17px/1.55 var(--f-body); overflow-x: clip; position: relative; }
body::before { content: ''; position: absolute; inset: -240px -20% auto; height: 760px; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 34% at 26% 58%, rgba(224, 122, 108, .13), transparent 70%), radial-gradient(36% 32% at 74% 56%, rgba(79, 175, 132, .11), transparent 70%), radial-gradient(30% 26% at 52% 34%, rgba(127, 163, 214, .12), transparent 70%); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding-block: 22px 0; }
.mark { font: 700 18px/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; border: 0; border-radius: 999px; font: 600 15px/1.25 var(--f-body); text-decoration: none; color: #111416; background: var(--accent); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.pill:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(127, 163, 214, .55); }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.pill.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.pill.danger { background: var(--hit); }
.pill.small { padding: 7px 15px; font-size: 14px; }
.pill:disabled { opacity: .55; cursor: default; }
.pill svg { width: 15px; height: 15px; flex: none; }
.link { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* headings */
.head { padding-block: clamp(44px, 8vw, 92px) clamp(22px, 4vw, 40px); }
h1 { font: 700 clamp(46px, 9vw, 96px)/.95 var(--f-display); letter-spacing: -0.05em; color: var(--ink); margin: 0; }
.lede { margin: 16px 0 0; font-size: clamp(17px, 1.7vw, 20px); color: var(--text); max-width: 56ch; overflow-wrap: anywhere; }
.eyebrow { font: 500 12.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h2:focus { outline: none; }
h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.1 var(--f-display); letter-spacing: -0.035em; color: var(--ink); margin: 0; }
h3 { font: 600 18px/1.3 var(--f-display); letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.45; }
.mono { font-family: var(--f-mono); font-size: .9em; }
.msg { margin: 0; }
.msg.err { color: var(--hit); }
.msg.ok { color: var(--ring); }
.loading { padding-block: 10px 80px; color: var(--muted); }

/* sections of a page, split by hairlines */
.sect { padding-block: clamp(30px, 5vw, 52px); border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.sect-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 20px; }
.sect-note { margin: 18px 0 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row-main { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.row-main p { margin: 3px 0 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; list-style: none; padding: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.4; }
.tag.ok { color: var(--ring); }
.tag.warn { color: var(--amber); }
.tag.off { color: var(--muted); }
.tag.beta { color: var(--accent); }
.empty { margin: 0; max-width: 62ch; }
.confirm { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.confirm p { flex: 1 1 280px; margin: 0; }

/* /login, /signup, /activate: one short form, centred in the space under the top bar */
.wrap:has(> .auth) { display: flex; flex-direction: column; min-height: 100svh; }
.auth { width: 100%; max-width: 420px; margin: auto; padding-block: 44px 60px; text-align: center; }
/* The heading may run wider than the form, up to the page's width, so it only wraps when the window can't hold it. */
.auth h1 { font-size: clamp(46px, 8vw, 72px); margin-inline: calc(50% - min(500px, 50vw - 20px)); text-wrap: balance; }
.auth input:not([type="checkbox"]) { text-align: center; }
.auth .form-foot { flex-direction: column; }
.auth .form-foot .pill { align-self: stretch; }
.auth .bot-check, .auth .check, .auth .row-actions { display: flex; justify-content: center; }
.auth .check { text-align: left; }
.auth .row { justify-content: center; }
.auth .row-main { flex-basis: 100%; }
.auth .lede { font-size: 17px; }
form { display: grid; gap: 16px; margin-top: 30px; }
label { display: grid; gap: 7px; font-size: 14.5px; color: var(--text); }
input { width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 16px/1.3 var(--f-body); }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.bot-check { min-height: 65px; }
.check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; box-shadow: none; accent-color: var(--accent); }
.fine { margin: 26px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* After paying: the one moment on these pages that gets to be loud. Teal is the ring of the EQ page, and here it means done. */
.done { position: relative; display: flex; align-items: center; gap: clamp(18px, 3.4vw, 34px); margin: 0 0 clamp(26px, 4vw, 44px); padding: clamp(24px, 4vw, 44px); border-radius: 18px; background: linear-gradient(120deg, rgba(79, 175, 132, .22), rgba(79, 175, 132, .05) 60%), var(--raise); box-shadow: inset 0 0 0 1px rgba(79, 175, 132, .55), 0 24px 80px -24px rgba(79, 175, 132, .55); overflow: hidden; animation: done-in .55s cubic-bezier(.2, .9, .25, 1.15) both; }
.done::after { content: ''; position: absolute; inset: -60% auto -60% -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent); transform: skewX(-18deg); animation: done-sheen 1.25s .45s ease-out both; pointer-events: none; }
.done-mark { width: clamp(68px, 11vw, 112px); height: clamp(68px, 11vw, 112px); flex: none; fill: none; stroke: var(--ring); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 16px rgba(79, 175, 132, .75)); }
.done-ring { stroke-dasharray: 176; stroke-dashoffset: 176; transform: rotate(-90deg); transform-origin: center; animation: done-draw .6s .1s ease-out forwards; }
.done-tick { stroke-width: 5.5; stroke: #fff; stroke-dasharray: 44; stroke-dashoffset: 44; animation: done-draw .35s .6s ease-out forwards; }
.done-text { position: relative; min-width: 0; }
.done-thanks { margin: 0 0 4px; font: 500 12.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ring); }
.done-title { font-size: clamp(38px, 6.4vw, 68px); line-height: 1; letter-spacing: -0.045em; }
.done-title:focus { outline: none; }
.done-lede { margin: 10px 0 0; font-size: clamp(17px, 2vw, 22px); color: var(--ink); }
.done.waiting { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); animation-duration: .3s; }
.done.waiting::after { display: none; }
.done.waiting .done-lede { margin-top: 2px; font-size: 17px; }
.done-wait { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ring); animation: done-spin .9s linear infinite; }
@keyframes done-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
@keyframes done-sheen { from { left: -30%; } to { left: 130%; } }
@keyframes done-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .done { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  .done, .done::after { animation: none; }
  .done::after { display: none; }
  .done-ring, .done-tick { animation: none; stroke-dashoffset: 0; }
  .done-wait { animation-duration: 3s; }
}

/* /account's settings */
.setting-form { flex: 1 1 100%; max-width: 480px; margin-top: 0; gap: 14px; }
.setting-form .row-actions { margin-top: 4px; }
.setting-form p { margin: 0; }
.setting-note { flex: 1 1 100%; }
.setting-list { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.pill.ghost.danger-text { color: var(--hit); box-shadow: inset 0 0 0 1px var(--hit); }

/* Two-factor setup: the QR code needs its white background to scan, in dark mode too. */
.mfa-guide { display: grid; gap: 12px; margin-top: 18px; }
.mfa-guide p { margin: 0; }
.mfa-qr { display: block; width: 180px; height: 180px; padding: 8px; border-radius: 10px; background: #fff; box-sizing: content-box; }
.auth .mfa-qr { margin-inline: auto; }
.mfa-key { font: 500 .9em var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }

/* /activate */
.machine { margin: 12px 0 14px; padding: 12px 16px; border-radius: 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); font: 600 17px/1.3 var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
/* Matching this code to the plugin is the safety check on this screen, so it's the loudest thing in the block. */
.device-code { margin: 0 0 16px; padding: 16px 12px 18px; border-radius: 12px; background: rgba(127, 163, 214, .12); box-shadow: inset 0 0 0 1.5px var(--accent); }
.device-code-label { margin: 0 0 6px; font-size: 14.5px; color: var(--text); }
.device-code-value { margin: 0; font: 500 clamp(36px, 10vw, 52px)/1.1 var(--f-mono); letter-spacing: .06em; color: var(--ink); white-space: nowrap; }

/* /buy */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.plan p { margin: 0; }
.plan .pill { margin-top: auto; }
.plan-price { font: 700 26px/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.plan-tax { font: 400 14px/1 var(--f-body); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.sect h2 + .plans { margin-top: 20px; }

/* /downloads */
.trial-note { margin: 0 0 clamp(26px, 4vw, 40px); padding: 14px 18px; border-radius: 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; }
.trial-note strong { color: var(--ink); font-weight: 600; }
.product { scroll-margin-top: 12px; }
.product-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.meta { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 20px; margin-top: 22px; }
.option .pill { width: 100%; }
.option p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.option .warn { color: var(--amber); }
.notes { margin-top: 24px; max-width: 76ch; font-size: 15.5px; line-height: 1.55; }
.notes h3 { margin: 0 0 8px; font-size: 16px; }
.notes h4 { margin: 14px 0 4px; font: 600 15.5px var(--f-body); color: var(--ink); }
.notes p { margin: 8px 0; }
.notes ul { margin: 8px 0; padding-left: 20px; }
.notes li { margin: 6px 0; }
.notes li::marker { color: var(--edge); }
.notes strong { color: var(--ink); font-weight: 600; }
.notes code { font: 500 .88em var(--f-mono); color: var(--ink); }
details { margin-top: 18px; }
summary { cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.old { list-style: none; margin: 10px 0 0; padding: 0; max-width: 76ch; }
.old > li { padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.old-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.old-head strong { color: var(--ink); }

/* /account: purchases read as a table, and as stacked rows on a phone */
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th { text-align: left; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 16px 10px 0; }
.table td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.table td:last-child, .table th:last-child { padding-right: 0; text-align: right; }
@media (max-width: 620px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-block: 14px; border-top: 1px solid var(--line); }
  .table td, .table td:last-child { padding: 0; border: 0; text-align: left; }
  .table td:nth-child(2) { grid-column: 1 / -1; order: -1; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .pill, .nav a { transition: none; } .pill:hover:not(:disabled) { transform: none; } }

/* /edu */
.edu { padding-block: 44px 60px; max-width: 760px; margin-inline: auto; }
.edu > .plans { margin-top: 28px; }
.edu .plan h2 { font-size: 22px; margin: 0; }
.edu-already { margin-top: 28px; padding: 20px; display: grid; gap: 10px; justify-items: start; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--ring); }
.edu-already h2, .edu-already p { margin: 0; }
.edu-already h2 { font-size: 22px; }
.edu form { display: grid; gap: 16px; margin-top: 20px; max-width: 520px; }
.edu form .pill { justify-self: start; }
.edu-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.edu-kind { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text); }
.edu-kind legend { padding: 0; margin-bottom: 8px; }
.edu textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 16px/1.3 var(--f-body); resize: vertical; }
.edu textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.edu > .sect { margin-top: 28px; }

/* /terms, /privacy, /refunds */
.legal { padding-block: 44px 60px; max-width: 680px; margin-inline: auto; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); margin-top: 24px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal ul { margin: 12px 0 0; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal-draft { padding: 12px 16px; border-radius: 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--amber, var(--line)); }
