:root {
  color-scheme: dark light;

  --bg: #0b0d12;
  --bg-elev: #14181f;
  --bg-elev-2: #1b2029;
  --fg: #e6e8ec;
  --fg-muted: #9aa3b2;
  --fg-dim: #6c7689;
  --border: #232936;
  --border-strong: #2f3848;
  --accent: #5b8def;
  --accent-fg: #ffffff;
  --promo-bg: #2e4c88;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.5);

  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui,
    sans-serif;
  --font-mono:
    "SF Mono", ui-monospace, "JetBrains Mono", "Menlo", "Consolas", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafbfc;
    --bg-elev: #ffffff;
    --bg-elev-2: #f3f4f7;
    --fg: #14181f;
    --fg-muted: #4a5263;
    --fg-dim: #6c7689;
    --border: #e3e6ec;
    --border-strong: #c8cdd6;
    --promo-bg: var(--accent);
    --shadow:
      0 1px 2px rgba(20, 24, 31, 0.06), 0 8px 24px -10px rgba(20, 24, 31, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elev-2);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-strong);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--fg);
}

.brand:hover {
  text-decoration: none;
}

.brand-by {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-dim);
  margin-inline-start: -2px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

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

.site-nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
    font-size: 13px;
  }
}

/* Below typical phone width: stack header so nothing overflows. */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-by {
    display: none;
  }

  .site-nav {
    justify-content: center;
    column-gap: 18px;
    row-gap: 6px;
    font-size: 12.5px;
  }

  .hero {
    padding: 40px 0 28px;
  }

  .features,
  .screenshots,
  .use-cases,
  .trust,
  .install,
  .faq,
  .story {
    padding: 48px 0;
  }
}

/* Hero */

.hero {
  padding: 64px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 16px;
}

.platform-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.screenshots .eyebrow,
.use-cases .eyebrow,
.story-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--accent) 88%, var(--fg));
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  margin: 0 0 18px;
}

.screenshots .eyebrow::before,
.use-cases .eyebrow::before,
.story-copy .eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 18px;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 30em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-row > .btn-primary {
  flex: 2;
  justify-content: center;
}

.cta-row > .promo-badge {
  flex: 1;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}

.btn:hover {
  text-decoration: none;
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-mac::before {
  content: "\F8FF";
  font-size: 20px;
}

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-version {
  font-size: 11px;
  color: color-mix(in srgb, var(--accent-fg) 55%, transparent);
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1;
}

/* Hero CTA: one button (label + value sub-line) with a note beneath it. */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.cta-stack > .btn-primary {
  align-self: flex-start;
}

.btn-sub {
  font-size: 12.5px;
  color: color-mix(in srgb, var(--accent-fg) 80%, transparent);
  font-weight: 400;
  line-height: 1.25;
}

.cta-note {
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.btn-secondary {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: color-mix(in srgb, var(--accent) 88%, var(--fg));
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--bg-elev);
}

.version-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-fg) 18%, transparent);
}

.promo-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0;
}

.promo-free {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 50%, transparent);
}

.promo-note {
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.micro {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 0;
}

.product-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elev);
  display: block;
}

.hero-shot {
  aspect-ratio: 3084 / 1968;
  object-fit: cover;
}

/* Soft accent halo so the hero screenshot lifts off the dark background. */
.hero-art {
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -10% -8% -16%;
  z-index: 0;
  background: radial-gradient(
    55% 55% at 50% 38%,
    color-mix(in srgb, var(--accent) 30%, transparent),
    transparent 72%
  );
  filter: blur(56px);
  pointer-events: none;
}

.hero-art .screenshot-button,
.hero-art picture,
.hero-art .product-shot {
  position: relative;
  z-index: 1;
}

/* Features */

.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.features-lede {
  color: var(--fg-muted);
  max-width: 56em;
  margin: -8px 0 32px;
  font-size: 15.5px;
  line-height: 1.55;
}

h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}

/* Screenshots */

.screenshots {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.screenshots h2 {
  max-width: 28ch;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 780px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

.screenshot-card {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screenshot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  text-align: inherit;
}

.screenshot-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: -3px;
}

.screenshot-button img {
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.screenshot-button:hover img,
.screenshot-button:focus-visible img {
  filter: brightness(1.08);
  transform: scale(1.01);
}

.screenshot-card picture,
.screenshot-card img {
  display: block;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3084 / 1968;
  object-fit: cover;
  background: var(--bg);
}

.screenshot-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 14px;
}

.screenshot-card strong {
  color: var(--fg);
  font-size: 14.5px;
  white-space: nowrap;
}

.screenshot-card span {
  min-width: 0;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(96vw, 1600px);
  max-height: 92vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-panel img {
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 56px);
  display: block;
  object-fit: contain;
  background: #050608;
}

.lightbox-panel figcaption {
  padding: 14px 18px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--bg-elev-2);
}

