:root {
  --bg: #0b0f10;
  --surface: #12181a;
  --border: #223034;
  --text: #eef4f3;
  --muted: #9db0af;
  --primary: #2fae8f;
  --primary-foreground: #06110d;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, rgba(47, 174, 143, 0.14), transparent);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  width: 380px;
  height: 380px;
  background: url("/assets/icon-512.png") center / contain no-repeat;
  transform: translateX(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-trust li { display: flex; align-items: center; gap: 6px; }

.hero-trust svg { color: var(--primary); flex-shrink: 0; }

.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.social-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 720px;
  margin-inline: auto;
  text-wrap: pretty;
}

.social-proof strong { color: var(--text); }

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.6rem;
  margin: 0;
  text-wrap: balance;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 32px 0 80px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-icon {
  color: var(--primary);
  margin-bottom: 14px;
}

.feature h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.05rem;
  text-wrap: balance;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
  text-wrap: balance;
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.showcase {
  padding: 24px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row.reverse .showcase-media { order: 1; }

.showcase-copy .feature-icon { margin-bottom: 14px; }

.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
  text-wrap: balance;
}

.showcase-copy p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 42ch;
  text-wrap: pretty;
}

.showcase-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.showcase-media svg { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
  .showcase-row {
    grid-template-columns: 1fr;
  }
  .showcase-row.reverse .showcase-copy,
  .showcase-row.reverse .showcase-media {
    order: initial;
  }
}

/* Shared wireframe-illustration tokens: abstract UI, never real product data */
.ui-panel { fill: var(--bg); stroke: var(--border); }
.ui-card { fill: var(--surface); stroke: var(--border); }
.ui-card-active { fill: rgba(47, 174, 143, 0.12); stroke: var(--primary); }
.ui-line { fill: var(--border); }
.ui-line-strong { fill: var(--muted); }
.ui-avatar { fill: var(--border); }
.ui-bubble-in { fill: var(--surface); stroke: var(--border); }
.ui-bubble-out { fill: var(--primary); }
.ui-bubble-out-line { fill: var(--primary-foreground); opacity: 0.55; }
.ui-accent-fill { fill: var(--primary); }
.ui-accent-stroke {
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-divider { stroke: var(--border); }

.ui-flow-dash {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5 5;
  animation: dash-flow 1.6s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}

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

.compare {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 80px;
  text-align: center;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}

.compare-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.compare-col h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-col li {
  color: var(--muted);
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
}

.compare-col li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.compare-col-highlight {
  border-color: var(--primary);
  background: rgba(47, 174, 143, 0.08);
}

.compare-col-highlight li { color: var(--text); }

.compare-col-highlight li::before {
  content: "✓";
  color: var(--primary);
}

.link-more {
  display: inline-block;
  margin-top: 24px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link-more:hover { text-decoration: underline; }

.addon {
  padding: 0 0 80px;
}

.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.addon-copy h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 12px;
  text-wrap: balance;
}

.addon-copy p {
  color: var(--muted);
  margin: 0 0 24px;
  text-wrap: pretty;
}

.addon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.addon-list li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}

.addon-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 720px) {
  .addon-grid {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

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

.faq summary:hover { color: var(--primary); }

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; }

details[open] .faq-icon { transform: rotate(180deg); }
details[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-answer-inner { overflow: hidden; }

.faq-answer-inner p {
  color: var(--muted);
  margin: 12px 0 0;
}

.js-enhanced .faq-answer-inner {
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
  .js-enhanced .faq-answer-inner { transition: none; }
}

.cta {
  text-align: center;
  padding: 60px 0 100px;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta p {
  color: var(--muted);
  margin-bottom: 28px;
  text-wrap: pretty;
}

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

footer a:hover { color: var(--text); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand .brand { margin-bottom: 10px; }

.footer-brand p {
  max-width: 32ch;
  margin: 0;
  font-size: 0.9rem;
  text-wrap: pretty;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 12px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-wrap: balance;
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.legal h2 {
  font-size: 1.1rem;
  margin: 32px 0 8px;
}

.legal p, .legal li {
  color: var(--muted);
  text-wrap: pretty;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.post-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.post-list a:hover { color: var(--primary); }

.post-list .updated { margin: 0; white-space: nowrap; }

/* Entrance animation: hero content fades/slides in on load, staggered. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero p,
.hero .btn {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 { animation-delay: 0.05s; }
.hero p { animation-delay: 0.15s; }
.hero .btn { animation-delay: 0.25s; }

/*
 * Scroll reveal: content is visible by default (progressive enhancement).
 * Only once reveal.js confirms it's running does it add `js-enhanced` to <html>,
 * and only then does .reveal start hidden pending its `is-visible` toggle.
 * Without that, JS-less browsers, slow connections, and crawlers that don't
 * fire IntersectionObserver would ship the section permanently blank, and
 * this is the FAQ content the FAQPage schema promises Google.
 */
.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.features .reveal:nth-child(1), .steps .reveal:nth-child(1), .compare-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.features .reveal:nth-child(2), .steps .reveal:nth-child(2), .compare-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.features .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 160ms; }
.features .reveal:nth-child(4) { transition-delay: 240ms; }

.btn {
  transition: opacity 0.15s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .hero .btn {
    animation: none;
    opacity: 1;
  }
  .js-enhanced .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature, .btn {
    transition: none;
  }
}
