/* =========================================================
   App pages: one page per platform module, dark theme.
   Loads after /home.css and uses its tokens. Same section
   order on every app page; the video sits in #watch.
   ========================================================= */

.ap-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: var(--mut); margin-bottom: 1.1rem; }
.ap-crumbs a { color: var(--lime); font-weight: 600; }
.ap-crumbs a:hover { text-decoration: underline; }
.ap-crumbs span[aria-hidden] { opacity: .5; }
.ap-hero h1 { margin-top: 1.1rem; font-size: clamp(2.1rem, 3.6vw + .6rem, 3.4rem); }
.ap-points { margin-top: 1.4rem; display: grid; gap: .6rem; }
.ap-points li { display: flex; gap: .65rem; align-items: flex-start; }
.ap-points li [data-ic] { color: var(--lime); margin-top: .2rem; }

/* hero visual: the module working, step by step */
.ap-vis { padding: 1.4rem; border-radius: var(--r); background: linear-gradient(160deg, rgba(34,57,92,.75), rgba(16,30,51,.9)); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); position: relative; }
.ap-vis-top { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ap-vis-top > [data-ic] { width: 2.9rem; height: 2.9rem; border-radius: .9rem; background: var(--lime); color: var(--navy); font-size: 1.25rem; flex-shrink: 0; }
.ap-vis-top b { font-family: var(--font-heading); font-size: 1.1rem; display: block; }
.ap-vis-top small { color: var(--mut); font-size: .8rem; }
.ap-vis-top .chip { margin-left: auto; font-size: .72rem; }
.ap-flow { display: grid; gap: .55rem; margin-top: 1.1rem; }
.ap-flow li { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: .9rem; border: 1px solid var(--line); background: rgba(255,255,255,.035); animation: apStep 8s infinite; }
.ap-flow li [data-ic] { width: 2.2rem; height: 2.2rem; border-radius: .65rem; background: rgba(255,255,255,.07); color: var(--mut); flex-shrink: 0; animation: apIcon 8s infinite; }
.ap-flow li b { font-size: .95rem; }
.ap-flow li em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--pill); background: var(--lime); color: var(--navy); opacity: 0; animation: apDone 8s infinite; }
.ap-flow li:nth-child(2), .ap-flow li:nth-child(2) [data-ic], .ap-flow li:nth-child(2) em { animation-delay: 1.1s; }
.ap-flow li:nth-child(3), .ap-flow li:nth-child(3) [data-ic], .ap-flow li:nth-child(3) em { animation-delay: 2.2s; }
.ap-flow li:nth-child(4), .ap-flow li:nth-child(4) [data-ic], .ap-flow li:nth-child(4) em { animation-delay: 3.3s; }
@keyframes apStep { 0%, 4% { border-color: var(--line); transform: none; } 9%, 70% { border-color: rgba(216,243,106,.55); transform: translateX(4px); } 80%, 100% { border-color: var(--line); transform: none; } }
@keyframes apIcon { 0%, 4% { background: rgba(255,255,255,.07); color: var(--mut); } 9%, 70% { background: var(--navy); color: var(--lime); } 80%, 100% { background: rgba(255,255,255,.07); color: var(--mut); } }
@keyframes apDone { 0%, 6% { opacity: 0; } 11%, 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
.ap-agent { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; padding: .7rem .9rem; border-radius: .9rem; background: rgba(11,21,36,.6); border: 1px solid var(--line); font-size: .85rem; }
.ap-agent > [data-ic] { width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy-2); color: var(--lime); flex-shrink: 0; }
.ap-agent b { display: block; }
.ap-agent span { color: var(--mut); }
.ap-agent .chip { margin-left: auto; font-size: .7rem; padding: .3rem .6rem; }

