/* /ai: the Speaklit AI page (builds on site.css, how.css, land.css) */
.ai-page section { position: relative; }

/* ---------- hero ---------- */
.ai-hero { overflow: hidden; padding: 44px 0 64px;
  background: radial-gradient(760px 460px at 78% 40%, rgba(139, 92, 246, .24), transparent 70%), linear-gradient(180deg, #e9e0fa 0%, #f1ebfd 55%, var(--paper) 100%); }
.ai-glow-1 { width: 520px; height: 520px; right: -180px; top: -200px; background: rgba(167, 139, 250, .35); }
.ai-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.ai-hero h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; margin: 16px 0 14px; }
.ai-hero .lead { font-size: 1.1rem; }

/* demo window */
.ai-demo { margin: 0; }
.ai-win { position: relative; height: 470px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #ddd3f0;
  box-shadow: 0 30px 70px rgba(40, 20, 80, .22), 0 2px 6px rgba(40, 20, 80, .08); }
.ai-win-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #f3f0f8; border-bottom: 1px solid #e6e0f0; font-size: .78rem; color: #5b5170; }
.ai-dots { display: flex; gap: 6px; } .ai-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6cfe2; }
.ai-tab { padding: 5px 12px; border-radius: 8px 8px 0 0; background: #fff; border: 1px solid #e6e0f0; border-bottom: 0; margin-top: 8px; font-weight: 600; color: var(--ink); }
.ai-tab-count { margin-left: auto; padding: 2px 9px; border-radius: 99px; background: #dcfce7; color: #166534; font-weight: 600; transition: transform .3s; }
.ai-tab-count.pop { transform: scale(1.12); }
.ai-page-body { padding: 22px 26px; }
.ai-page-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2f7a52; }
.ai-page-title { margin: 6px 0 12px; font-size: 1.25rem; }
.ai-page-text { margin: 0 0 14px; font-size: .95rem; line-height: 1.7; color: #3a3148; max-width: 30em; }
.ai-sel { border-radius: 3px; transition: background .5s, color .5s; }
.ai-sel.on { background: #b9d7ff; color: #10243f; }
.ai-page-line { height: 9px; border-radius: 6px; background: #eeeaf4; margin: 10px 0; max-width: 28em; } .ai-page-line.short { max-width: 17em; }

/* Speaklit bar (floats top-right like the real app) */
.ai-bar { position: absolute; right: 16px; top: 54px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px;
  background: #2e2347; box-shadow: 0 10px 24px rgba(20, 8, 50, .3); }
.ai-tile { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; background: #3b2d5c; color: #f1ecfb; font-weight: 700; font-size: .78rem; transition: background .2s, transform .2s, box-shadow .2s; }
.ai-tile-ec.press { background: #a78bfa; color: #1a1226; transform: scale(.92); box-shadow: 0 0 0 4px rgba(167, 139, 250, .35); }

/* the reader window with the answer */
.ai-reader { position: absolute; left: 24px; right: 24px; bottom: 18px; z-index: 2; height: 228px; display: flex; flex-direction: column; border-radius: 14px;
  background: #231a36; color: #f1ecfb; box-shadow: 0 24px 50px rgba(20, 8, 50, .38); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .4s, transform .4s; }
.ai-reader.show { opacity: 1; transform: none; }
.ai-reader-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: .72rem; color: #b9acd6; }
.ai-reader-head span { font-weight: 700; letter-spacing: .14em; color: #cfc4ea; }
.ai-ec-pill { margin-left: auto; padding: 3px 8px; border-radius: 7px; background: #3b2d5c; color: #f1ecfb; font-size: .7rem; }
.ai-q { margin: 0 18px 6px; align-self: flex-end; max-width: 80%; padding: 6px 10px; border-radius: 10px 10px 2px 10px; background: #47376e; font-size: .84rem; }
.ai-q[hidden] { display: none; }
.ai-answer { flex: 1; margin: 0; padding: 4px 18px; font-size: .98rem; line-height: 1.65; overflow: hidden; }
.ai-answer .w { border-radius: 3px; }
.ai-answer .w.now { background: #ff9a3c; color: #1a1226; }
.ai-answer .s { background: rgba(167, 139, 250, .2); border-radius: 3px; }
.ai-ask { display: flex; align-items: center; margin: 8px 12px 12px; padding: 9px 12px; border-radius: 10px; background: #2e2347; border: 1px solid #5a4787; font-size: .82rem; color: #b9acd6; }
.ai-ask.typing { color: #f1ecfb; }
.ai-ask i { margin-left: auto; font-style: normal; color: #a78bfa; }

/* fake mouse pointer */
.ai-cursor { position: absolute; z-index: 5; left: 40px; top: 160px; width: 18px; height: 22px; pointer-events: none; transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1 1l15 11-6.5 1.2L13 20l-3 1.4-3.4-6.8L1 18z' fill='%23111' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ai-demo figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--ink-soft); min-height: 1.6em; }
.ai-cap-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 0 0 rgba(139, 92, 246, .6); animation: aiPulse 1.6s infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .5); } 100% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); } }

/* ---------- compare ---------- */
.ai-compare { padding: 88px 0 72px; }
.ai-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; max-width: 920px; margin: 0 auto; }
.ai-vs-col { padding: 28px 30px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.ai-vs-col h3 { margin: 0 0 16px; font-size: 1.15rem; }
.ai-vs-col ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.ai-vs-col li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ai-vs-col li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; font-weight: 700; }
.ai-vs-old { background: #f7f5fa; }
.ai-vs-old li { color: #7a7189; }
.ai-vs-old li::before { background: #e9e4f0; color: #8a8199; }
.ai-vs-new { background: linear-gradient(160deg, #1a1226 0%, #2a1950 100%); color: #ece6fa; border: 0; box-shadow: 0 30px 70px rgba(40, 20, 80, .28); }
.ai-vs-new h3 { color: #fff; }
.ai-vs-new li { font-size: 1.15rem; }
.ai-vs-new li::before { background: var(--gold, #fbbf24); color: #2a1a03; }
.ai-vs-new .tile { vertical-align: middle; }
.ai-vs-done { margin: 18px 0 0; color: #c9bfe0; line-height: 1.55; }
.ai-vs-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: .92rem; color: #8a8199; }
.ai-vs-new .ai-vs-foot { border-top-color: rgba(255, 255, 255, .14); color: var(--gold, #fbbf24); }
.ai-vs-arrow { align-self: center; font-size: 2rem; font-weight: 700; color: var(--violet); }

/* ---------- how ---------- */
.ai-how { padding: 40px 0 90px; }
.ai-how-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 52px; align-items: center; margin-bottom: 64px; }
.ai-how-row:last-child { margin-bottom: 0; }
.ai-how-row.flip > img { order: 2; }
.ai-how-row h3 { font-size: 1.5rem; margin: 12px 0 10px; }
.ai-how-row p { color: var(--ink-soft); line-height: 1.65; }

/* ---------- 14 ways (dark band) ---------- */
.ai-ways { overflow: hidden; padding: 92px 0; }
.ai-ways .wrap { position: relative; z-index: 1; }
.ai-ways-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ai-group { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.ai-group h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #fbbf24); }
.ai-group p { margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.ai-group p:last-child { margin-bottom: 0; }
.ai-group b { color: #fff; font-weight: 600; }
.ai-group span { color: #b5a8d3; font-size: .86rem; line-height: 1.4; }

/* ---------- uses ---------- */
.ai-uses { padding: 92px 0 70px; }
.ai-uses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ai-uses-grid article { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.ai-uses-grid article:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(40, 20, 80, .1); }
.ai-uses-grid h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.ai-uses-grid p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.ai-chip { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--wash); color: var(--violet-strong); font-size: .8rem; font-weight: 700; }
.ai-everywhere { margin: 40px auto 0; max-width: 820px; text-align: center; padding: 28px; border-radius: 22px; background: #fff; border: 1px dashed #cfc3ea; }
.ai-everywhere h3 { margin: 0 0 14px; }
.ai-everywhere ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.ai-everywhere li { padding: 6px 14px; border-radius: 99px; background: #f6f2fd; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.ai-everywhere p { margin: 0; color: var(--ink-soft); }

/* ---------- plans ---------- */
.ai-plans { padding: 40px 0 70px; }
.ai-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.ai-plan { position: relative; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ai-plan h3 { margin: 0; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ai-plan-big { font-size: 1.55rem; letter-spacing: -.02em; }
.ai-plan > span { color: var(--ink-soft); line-height: 1.5; }
.ai-plan-hi { background: linear-gradient(160deg, #1a1226 0%, #2a1950 100%); border: 0; color: #ece6fa; box-shadow: 0 24px 60px rgba(40, 20, 80, .28); }
.ai-plan-hi h3 { color: #c4b5fd; } .ai-plan-hi > span { color: #c9bfe0; } .ai-plan-hi .ai-plan-big { color: #fff; }
.ai-plan-tag { position: absolute; top: -12px; right: 18px; padding: 4px 10px; border-radius: 99px; background: var(--gold, #fbbf24); color: #2a1a03 !important; font-size: .75rem; font-weight: 800; }
.ai-plans-link { text-align: center; margin: 22px 0 0; font-weight: 600; }

.ai-faq { padding: 30px 0 70px; }
.ai-cta-actions { justify-content: center; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .ai-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ai-ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ai-vs { grid-template-columns: minmax(0, 1fr); }
  .ai-vs-arrow { transform: rotate(90deg); justify-self: center; }
  .ai-how-row { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 48px; }
  .ai-how-row.flip > img { order: 0; }
  .ai-plan-grid, .ai-uses-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-win { height: 520px; }
  .ai-page-body { padding: 16px 16px; }
  .ai-reader { left: 10px; right: 10px; bottom: 10px; height: 250px; }
  .ai-bar { right: 10px; top: 50px; }
  .ai-tab-count { display: none; }
}
@media (max-width: 480px) { .ai-ways-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ai-cursor { display: none; } .ai-cap-dot { animation: none; } }

/* AI-only version (ai-only.html): the real video in the hero + the 3 setup steps */
.ai-video { margin: 0; }
.ai-steps { margin: 0 0 14px; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.ai-steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-size: 1.08rem; }
.ai-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet, #7c3aed); color: #fff; font-weight: 700; font-size: .95rem; }