@media (max-width: 720px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox-panel {
    width: 100%;
    max-height: 94vh;
  }

  .lightbox-panel img {
    max-height: calc(94vh - 76px);
  }
}

@media (max-width: 520px) {
  .screenshot-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* Use cases — compact positioning section between feature inventory and story. */

.use-cases {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.use-cases h2 {
  max-width: 24ch;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

.use-case-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.use-case-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.use-case-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}

/* Trust */

.trust {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.trust > .container > p {
  color: var(--fg-muted);
  max-width: 42em;
}

.trust-list {
  margin-top: 24px;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 720px) {
  .trust-list {
    columns: 1;
  }
}

.trust-list li {
  margin-bottom: 8px;
  break-inside: avoid;
  color: var(--fg-muted);
}

.trust-list code {
  color: var(--fg);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 24px 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

.footer-nav a:hover {
  color: var(--fg);
}

.footer-author {
  color: inherit;
}

.footer-author:hover {
  color: var(--fg);
}

/* Pricing and checkout */

.page-hero {
  padding: 48px 0 56px;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lede {
  max-width: 64ch;
}

.pricing-band {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 18px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 82%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 74%, transparent),
    0 18px 60px -36px color-mix(in srgb, var(--accent) 68%, transparent);
}

.price-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.price-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.pro-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
}

.pro-tier-crown {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #facc15;
  color: #000;
}

.pro-tier-crown svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 760;
  line-height: 1;
}

.price-amount .price-was {
  font-size: 20px;
  color: var(--fg-dim);
  text-decoration: line-through;
  font-weight: 560;
}

.price-sub,
.price-fit,
.pricing-note,
.checkout-fineprint,
.checkout-field .hint {
  color: var(--fg-muted);
}

.price-sub,
.price-fit {
  font-size: 14px;
  margin: 0;
}

.price-fit {
  min-height: 2.9em;
}

.founder-badge[hidden] {
  display: none;
}

.founder-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 90%, var(--fg));
  border: 1px solid color-mix(in srgb, var(--accent) 72%, var(--border));
  border-radius: 999px;
  padding: 4px 11px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 2px 0 22px;
  display: grid;
  gap: 10px;
}

.price-features li {
  font-size: 14.5px;
  padding-inline-start: 24px;
  position: relative;
  line-height: 1.45;
  color: color-mix(in srgb, var(--fg) 86%, var(--fg-muted));
}

.price-features li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 800;
}

.price-card .btn {
  margin-top: auto;
  justify-content: center;
}

.pricing-note {
  font-size: 13.5px;
  max-width: 62ch;
}

.price-card .pricing-note {
  margin: 0.75rem 0 0;
}

.pricing-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pricing-note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 72%, transparent);
  padding: 15px;
}

.pricing-note-card strong {
  display: block;
  color: var(--fg);
  font-size: 13.5px;
  margin-bottom: 5px;
}

.pricing-note-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.checkout-card,
.checkout-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

.checkout-card {
  padding: 24px;
}

.checkout-aside {
  padding: 22px;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 22px;
  font-size: 14px;
}

.checkout-summary .total {
  font-size: 26px;
  font-weight: 760;
  white-space: nowrap;
}

.checkout-field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.checkout-field label {
  font-size: 13.5px;
  font-weight: 700;
}

.checkout-field .hint {
  font-size: 12.5px;
  line-height: 1.5;
}

.checkout-field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 92%, black);
  color: inherit;
}

.checkout-field input[aria-invalid="true"] {
  border-color: #ff7b7b;
}

.checkout-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.checkout-field input[dir="ltr"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.checkout-card .btn {
  width: 100%;
  justify-content: center;
}

.checkout-error {
  color: #ff7b7b;
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 1.2em;
}

.checkout-fineprint {
  font-size: 12.5px;
  margin: 14px 0 0;
  max-width: 460px;
}

/* Payment-method selector (Card / Bank transfer) */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.pay-method {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.pay-method:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.pay-method.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.pay-method-title {
  font-weight: 600;
  font-size: 14px;
}
.pay-method-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Accepted payment-method badges (shown for the Card method) */
.pay-accepted {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: -6px 0 18px;
}
.pay-accepted[hidden] {
  display: none;
}
.pay-accepted-label {
  font-size: 12px;
  color: var(--fg-muted);
}
.pay-accepted img {
  height: 24px;
  width: auto;
  border-radius: 5px;
  background: #fff;
}

/* Bank-transfer details panel (shown after a bank-method submit) */
.bank-details-panel {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-elev);
}
.bank-panel-title {
  margin: 0 0 8px;
  font-size: 17px;
}
.bank-panel-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.bank-rows {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 16px;
  margin: 0;
}
.bank-rows dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--fg-dim, var(--fg-muted));
  align-self: center;
}
.bank-rows dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bank-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
}
.bank-copy {
  font-size: 11.5px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.bank-copy:hover {
  border-color: var(--accent);
}
.bank-panel-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.checkout-aside h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.checkout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checkout-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 14px;
}

