/* awasa.net's own blocks, on top of /shared/css/base.css */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Method: four numbered cards, two by two on wider screens */
.method {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.method li {
  counter-increment: step;
}

.method li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method a {
  margin-top: auto;
  font-weight: 600;
}

.example {
  border-left: 3px solid var(--accent);
}

/* Cards lift a little under the pointer */
.card {
  transition: transform 0.2s ease, outline-color 0.2s ease;
}

@media (hover: hover) {
  .method li:hover,
  .app:hover {
    transform: translateY(-2px);
  }
}

#products .app:not(.main):hover {
  outline: none;
}

/* Products: one per row, a new tool is one more card; Баланс, the centre, is outlined */
#products .apps {
  grid-template-columns: 1fr;
}

.app {
  align-items: flex-start;
}

.app.main {
  outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Product card: name, what it does, why, then where it runs and what it costs */
.app span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app h3 {
  color: var(--text);
}

.app .what {
  color: var(--text);
  font-weight: 500;
}

.app small {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

#idea p {
  max-width: 640px;
}

/* Awasa+: free and paid side by side; on a phone each tool becomes its own block, labels from data-label */
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.compare th,
.compare td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.compare td {
  color: var(--muted);
}

.compare thead th {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare td:last-child {
  color: var(--text);
}

@media (max-width: 560px) {
  .compare thead {
    display: none;
  }

  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .compare th,
  .compare td {
    padding: 4px 0;
    border: none;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

#plus .button {
  align-self: flex-start;
}

/* FAQ: native <details>, readable without JS */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq details {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq summary::marker {
  color: var(--accent);
}

.faq details p {
  margin-top: 8px;
  color: var(--muted);
}

/* Sections fade in as they scroll into view; js/reveal.js adds the classes, so without JS all shows */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

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

  .reveal,
  .card {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
