/* Shared styling for individual app pages (vector.html, forma.html, and whichever app page
   gets added next). Kept separate from site.css so the homepage and the per-app template can
   evolve independently, but both still pull the same tokens (--accent, --ink, etc.) and the
   same gradient-hero / card-hover treatment as the homepage - load site.css first. */

.app-hero {
  position: relative;
  padding: 76px 0 16px;
  overflow: hidden;
  background:
    radial-gradient(680px 380px at 18% -10%, rgba(21, 94, 117, 0.14), transparent 60%),
    radial-gradient(640px 420px at 100% 10%, rgba(28, 122, 154, 0.12), transparent 60%),
    linear-gradient(180deg, #f4fafc 0%, #ffffff 65%);
}

.app-hero .wrap { position: relative; }

.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.app-hero .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-hero h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.app-hero .lede {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
}

.app-hero .hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

/* Price shown next to the primary download action - used on Vector/Forma, the two apps with
   locked pricing. Built on the shared .price-pill/.price-pill-alt/.price-block components from
   site.css; .price-pill-lg / .price-pill-alt-lg are the hero-sized modifiers used here only. */
.price-tag {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Deliberately smaller than the base .price-pill and recoloured away from the accent
   gradient - sitting right next to the primary download button, a same-size/same-colour
   pill read as a second button rather than a price. */
.price-pill-lg {
  padding: 5px 13px;
  font-size: 13px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  box-shadow: none;
}

.price-pill-alt-lg {
  padding: 4px 11px;
  font-size: 12px;
  border-radius: 999px;
}

.price-tag .price-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding-left: 2px;
}

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

.cta-price-note {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-price-note .price-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 900px) {
  .app-hero .hero-actions { justify-content: center; }
  .app-hero .price-tag { text-align: center; }
}

/* Fake browser chrome around the hero screenshot - gives a real product screenshot a
   "polished product shot" feel instead of a bare <img>. Pure CSS, no extra assets. */
.browser-frame {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  transform: rotate(0.6deg);
}

.browser-frame .browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.browser-frame .browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7e0e8;
}

.browser-frame .browser-dot:nth-child(1) { background: #e8877a; }
.browser-frame .browser-dot:nth-child(2) { background: #e8c27a; }
.browser-frame .browser-dot:nth-child(3) { background: #8fc28d; }

.browser-frame .browser-url {
  margin-left: 8px;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  flex: 1;
  max-width: 220px;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Plain screenshot frame for Windows desktop apps - no fake browser chrome, since these
   apps aren't browser-based like Vector/Forma and a URL bar would misrepresent them. */
.shot-frame {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Screenshot gallery ---- */

.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.gallery-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}

.gallery-card p {
  margin: 0;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body-text);
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card .feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.feature-card .feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 760;
  color: var(--ink);
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.6;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

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

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 760;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.6;
}

/* A numbered step-by-step diagram (currently used on store.html's "installing an app" walk-
   through). The connecting line uses the same percentage-based technique as the homepage hub
   diagram: 4 equal-width flex items with NO fixed-px gap between them (spacing comes from
   percentage padding instead), so the line's start/end position stays correct at any container
   width - a fixed-px gap alongside a percentage line offset drifts out of sync as the container
   resizes. See the .hub-branches comment in site.css for the fuller explanation. */
.steps {
  display: flex;
  position: relative;
  padding-top: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.steps::before {
  content: "";
  position: absolute;
  /* Vertical centre of the 40px .step-badge circles, which sit right after .steps' 24px
     top padding: 24px + (40px / 2) = 44px. */
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  flex: 1;
  box-sizing: border-box;
  padding: 0 3%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-badge {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(21, 94, 117, 0.28);
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 760;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.6;
}

.cta-band {
  text-align: center;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 { margin-bottom: 24px; }

@media (max-width: 900px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-hero .lede { margin-left: auto; margin-right: auto; }
  .app-hero .hero-actions { justify-content: center; }

  .browser-frame { transform: none; max-width: 480px; margin: 0 auto; }
  .shot-frame { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .app-hero { padding: 56px 0 44px; }
  .app-hero h1 { font-size: 30px; }
  .app-hero .lede { font-size: 15px; }

  .feature-card { padding: 4px 0; }

  .faq-item h3 { font-size: 15px; }
  .faq-item p { font-size: 14px; }

  .gallery-strip { grid-template-columns: 1fr; gap: 20px; }
}
