/* ==========================================================================
   FleshNote — landing page layout (hero download, demo, feature groups)
   ========================================================================== */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero-section .hero-logo-wrapper {
  width: 110px;
  height: 126px;
}

.hero-release-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.hero-release-badge:hover { color: var(--accent-amber-hover); }

.hero-section .hero-lead-text {
  max-width: 640px;
  margin-bottom: 30px;
}

.dl-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.dl-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dl-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.dl-others {
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-dim);
}

.dl-others a {
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border-bright);
}

.dl-others a:hover {
  color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
}

/* ── Demo frame ─────────────────────────────────────────────────────────── */
.hero-demo {
  margin-top: 44px;
}

.hero-demo-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* ── Feature groups ─────────────────────────────────────────────────────── */
.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-group {
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 24px 22px 8px;
}

.feature-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.feature-item {
  margin-bottom: 18px;
}

.feature-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tag-new {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0b0c0f;
  background: var(--accent-amber);
  padding: 1px 5px;
}

.tag-exp {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e6c84f;
  border: 1px solid rgba(230, 200, 79, 0.5);
  padding: 0 4px;
}

/* ── Companion ──────────────────────────────────────────────────────────── */
.companion-cta {
  margin-top: 16px;
}

/* ── Companion tester page ──────────────────────────────────────────────── */
.tester-steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 14px;
  margin-block: 24px 8px;
}

.tester-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.tester-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-amber);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

.tester-steps strong { color: var(--text-primary); }

.tester-steps .btn-primary,
.tester-steps .btn-secondary { margin-top: 12px; }

.btn-primary.is-pending {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  box-shadow: none;
  cursor: default;
  border: 1px dashed var(--border-bright);
}

.btn-primary.is-pending:hover { transform: none; }

.tester-gallery-section { margin-top: 36px; }

.tester-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 14px;
}

/* Phone screenshots in one row that scrolls sideways when it runs out of room. */
.tester-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.tester-gallery figure {
  margin: 0;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.tester-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-subtle);
}

.tester-gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tester-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--border-amber);
  background: var(--bg-base);
}

.tester-share p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
}

.tester-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.tester-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 22px;
}

.tester-box h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.tester-box ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.tester-box li {
  padding-inline-start: 16px;
  position: relative;
}

.tester-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--border-amber);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav-content { gap: 28px; }
.nav-link { white-space: nowrap; }

/* ── Smaller screens ────────────────────────────────────────────────────── */
/* The landing nav carries more links than the other pages, so it folds into
   the drawer earlier. */
@media (max-width: 1360px) {
  .nav-links { gap: 16px; }
}

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .btn-mobile-toggle { display: inline-flex; }
}

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

@media (max-width: 600px) {
  .dl-row { flex-direction: column; width: 100%; }
  .dl-row .btn-primary,
  .dl-row .btn-secondary { width: 100%; justify-content: center; }
  .hero-demo { margin-top: 32px; }
}
