/* getdarkmode.pro — shared stylesheet. Design language of captainlab.dev
   (Captain Software): near-black canvas, magenta→violet accent, Manrope,
   pill nav, thin-border cards with soft accent glow. Dark only — fitting
   for a dark mode product. Base tokens/buttons/header copied from
   apps/captainlab/styles.css; site-specific components below. */
: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, "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", "Yu Gothic", 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;
}
.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);
}
.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); }

/* ======================================================================
   getdarkmode.pro components
   ====================================================================== */

.skip-link {
  /* hidden above the viewport (a far-left offset would widen the page in RTL layouts) */
  position: absolute; left: 0.5rem; top: -6rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground); font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }
[dir="rtl"] .skip-link { left: auto; right: 0.5rem; }
.show-xs { display: none; }
.icon.flip { transform: rotate(180deg); }
.icon.star { fill: var(--accent-soft); stroke: var(--accent-soft); }
kbd {
  display: inline-block; min-width: 1.5em; padding: 0.05em 0.4em;
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 0.35rem;
  background: var(--muted); font: 700 0.82em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--foreground); text-align: center;
}
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--muted); padding: 0.1em 0.35em; border-radius: 0.3rem; }
.brand img { height: 2rem; width: 2rem; }
.container.narrow { max-width: 48rem; }
/* Anchor jumps land below the sticky header (one row on desktop, two on mobile). */
[id] { scroll-margin-top: 5.5rem; }
.swipe-hint { display: none; margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--muted-foreground); }
.section.tight { padding-top: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.center-actions.left { justify-content: flex-start; }

/* ---------- Hero (centered copy, wide before/after screenshot below) ---------- */
.hero { padding: 4.5rem 0 2rem; text-align: center; }
.hero-copy { max-width: 60rem; margin: 0 auto; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.07; }
.hero .lead { margin-left: auto; margin-right: auto; max-width: 42rem; font-size: 1.15rem; }
.hero .hero-actions, .hero .trust-row { justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin: 1.75rem 0 0; padding: 0; list-style: none;
  font-size: 0.9rem; color: var(--muted-foreground);
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-row .num { color: var(--foreground); font-weight: 700; }
.trust-row .icon { color: var(--accent-soft); }
.hero-art { margin: 3.5rem auto 0; max-width: 64rem; }
.hero-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; text-align: left; }
.compare-shot { margin: 0; }
.compare-shot:first-child { position: relative; z-index: 1; }
.compare-shot img {
  width: 100%; border-radius: 1rem; border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.compare-shot.after img {
  border-color: rgba(230, 1, 101, 0.55);
  box-shadow: 0 24px 80px rgba(128, 0, 219, 0.3), 0 8px 32px rgba(230, 1, 101, 0.18);
}
.compare-label {
  display: inline-flex; margin-bottom: 0.75rem; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border);
}
.compare-shot.after .compare-label { background: linear-gradient(0deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.hero-art img, .popup-art img, .shot img {
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(128, 0, 219, 0.25), 0 8px 32px rgba(230, 1, 101, 0.12);
}

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 1.25rem; }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.5rem; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature:hover { border-color: rgba(230, 1, 101, 0.55); box-shadow: 0 8px 32px rgba(230, 1, 101, 0.12); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: 0.75rem;
  background: var(--muted); border: 1px solid var(--border); color: var(--accent-soft);
}
.feature-icon .icon { width: 1.3rem; height: 1.3rem; }
.feature p { margin: 0.5rem 0 0; font-size: 0.93rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Compatibility split ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.stack { display: grid; gap: 0.75rem; margin-top: 2rem; }
.disclosure, .faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem;
}
.disclosure[open], .faq details[open] { border-color: rgba(230, 1, 101, 0.4); }
.disclosure summary, .faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; padding: 0.85rem 0; cursor: pointer; list-style: none;
}
.disclosure summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.disclosure summary h3, .faq-q { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.35; font-weight: 700; margin: 0; }
.disclosure summary .icon, .faq summary .icon { color: var(--muted-foreground); transition: transform 0.2s; }
.disclosure[open] summary .icon, .faq details[open] summary .icon { transform: rotate(180deg); }
.disclosure p, .faq-a p { margin: 0 0 1.1rem; color: var(--muted-foreground); line-height: 1.65; font-size: 0.95rem; }
.faq-a a, .prose-section p a, .prose-section li a, .fine-print a, .feature p a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 0.15em; }
.faq { max-width: 52rem; display: grid; gap: 0.75rem; }
.popup-art { margin: 0; max-width: 22rem; justify-self: center; }
figcaption { margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted-foreground); text-align: center; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem;
}
.step-card p { margin: 0.5rem 0 0; font-size: 0.93rem; color: var(--muted-foreground); line-height: 1.6; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; border-radius: 999px;
  background: linear-gradient(0deg, var(--accent), var(--accent-2)); color: #fff;
  font-weight: 800; font-size: 0.95rem; box-shadow: 0 6px 20px rgba(230, 1, 101, 0.3);
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); font-weight: 700; }
.compare tbody th { font-weight: 600; color: #d4d4dc; }
.compare td { color: var(--muted-foreground); white-space: nowrap; }
.compare .ours { background: rgba(230, 1, 101, 0.07); color: var(--foreground); font-weight: 700; }
.compare thead .ours { color: var(--accent-soft); }
.compare td.ours .icon { color: var(--accent-soft); vertical-align: -0.2em; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; font-weight: 600; }
.review figcaption { margin: 0; text-align: left; }

/* ---------- Pricing ---------- */
.pricing-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 62rem; margin: 0 auto; }
.plan { position: relative; }
.plan h3 { font-size: 1.3rem; }
.plan.featured { border-color: rgba(230, 1, 101, 0.55); box-shadow: 0 12px 60px rgba(230, 1, 101, 0.16); }
.plan-badge {
  position: absolute; top: -0.75rem; right: 1.25rem; padding: 0.2rem 0.7rem; border-radius: 999px;
  background: linear-gradient(0deg, var(--accent), var(--accent-2)); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.fine-print { margin: 1.5rem 0 0; text-align: center; font-size: 0.85rem; color: var(--muted-foreground); }

/* ---------- Guide cards ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.guide-card:hover { border-color: rgba(230, 1, 101, 0.55); box-shadow: 0 8px 32px rgba(230, 1, 101, 0.12); transform: translateY(-2px); }
.guide-cover { display: block; aspect-ratio: 1200 / 630; border-bottom: 1px solid var(--border); background: var(--muted); }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.15rem 1.2rem; flex: 1; }
.guide-topic { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.guide-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.guide-text { font-size: 0.86rem; line-height: 1.5; color: var(--muted-foreground); flex: 1; }
.guide-more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: 0.86rem; font-weight: 700; }

/* ---------- SEO text block ---------- */
.seo-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.seo-block p { max-width: 52rem; color: var(--muted-foreground); line-height: 1.75; margin: 1rem 0 0; }
.seo-block strong { color: #d4d4dc; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 1rem 0 3rem; }
.cta-card {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 2.25rem 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.14);
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(128, 0, 219, 0.25), transparent 70%); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.cta-card p { margin: 0.5rem 0 0; color: var(--muted-foreground); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.rating-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted-foreground); }

