/* =========================================================
   Arraya AI pages — sits on top of ../assets/css/style.css
   Uses the site's Archivo type, tokens, nav and footer.
   .ax = product canvas: always black, like the app icon.
   ========================================================= */

:root { --ax-green: #30d158; --ax-green-ink: #1a8f45; --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px; }

/* ---------- product canvas (forced dark) ---------- */
.ax {
  --bg: #000; --bg-2: #0c0c0e; --text: #f5f5f7; --muted: #a1a1a6;
  --line: rgba(255,255,255,.12); --glass: rgba(255,255,255,.05);
  --glass-strong: rgba(24,24,27,.78); --glass-line: rgba(255,255,255,.12);
  --shadow: 0 40px 80px -40px rgba(0,0,0,.9); --btn-bg: #fff; --btn-fg: #000;
  --logo-light: block; --logo-dark: none; color-scheme: dark;
  background: #000; color: var(--text);
}
.ax .theme-toggle { display: none; }

/* ---------- nav add-on: product name next to the studio logo ---------- */
.ax-name { display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--line);
  text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--text); }
.ax-name img { width: 24px; height: 24px; border-radius: 6px; }
@media (max-width: 420px) { .ax-name span { display: none; } .ax-name { padding-left: 10px; } }

/* ---------- shared bits ---------- */
.ax-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.ax-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); background: var(--glass); }
.ax-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.ax-pill.free { color: var(--ax-green); border-color: color-mix(in srgb, var(--ax-green) 45%, transparent); }
.ax-pill.exp { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }

/* ---------- hero ---------- */
.ax-hero { position: relative; text-align: center; padding: 150px 0 var(--s6); overflow: hidden; isolation: isolate; }
.ax-hero::before { content: ""; position: absolute; left: 50%; top: 90px; width: 760px; height: 760px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 60%); pointer-events: none; }
.ax-icon { width: 128px; height: 128px; margin: 0 auto var(--s4); border-radius: 29px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px -20px rgba(255,255,255,.22); }
.ax-hero h1 { font-size: clamp(48px, 9vw, 120px); line-height: .95; }
.ax-sub { font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; margin: var(--s2) 0 var(--s3); color: var(--text); }
.ax-hero .lede { margin: 0 auto var(--s4); text-align: center; }
.ax-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin: var(--s5) auto 0; max-width: 760px; border-top: 1px solid var(--line); }
.ax-facts div { flex: 1 1 140px; padding: var(--s3) var(--s2) 0; }
.ax-facts b { display: block; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.ax-facts span { font-size: 14px; color: var(--muted); }

/* ---------- feature rows ---------- */
.ax-sec { padding: var(--s7) 0 0; }
.ax-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ax-row.flip .ax-copy { order: 2; }
.ax-copy h2 { font-size: clamp(34px, 4.6vw, 60px); margin-bottom: var(--s3); }
.ax-copy p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.ax-copy ul { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-direction: column; gap: 10px; }
.ax-copy li { padding-left: 26px; position: relative; color: var(--text); }
.ax-copy li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--muted); border-radius: 2px; }
.ax-copy .ax-pill { margin-bottom: var(--s2); }
@media (max-width: 860px) { .ax-row { grid-template-columns: 1fr; } .ax-row.flip .ax-copy { order: 0; } .ax-sec { padding-top: var(--s6); } }

/* stage: the drawn visual for each feature (no photos of real people) */
.ax-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #0c0c0e; border: 1px solid var(--line); isolation: isolate; }

