/* Landing page. Shares tokens, buttons, cards and pills with the app (styles.css). */
.site main, .site header, .site footer { position: relative; z-index: 1; }
.site { --wrap: min(1160px, calc(100% - 32px)); }

.site-nav { position: sticky; top: 12px; z-index: 20; width: var(--wrap); margin: 12px auto 0; display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 18px; border-radius: 20px; background: rgba(10, 14, 12, .72); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.site-links { display: flex; gap: 22px; margin: 0 auto; font-weight: 600; color: var(--text-2); }
.site-links a:hover { color: var(--text); }
.site-cta { display: flex; gap: 8px; }

.hero-site { width: var(--wrap); margin: 0 auto; padding: 84px 0 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.display { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 18px 0 18px; }
.display em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); letter-spacing: -.02em; }
.lead-lg { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0 0 26px; max-width: 560px; }

/* The folder → AI → platforms picture */
.flow { display: grid; gap: 0; justify-items: stretch; }
.flow-card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--shadow), var(--highlight); backdrop-filter: var(--blur); }
.flow-card.ai { border-color: var(--green-line); background: linear-gradient(180deg, rgba(61,220,132,.10), rgba(61,220,132,.03)); }
.flow-label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--text-3); margin-bottom: 10px; }
.flow-card.ai .flow-label { color: var(--green); }
.ico { display: inline-grid; color: currentColor; }
.file-row { display: flex; gap: 12px; align-items: center; }
.file-row b { display: block; }
.file-row small { color: var(--text-3); font-weight: 600; }
.file-thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); color: var(--green); }
.caption-demo { margin: 0 0 10px; font-weight: 600; line-height: 1.5; }
.caption-demo .tags { color: var(--blue); font-weight: 600; }
.chips-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-mini span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--glass-2); color: var(--text-2); }
.flow-arrow { height: 28px; width: 2px; margin: 0 auto; background: linear-gradient(var(--green-line), var(--green)); position: relative; overflow: hidden; }
.flow-arrow::after { content: ""; position: absolute; left: -2px; width: 6px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 12px var(--green); animation: drip 1.6s var(--ease) infinite; }
@keyframes drip { from { top: -10px; } to { top: 28px; } }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-big { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); position: relative; animation: pop .5s var(--spring) both; }
.pf-big::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304140a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; border: 2px solid #0d120f; }
.pf-big:nth-child(2) { animation-delay: .08s; } .pf-big:nth-child(3) { animation-delay: .16s; } .pf-big:nth-child(4) { animation-delay: .24s; }
.pf-big:nth-child(5) { animation-delay: .32s; } .pf-big:nth-child(6) { animation-delay: .40s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.strip { width: var(--wrap); margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.strip > div { background: rgba(10, 14, 12, .85); padding: 22px; }
.strip b { display: block; font-size: 30px; letter-spacing: -.03em; color: var(--green); }
.strip span { color: var(--text-2); font-weight: 600; font-size: 14px; }

.section-site { width: var(--wrap); margin: 0 auto; padding: 96px 0 0; }
.section-site.narrow { width: min(820px, calc(100% - 32px)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; margin: 16px 0 12px; }

.steps-site { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; padding: 26px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--highlight); }
.step-card img { height: 150px; margin: 4px auto 18px; }
.step-card h3, .feature h3, .price h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.step-card p, .feature p { margin: 0; color: var(--text-2); }
.step-n { position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feat-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }

.integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.integrations > div { padding: 26px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.logo-row .int, .logo-row.text span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); }
.price.featured { border-color: var(--green-line); background: linear-gradient(180deg, rgba(61,220,132,.10), rgba(61,220,132,.02)); box-shadow: 0 30px 80px -30px rgba(61,220,132,.35); }
.price .faint { margin: 0; }
.amount { margin: 20px 0; display: flex; align-items: baseline; gap: 6px; }
.amount b { font-size: 42px; letter-spacing: -.04em; }
.amount span { color: var(--text-3); font-weight: 700; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.price li { padding-left: 26px; position: relative; color: var(--text-2); font-weight: 600; }
.price li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; 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='%233ddc84' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.price .btn { justify-content: center; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

.cta-final { padding: 56px 48px; }
.site-foot { width: var(--wrap); margin: 96px auto 0; padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .site-links { display: none; }
  .site-cta { margin-left: auto; }
  .hero-site { grid-template-columns: 1fr; padding-top: 48px; }
  .steps-site, .feature-grid, .price-grid, .integrations { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cta-final { padding: 36px 24px; }
}
@media (max-width: 520px) {
  .site-cta .btn.ghost { display: none; }
  .site-nav { gap: 10px; padding-left: 12px; }
  .site-nav img { height: 24px; width: auto; }
}

/* Legal pages */
.legal { width: min(780px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 0; }
.legal h2 { font-size: 21px; letter-spacing: -.02em; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--text); }
