:root {
  --background: #07110c;
  --foreground: #f3f7f4;
  --muted: #a3b5ab;
  --surface: #121c18;
  --green: #3dff7a;
  --green-deep: #0e3d22;
  --gold: #e0b15a;
  --line: rgba(243, 247, 244, 0.12);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: Manrope, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

#content {
  flex: 1;
}

h1,
h2,
h3,
.brand,
.store-name,
.faq-plus {
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::selection {
  background: var(--green-deep);
  color: var(--foreground);
}

section[id],
div[id] {
  scroll-margin-top: 5.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-200%);
  background: var(--green);
  color: #07110c;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

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

.wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 17, 12, 0.88);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-size: 1.125rem;
  text-decoration: none;
}

.site-nav,
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav a,
.site-footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer-nav a:hover,
.store-btn:hover {
  color: var(--foreground);
}

.hero {
  position: relative;
}

.hero h1 {
  margin: 0;
  padding: 1rem 1.25rem 0;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.35;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-stores {
  padding: 1rem 0.75rem 0.5rem;
}

.store-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}

.store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(61, 255, 122, 0.35);
  background: rgba(18, 28, 24, 0.95);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

button.store-btn {
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.store-ios-note {
  display: none;
  align-items: center;
  gap: 0.4rem;
  max-width: 16rem;
  margin: 0.45rem 0 0;
  color: #ff6b6b;
  font-family: Manrope, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
}

.store-ios-note::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  border-radius: 50%;
  background: #e23b3b;
}

.store-ios-note.is-open {
  display: inline-flex;
  animation: store-note-in 0.18s ease;
}

@keyframes store-note-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.store-btn:hover {
  border-color: var(--green);
  background: var(--green-deep);
}

.store-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.store-icon-apple {
  fill: var(--foreground);
}

.store-copy {
  display: block;
  line-height: 1;
  text-align: left;
}

