/* DOMCopy site — visual language matches the extension's options page:
   neutral/zinc canvas, white rounded cards, black primary buttons
   (inverted in dark mode), with the logo-blue gradient (#68AEFF → #003EB7)
   reserved for brand accents. Auto light/dark via prefers-color-scheme. */

:root {
  --brand: #0842c8; /* text links (light) */
  --brand-hover: #003eb7;
  --grad-a: #2e7cf6; /* logo light end */
  --grad-b: #003eb7; /* logo deep end */
  --brand-soft: rgba(0, 62, 183, 0.1); /* icon chips / tags */
  --accent: #003eb7; /* featured card ring */

  --btn-primary-bg: #18181b; /* zinc-900 */
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: #3f3f46; /* zinc-700 */

  --bg: #fafafa; /* neutral-50 */
  --surface: #ffffff;
  --text: #171717; /* neutral-900 */
  --muted: #737373; /* neutral-500 */
  --border: rgba(229, 229, 229, 0.8); /* neutral-200/80 */
  --light-border: rgba(240, 240, 240, 0.8);
  --control-bg: #f5f5f5; /* neutral-100 */
  --control-border: #e5e5e5;
  --hover-border: #a1a1aa; /* zinc-400 */
  --kbd-bg: #f4f4f5; /* zinc-100 */
  --kbd-text: #71717a; /* zinc-500 */
  --radius: 12px;
  --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #93c5fd; /* blue-300 — link text on dark */
    --brand-hover: #bfdbfe;
    --grad-a: #8fbcff;
    --grad-b: #4f8cff;
    --brand-soft: rgba(59, 130, 246, 0.16);
    --accent: #4f8cff;

    --btn-primary-bg: #f4f4f5; /* zinc-100 — inverted, like the extension */
    --btn-primary-fg: #18181b; /* zinc-900 */
    --btn-primary-hover: #d4d4d8; /* zinc-300 */

    --bg: #0a0a0a; /* neutral-950 */
    --surface: #171717; /* neutral-900 */
    --text: #f5f5f5; /* neutral-100 */
    --muted: #a3a3a3; /* neutral-400 */
    --border: rgba(64, 64, 64, 0.7); /* neutral-700/70 */
    --light-border: rgba(38, 38, 38, 0.8); /* neutral-800/80 */
    --control-bg: #262626; /* neutral-800 */
    --control-border: #404040; /* neutral-700 */
    --hover-border: #71717a; /* zinc-500 */
    --kbd-bg: #27272a; /* zinc-800 */
    --kbd-text: #a1a1aa; /* zinc-400 */
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* clear the sticky header on anchor jumps */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--hover-border);
  outline-offset: 2px;
  border-radius: 4px;
}

/* inline lucide icons inherit the text color and scale with context */
.ic {
  width: 15px;
  height: 15px;
  flex: none;
}

/* --- layout --- */
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--bg); /* opaque: content never bleeds through */
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

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

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

/* --- buttons (sd-btn / sd-btn-primary) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--control-bg);
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  border-color: var(--hover-border);
  text-decoration: none;
}

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

.btn-primary {
  border-color: var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-lg .ic {
  width: 17px;
  height: 17px;
}

/* --- flat keycaps, same shadcn Kbd look as the extension --- */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--kbd-bg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--kbd-text);
  user-select: none;
}

/* --- hero --- */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* logo-gradient headline accent */
.hero h1 .grad {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-shortcut {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* --- sections --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--light-border);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* --- feature cards --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* small PRO badge on a feature title */
.pro-tag {
  border-radius: 4px;
  background: var(--brand-soft);
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
}

/* --- pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-card .plan {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.best {
  border-radius: 4px;
  background: var(--brand-soft);
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.price {
  margin: 0.5rem 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price .per {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
  font-size: 14.5px;
  color: var(--text);
}

.price-card li {
  margin-bottom: 0.4rem;
}

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

/* Pro card: monthly + yearly checkout, pinned to the card bottom so the
   last button aligns with the other cards' CTAs */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.cta-stack .btn {
  margin-top: 0;
}

.pricing-note {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* --- footer --- */
.footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-contact a,
.footer-links a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* --- small screens --- */
@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn:active {
    transition: none;
    transform: none;
  }
}

/* --- legal pages --- */
.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal .updated {
  display: block;
  margin-bottom: 2rem;
  font-size: 14px;
  color: var(--muted);
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface);
}

/* --- FAQ: classic centered accordion with dividers --- */
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 4px 4px;
  box-shadow: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

.faq-chevron {
  flex: none;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0 0 16px;
  padding: 0 4px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.faq-item p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--kbd-bg);
  border-radius: 4px;
  padding: 1px 5px;
}

.faq-item p + p {
  margin-top: 8px;
}


