/* Captain Software (captainlab.dev) — shared stylesheet.
   Design language follows apps/captain_builders (user.captain.works) and the
   deck_21_09_26 presentation: near-black canvas, magenta→violet accent,
   Manrope, pill nav, thin-border cards with soft accent glow. Dark only. */

:root {
  --background: #0a0a0b;
  --foreground: #ffffff;
  --card: #151517;
  --muted: #1f1f1f;
  --muted-foreground: #9a9aa3;
  --border: #2a2a2e;
  --primary: #ffffff;
  --primary-foreground: #0a0a0b;
  --accent: #e60165;
  --accent-2: #8000db;
  --accent-soft: #ff5fa2;
  --ring: #e60165;
  --radius: 0.625rem;
  --maxw: 72rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Manrope, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background:
    radial-gradient(55% 38% at 75% -5%, rgba(128, 0, 219, 0.22), transparent 65%),
    radial-gradient(45% 30% at 15% 105%, rgba(230, 1, 101, 0.12), transparent 60%),
    var(--background);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Icons (Lucide, inline SVG) ---------- */
.icon {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary {
  background: linear-gradient(0deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(230, 1, 101, 0.25);
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-white { background: var(--primary); color: var(--primary-foreground); }
.btn-white:hover { filter: brightness(0.92); }
.btn-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn-outline:hover { background: var(--muted); border-color: #3a3a40; }
.btn-sm { min-height: 2.25rem; padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-icon { width: 2.75rem; padding: 0; }
.btn-icon .icon { width: 1.2rem; height: 1.2rem; }
.btn-lg { min-height: 3.1rem; padding: 0.7rem 1.5rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex: none;
}
.brand img { height: 1.5rem; width: auto; }
.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover, .nav a.active { background: var(--muted); color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(230, 1, 101, 0.9);
}
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }
.lead {
  margin: 1.1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 34rem;
}
.hl {
  background: linear-gradient(90deg, #ff3d8f, #b23bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3rem; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}
.hero .lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
/* Illustration frame: the picture fades out at the sides and the top, while
   the bottom is a clean cut marked by a thin gradient rule (transparent →
   accent → transparent), so the figures visibly stand on a "photo edge". */
.hero-art,
.about-art {
  position: relative;
}
.hero-art img,
.about-art img {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 22%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 22%, #000 100%);
  mask-composite: intersect;
}
.hero-art::after,
.about-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 30%, #b23bff 70%, transparent 100%);
  box-shadow: 0 0 14px rgba(230, 1, 101, 0.5);
  pointer-events: none;
}

/* Copy-to-clipboard email buttons */
.copy-email { font-variant-numeric: tabular-nums; }
.copy-email .icon-check { display: none; }
.copy-email.copied .icon-copy { display: none; }
.copy-email.copied .icon-check { display: inline-block; color: var(--success, #35d073); }
.copy-hint { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted-foreground); }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Stats ---------- */
.stats { padding: 1rem 0 3rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.6rem;
}
.stat-value {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(0deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.stat-label { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.95rem; }

/* ---------- About ---------- */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-art { border-radius: 1.5rem; }
.about-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.about-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: #d4d4dc; }
.about-list .bullet {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent-soft);
}
.about-list .bullet .icon { width: 1rem; height: 1rem; }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(230, 1, 101, 0.55);
  box-shadow: 0 8px 32px rgba(230, 1, 101, 0.12);
  transform: translateY(-2px);
}
.card-cover {
  aspect-ratio: 5 / 3;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.35rem 1.35rem; flex: 1; }
.card h3 { font-size: 1.3rem; }
.card-desc { font-size: 0.95rem; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(230, 1, 101, 0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(230, 1, 101, 0.3);
  white-space: nowrap;
}
.card-desc { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted-foreground); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(230, 1, 101, 0.35);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 12px 70px rgba(230, 1, 101, 0.16);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 100% 0%, rgba(128, 0, 219, 0.28), transparent 70%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem 0.6rem 0.9rem;
  margin-left: -0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  cursor: pointer;
  word-break: break-all;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.contact-email .icon { color: var(--accent-soft); width: 1em; height: 1em; }
.contact-email:hover { background: var(--muted); border-color: var(--border); }
.contact-side { display: grid; gap: 0.75rem; }
.contact-side .btn { width: 100%; }
.address {
  margin: 0;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: grid; gap: 0.6rem; }
.footer-brand .brand { font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-links .link-btn { font-size: 0.9rem; font-weight: 600; color: var(--muted-foreground); }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--foreground); }
.copyright { font-size: 0.82rem; color: #55555e; width: 100%; }

/* ---------- Pricing page ---------- */
.pricing-hero { padding: 4rem 0 1rem; text-align: center; }
.pricing-hero h1 { margin-top: 1.25rem; font-size: clamp(2.4rem, 5.5vw, 4rem); }
.pricing-hero .lead { margin-left: auto; margin-right: auto; max-width: 38rem; }
.billing-toggle {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.toggle-btn.active { background: var(--primary); color: var(--primary-foreground); }
.toggle-save {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(230, 1, 101, 0.14);
  color: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.toggle-btn.active .toggle-save { background: rgba(230, 1, 101, 0.16); color: var(--accent); }
.pricing-plans { padding-top: 2.5rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.plan:hover {
  border-color: rgba(230, 1, 101, 0.55);
  box-shadow: 0 8px 32px rgba(230, 1, 101, 0.12);
  transform: translateY(-2px);
}
.plan h2 { font-size: 1.2rem; margin: 0; letter-spacing: -0.015em; line-height: 1.3; }
.plan-desc { margin: 0.4rem 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted-foreground); }
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.plan-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(0deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-period { font-size: 0.9rem; font-weight: 600; color: var(--muted-foreground); }
.plan-note { margin: -0.4rem 0 0; font-size: 0.78rem; color: #6e6e78; min-height: 1.2em; }
.plan-features { list-style: none; margin: 0; padding: 0.9rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.5rem; flex: 1; }
.plan-features li { position: relative; padding-left: 1.5rem; font-size: 0.88rem; line-height: 1.45; color: #d4d4dc; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: rgba(230, 1, 101, 0.16);
  box-shadow: inset 0 0 0 1px rgba(230, 1, 101, 0.5);
}
.plan-features li::after {
  content: "";
  position: absolute;
  left: 0.27rem;
  top: calc(0.35em + 0.2rem);
  width: 0.3rem;
  height: 0.18rem;
  border-left: 1.5px solid var(--accent-soft);
  border-bottom: 1.5px solid var(--accent-soft);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; margin-top: 0.25rem; }
.included-card {
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid rgba(230, 1, 101, 0.35);
  border-radius: 1.5rem;
  box-shadow: 0 12px 70px rgba(230, 1, 101, 0.12);
}
.included-card .section-head { margin-bottom: 1.75rem; }
.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
}
.included-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.included-list .bullet {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--accent-soft);
}
.included-list .bullet .icon { width: 1.1rem; height: 1.1rem; }
.included-list strong { display: block; font-size: 0.98rem; margin-bottom: 0.15rem; }
.included-list span:not(.bullet) { font-size: 0.86rem; line-height: 1.5; color: var(--muted-foreground); }
.faq { max-width: 44rem; display: grid; gap: 0.75rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.85rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted-foreground); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted-foreground); line-height: 1.6; font-size: 0.95rem; }
.faq details a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Legal pages ---------- */
.legal { padding: 3.5rem 0 5rem; }
.legal-wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 1rem; }
.legal .updated { margin: 0.75rem 0 0; color: var(--muted-foreground); font-size: 0.9rem; }
.legal-body { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.legal-body h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: rgba(255, 255, 255, 0.82); line-height: 1.7; font-size: 0.98rem; }
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body strong { color: var(--foreground); }
.legal-body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 0.15em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.back-link:hover { color: var(--foreground); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .included-list { grid-template-columns: repeat(2, 1fr); }
  .hero .container, .about .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art { order: -1; max-width: 34rem; margin: 0 auto; width: 100%; }
  .about-art { max-width: 34rem; margin: 0 auto; width: 100%; }
  .contact-card { grid-template-columns: 1fr; padding: 2rem; }
}
@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .site-header .container { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; gap: 0.6rem; }
  .brand span { display: none; }
  .header-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.1rem 1.25rem; }
  .stat-label { margin-top: 0.25rem; }
  .products-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .included-list { grid-template-columns: 1fr; }
  .included-card { padding: 1.5rem; }
  .pricing-hero { padding-top: 2.5rem; }
  .card h3 { font-size: 1.15rem; }
  .card-desc { font-size: 0.9rem; }
  .site-footer .container { flex-direction: column; }
}
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .hero-actions .btn { width: 100%; }
}
