/* ==========================================================================
   Install pages (Premium / Group / DFY) — long-form sales page components.
   Load after site.css. Light theme: <body class="theme-light install">
   ========================================================================== */

.install { background: var(--cream); color: var(--ink); }
.install ::selection { background: var(--green); color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 249, 0.86);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(58, 58, 58, 0.08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.topbar__nav { display: flex; gap: 26px; font-size: 0.92rem; color: var(--ink-muted); }
.topbar__nav a { text-decoration: none; }
.topbar__nav a:hover { color: var(--ink); }
.btn--sm { padding: 0.7em 1.15em; font-size: 0.9rem; }
@media (max-width: 860px) { .topbar__nav { display: none; } }

/* ---------- Section scaffolding ---------- */
.block { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid rgba(58, 58, 58, 0.08); position: relative; }
.block--dark { background: var(--ink); color: var(--cream); border-top: 0; }
.block__marker {
  position: absolute; top: 18px; left: var(--pad);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(58, 58, 58, 0.4);
}
.block--dark .block__marker { color: rgba(251, 251, 249, 0.35); }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }

.kicker {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(58, 58, 58, 0.55); margin-bottom: 18px;
}
.kicker::before { content: "// "; color: var(--green-deep); }
.block--dark .kicker { color: rgba(251, 251, 249, 0.55); }
.block--dark .kicker::before { color: var(--green); }

.h2 {
  font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.h3 { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
.sub { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-muted); margin-top: 18px; line-height: 1.6; }
.block--dark .sub { color: var(--cream-muted); }
.prose p { font-size: 1.08rem; line-height: 1.7; color: rgba(58, 58, 58, 0.85); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); }
.block--dark .prose p { color: rgba(251, 251, 249, 0.8); }
.block--dark .prose strong { color: var(--cream); }

/* green highlighter */
.hl { background: linear-gradient(transparent 62%, rgba(0, 255, 171, 0.55) 62%, rgba(0, 255, 171, 0.55) 92%, transparent 92%); padding: 0 0.06em; }
.block--dark .hl { background: none; color: var(--green); }