/* video: same slot on every app page */
.ap-video { background: linear-gradient(160deg, #14243A 0%, #0D1828 100%); border-radius: 1.6rem; padding: clamp(1rem, 3vw, 2rem); position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); margin-top: 2rem; }
.ap-video::before { content: ""; position: absolute; width: 32rem; height: 32rem; right: -12rem; top: -14rem; border-radius: 50%; background: radial-gradient(circle, rgba(216,243,106,.16), transparent 65%); pointer-events: none; }
.av-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; position: relative; }
.av-top img { height: clamp(1.4rem, 4.5vw, 2rem); width: auto; }
.av-chip { white-space: nowrap; flex-shrink: 0; font-size: clamp(.6rem, 2.4vw, .72rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--lime); padding: .3rem .7rem; border-radius: 999px; }
.av-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 1.1rem; overflow: hidden; background: #0D1828; border: 1px solid rgba(255,255,255,.12); }
.av-stage iframe, .av-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.av-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .35rem; padding: 0 1rem 12%; text-align: center; background: radial-gradient(circle at 50% 38%, rgba(34,57,92,.9), #0D1828 70%); }
.av-poster p { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.2rem, 3.4vw, 2.2rem); color: #fff; }
.av-poster span { font-size: clamp(.8rem, 1.8vw, 1.05rem); color: rgba(255,255,255,.8); }
.av-play { position: absolute; inset: 0; margin: auto; width: 5.25rem; height: 5.25rem; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 .9rem rgba(216,243,106,.22); transition: transform .3s var(--ease); }
.av-play:hover { transform: scale(1.06); }
.av-play[hidden] { display: none; }
.av-play svg { width: 1.9rem; height: 1.9rem; margin-left: .25rem; fill: currentColor; stroke: none; }
.av-soon { position: absolute; right: 1rem; top: 1rem; background: rgba(13,24,40,.85); border: 1px solid rgba(255,255,255,.18); padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; }
.av-chapters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; position: relative; }
.av-chapters li { font-size: .85rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; gap: .5rem; }
.av-chapters li::before { content: ""; width: .3rem; height: 1rem; border-radius: 2px; background: var(--lime); }

/* features */
.ap-feat { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .ap-feat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ap-feat { grid-template-columns: repeat(3, 1fr); } }
.ap-feat article { padding: 1.4rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.ap-feat article:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 24px 50px -30px rgba(20,36,58,.6); }
.ap-feat article > [data-ic] { width: 2.8rem; height: 2.8rem; border-radius: .85rem; background: var(--navy); color: var(--lime); font-size: 1.15rem; }
.ap-feat h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.12rem; margin-top: .9rem; }
.ap-feat p { color: var(--mut); font-size: .92rem; margin-top: .3rem; }

