/* Capixe landing — light, minimal, brand-aligned */

:root {
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --bg-muted: #eef0f3;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-strong: #111827;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px rgba(17, 24, 39, 0.06);
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e0e7ff 0%, transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 246, 248, 0.85);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Hero — left copy / right product shot */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 3.25rem);
  }
}

.hero-copy {
  min-width: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--accent);
  font-weight: 600;
  margin: 0.35rem 0 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-proof {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-strong);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  color: var(--text-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: #bfdbfe;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.hero-visual {
  margin: 0;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  /* Do not clip screenshot corners against the frame radius */
  overflow: visible;
  padding: 0.75rem;
}

.hero-visual-caption {
  padding: 0.75rem 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-muted);
  object-fit: contain;
  object-position: center;
}

@media (min-width: 900px) {
  .hero-visual {
    padding: 0.9rem;
  }
}

/* Why */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.panel--muted {
  background: var(--bg-muted);
  box-shadow: none;
}

.panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.panel li + li {
  margin-top: 0.45rem;
}

.panel-solution {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%);
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: #bfdbfe;
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

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

/* Screenshots — compact cards on larger screens, one column on mobile. */
.shot-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .shot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shot-card {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid #d7deea;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.shot-button {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: clamp(0.5rem, 1.2vw, 0.75rem);
  overflow: hidden;
  cursor: zoom-in;
  background: #e9edf3;
  border: 0;
  border-bottom: 1px solid #d7deea;
  border-radius: 0;
}

.shot-button:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

.shot-button img {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
  border: 1px solid #cfd6e2;
  border-radius: 4px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.2s ease;
}

.shot-button:hover img {
  transform: scale(1.008);
}

.shot-card--placeholder .shot-button {
  background: var(--bg-muted);
}

.shot-card--placeholder .shot-button img {
  padding: 1.5rem;
}

.shot-card figcaption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

/* Full-screen screenshot viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(3, 7, 18, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  object-position: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-content figcaption {
  margin-top: 0.75rem;
  color: #f9fafb;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 1;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: #ffffff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
  .shot-gallery {
    gap: 2rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox-content img {
    max-height: calc(100vh - 5rem);
  }
}

/* Roadmap */
.roadmap-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.roadmap-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  margin-top: 0.15rem;
}

.roadmap-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-strong);
  margin-bottom: 0.15rem;
}

.roadmap-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Download */
.download-card {
  display: grid;
  gap: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .download-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.chip strong {
  color: var(--text-strong);
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.version-block {
  margin: 0.35rem 0 1rem;
}

.version-channel {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.version-label {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
}

.download-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-strong);
  padding: 1rem 1.15rem;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Feedback */
.feedback-box {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 45%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.feedback-box ul {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  padding-left: 1.15rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-strong);
}

.footer-tagline {
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

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

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

.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

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