:root {
  --ink: #1b1b1f;
  --ink-soft: #4e4f55;
  --paper: #f8f4ee;
  --paper-deep: #efe7db;
  --accent: #e05a2b;
  --accent-2: #1c7a6d;
  --accent-3: #d5a11f;
  --card: #fffaf4;
  --stroke: rgba(27, 27, 31, 0.12);
  --shadow: 0 20px 60px rgba(27, 27, 31, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff6e9 0%, transparent 55%),
    radial-gradient(circle at 10% 30%, #f9e1c7 0%, transparent 45%),
    linear-gradient(160deg, #f8f4ee 0%, #efe7db 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(27, 27, 31, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
  animation: drift 18s ease-in-out infinite;
}

.orb-one {
  width: 280px;
  height: 280px;
  background: rgba(224, 90, 43, 0.35);
  top: -40px;
  right: 10%;
}

.orb-two {
  width: 360px;
  height: 360px;
  background: rgba(28, 122, 109, 0.3);
  bottom: -80px;
  left: -60px;
  animation-delay: -4s;
}

.orb-three {
  width: 220px;
  height: 220px;
  background: rgba(213, 161, 31, 0.25);
  top: 45%;
  right: -60px;
  animation-delay: -8s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(12px);
  }
}

.site-header {
  padding: 26px 0 12px;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fffaf4;
  background: linear-gradient(145deg, var(--accent), #b64b2a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fffaf4;
  box-shadow: 0 10px 24px rgba(224, 90, 43, 0.28);
}

.btn.ghost {
  background: rgba(255, 250, 244, 0.8);
  border-color: rgba(27, 27, 31, 0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(27, 27, 31, 0.12);
}

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

/* Page-level checkout loading overlay */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.checkout-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.checkout-overlay .spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--stroke);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.checkout-overlay p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
}

h1,
h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin: 18px 0 20px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  background: rgba(255, 250, 244, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 31, 0.12);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pill a {
  color: var(--accent-2);
  font-weight: 600;
}

.hero-media {
  display: grid;
  gap: 20px;
}

.expander-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(27, 27, 31, 0.1);
  box-shadow: var(--shadow);
}

.expander-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(27, 27, 31, 0.25);
}

.expander-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.expander-body {
  display: grid;
  gap: 16px;
}

.expander-row {
  display: grid;
  gap: 8px;
}

.chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 122, 109, 0.15);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.shortcut {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.expansion {
  font-size: 1rem;
  color: var(--ink-soft);
  background: rgba(27, 27, 31, 0.03);
  padding: 12px 14px;
  border-radius: 12px;
}

.tone {
  font-weight: 600;
  color: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  background: rgba(255, 250, 244, 0.7);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.hero-stats strong {
  font-size: 1.3rem;
}

.hero-stats span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

section {
  padding: 40px 0;
}

.section-title {
  max-width: 640px;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--ink-soft);
}

.trust-card {
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 90, 43, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

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

.feature-grid article {
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid rgba(27, 27, 31, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 32px rgba(27, 27, 31, 0.08);
}

.feature-grid h3 {
  margin-bottom: 8px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.workflow-steps div {
  background: rgba(255, 250, 244, 0.9);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.step {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.price-card {
  background: rgba(255, 250, 244, 0.98);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(27, 27, 31, 0.1);
  box-shadow: 0 14px 32px rgba(27, 27, 31, 0.1);
  display: grid;
  gap: 16px;
}

.price-card.highlight {
  background: #fff3df;
  border: 2px solid rgba(224, 90, 43, 0.4);
  transform: translateY(-6px);
}

.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(28, 122, 109, 0.15);
  color: var(--accent-2);
  font-weight: 600;
}

.badge.strong {
  background: rgba(224, 90, 43, 0.18);
  color: var(--accent);
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
}

.price .period {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-left: 6px;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.price-card ul li::before {
  content: "+";
  margin-right: 8px;
  color: var(--accent-2);
  font-weight: 700;
}

.pricing-note {
  margin-top: 18px;
  color: var(--ink-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.faq-grid div {
  background: rgba(255, 250, 244, 0.9);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 27, 31, 0.08);
}

/* ── Install section ─────────────────────────────── */
.install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.install-tab {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 31, 0.12);
  background: rgba(255, 250, 244, 0.8);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.install-tab:hover {
  background: rgba(255, 250, 244, 1);
  border-color: rgba(27, 27, 31, 0.2);
  transform: translateY(-1px);
}

.install-tab.active {
  background: var(--accent);
  color: #fffaf4;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(224, 90, 43, 0.25);
}

.tab-icon {
  font-size: 1.1rem;
}

.install-panel {
  display: none;
}

.install-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-panel-inner {
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid rgba(27, 27, 31, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.install-info h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.install-info > p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

.install-info a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.install-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
}

.install-steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28, 122, 109, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-steps code {
  background: rgba(27, 27, 31, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.install-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.install-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Code blocks (terminal style) */
.code-block {
  background: #1e1e2e;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(27, 27, 31, 0.2);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.copy-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.copy-btn.copied {
  background: rgba(28, 122, 109, 0.3);
  color: #6ee7b7;
  border-color: rgba(28, 122, 109, 0.4);
}

.code-block pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cdd6f4;
}

.code-block .prompt {
  color: var(--accent-2);
  user-select: none;
  margin-right: 8px;
}

.install-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.install-note code {
  background: rgba(27, 27, 31, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(27, 27, 31, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .install-panel-inner {
    padding: 24px;
  }

  .install-tabs {
    gap: 6px;
  }

  .install-tab {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .footer-links {
    text-align: left;
  }
}

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

  .hero {
    padding-top: 40px;
  }

  .price-card.highlight {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }

  .reveal {
    transition: none;
  }
}