/* ---------- Hero ---------- */
.hero-i { padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px); text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(58, 58, 58, 0.12);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-muted);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 171, 0.25); }
.hero-i h1 {
  margin: 26px auto 0; max-width: 17ch;
  font-weight: 800; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.4rem); line-height: 1.03; letter-spacing: -0.04em; text-wrap: balance;
}
.hero-i .sub { max-width: 60ch; margin-inline: auto; }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }
.micro { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-muted); }
.block--dark .micro { color: var(--cream-muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(58, 58, 58, 0.1); border: 1px solid rgba(58, 58, 58, 0.1); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: #fff; padding: 22px 16px; text-align: center; }
.stat b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid rgba(58, 58, 58, 0.1); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.block--dark .card { background: #444; border-color: rgba(251, 251, 249, 0.1); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 6px; background: rgba(0, 255, 171, 0.18); color: #00845a; }
.block--dark .tag { background: rgba(0, 255, 171, 0.14); color: var(--green); }

.pillar h3 { margin: 14px 0 8px; }
.pillar p { color: var(--ink-muted); font-size: 0.98rem; }
.flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
.flow span { padding: 6px 12px; border: 1px dashed rgba(58, 58, 58, 0.25); border-radius: 8px; background: #fff; }
.flow i { font-style: normal; color: var(--green-deep); }

/* numbered list card (the pain list) */
.steps { margin-top: 40px; border: 1px solid rgba(58, 58, 58, 0.1); border-radius: var(--radius); background: #fff; overflow: hidden; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 24px 26px; }
.step + .step { border-top: 1px solid rgba(58, 58, 58, 0.08); }
.step__n { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(58, 58, 58, 0.45); padding-top: 4px; border-top: 2px solid var(--ink); width: 26px; height: fit-content; }
.step p { color: var(--ink-muted); margin-top: 6px; }

.pull { margin-top: 44px; text-align: center; font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid rgba(58, 58, 58, 0.1); background: var(--ink); color: var(--cream); }
.ticker__track { display: flex; gap: 44px; width: max-content; padding: 16px 0; animation: tick 60s linear infinite; font-family: var(--font-mono); font-size: 0.82rem; white-space: nowrap; }
.ticker__track b { color: var(--green); font-weight: 500; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.guide__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.guide__photo img { width: 60%; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.mini-stats b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.mini-stats span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } .guide__photo { max-width: 260px; } }

/* ---------- Results ---------- */
.results { columns: 3 300px; column-gap: 16px; margin-top: 48px; }
.result { break-inside: avoid; margin-bottom: 16px; }
.result__big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.result__big small { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-muted); margin-top: 6px; }
.result p { margin-top: 12px; font-size: 0.95rem; color: rgba(58, 58, 58, 0.78); line-height: 1.6; }
.result__who { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.85rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; flex: none; }
.result__who span { color: var(--ink-muted); }
.result img { border-radius: 10px; margin-top: 14px; border: 1px solid rgba(58, 58, 58, 0.1); }
.disclaimer { margin-top: 28px; text-align: center; font-size: 0.85rem; color: var(--ink-muted); }

/* ---------- Fit ---------- */
.fit h3 { margin: 12px 0 6px; }
.fit ul, .checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.fit li { position: relative; padding-left: 22px; color: rgba(58, 58, 58, 0.8); font-size: 0.97rem; }
.fit li::before { content: "“"; position: absolute; left: 2px; top: -2px; font-weight: 800; color: var(--green-deep); font-size: 1.2rem; }
.fit .want { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(58, 58, 58, 0.18); font-size: 0.97rem; }
.card--no { background: transparent; border-style: dashed; }
.card--no li::before { content: "×"; color: #c2410c; top: -1px; }
.tag--no { background: rgba(194, 65, 12, 0.1); color: #c2410c; }

/* ---------- Build list ---------- */
.build { display: grid; gap: 14px; margin-top: 44px; }
.build__item { display: grid; grid-template-columns: 54px 1fr; gap: 6px 18px; align-items: start; }
.build__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-deep); padding-top: 3px; }
.build__item p { grid-column: 2; color: var(--ink-muted); font-size: 0.98rem; }

.checks li { position: relative; padding-left: 30px; line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233a3a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.block--dark .checks li { color: rgba(251, 251, 249, 0.85); }

/* ---------- Guarantee ---------- */
.guarantee { margin-top: 44px; border: 1px solid rgba(0, 255, 171, 0.45); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: rgba(0, 255, 171, 0.05); }
.guarantee .h3 { font-size: 1.4rem; }

/* ---------- Pricing ---------- */
.price-card { max-width: 620px; margin: 44px auto 0; background: #fff; border: 1px solid rgba(58, 58, 58, 0.12); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.25); }
.price-card__head { background: var(--ink); color: var(--cream); padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-card__head h3 { font-size: 1.25rem; font-weight: 800; }
.price-card__body { padding: 28px 30px 32px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(58, 58, 58, 0.08); font-size: 0.97rem; }
.price-row span:last-child { font-family: var(--font-mono); font-size: 0.78rem; color: #00845a; white-space: nowrap; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 6px; }
.price b { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--ink-muted); }
.next { counter-reset: n; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 0.97rem; }
.next li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--green); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid rgba(58, 58, 58, 0.12); }
.faq details { border-bottom: 1px solid rgba(58, 58, 58, 0.12); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.3rem; color: var(--green-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-muted); line-height: 1.65; }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.sticky-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

.install .site-footer { border-top: 1px solid rgba(58, 58, 58, 0.08); }
.price-card__head .tag { background: rgba(0, 255, 171, 0.14); color: var(--green); }
.result__who .avatar { color: var(--green); }
@media (max-width: 860px) {
  .sticky-cta { display: none; }      /* top bar button already stays visible on phones */
  .step { grid-template-columns: 36px 1fr; padding: 20px; }
  .build__item { grid-template-columns: 36px 1fr; }
}
.build__n { white-space: nowrap; }
.faq details p a, .prose a { color: inherit; text-decoration-color: var(--green-deep); text-underline-offset: 3px; }
.guide__photo picture { width: 100%; height: 100%; display: block; }