/* compare */
.cmp { margin-top: 2rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.cmp-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
@media (min-width: 800px) { .cmp-row { grid-template-columns: 14rem 1fr 1fr; } }
.cmp-row > * { padding: 1rem 1.25rem; font-size: .95rem; }
.cmp-q { font-weight: 700; font-family: var(--font-heading); }
.cmp-old { color: var(--mut); }
.cmp-new { background: rgba(216,243,106,.08); font-weight: 500; }
.cmp-head > * { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cmp-head .cmp-new { background: var(--lime); color: var(--navy); }
.cmp-head .cmp-old { color: var(--red); }
@media (max-width: 799px) {
  .cmp-head { display: none; }
  .cmp-old::before { content: "Separate tools: "; font-weight: 700; color: var(--red); }
  .cmp-new::before { content: "Content Concepts AI: "; font-weight: 700; color: var(--lime); }
}

/* steps: no numbers */
.ap-steps { display: grid; gap: 1rem; margin-top: 2rem; position: relative; }
@media (min-width: 900px) { .ap-steps { grid-template-columns: repeat(4, 1fr); } .ap-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 2.6rem; height: 2px; background: linear-gradient(90deg, var(--navy), #9DBB2A); opacity: .5; } }
.ap-steps li { padding: 1.4rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; }
.ap-steps li > [data-ic] { width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--card-2); color: var(--navy); border: 1px solid var(--line); }
.ap-steps h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.08rem; margin-top: .9rem; }
.ap-steps p { color: var(--mut); font-size: .92rem; margin-top: .3rem; }

/* related modules */
.ap-rel { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 800px) { .ap-rel { grid-template-columns: repeat(3, 1fr); } }
.ap-rel a { display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.ap-rel a:hover { border-color: var(--lime); transform: translateY(-3px); }
.ap-rel a > [data-ic] { width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: var(--navy-2); color: var(--lime); flex-shrink: 0; }
.ap-rel b { display: block; font-family: var(--font-heading); }
.ap-rel span { color: var(--mut); font-size: .88rem; }

/* closing band */
.ap-cta { background: linear-gradient(135deg, var(--navy-2), var(--navy)); border: 1px solid var(--line); border-radius: 1.6rem; padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .ap-cta { grid-template-columns: 1.5fr auto; } }
.ap-cta h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.5rem, 2vw + .7rem, 2.2rem); line-height: 1.2; }
.ap-cta p { margin-top: .6rem; color: var(--mut); max-width: 52ch; }

/* apps index */
.ax-group { margin-top: 3rem; }
.ax-group h2 { display: flex; align-items: center; gap: .7rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; }
.ax-group h2 [data-ic] { width: 2.4rem; height: 2.4rem; border-radius: .75rem; background: var(--lime); color: var(--navy); }
.ax-group > p { color: var(--mut); margin-top: .3rem; }
.ax-grid { display: grid; gap: .9rem; margin-top: 1.2rem; }
@media (min-width: 700px) { .ax-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .ax-grid { grid-template-columns: repeat(3, 1fr); } }
.ax-grid a { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.ax-grid a:hover { border-color: var(--lime); transform: translateY(-3px); }
.ax-grid a > [data-ic] { width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: var(--navy-2); color: var(--lime); flex-shrink: 0; }
.ax-grid b { display: block; font-family: var(--font-heading); }
.ax-grid span { color: var(--mut); font-size: .88rem; }

/* try it (Website Builder only) */
.try-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.try-tab { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .9rem; }
.try-tab[aria-selected="true"] { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.try-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .try-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.wb-win { background: #fff; border: 1px solid rgba(20,36,58,.12); border-radius: 1.1rem; overflow: hidden; color: #202735; }
.wb-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: #EEF1F7; border-bottom: 1px solid rgba(20,36,58,.1); }
.wb-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #C9D0DD; }
.wb-url { margin-left: .5rem; flex: 1; background: #fff; border-radius: 999px; padding: .2rem .75rem; font-size: .72rem; color: #5A6478; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-page { padding: 1rem; }
.tp-body { padding: 1.2rem; display: grid; gap: .9rem; }
.tp-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C24A33; }
.tp-body h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: #202735; }
.tp-secs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tp-secs span { padding: .7rem .5rem; text-align: center; font-size: .78rem; font-weight: 600; border-radius: .7rem; background: #F1F4FA; border: 1px solid rgba(20,36,58,.1); }
.tp-form { display: grid; gap: .5rem; padding: .9rem; border-radius: .9rem; background: #F7F8FC; border: 1px solid rgba(20,36,58,.1); }
.tp-form div { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: #5A6478; }
.tp-form em { height: 1.9rem; display: flex; align-items: center; padding-inline: .6rem; font-style: normal; font-weight: 500; color: #202735; background: #fff; border: 1px solid rgba(20,36,58,.12); border-radius: .5rem; overflow: hidden; white-space: nowrap; }
.tp-swap { animation: syIn .45s var(--ease) both; }
.try-side { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.try-side h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; }
.try-flow { display: grid; gap: .7rem; }
.try-flow li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card-2); opacity: .5; transition: opacity .4s, border-color .4s, transform .4s var(--ease); }
.try-flow li [data-ic] { color: var(--mut); margin-top: .15rem; }
.try-flow b { display: block; font-size: .95rem; }
.try-flow span { font-size: .84rem; color: var(--mut); }
.try-flow li.on { opacity: 1; border-color: var(--lime); transform: translateX(4px); }
.try-flow li.on [data-ic] { color: var(--lime); }
.try-note { font-size: .82rem; color: var(--mut); }

@media (prefers-reduced-motion: reduce) {
  .ap-flow li, .ap-flow li [data-ic], .ap-flow li em { animation: none; }
  .ap-flow li em { opacity: 1; }
}

/* video at the top, in the hero */
.ap-video-top { align-self: center; }
.ap-video-top .av-top { margin-bottom: .75rem; }
.ap-video-top .av-play { width: 4.5rem; height: 4.5rem; }
.ap-video-top .av-chapters li { font-size: .78rem; padding: .35rem .7rem; }
@media (min-width: 1024px) { .ap-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; } }
.ap-run { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .ap-run { grid-template-columns: 1fr 1fr; } }
.ap-video-top .av-poster { padding-bottom: 6%; gap: .2rem; }
.ap-video-top .av-poster p { font-size: clamp(1.05rem, 2.2vw, 1.6rem); }
.ap-video-top .av-poster span { font-size: clamp(.75rem, 1.2vw, .9rem); }
.ap-video-top .av-play { bottom: 22%; }
@media (max-width: 639px) { .ap-video-top .av-poster p { display: none; } .ap-video-top .av-play { bottom: 18%; width: 3.75rem; height: 3.75rem; } }
/* poster = the video's title card, shown before play and again after it ends */
.av-poster.has-thumb { padding: 0; background: #0D1828; }
.av-poster.has-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-stage .av-play { z-index: 2; }
.ap-video-top .av-play { bottom: 0; }
.av-stage:has(.has-thumb) .av-play { top: auto; bottom: 9%; left: 5%; right: auto; margin: 0; width: 3.6rem; height: 3.6rem; box-shadow: 0 0 0 .55rem rgba(216,243,106,.25); }
/* tablet and phone: square poster and square video */
@media (max-width: 1023px) { .av-stage { aspect-ratio: 1 / 1; } }
