/* ==========================================================================
   Guides (/what-is-ugc) and the app page (/app)
   ========================================================================== */
.guide-hero h1 { font-size: clamp(30px, 4.6vw, 50px); }
.guide-crumbs { font-size: 13px; color: #a9a295; margin-bottom: 12px; }
.guide-crumbs a { color: #cfc8bd; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #bdb6aa; font-size: 14px; font-weight: 600; }
.guide-meta span { display: inline-flex; align-items: center; gap: 6px; }
.guide-section { padding-top: 32px; }
.guide-wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }

/* table of contents */
.guide-toc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.guide-toc summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.guide-toc summary::-webkit-details-marker { display: none; }
.guide-toc summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; line-height: 1; color: var(--gold-3); transition: transform .2s; }
.guide-toc details[open] summary::after { transform: rotate(45deg); }
.guide-toc ol { margin: 0; padding: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.6; }
.guide-toc a { color: var(--muted); font-weight: 600; }
.guide-toc a:hover { color: var(--ink); }
.guide-toc-cta { display: none; }
@media (min-width: 1000px) {
  .guide-wrap { grid-template-columns: 270px minmax(0, 1fr); gap: 44px; }
  .guide-toc { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; }
  .guide-toc-cta { display: grid; gap: 8px; margin-top: 14px; }
}

/* article typography */
.guide-article { max-width: 780px; min-width: 0; font-size: 16.5px; line-height: 1.95; }
.guide-article > h2 { scroll-margin-top: calc(var(--header-h) + 16px); margin: 46px 0 12px; font-size: clamp(22px, 2.6vw, 28px); }
.guide-article > h2:first-child { margin-top: 0; }
.guide-article h3 { margin: 22px 0 8px; font-size: 19px; }
.guide-article p { margin: 0 0 14px; }
.guide-article ul, .guide-article ol { margin: 0 0 16px; padding-inline-start: 22px; }
.guide-article li { margin-bottom: 8px; }
.guide-article p a, .guide-article li a { color: var(--gold-4); text-decoration: underline; text-underline-offset: 3px; }
.guide-callout { background: var(--gold-soft); border: 1px solid var(--gold-line); border-inline-start: 4px solid var(--gold); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }

.guide-check { list-style: none; padding-inline-start: 0 !important; }
.guide-check li { position: relative; padding-inline-start: 30px; }
.guide-check li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317915A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.guide-steps { list-style: none; counter-reset: gs; padding-inline-start: 0 !important; display: grid; gap: 10px; }
.guide-steps li { counter-increment: gs; position: relative; margin: 0 !important; padding: 12px 16px; padding-inline-start: 58px; background: #fff; border: 1px solid var(--line); border-radius: 14px; line-height: 1.8; }
.guide-steps li::before { content: counter(gs); position: absolute; inset-inline-start: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); font: 900 14px/30px var(--font-latin); text-align: center; }

.guide-table-wrap { overflow-x: auto; margin: 16px 0 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.guide-table th, .guide-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--ink); color: #fff; font-weight: 800; }
.guide-table tbody th { font-weight: 800; color: var(--ink); background: var(--surface-2); width: 30%; }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 560px) { .guide-table { font-size: 13.5px; } .guide-table th, .guide-table td { padding: 10px; } }

.guide-types { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 14px 0 18px; }
.guide-type { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; line-height: 1.6; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.guide-type:hover { border-color: var(--gold-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--text); }
.guide-type b { color: var(--ink); font-size: 15.5px; }
.guide-type b small { color: var(--gold-3); font-weight: 700; font-size: 13px; }
.guide-type > span { color: var(--muted); font-size: 14px; }

.guide-rights { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.guide-rights span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 700; line-height: 1.4; }
.guide-rights .i { color: var(--green); }
.guide-stat { display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #e9e2d6; border-radius: 16px; padding: 16px 18px; margin: 6px 0 18px; }
.guide-stat .i { color: var(--gold-2); flex: 0 0 auto; margin-top: 5px; }
.guide-stat p { margin: 0; font-size: 15px; line-height: 1.85; }
.guide-stat b { color: #fff; }
.guide-stat a { color: var(--gold-2) !important; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.guide-chips { margin: 8px 0 18px; }

/* ==========================================================================
   /app — install guide with animated walkthroughs
   ========================================================================== */
.app-hero-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .app-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.app-hero-art { display: none; }
@media (min-width: 900px) { .app-hero-art { display: flex; justify-content: center; } }
.app-hero-art img { width: 300px; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.app-perks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 22px; }
.app-perks div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #ddd5c8; font-size: 14px; line-height: 1.7; }
.app-perks .i { color: var(--gold-2); flex: 0 0 auto; margin-top: 3px; }
.app-perks b { display: block; color: #fff; }

.app-tabs { display: flex; width: 100%; max-width: 480px; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 22px; }
.app-tab { flex: 1; justify-content: center; white-space: nowrap; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.app-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (max-width: 420px) { .app-tab { min-width: 0; padding: 9px 6px; font-size: 14px; } .app-tab .i { display: none; } }
.app-panel { display: grid; gap: 26px; align-items: start; }
.app-panel[hidden] { display: none; }
@media (min-width: 900px) { .app-panel { grid-template-columns: 340px minmax(0, 1fr); gap: 44px; } }
.app-demo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.app-demo .app-video { display: block; width: min(290px, 74vw); height: auto; aspect-ratio: 340 / 760; border-radius: 26px; background: #0c0c0d; box-shadow: var(--shadow); object-fit: cover; }
.app-demo small { color: var(--muted); font-weight: 600; }
.app-steps { list-style: none; margin: 0; padding: 0; counter-reset: as; display: grid; gap: 10px; }
.app-steps li { counter-increment: as; position: relative; padding: 14px 16px; padding-inline-start: 60px; background: #fff; border: 1px solid var(--line); border-radius: 16px; line-height: 1.8; }
.app-steps li::before { content: counter(as); position: absolute; inset-inline-start: 16px; top: 15px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); font: 900 14px/30px var(--font-latin); text-align: center; }
.app-steps b { display: block; color: var(--ink); }
.app-steps span { color: var(--muted); font-size: 15px; }
.app-steps .i { vertical-align: -3px; }
.app-note { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--amber-soft); color: #6b4a0e; font-size: 14.5px; line-height: 1.8; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-installed { display: none; }
html.is-standalone .app-installed { display: block; }
