/* gancda redesign: the live hero demo, the four kinds of work, results and FAQ. Uses the tokens in studio.css. */

/* ---------- hero: a real, playable demo beside the slogan ---------- */
.hero-demo { display: flex; align-items: center; justify-content: center; gap: 28px; min-width: 0; }
.hd-phone { flex: none; width: min(300px, 78vw); aspect-ratio: 300 / 620; padding: 9px; border-radius: 44px; background: #111214; box-shadow: 0 40px 70px -40px rgba(23,24,27,.6), 0 0 0 1px rgba(23,24,27,.08); }
.hd-phone .xp-screen { width: 100%; height: 100%; border-radius: 35px; }
.hd-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 220px; }
.hd-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--band-ink); }
.hd-hint i { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1.5px var(--band-ink); }
.hd-lbl { margin: 6px 0 0; font-size: 13px; color: var(--band-muted); }
.hd-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-switch button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--band-line); background: transparent; color: var(--band-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.hd-switch button:hover { border-color: var(--band-ink); }
.hd-switch button[aria-pressed="true"] { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.hd-full { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--band-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hd-full svg { width: 16px; height: 16px; }

/* ---------- one studio, four kinds of work ---------- */
.work { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.work > .wrap { padding-block: clamp(56px, 7vw, 104px); }
.wk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.wk-head h2, .rs-head h2, .faq h2 { margin: 0; max-width: 17em; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
:lang(ka) .wk-head h2, :lang(ka) .rs-head h2, :lang(ka) .faq h2 { letter-spacing: -.01em; line-height: 1.2; }
.wk-head p, .rs-head p { margin: 0; max-width: 32em; color: var(--muted); font-size: 17px; line-height: 1.6; }
.wk-case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); }
.wk-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.wk-label svg { width: 18px; height: 18px; }
.wk-text h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
:lang(ka) .wk-text h3 { letter-spacing: 0; line-height: 1.3; }
.wk-text dl { margin: 22px 0 0; display: grid; gap: 14px; }
.wk-text dl div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wk-text dt { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.wk-text dd { margin: 0; font-size: 16px; line-height: 1.55; }
.wk-start { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 22px; padding: 0 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.wk-start svg { width: 16px; height: 16px; }
.wk-start:hover { filter: brightness(1.1); }
.wk-demos { display: flex; justify-content: flex-end; gap: 18px; min-width: 0; }
.wk-demo { margin: 0; flex: 0 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wk-phone { display: block; width: 100%; aspect-ratio: 300 / 620; padding: 7px; border: 0; border-radius: 30px; background: #111214; cursor: pointer; box-shadow: 0 26px 44px -30px rgba(23,24,27,.55); transition: transform .25s var(--ease); }
.wk-phone:hover { transform: translateY(-4px); }
.wk-phone .xp-screen { display: block; width: 100%; height: 100%; border-radius: 24px; pointer-events: none; }
.wk-demo figcaption { display: grid; gap: 2px; }
.wk-demo figcaption b { font-size: 15px; line-height: 1.3; }
.wk-demo figcaption span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.wk-play { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wk-play svg { width: 14px; height: 14px; }
.wk-play:hover { background: var(--ink); color: var(--paper); }

/* ---------- results ---------- */
.results { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.results > .wrap { padding-block: clamp(56px, 7vw, 96px); }
.rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 48px; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.rs-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.rs-card .wk-label { margin-bottom: 18px; }
.rs-num { margin: 0; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rs-num small { margin-left: 6px; font-size: .42em; color: var(--muted); letter-spacing: 0; }
.rs-lbl { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.rs-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.rs-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.faq-wrap { max-width: 880px; padding-block: clamp(56px, 7vw, 96px); }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 6px 0; font-weight: 700; font-size: 18px; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 18px; height: 18px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .2s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 22px; max-width: 46em; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-demo { flex-direction: column; }
  .hd-side { max-width: none; align-items: center; text-align: center; }
  .hd-switch { justify-content: center; }
  .wk-case { grid-template-columns: 1fr; }
  .wk-demos { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .wk-demos::-webkit-scrollbar { display: none; }
  .wk-demo { flex: 0 0 min(200px, 52vw); scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .wk-text dl div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-phone { transition: none; }
  .wk-phone:hover { transform: none; }
}
.wk-phone .xp-screen { background: #ECECE8; }
.navlinks a.navmenu-cta { display: none; }
@media (max-width: 600px) { .navlinks a.navmenu-cta { display: flex; } }
@media (max-width: 400px) { .wk-demos { margin-inline: -16px; padding-inline: 16px; } }

/* jump bar: the four kinds of work, always one tap away while browsing the examples */
.wk-jump { position: sticky; top: 80px; z-index: 5; display: flex; gap: 8px; margin: 0 -20px 8px; padding: 12px 20px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.wk-jump::-webkit-scrollbar { display: none; }
.wk-jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field-line, var(--line)); color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.wk-jump a svg { width: 18px; height: 18px; }
.wk-jump a small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.wk-jump a:hover { border-color: var(--ink); }
.wk-jump a.on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.wk-jump a.on small { background: rgba(255,255,255,.16); color: inherit; }
.wk-case { scroll-margin-top: 62px; }
/* every phone says it can be played */
.wk-phone { position: relative; }
.wk-badge { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 18px -6px rgba(23,24,27,.55); transition: transform .2s var(--ease); }
.wk-badge svg { width: 18px; height: 18px; margin-left: 2px; }
.wk-phone:hover .wk-badge { transform: scale(1.08); }
.wk-jump { top: calc(env(safe-area-inset-top, 0px) + 81px); }
@media (max-width: 400px) { .wk-jump { margin-inline: -16px; padding-inline: 16px; } }
@media (min-width: 901px) { .wk-demos { justify-content: center; } }

/* one side scroll for every demo (Nov 10) */
.wk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.wk-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.wk-tabs::-webkit-scrollbar { display: none; }
.wk-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.wk-tabs button svg { width: 18px; height: 18px; }
.wk-tabs button small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.wk-tabs button:hover { border-color: var(--ink); }
.wk-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wk-tabs button[aria-selected="true"] svg { color: var(--accent); }
:root[data-theme="dark"] .wk-tabs button[aria-selected="true"] svg { color: #C8102E; }
.wk-tabs button[aria-selected="true"] small { background: var(--accent); color: #fff; }
.wk-arrows { display: flex; gap: 8px; flex: none; }
.wk-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.wk-arrow:hover { border-color: var(--ink); }
.wk-arrow[data-scroll="-1"] svg { transform: rotate(180deg); }
.wk-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 6px 20px 18px; margin-inline: -20px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; outline-offset: -3px; }
.wk-rail .wk-demo { flex: 0 0 clamp(180px, 19vw, 230px); scroll-snap-align: start; }
.wk-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px !important; font-weight: 700; color: var(--accent) !important; margin-bottom: 2px; }
.wk-cat svg { width: 14px; height: 14px; }
.wk-brief { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 14px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.wk-brief > div { min-width: 0; max-width: 60ch; }
.wk-brief .wk-label { margin: 0 0 6px; }
.wk-brief h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
.wk-brief p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.wk-brief .wk-start { margin-top: 0; }
@media (max-width: 600px) { .wk-arrows { display: none; } .wk-rail .wk-demo { flex-basis: 62vw; } }
@media (max-width: 400px) { .wk-rail { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }

/* hero: the demo phone is gone, the star stands in its place (Nov 10) */
.hero-demo { justify-content: center; }
.hd-art { position: relative; display: grid; place-items: center; width: min(440px, 80vw); aspect-ratio: 1; text-decoration: none; color: var(--ink); }
.hd-star { width: 78%; height: 78%; background: var(--star); -webkit-mask: url(assets/star-only.png) center/contain no-repeat; mask: url(assets/star-only.png) center/contain no-repeat; animation: hdFloat 7s ease-in-out infinite; transition: transform var(--normal) var(--ease); }
.hd-art:hover .hd-star { transform: rotate(14deg) scale(1.05); }
@keyframes hdFloat { 50% { transform: rotate(-6deg) scale(.97); } }
.hd-ring { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: hdRing 4.2s ease-out infinite; pointer-events: none; }
.hd-ring.r2 { animation-delay: 2.1s; }
@keyframes hdRing { 0% { opacity: .45; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.35); } }
.hd-cta { position: absolute; left: 0; bottom: 6%; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 14px 28px -14px rgba(23,24,27,.5); transition: transform .15s; }
.hd-cta svg { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: var(--accent); color: #fff; }
.hd-art:hover .hd-cta { transform: translateY(-2px); }
.wk-tabs { scroll-behavior: smooth; scroll-padding-inline: 12px; }
@media (max-width: 900px) { .hd-art { width: min(320px, 70vw); } }
@media (prefers-reduced-motion: reduce) { .hd-star, .hd-ring { animation: none; } }
@media (max-width: 900px) { .wk-tabs { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; } }