.store-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.store-name {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.advantages {
  padding-top: 1.5rem;
}

.advantage {
  display: grid;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.advantage img,
.phone-scene img {
  display: block;
  width: 100%;
  height: auto;
}

.advantage h3 {
  margin: 0;
  font-size: 1.5rem;
}

.advantage p,
.app-block p,
.faq-item p,
.price-note,
.pricing-lead {
  color: var(--muted);
}

.advantage p,
.app-block p {
  max-width: 65ch;
  margin: 0.75rem 0 0;
}

.app-block {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.app-block h2,
.faq h2,
.download-inner h2 {
  margin: 0;
  font-size: 1.875rem;
}

.phone-scene {
  overflow: hidden;
}

.phone-scene img {
  max-width: 36rem;
  margin: -7% auto -3%;
}

.pricing {
  position: relative;
  padding: 2.5rem 0;
}

.pricing-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pricing-star {
  position: absolute;
  border-radius: 50%;
  background: #f3f7f4;
  opacity: 0;
  animation: pricing-twinkle var(--duration, 3s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes pricing-twinkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.pricing-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
}

.pricing-inner {
  position: relative;
  z-index: 1;
}

.pricing-heading h2 {
  margin: 0;
  text-align: center;
  font-size: 2.25rem;
}

.pricing-lead {
  margin: 1rem 0 2rem;
  padding: 0 1.25rem;
  text-align: center;
  font-size: 1.125rem;
}

.pricing-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto;
  padding: 0.25rem;
  background: #1a2a24;
}

.pricing-pill {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  background: var(--green);
}

.pricing-toggle button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.pricing-toggle button.is-active {
  color: #07110c;
}

.pricing-toggle button:hover:not(.is-active) {
  color: var(--foreground);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 3rem;
}

.price-card {
  position: relative;
  display: flex;
  height: 100%;
  border: 2px solid var(--line);
  background: rgba(18, 28, 24, 0.85);
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.price-card.is-popular {
  border-color: var(--green);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-50%, -50%);
  background: var(--green);
  color: #07110c;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.price-badge svg {
  width: 1rem;
  height: 1rem;
}

.price-discount {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--green);
  color: #07110c;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: center;
}

.price-body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.price-amount {
  margin: 1.5rem 0 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-note {
  min-height: 2.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.price-features {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.price-features li {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.price-features svg {
  width: 1.25rem;
  height: 1.5rem;
  flex: none;
  color: var(--green);
}

.price-action {
  margin-top: auto;
  padding-top: 2rem;
}

.btn-price {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-price--solid {
  background: var(--green);
  color: #07110c;
}

.btn-price--solid:hover {
  background: rgba(61, 255, 122, 0.9);
}

.btn-price--outline {
  border: 1px solid rgba(61, 255, 122, 0.4);
  color: var(--foreground);
}

.btn-price--outline:hover {
  background: var(--green-deep);
}

.faq {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
}

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

.faq-plus {
  color: var(--green);
  transition: transform 0.2s ease;
}

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

.faq-item p {
  margin: 0 0 1.25rem;
}

.download-block {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.download-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.download-inner h2 {
  font-size: 1.5rem;
}

.download-inner .store-row {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--gold);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer .brand {
  margin: 0;
}

@media (min-width: 640px) {
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero h1 {
    position: absolute;
    inset: 0 0 auto;
    padding-top: 0.75rem;
    font-size: 2.25rem;
    line-height: 1.15;
    text-shadow: 0 10px 28px rgba(7, 17, 12, 0.85);
  }

  .hero-stores {
    position: absolute;
    right: 0;
    bottom: 0.75rem;
    left: 0;
    padding: 0 0.75rem;
  }

  .store-row {
    gap: 0.75rem;
  }

  .store-btn {
    gap: 0.75rem;
    padding: 0.65rem 1rem;
  }

  .store-kicker {
    font-size: 0.7rem;
  }

  .store-name {
    font-size: 1.125rem;
  }

  .advantages {
    padding-top: 2rem;
  }

  .advantage {
    margin-bottom: 0.5rem;
  }

  .advantage h3 {
    font-size: 1.875rem;
  }

  .app-block h2,
  .faq h2 {
    font-size: 2.25rem;
  }

  .pricing {
    padding: 3rem 0;
  }

  .pricing-heading h2 {
    font-size: 3rem;
  }

  .pricing-toggle button {
    padding: 0.5rem 1.5rem;
  }

  .download-inner h2 {
    font-size: 1.875rem;
  }

  .site-footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .site-footer-nav {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (min-width: 768px) {
  .advantage,
  .app-block {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .advantage--flip .advantage-media {
    order: 2;
  }

  .app-block {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

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

  .price-card.is-popular {
    transform: translateY(-1.25rem);
  }
}

.doc {
  width: min(48rem, 100%);
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

.doc h1 {
  margin: 0;
  font-size: 2.25rem;
}

.doc h2 {
  margin: 2rem 0 0;
  font-size: 1.5rem;
  color: var(--foreground);
}

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

.doc p {
  margin: 0.85rem 0 0;
}

.doc ul {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc strong {
  color: var(--foreground);
  font-weight: 600;
}

.doc a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

.doc a:hover {
  color: var(--foreground);
}

.doc .meta {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.doc .no-logs-badge {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--green);
  color: #07110c;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.doc .highlight-box {
  margin-top: 1.5rem;
  border: 1px solid rgba(224, 177, 90, 0.7);
  background: var(--green-deep);
  padding: 0.85rem 1rem;
}

.doc .highlight-box p {
  margin: 0;
  color: var(--foreground);
}

.doc-status {
  margin-top: 1.25rem;
  border: 1px solid rgba(61, 255, 122, 0.45);
  background: var(--green-deep);
  color: var(--foreground);
  padding: 0.85rem 1rem;
}

.doc-status--error {
  border-color: rgba(232, 93, 93, 0.7);
  background: rgba(232, 93, 93, 0.12);
}

.doc-form {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
  margin-top: 2rem;
}

.doc-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
}

.doc-form input,
.doc-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem;
}

.doc-form input {
  height: 3rem;
}

.doc-form textarea {
  resize: vertical;
}

.doc-form button {
  height: 3rem;
  border: 0;
  background: var(--green);
  color: #07110c;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.doc-form button:hover {
  background: rgba(61, 255, 122, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-pill,
  .faq-plus,
  .price-card.is-popular {
    transition: none;
    transform: none;
  }

  .pricing-star {
    animation: none;
    opacity: 0.45;
  }

  .price-badge {
    transform: translate(-50%, -50%);
  }
}