/* ---------- Guide page ---------- */
.guide-hero { padding: 2.5rem 0 1.5rem; }
.guide-hero h1 { margin-top: 1.1rem; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; }
.guide-hero .lead { max-width: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted-foreground); }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.35rem; color: #55555e; }
.crumbs a:hover { color: var(--foreground); }
.guide-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--muted-foreground); }
.quick-answer {
  margin-top: 1.75rem; padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: linear-gradient(180deg, rgba(230, 1, 101, 0.08), rgba(128, 0, 219, 0.06));
  border: 1px solid rgba(230, 1, 101, 0.35);
}
.quick-answer p { margin: 0; line-height: 1.65; color: #e4e4ea; }
.quick-answer .qa-label { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.guide-content { padding-bottom: 2rem; }
.toc { margin: 1rem 0 0.5rem; padding: 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; }
.toc-title { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.toc a { color: #d4d4dc; font-size: 0.93rem; }
.toc a:hover { color: var(--accent-soft); }
.prose-section { padding-top: 3rem; }
.prose-section h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 1rem; line-height: 1.15; }
.prose-section h3 { margin: 1.75rem 0 0.5rem; }
.prose-section .faq-q { margin: 0; }
.prose-section p, .prose-section li { color: rgba(255, 255, 255, 0.82); line-height: 1.75; font-size: 1.02rem; }
.prose-section p { margin: 0 0 1rem; }
.prose-section ul, .prose-section ol:not(.steps) { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose-section li { margin-bottom: 0.4rem; }
.prose-section strong { color: var(--foreground); }
.prose-section .feature-grid { margin-top: 0.5rem; }
.prose-section .feature h3 { margin: 0; }
.prose-section .feature p { font-size: 0.93rem; line-height: 1.6; color: var(--muted-foreground); margin: 0.5rem 0 0; }
.prose-section .faq-a p { font-size: 0.95rem; color: var(--muted-foreground); }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; }
.step .step-num { margin: 0; }
.step h3 { margin: 0.3rem 0 0.35rem; }
.step p { margin: 0; font-size: 0.97rem; }
.shot { margin: 2rem auto 0; max-width: 20rem; }
.summary .hero-actions { margin-top: 1.25rem; }
.related { padding-top: 2rem; }
.related .guides-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Legal & 404 ---------- */
.legal-eyebrow { margin-top: 1.5rem; }
.notfound { text-align: center; padding: 6rem 0; }
.notfound h1 { margin-top: 1rem; font-size: clamp(2.4rem, 6vw, 4rem); }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; margin-top: 2rem; }
.site-footer .container { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 3rem; }
.footer-brand { display: grid; gap: 0.75rem; align-content: start; }
.footer-brand .brand { font-size: 1rem; }
.footer-brand .brand img { width: 1.75rem; height: 1.75rem; }
.footer-note { margin: 0; font-size: 0.9rem; color: var(--muted-foreground); max-width: 22rem; }
.address { margin: 0; font-style: normal; font-size: 0.85rem; line-height: 1.55; color: #6e6e78; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; align-content: start; }
.footer-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground); margin-bottom: 0.4rem; }
.footer-links a, .footer-links .link-btn { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; font-size: 0.9rem; font-weight: 600; color: var(--muted-foreground); }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--foreground); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.copy-email.copied { color: #35d073 !important; }
.copyright { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; line-height: 1.6; color: #55555e; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid.four, .steps-grid, .guides-grid, .related .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { margin-top: 2.5rem; }
  .hero-compare { margin-top: 2.5rem; }
  .feature-grid.three, .reviews-grid, .pricing-grid.three { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 2rem 0 1rem; }
  .site-header .container { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; gap: 0.6rem; }
  .header-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 0; }
  .nav { justify-content: space-between; }
  .nav a { padding: 0.45rem 0.45rem; font-size: 0.84rem; }
  [id] { scroll-margin-top: 8rem; }
  .brand { min-height: 2.75rem; }
  .header-actions .btn-sm { min-height: 2.75rem; }
  .swipe-hint { display: block; }
  .feature-grid.four, .feature-grid.three, .feature-grid.two, .steps-grid, .guides-grid,
  .related .guides-grid, .reviews-grid, .pricing-grid.three { grid-template-columns: 1fr; }
  .pricing-grid.three { max-width: 26rem; gap: 1.75rem; }
  .cta-card { padding: 1.75rem 1.5rem; }
  .cta-actions { align-items: stretch; width: 100%; }
  .cta-actions .btn { white-space: normal; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .step { padding: 1rem; }
  .hero-compare { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  /* Long localized CTA labels must wrap instead of pushing the page sideways. */
  .btn { max-width: 100%; }
  .btn-lg { white-space: normal; text-align: center; line-height: 1.25; }
  .lang-switch summary { padding: 0 0.55rem; }
  .lang-switch summary .chev { display: none; }
  .hero-actions .btn, .summary .btn { width: 100%; white-space: normal; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .footer-cols { grid-template-columns: 1fr; }
  .compare { font-size: 0.85rem; }
}
@media (max-width: 400px) {
  /* Keep logo + language + install on one row: the logo mark alone carries the brand here. */
  .site-header .brand span { display: none; }
}

/* ---------- Language switch (header) ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2.75rem; padding: 0 0.7rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 700; font-size: 0.85rem; color: var(--muted-foreground); cursor: pointer; list-style: none;
  transition: background 0.15s, color 0.15s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: var(--muted); color: var(--foreground); }
.lang-switch summary .icon { width: 1rem; height: 1rem; }
.lang-switch summary .chev { width: 0.85rem; height: 0.85rem; transition: transform 0.2s; }
.lang-switch[open] summary .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 60;
  min-width: 11rem; margin: 0; padding: 0.35rem; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.lang-menu a {
  display: flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.75rem;
  border-radius: 0.5rem; font-size: 0.92rem; font-weight: 600; color: #d4d4dc;
}
.lang-menu a:hover { background: var(--muted); color: var(--foreground); }
.lang-menu a.current { color: var(--accent-soft); }
.lang-menu a.current::after { content: ""; margin-left: auto; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(230, 1, 101, 0.9); }

/* ---------- CJK typography ---------- */
:lang(ja), :lang(ko), :lang(zh-Hans) { letter-spacing: normal; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3,
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(ko) { word-break: keep-all; }
:lang(ja) { line-break: strict; }
.nw { white-space: nowrap; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(zh-Hans) .eyebrow { text-transform: none; letter-spacing: 0.06em; }
/* Hint that the scrollable mobile nav has more links to the right. */
.nav.more {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
}

/* ---------- Company & contact pages ---------- */
.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; white-space: nowrap;
  background: linear-gradient(0deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.95rem; }
.split-text { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.prose-block p { margin: 0 0 1.1rem; color: rgba(255, 255, 255, 0.82); line-height: 1.75; font-size: 1.05rem; }
.company-card, .contact-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  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.14);
}
.company-card::before, .contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 100% 0%, rgba(128, 0, 219, 0.25), transparent 70%); pointer-events: none; }
.company-card > *, .contact-card > * { position: relative; }
.company-address { margin: 1rem 0 0; font-style: normal; color: #d4d4dc; line-height: 1.6; }
.company-links { margin: 1rem 0 0; color: var(--muted-foreground); }
.company-links a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 0.15em; }
.company-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.company-list a {
  display: flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; padding: 0 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; background: rgba(10, 10, 11, 0.4);
}
.company-list a:hover { background: var(--muted); }
.company-list .icon { color: var(--accent-soft); }
.contact-sub { margin: 0.5rem 0 0; color: var(--muted-foreground); }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 1.25rem 0 0 -0.9rem; padding: 0.6rem 1rem 0.6rem 0.9rem;
  border: 1px solid transparent; border-radius: var(--radius); background: none; font: inherit;
  font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; color: var(--foreground);
  cursor: pointer; word-break: break-all; text-align: left;
}
.contact-email .icon { color: var(--accent-soft); width: 1em; height: 1em; }
.contact-email:hover { background: var(--muted); border-color: var(--border); }
.copy-hint { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted-foreground); }
.contact-side { display: grid; gap: 0.75rem; }
.contact-side .btn { width: 100%; }
.fine-print.left { text-align: left; }
@media (max-width: 960px) {
  .split-text, .company-card, .contact-card { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
  .company-card, .contact-card { padding: 1.75rem 1.5rem; }
}

/* ---------- Always-open blocks (no collapse: all text is visible and crawlable) ---------- */
.disclosure, .faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem 0.1rem;
}
.disclosure h3, .faq-item .faq-q { margin: 0 0 0.6rem; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.faq-item .faq-a p, .disclosure p { margin: 0 0 1rem; }

/* RTL (Arabic): directional icons point the other way */
[dir="rtl"] .i-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .icon.flip.i-arrow-right { transform: none; }

.guide-meta > span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Author ---------- */
.author-head { display: flex; align-items: center; gap: 1.5rem; }
.author-avatar {
  flex: none; object-fit: cover; border: 2px solid rgba(230, 1, 101, 0.5); display: inline-flex; align-items: center; justify-content: center;
  width: 5.5rem; height: 5.5rem; border-radius: 50%; font-weight: 800; font-size: 1.8rem; color: #fff;
  background: linear-gradient(0deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 40px rgba(230, 1, 101, 0.3);
}
.author-head h1 { margin-top: 0.8rem; }
.guide-meta .byline { color: var(--foreground); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: rgba(255,255,255,0.3); }
@media (max-width: 480px) { .author-head { flex-direction: column; align-items: flex-start; gap: 1rem; } .author-avatar { width: 4rem; height: 4rem; font-size: 1.3rem; } }

.byline-avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--border); }