/* 1. bring a photo to life: drawn landscape, half B&W, slow dolly */
.scene { position: absolute; inset: 0; background: linear-gradient(180deg, #ffb37a 0%, #ff7e6b 26%, #6b4bd8 62%, #1d1b48 100%); animation: dolly 9s ease-in-out infinite alternate; transform-origin: 50% 62%; }
.scene .sun { position: absolute; left: 58%; top: 30%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffc36b 60%, transparent 62%); filter: blur(.5px); }
.scene .hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.scene .h1 { bottom: -20%; height: 58%; background: #2b2560; }
.scene .h2 { bottom: -34%; height: 60%; left: -40%; right: 30%; background: #1a163d; }
.scene .h3 { bottom: -40%; height: 58%; left: 40%; right: -30%; background: #120f2c; }
.scene .person { position: absolute; left: 30%; bottom: 14%; width: 9%; height: 30%; }
.scene .person::before { content: ""; position: absolute; left: 22%; top: 0; width: 56%; aspect-ratio: 1; border-radius: 50%; background: #0b0920; }
.scene .person::after { content: ""; position: absolute; left: 0; top: 30%; width: 100%; height: 70%; border-radius: 40% 40% 8px 8px; background: #0b0920; }
.bw { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); filter: grayscale(1) sepia(.35) contrast(.9) brightness(.95); animation: wipe 7s ease-in-out infinite alternate; }
.bw .scene { animation: dolly 9s ease-in-out infinite alternate; }
.wipe-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.8); animation: wipeline 7s ease-in-out infinite alternate; }
.stage-tags { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; }
.stage-tags span { padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@keyframes dolly { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes wipe { from { clip-path: inset(0 70% 0 0); } to { clip-path: inset(0 30% 0 0); } }
@keyframes wipeline { from { left: 30%; } to { left: 70%; } }

/* 2. month in a minute: calendar + mosaic */
.month { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; padding: 22px; }
.cal { border-radius: 20px; background: #fff; color: #000; display: flex; flex-direction: column; overflow: hidden; }
.cal b { background: #ff3b30; color: #fff; text-align: center; font-size: 14px; letter-spacing: .1em; padding: 8px 0; }
.cal strong { flex: 1; display: grid; place-items: center; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(56px, 9vw, 110px); font-weight: 800; line-height: 1; }
.cal small { text-align: center; font-size: 13px; padding-bottom: 12px; color: #555; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: center; }
.mosaic i { aspect-ratio: 1; border-radius: 10px; opacity: .3; animation: pick 6s ease-in-out infinite; }
.mosaic i:nth-child(1) { background: linear-gradient(135deg, #ffb020, #d50260); }
.mosaic i:nth-child(2) { background: linear-gradient(135deg, #00b8f0, #6e56ff); animation-delay: .4s; }
.mosaic i:nth-child(3) { background: linear-gradient(135deg, #14c99a, #00b8f0); animation-delay: .8s; }
.mosaic i:nth-child(4) { background: linear-gradient(135deg, #6e56ff, #d50260); animation-delay: 1.2s; }
.mosaic i:nth-child(5) { background: linear-gradient(135deg, #ffb020, #14c99a); animation-delay: 1.6s; }
.mosaic i:nth-child(6) { background: linear-gradient(135deg, #d50260, #ffb020); animation-delay: 2s; }
.mosaic i:nth-child(7) { background: linear-gradient(135deg, #00b8f0, #14c99a); animation-delay: 2.4s; }
.mosaic i:nth-child(8) { background: linear-gradient(135deg, #6e56ff, #00b8f0); animation-delay: 2.8s; }
.mosaic i:nth-child(9) { background: linear-gradient(135deg, #ffb020, #6e56ff); animation-delay: 3.2s; }
.mosaic em { grid-column: 1 / -1; font-style: normal; text-align: center; font-size: 14px; font-weight: 700; margin-top: 6px; }
@keyframes pick { 0%, 100% { opacity: .3; transform: scale(.94); } 40%, 60% { opacity: 1; transform: none; } }

/* 3. trips by place */
.trips { position: absolute; inset: 0; padding: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(0,184,240,.18), transparent 50%), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px); }
.trip { border-radius: 18px; padding: 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; overflow: hidden; }
.trip b { font-size: 17px; line-height: 1.2; }
.trip span { font-size: 12.5px; opacity: .85; }
.trip::before { content: ""; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; opacity: .9; }
.trip:nth-child(1) { background: linear-gradient(160deg, #00b8f0, #14c99a); }
.trip:nth-child(2) { background: linear-gradient(160deg, #ffb020, #d50260); }
.trip:nth-child(3) { background: linear-gradient(160deg, #6e56ff, #00b8f0); }
.trip:nth-child(4) { background: linear-gradient(160deg, #d50260, #6e56ff); }

/* 4. music: waveform with beat cuts */
.wave { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 26px; gap: 18px; }
.ax-bars { display: flex; align-items: center; gap: 4px; height: 46%; }
.ax-bars i { flex: 1; border-radius: 3px; background: rgba(255,255,255,.28); height: var(--h, 40%); transform-origin: center; animation: beat .9s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ax-bars i.on { background: #fff; }
.cuts { position: relative; height: 34px; border-top: 1px solid var(--line); }
.cuts i { position: absolute; top: -6px; width: 2px; height: 22px; background: var(--ax-green); box-shadow: 0 0 10px var(--ax-green); }
.song { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.song b { font-size: 16px; }
.song span { color: var(--muted); }
@keyframes beat { 0%, 100% { transform: scaleY(.7); } 50% { transform: scaleY(1); } }

/* 5. Arraya_Live chips */
.fx { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 26px;
  background: radial-gradient(circle at 50% 40%, rgba(110,86,255,.28), transparent 60%), radial-gradient(circle at 80% 90%, rgba(213,2,96,.22), transparent 55%); }
.fx span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }

/* ---------- privacy band ---------- */
.ax-privacy { text-align: center; padding: var(--s7) 0; }
.ax-privacy h2 { font-size: clamp(38px, 6.4vw, 88px); max-width: 15ch; margin: 0 auto var(--s3); }
.ax-privacy .lede { margin: 0 auto; text-align: center; }
.ax-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--s5); text-align: left; }
.ax-points div { padding: var(--s3); border-radius: 22px; border: 1px solid var(--line); background: var(--glass); }
.ax-points b { display: block; font-size: 17px; margin-bottom: 6px; }
.ax-points span { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .ax-points { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.ax-head { text-align: center; max-width: 760px; margin: 0 auto var(--s5); }
.ax-head h2 { font-size: clamp(34px, 5vw, 64px); }
.ax-head p { color: var(--muted); margin-top: var(--s2); }
.ax-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { border-radius: 28px; padding: var(--s4); border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; gap: 10px; }
.plan.pro { border-color: rgba(255,255,255,.4); background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); }
.plan h3 { display: flex; align-items: center; gap: 10px; }
.plan h3 img { width: 34px; height: 34px; border-radius: 8px; }
.plan .amt { white-space: nowrap; font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(34px, 4.2vw, 50px); letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.plan .amt small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ax-green); border-bottom: 2px solid var(--ax-green); transform: rotate(-45deg); }
.plan .fine { font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 10px; }
@media (max-width: 760px) { .ax-plans { grid-template-columns: 1fr; } }

/* ---------- requirements ---------- */
.ax-req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ax-req div { padding: var(--s4) var(--s3); text-align: center; }
.ax-req div + div { border-left: 1px solid var(--line); }
.ax-req b { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -.02em; }
.ax-req span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 640px) { .ax-req { grid-template-columns: 1fr; } .ax-req div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- product footer strip ---------- */
.ax-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: var(--s4) 0; border-top: 1px solid var(--line); margin-top: var(--s6); font-size: 15px; }
.ax-foot .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ax-foot .who img { width: 28px; height: 28px; border-radius: 7px; }
.ax-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ax-foot nav a { text-decoration: none; color: var(--muted); }
.ax-foot nav a:hover { color: var(--text); }

/* ---------- document pages (privacy / support) — follow light/dark ---------- */
.doc-hero { position: relative; padding: 140px 0 var(--s4); overflow: hidden; isolation: isolate; }
.doc-hero .aurora { z-index: -1; opacity: calc(var(--aurora-opacity) * .6); }
.doc-hero .wrap, .doc-body { max-width: 800px; }
.doc-hero .app-id { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s3); }
.doc-hero .app-id img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); }
.doc-hero .app-id span { font-weight: 700; }
.doc-hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.02; }
.doc-hero .meta { color: var(--muted); margin: var(--s2) 0 0; font-size: 15.5px; }
.doc-body { padding-bottom: var(--s6); }
.doc-body h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin: var(--s5) 0 var(--s1); }
.doc-body p, .doc-body li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc-body li { margin: 6px 0; }
.doc-body a { color: var(--ax-green-ink); text-underline-offset: 3px; }
.doc-body code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--glass); border: 1px solid var(--line); word-break: break-word; }
.doc-box { border: 1px solid var(--glass-line); background: var(--glass); border-radius: 20px; padding: var(--s3); margin: var(--s3) 0; }
.doc-box p:last-child { margin: 0; }
.doc-foot { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: var(--s2); margin-top: var(--s5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-body a { color: var(--ax-green); } }
:root[data-theme="dark"] .doc-body a { color: var(--ax-green); }

/* support: contact + FAQ accordion */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.contact-card p { margin: 0; max-width: 46ch; }
.faq { border-top: 1px solid var(--line); margin-top: var(--s2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); opacity: .7; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { margin: 0 2px 18px; }

/* ---------- invite ---------- */
.inv { min-height: 100svh; display: grid; place-items: center; padding: 120px 16px 60px; }
.inv-card { width: 100%; max-width: 440px; text-align: center; padding: var(--s4) var(--s3); }
.inv-card .ax-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: var(--s3); }
.inv-card h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.05; }
.inv-card p { color: var(--muted); margin: var(--s2) 0 var(--s3); }
.inv-code { font: 700 34px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; padding: 14px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.3); margin-bottom: 12px; }
.inv-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.inv-card small { display: block; color: var(--muted); margin-top: var(--s2); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .scene, .bw, .wipe-line, .mosaic i, .ax-bars i { animation: none !important; }
  .mosaic i { opacity: 1; }
}

/* Arraya_Live chips: let the stage grow on narrow screens */
.ax-stage.auto { aspect-ratio: auto; min-height: 260px; }
.ax-stage.auto .fx { position: relative; inset: auto; min-height: 260px; padding: 40px 20px; }
@media (max-width: 560px) { .fx { gap: 8px; } .fx span { font-size: 12.5px; padding: 8px 10px; } }
