:root {
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --title: #1e293b;
  --text: #475569;
  --text-muted: #94a3b8;
  --accent: #10b981;
  --accent-hover: #059669;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--title);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--title);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--title);
  line-height: 1.4;
}

p {
  color: var(--text);
}

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

a:hover {
  color: var(--accent-hover);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--title);
}

.nav-logo-icon {
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--title);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  padding: 12px 20px;
}

.btn-secondary:hover {
  color: var(--accent-hover);
  background: var(--bg-alt);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 12px;
}

/* Hero */
.hero {
  padding: 96px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #ecfdf5 0%, var(--bg) 70%);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 19px;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero mockup */
.hero-mockup {
  margin: 48px auto 0;
  max-width: 280px;
}

.hero-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border);
}

/* Feature bands */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-band:last-child {
  margin-bottom: 0;
}

.feature-band-reverse .feature-band-media {
  order: 2;
}

.feature-band-reverse .feature-band-copy {
  order: 1;
}

.feature-band-media {
  display: flex;
  justify-content: center;
}

.feature-band-media img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--border);
}

.feature-band-copy h2 {
  font-size: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-band-copy p {
  font-size: 17px;
  line-height: 1.65;
}

/* ASO screenshot gallery */
.screenshot-gallery-section .section-header {
  margin-bottom: 32px;
}

.screenshot-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.screenshot-gallery img {
  flex: 0 0 auto;
  height: 420px;
  width: auto;
  border-radius: 16px;
  scroll-snap-align: start;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 17px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}

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

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  font-size: 15px;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.testimonial-quote {
  font-size: 16px;
  color: var(--title);
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 13px;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--title);
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 22px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 96px 24px;
  background: var(--bg-alt);
  border-radius: 24px;
  margin: 64px auto;
  max-width: 1060px;
}

.final-cta h2 {
  font-size: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.final-cta p {
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--title);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--title);
}

.footer-logo-icon {
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 14px;
  color: var(--text);
}

.footer-link:hover {
  color: var(--title);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.support-contact {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.support-contact p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.support-contact a {
  font-weight: 600;
}

/* Legal pages */
.legal {
  padding: 64px 0 96px;
}

.legal h1 {
  font-size: 40px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

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

.legal h2 {
  font-size: 22px;
  margin: 40px 0 14px;
}

.legal h3 {
  font-size: 17px;
  margin: 24px 0 10px;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--title);
  font-weight: 600;
}

.legal .toc {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 24px 24px 24px 44px;
  margin: 24px 0 40px;
}

.legal .toc li {
  margin-bottom: 4px;
  font-size: 15px;
}

/* Shared note view */
.share {
  padding: 40px 0 80px;
}
.share-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 32px;
}
.share-cta-text {
  font-size: 14px;
  color: var(--text);
}
.share-cta-text strong {
  color: var(--title);
  font-weight: 600;
}
.share-header {
  margin-bottom: 32px;
}
.share-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 16px;
}
.share-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title);
  margin-bottom: 8px;
  line-height: 1.15;
}
.share-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.share-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.share-body h1,
.share-body h2,
.share-body h3,
.share-body h4 {
  color: var(--title);
  margin: 32px 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.share-body h1 { font-size: 28px; }
.share-body h2 { font-size: 22px; }
.share-body h3 { font-size: 18px; }
.share-body h4 { font-size: 16px; }
.share-body p { margin-bottom: 16px; }
.share-body ul,
.share-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.share-body li { margin-bottom: 6px; }
.share-body strong { color: var(--title); font-weight: 600; }
.share-body em { font-style: italic; }
.share-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.share-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.share-body pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.share-body pre code {
  background: transparent;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
}
.share-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  color: var(--text);
  font-style: italic;
}
.share-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.share-body th,
.share-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.share-body th {
  background: var(--bg-alt);
  color: var(--title);
  font-weight: 600;
}
.share-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.share-footer-note {
  font-size: 13px;
  color: var(--text-muted);
}
.share-report-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.share-report-link:hover {
  color: var(--title);
}
.share-error {
  text-align: center;
  padding: 80px 20px;
}
.share-error h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.share-error p {
  color: var(--text);
  margin-bottom: 24px;
}

/* Report form */
.report {
  padding: 64px 0 96px;
}
.report h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.report .lede {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 32px;
}
.report-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.report-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 10px;
}
.report-field-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.report-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.report-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--title);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.report-radio:hover {
  border-color: var(--accent);
}
.report-radio input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.report-radio input:checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px);
}
.report-radio input:checked + span {
  font-weight: 600;
}
.report-input,
.report-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--title);
  outline: none;
  transition: border-color 0.15s ease;
}
.report-input:focus,
.report-textarea:focus {
  border-color: var(--accent);
}
.report-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.report-submit {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}
.report-submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.report-success,
.report-error-msg {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.report-success {
  background: rgba(16, 185, 129, 0.10);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.report-error-msg {
  background: rgba(220, 38, 38, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 820px) {
  .hero {
    padding: 64px 0 40px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero .subtitle {
    font-size: 17px;
  }
  .section {
    padding: 56px 0;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .steps,
  .features,
  .testimonials {
    grid-template-columns: 1fr;
  }
  .feature-band,
  .feature-band-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }

  .feature-band-reverse .feature-band-media,
  .feature-band-reverse .feature-band-copy {
    order: unset;
  }

  .feature-band-copy h2 {
    font-size: 26px;
  }

  .screenshot-gallery img {
    height: 360px;
  }
  .final-cta {
    padding: 64px 20px;
    margin: 32px 16px;
  }
  .final-cta h2 {
    font-size: 30px;
  }
  .nav-links .nav-link-hide {
    display: none;
  }
  .legal h1 {
    font-size: 30px;
  }
  .share-title {
    font-size: 28px;
  }
  .share-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .report-radio-group {
    grid-template-columns: 1fr;
  }
}