/* ---------- Extra before/after pairs (home + guides) ---------- */
.compare-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; text-align: left; }
.compare-pair { margin: 0; }
.pair-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pair-shot { position: relative; }
.pair-shot img { width: 100%; border-radius: 0.6rem; border: 1px solid var(--border); }
.pair-shot.after img { border-color: rgba(230, 1, 101, 0.55); box-shadow: 0 10px 40px rgba(128, 0, 219, 0.25); }
.pair-shot .compare-label { position: absolute; top: 0.5rem; left: 0.5rem; margin: 0; padding: 0.15rem 0.55rem; font-size: 0.65rem; z-index: 1; }
[dir="rtl"] .pair-shot .compare-label { left: auto; right: 0.5rem; }
.pair-shot.after .compare-label { background: linear-gradient(0deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.compare-pair figcaption { margin-top: 0.6rem; text-align: center; font-weight: 600; color: var(--muted-foreground); font-size: 0.9rem; }
.guide-compare { margin: 1.5rem 0 0.5rem; }
@media (max-width: 760px) { .compare-more { grid-template-columns: 1fr; } }
.prose-block p a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 0.15em; }

/* Footer: the popular-guides list runs in two columns on desktop so the footer stays compact. */
@media (min-width: 761px) {
  .footer-cols { grid-template-columns: 1fr 2fr 1fr; }
  .footer-links.guides { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .footer-links.guides .footer-title { grid-column: 1 / -1; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .footer-cols { grid-template-columns: 1fr 2fr; }
  .footer-cols .footer-links:last-child { grid-column: 1 / -1; }
}
