/* Same palette as the extension popup (minuit/src/popup/popup.css). */
:root {
  color-scheme: dark;
  --bg: #141416;
  --bg-raised: #19191c;
  --card: #1e1e21;
  --line: #2c2c31;
  --text: #ececef;
  --muted: #9a9aa3;
  --accent: #b9a8ff;
  --accent-strong: #8f7cf6;
  --on-accent: #16112e;
  --radius: 14px;
  --gutter: 16px;
  --width: 1040px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .nav .nav-link {
    display: none;
  }
}

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  background: #26262a;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #cabdff;
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* -------------------------------------------------------------- hero */

.hero {
  padding-block: 72px 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
}

.hero .lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 19px);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ------------------------------------------------ before/after demo */

.demo {
  position: relative;
  max-width: 880px;
  margin: 48px auto 0;
  --split: 50%;
}

.demo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a40;
}

.browser-bar .url {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.demo-stage {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.page {
  padding: clamp(14px, 3.4vw, 30px) clamp(16px, 5vw, 44px) 52px;
  background: var(--p-bg);
  color: var(--p-text);
  font-size: clamp(11px, 1.55vw, 14px);
  line-height: 1.5;
}

/* Light original on the left, the same page through Minuit on the right. */
.page-light {
  --p-bg: #ffffff;
  --p-text: #1d1d1f;
  --p-muted: #6e6e73;
  --p-line: #e6e6eb;
  --p-link: #0a66d8;
  --p-chip-bg: #e3f4e8;
  --p-chip: #1f7a3d;
  --p-soft: #f4f4f7;
}

.page-dark {
  --p-bg: #1c1c1e;
  --p-text: #e6e6e8;
  --p-muted: #9d9da4;
  --p-line: #333337;
  --p-link: #6aa7ff;
  --p-chip-bg: #1b3324;
  --p-chip: #7fd49a;
  --p-soft: #252528;
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split));
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 1.6em;
  padding-bottom: 0.9em;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-muted);
}

.page-nav b {
  margin-right: auto;
  color: var(--p-text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35em;
}

.page-nav span:last-child {
  padding: 0.35em 1em;
  border-radius: 999px;
  background: var(--p-link);
  color: #fff;
  font-weight: 600;
}

.page-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.8em;
  margin-top: 1.6em;
}

.chip {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  background: var(--p-chip-bg);
  color: var(--p-chip);
  font-size: 0.85em;
  font-weight: 600;
}

.page h3 {
  margin: 0.55em 0 0.4em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page .meta {
  color: var(--p-muted);
  font-size: 0.9em;
}

.page p + p {
  margin-top: 0.8em;
}

.page .read {
  color: var(--p-link);
  font-weight: 600;
}

.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.7em;
  background: linear-gradient(180deg, #ffb37a 0%, #ff7b7b 38%, #7a5cc9 72%, #2d2a5a 100%);
}

.photo::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe7b0;
  transform: translate(-50%, -50%);
}

.photo::after {
  content: '';
  position: absolute;
  inset: 58% -10% -20%;
  background: #1f1d3f;
  clip-path: polygon(0 60%, 18% 20%, 34% 50%, 55% 5%, 76% 45%, 100% 15%, 100% 100%, 0 100%);
}

.aside {
  margin-top: 0.9em;
  padding: 0.9em 1em;
  border-radius: 0.7em;
  background: var(--p-soft);
  color: var(--p-muted);
  font-size: 0.9em;
}

.demo-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}

.demo-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9a8ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 18px no-repeat;
  transform: translate(-50%, -50%);
}

.demo-range:focus-visible ~ .demo-handle::after {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 40%, transparent);
}

.demo-label {
  position: absolute;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(20 20 22 / 0.8);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.demo-label.before {
  left: 12px;
}

.demo-label.after {
  right: 12px;
}

.demo-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.demo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .page {
    font-size: 12px;
  }

  .page-nav span:not(:last-child) {
    display: none;
  }

  .page-body {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }

  .page-body > div:last-child {
    order: -1;
  }

  .aside {
    display: none;
  }
}

/* ---------------------------------------------------------- sections */

.section {
  padding-top: 88px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature {
  padding: 26px 24px;
  background: var(--bg-raised);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 650;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
}

/* ----------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.plan-pro {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--accent-strong) 16%, transparent), transparent 60%),
    var(--bg-raised);
}

.plan h3 {
  font-size: 20px;
  font-weight: 650;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 4px;
}

.price strong {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan ul {
  flex: 1;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 15px;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}

.plan-pro li::before {
  border-color: var(--accent);
}

.plan li.includes {
  color: var(--muted);
}

.plan li.includes {
  padding-left: 0;
}

.plan li.includes::before {
  display: none;
}

.plan .btn {
  width: 100%;
}

.plan-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 650;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------- FAQ */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
}

/* ------------------------------------------------------------ footer */

.site-footer {
  margin-top: 104px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .reseller {
  flex-basis: 100%;
  font-size: 13px;
}

/* ------------------------------------------- short and legal pages */

.center-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 60px - 160px);
  padding-block: 64px;
  text-align: center;
}

.center-page .box {
  max-width: 520px;
}

.center-page img {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 16px;
}

.center-page h1 {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
}

.center-page p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.center-page .actions {
  margin-top: 28px;
}

.center-page ol {
  margin: 24px 0 0;
  padding: 20px 20px 20px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
}

.center-page li + li {
  margin-top: 8px;
}

.prose {
  max-width: calc(720px + 2 * var(--gutter));
  padding-top: 56px;
}

.prose h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 700;
}

.prose .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 650;
}

.prose p,
.prose ul {
  margin: 0 0 14px;
  color: #cfcfd5;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}