.checkout-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.checkout-list strong {
  display: block;
  color: var(--fg);
  margin-bottom: 2px;
}

@media (max-width: 820px) {
  .pricing-grid,
  .checkout-shell,
  .pricing-note-grid {
    grid-template-columns: 1fr;
  }

  .price-fit {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding: 36px 0 44px;
  }

  .price-card,
  .checkout-card,
  .checkout-aside {
    padding: 20px;
  }

  .checkout-summary {
    display: grid;
    gap: 6px;
  }
}

/* Install — first-time install section. */

.install {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.install-lead {
  color: var(--fg-muted);
  max-width: 56em;
  margin: 0 0 28px;
}

.install-note {
  color: var(--fg-dim);
  font-size: 13.5px;
  margin: 0;
  max-width: 56em;
}

.install-shot {
  margin: 0 0 24px;
  max-width: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-elev);
}

.install-shot picture,
.install-shot img {
  display: block;
}

.install-shot img {
  width: 100%;
  height: auto;
}

/* FAQ — native <details>/<summary> accordion, no JS required. */

.faq {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 56em;
}

.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  list-style: none;
  position: relative;
  user-select: none;
}

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

.faq summary:hover {
  background: color-mix(in srgb, var(--bg-elev-2) 50%, transparent);
}

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

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--fg-muted);
  font-size: 14.5px;
}

.faq-body p {
  margin: 0 0 10px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* Why I built this — origin-story section, prose-first with a side panel. */

.story {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 880px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.story-copy h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  margin: 8px 0 20px;
  max-width: 22ch;
}

.story-lede {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
}

.story-lede:last-child {
  margin-bottom: 0;
}

.story-lede code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.story-founder {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
}

.story-founder a {
  color: var(--fg);
}

[dir="rtl"] .story-founder {
  padding-right: 16px;
  padding-left: 0;
  border-right: 2px solid var(--accent);
  border-left: 0;
}

.story-side {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.story-side h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin: 0 0 14px;
}

.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.story-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.story-list li strong {
  color: var(--fg);
  font-weight: 600;
}

.story-list-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* RTL — overrides for the Arabic mirror under /ar/. The English layout is
   left untouched; rules below only apply when <html dir="rtl"> is set.
   Keep code/pre/URLs/version strings LTR even inside RTL paragraphs so
   commands, file paths, and version chips remain readable and
   copyable. */

[dir="rtl"] code,
[dir="rtl"] pre,
[dir="rtl"] kbd,
[dir="rtl"] samp,
[dir="rtl"] .version-chip {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .price-tier {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .price-amount [dir="ltr"],
[dir="rtl"] .checkout-summary [dir="ltr"] {
  unicode-bidi: isolate;
}

[dir="rtl"] .bank-value {
  unicode-bidi: isolate;
}

[dir="rtl"] .doc-section ul {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .trust-list {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .faq summary {
  padding: 16px 20px 16px 48px;
}

[dir="rtl"] .faq summary::after {
  right: auto;
  left: 20px;
}

/* Promo banner — a dismissible top strip advertising the featured promo code.
   Injected by promo-banner.js at the top of <body>; hidden until populated. */
.promo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 18px;
  background: var(--promo-bg);
  color: var(--accent-fg);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.promo-strip a {
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-strip .promo-code {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  padding: 2px 9px;
  cursor: pointer;
}
.promo-strip .promo-code:hover {
  background: rgba(255, 255, 255, 0.28);
}
.promo-strip .promo-dismiss {
  background: transparent;
  border: 0;
  color: var(--accent-fg);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
}
.promo-strip .promo-dismiss:hover {
  opacity: 1;
}

/* Promo code field on the checkout form. */
.checkout-promo {
  margin-top: 4px;
}
.checkout-promo .promo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.checkout-promo .promo-input-row input {
  min-width: 0;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.checkout-promo .promo-apply {
  width: auto;
  min-width: 112px;
  padding-inline: 18px;
  white-space: nowrap;
}
.checkout-promo .promo-feedback {
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 1em;
}
.checkout-promo .promo-feedback.is-ok {
  color: #3fb950;
}
.checkout-promo .promo-feedback.is-error {
  color: #f0556a;
}

@media (max-width: 420px) {
  .checkout-promo .promo-input-row {
    grid-template-columns: 1fr;
  }

  .checkout-promo .promo-apply {
    width: 100%;
  }
}
