/* =========================================================================
   CLARIO CREATIVE — Applications pages
   Extends assets/css/styles.css (tokens, reset, buttons, header, footer).
   Load order: styles.css first, then app.css.
   ========================================================================= */

/* ---------- Shared page scaffolding (clears the fixed 76px header) ---------- */
.app-hero,
.prose-page { position: relative; }
.app-hero { padding-top: calc(76px + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.prose-page { padding-top: calc(76px + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.app-hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(216,181,122,0.18), transparent 60%),
    radial-gradient(45% 45% at 12% 25%, rgba(154,123,79,0.10), transparent 60%);
}
.app-hero .container { position: relative; z-index: 2; }

/* ---------- Breadcrumb ---------- */
.crumb {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.6rem;
}
.crumb a { color: var(--gold); transition: color 0.25s var(--ease); }
.crumb a:hover { color: var(--gold-bright); }
.crumb span { color: var(--text-faint); }

/* ---------- Hero (product + hub) ---------- */
.app-hero-inner { max-width: 820px; }
.app-hero-inner.center { margin-inline: auto; text-align: center; }
.app-hero-inner.center .app-cta { justify-content: center; }
.app-hero-inner.center .eyebrow { justify-content: center; }

.app-title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
}
.app-title em {
  font-style: italic; color: transparent;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
}
.app-tagline {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--gold-bright);
  line-height: 1.25;
}
.app-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-soft);
  max-width: 60ch;
}
.app-hero-inner.center .app-sub { margin-inline: auto; }

.app-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; align-items: center; }
.app-meta-note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--text-muted); }
.app-hero-inner.center .app-meta-note { text-align: center; }

/* ---------- App Store download button ---------- */
.btn-appstore { gap: 0.7rem; }
.btn-appstore .apple { width: 18px; height: 18px; margin-top: -2px; }

/* ---------- Screenshot frame ---------- */
.shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0d0b08;
  box-shadow: 0 50px 100px -45px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-fig { margin: 0; }
.shot-caption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-muted); text-align: center; }

.hero-shot {
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
  max-width: 1020px; margin-inline: auto;
  position: relative;
}
.hero-shot::after {
  content: ""; position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 70%; height: 60px; z-index: -1;
  background: radial-gradient(50% 100% at 50% 0%, rgba(216,181,122,0.22), transparent 70%);
  filter: blur(8px);
}

/* ---------- Feature rows (reuse .split from styles.css) ---------- */
.feature-shot .shot { box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.feature-copy .lead { max-width: 52ch; }

/* Simple bullet list for feature copy */
.point-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.point-list li { position: relative; padding-left: 1.9rem; color: var(--text-soft); font-size: 1rem; }
.point-list li strong { color: var(--text); font-weight: 600; }
.point-list li::before {
  content: ""; position: absolute; left: 0; top: 0.4rem;
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Centered value strip (private by design, etc.) */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.value-strip .vs {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; text-align: center;
}
.value-strip .vs h3 { font-family: var(--font-display); font-weight: 460; font-size: 1.15rem; color: var(--gold-bright); margin-bottom: 0.4rem; }
.value-strip .vs p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Applications hub grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.app-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
a.app-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 34px 66px -34px rgba(0,0,0,0.7); }
.app-card-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0b08; border-bottom: 1px solid var(--line); }
.app-card-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
a.app-card:hover .app-card-preview img { transform: scale(1.04); }
.app-card-body { padding: 1.7rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.app-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.app-card-name { font-family: var(--font-display); font-weight: 480; font-size: 1.6rem; color: var(--text); }
.app-card-desc { color: var(--text-muted); font-size: 0.98rem; margin-top: 0.7rem; }
.app-card-foot { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.app-card-cta { font-weight: 600; font-size: 0.94rem; color: var(--gold-bright); display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.3s var(--ease); }
a.app-card:hover .app-card-cta { gap: 0.85rem; }

.platform-badge {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  color: var(--gold); border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 0.3rem 0.7rem; white-space: nowrap;
}

/* "Coming soon" placeholder card */
.app-card--soon {
  border-style: dashed; background: transparent; align-items: center; justify-content: center;
  text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 2rem; min-height: 240px;
}
.app-card--soon .cs-mark {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--gold-grad-soft); color: var(--gold);
  font-family: var(--font-display); font-size: 1.5rem; margin: 0 auto 1.1rem;
}
.app-card--soon h3 { font-family: var(--font-display); font-weight: 460; font-size: 1.3rem; margin-bottom: 0.5rem; }
.app-card--soon p { color: var(--text-muted); font-size: 0.95rem; max-width: 32ch; margin-inline: auto; }

/* ---------- Final CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .app-cta { justify-content: center; }

/* ---------- Prose (privacy / support) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose-title { font-family: var(--font-display); font-weight: 360; font-size: clamp(2.1rem, 4.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; }
.prose-meta { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.8rem; }
.prose-body { margin-top: 2.4rem; }
.prose-body h2 {
  font-family: var(--font-display); font-weight: 460; font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--text); margin: 2.4rem 0 0.9rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.prose-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose-body h3 { font-family: var(--font-display); font-weight: 460; font-size: 1.2rem; color: var(--gold-bright); margin: 1.8rem 0 0.6rem; }
.prose-body p { color: var(--text-soft); margin-bottom: 1rem; }
.prose-body strong { color: var(--text); font-weight: 600; }
.prose-body a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose-body a:hover { text-decoration-color: var(--gold); }
.prose-body ul { display: grid; gap: 0.7rem; margin: 0 0 1.3rem; }
.prose-body ul li { position: relative; padding-left: 1.5rem; color: var(--text-soft); }
.prose-body ul li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.4rem; color: var(--gold-bright); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; margin-top: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 0.2rem;
  font-family: var(--font-display); font-weight: 460; font-size: 1.2rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-bright); }
.faq summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; color: var(--gold);
  transition: transform 0.3s var(--ease); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0.2rem 1.5rem; }
.faq details p { color: var(--text-muted); margin-bottom: 0.8rem; }
.faq details p:last-child { margin-bottom: 0; }
.faq details a { color: var(--gold-bright); }
.faq details code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.4rem; }

/* ---------- Back link ---------- */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.6rem; color: var(--gold-bright); font-weight: 600; font-size: 0.95rem; }
.back-link:hover { color: var(--champagne); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .value-strip { grid-template-columns: 1fr; }
}
