:root {
  --bg: #f4f8fc;
  --bg-soft: #eaf4ff;
  --surface: #ffffff;
  --surface-strong: #f7fbff;
  --border: #cedceb;
  --text: #10233f;
  --text-muted: #4c5f79;
  --primary: #0ea5e9;
  --primary-strong: #0369a1;
  --accent: #f97316;
  --success: #059669;
  --ring: rgba(3, 105, 161, 0.35);
  --shadow-sm: 0 8px 22px rgba(12, 38, 76, 0.08);
  --shadow-lg: 0 26px 70px rgba(12, 38, 76, 0.14);
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(950px 420px at 14% -16%, rgba(14, 165, 233, 0.16), transparent 64%),
    radial-gradient(820px 360px at 100% -10%, rgba(249, 115, 22, 0.12), transparent 62%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  line-height: 1.58;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -48px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  top: 14px;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 252, 255, 0.9);
  border-bottom: 1px solid rgba(145, 169, 201, 0.35);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(10, 40, 78, 0.16);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(3, 105, 161, 0.08);
}

.nav .cta-link {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.nav .cta-link:hover {
  background: linear-gradient(135deg, #0284c7, #ea580c);
}

/* Hero */
.hero {
  padding: 66px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 46px;
}

.hero h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.15rem, 4.1vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 14ch;
}

.hero .lead {
  margin: 0 0 20px;
  font-size: 1.11rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
}

.hero-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.store-badge img {
  width: auto;
  height: 54px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary-strong);
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.secondary-link:hover {
  background: var(--bg-soft);
  border-color: #a5c5e8;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #c6dbf3;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 14px;
}

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

.hero-visual {
  border-radius: 28px;
  border: 1px solid #c9dcf0;
  background:
    radial-gradient(460px 300px at 20% 16%, rgba(14, 165, 233, 0.19), transparent 72%),
    radial-gradient(420px 300px at 74% 66%, rgba(249, 115, 22, 0.16), transparent 70%),
    linear-gradient(180deg, #fbfdff, #f1f7fe);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.hero-visual .frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #c4d8ee;
  background: #11203a;
}

.trust-strip {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-chip .value {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.stat-chip .label {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 50px 0;
}

.section-tight {
  padding-top: 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.56rem, 2.4vw, 2.05rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.14), rgba(14, 165, 233, 0.22));
  border: 1px solid #b7d3ee;
  color: var(--primary-strong);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(2, 132, 199, 0.24);
  background: linear-gradient(135deg, #0ea5e9, #f97316);
  color: #fff;
  font-weight: 800;
  padding: 11px 14px;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Screenshots */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.tab-btn:hover {
  background: var(--bg-soft);
}

.tab-btn[aria-selected="true"] {
  border-color: #7cb4e7;
  background: #dceeff;
}

.tab-panel {
  display: none;
  margin-top: 16px;
}

.tab-panel.active {
  display: block;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.shot-open {
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.shot-open img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 12px 14px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}

/* Reviews */
.review-summary {
  border: 1px solid #c5daf0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 250px at 5% 0%, rgba(14, 165, 233, 0.12), transparent 70%),
    radial-gradient(380px 210px at 95% 100%, rgba(249, 115, 22, 0.11), transparent 70%),
    var(--surface);
  padding: 20px;
  margin-bottom: 16px;
}

.review-summary .score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.review-summary .score strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.star-row {
  display: inline-flex;
  gap: 4px;
  color: #f59e0b;
}

.star-row svg {
  width: 18px;
  height: 18px;
}

.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 16px;
}

.review-card p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.review-card .author {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 800;
}

.workflow-card {
  border-color: #bdd5ee;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.step-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #b8d4f2;
  background: #eaf4ff;
  color: #0b5787;
  font-size: 0.84rem;
  font-weight: 800;
}

.inline-cta {
  margin-top: 16px;
  border: 1px solid #c4d9f0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafdff, #eff7ff);
  padding: 16px;
}

.inline-cta p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

/* FAQ */
.faq-toolbar {
  margin-bottom: 12px;
}

.faq-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.faq-search {
  width: min(460px, 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 16px;
}

summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}

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

details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.faq-empty {
  display: none;
  border-radius: var(--radius-md);
  border: 1px dashed #afc9e5;
  padding: 12px;
  color: var(--text-muted);
  font-weight: 700;
  background: #f7fbff;
}

.faq-empty.visible {
  display: block;
}

/* Page + content */
.page-hero {
  padding: 46px 0 24px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.content h2 {
  margin: 24px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.content h2:first-child {
  margin-top: 0;
}

.content p,
.content li {
  color: var(--text-muted);
}

.content ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.callout {
  margin-top: 16px;
  border: 1px solid #bcdbf8;
  border-radius: var(--radius-md);
  background: #edf7ff;
  padding: 14px;
}

.callout p {
  margin: 0;
}

.cta-card {
  text-align: center;
  background:
    radial-gradient(350px 200px at 0 0, rgba(14, 165, 233, 0.14), transparent 75%),
    radial-gradient(300px 180px at 100% 100%, rgba(249, 115, 22, 0.13), transparent 75%),
    var(--surface);
}

.cta-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

/* Support */
.support-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-form {
  display: grid;
  gap: 12px;
}

.support-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfeff;
  color: var(--text);
  padding: 11px 12px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.helper {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mt-12 {
  margin-top: 12px;
}

.hero-actions.center {
  justify-content: center;
}

/* Footer */
.footer {
  padding: 30px 0 44px;
  color: var(--text-muted);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #c8dbef;
  padding-top: 20px;
}

.footer a {
  margin-left: 14px;
  font-weight: 700;
  color: #33567f;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 19, 35, 0.8);
  z-index: 80;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  width: min(920px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #eaf4ff;
  color: var(--text);
  padding: 12px;
  position: relative;
}

.lightbox-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #bdd7f3;
  background: #10223c;
}

.lightbox-image-wrap img {
  width: 100%;
  height: auto;
}

.lightbox-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lightbox-controls {
  display: inline-flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #b6d4f3;
  background: #fff;
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.sticky-download {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  border: 1px solid #bdd8f3;
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-download p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.sticky-download p strong {
  color: var(--text);
}

.sticky-download .button {
  padding: 9px 12px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .grid.cols-3,
  .shot-row,
  .review-grid,
  .support-grid,
  .support-form-grid,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fafdff;
    border: 1px solid #bed8f1;
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .site-header.menu-active .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: left;
  }

  .nav .cta-link {
    text-align: center;
  }

  .sticky-download {
    display: flex;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 921px) {
  .sticky-download {
    display: none !important;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .hero {
    padding-top: 46px;
  }

  .store-badge img {
    height: 48px;
  }

  .footer a {
    margin-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
