/* Feishi website. One stylesheet for every page. */
:root {
  --paper: #f4f5f9;
  --raised: #ffffff;
  --ink: #141a2e;
  --slate: #586079;
  --mist: #e2e5ee;
  --indigo: #5a5ce6;
  --indigo-text: #4446cf;
  --on-indigo: #ffffff;
  --scrim: rgba(8, 10, 22, 0.55);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1220;
    --raised: #161b2c;
    --ink: #eef0f7;
    --slate: #a2a9be;
    --mist: #252b3f;
    --indigo: #7476ff;
    --indigo-text: #9a9cff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1220;
  --raised: #161b2c;
  --ink: #eef0f7;
  --slate: #a2a9be;
  --mist: #252b3f;
  --indigo: #7476ff;
  --indigo-text: #9a9cff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--indigo-text); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.02; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 650; }
.lede { color: var(--slate); font-size: clamp(17px, 2vw, 19px); max-width: 34em; margin: 16px 0 0; }

/* ---------- App Store button ---------- */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--indigo); color: var(--on-indigo); text-decoration: none;
  font-weight: 650; font-size: 17px; line-height: 1.1;
  box-shadow: 0 10px 30px -10px rgba(90, 92, 230, 0.7);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.store:hover { background: #4b4dd8; }
.store:active { transform: scale(0.97); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.85; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  color: #fff;
}
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 550; opacity: 0.85; }
.bar nav a:hover { opacity: 1; }
.bar .get { margin-left: 4px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: inherit; text-decoration: none; font-weight: 650; font-size: 15px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar.solid { background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--mist); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.bar.solid .get { background: var(--indigo); color: var(--on-indigo); }
@media (max-width: 720px) { .bar nav { display: none; } .bar .get { margin-left: auto; } }

/* ---------- Hero: a lock screen ---------- */
.lock { position: relative; min-height: 100svh; display: grid; overflow: hidden; color: #fff; background: #10142a; isolation: isolate; }
.lock-ambient, .lock-ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lock-ambient { z-index: -2; }
.lock-ambient img { opacity: 0; transition: opacity 1.4s ease; }
.lock-ambient img.on { opacity: 1; }
.lock::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.35) 0%, rgba(5, 8, 20, 0) 30%, rgba(5, 8, 20, 0) 45%, rgba(5, 8, 20, 0.78) 100%); }

.clock { text-align: center; font-family: var(--display); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); user-select: none; }
.clock-date { font-family: var(--body); font-weight: 600; font-size: clamp(17px, 2.1vw, 21px); letter-spacing: 0.01em; opacity: 0.92; }
.clock-time { display: block; font-weight: 600; font-variation-settings: "wdth" 75; font-size: clamp(96px, 30vw, 150px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.lock-inner { display: grid; grid-template-rows: auto 1fr auto; padding: calc(64px + 4svh) var(--gutter) calc(28px + env(safe-area-inset-bottom)); max-width: var(--max); width: 100%; margin: 0 auto; }
.lock-copy h1 { font-size: clamp(36px, 9.6vw, 72px); line-height: 0.98; font-weight: 750; max-width: 11em; }
.lock-copy p { margin: 14px 0 22px; max-width: 30em; font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, 0.86); }
.lock-copy .note { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.now-showing { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.now-showing b { color: #fff; font-weight: 600; }
.now-showing .ticks { display: flex; gap: 4px; }
.now-showing .ticks i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.now-showing .ticks i.on { background: #fff; }

/* The framed phone only appears on wide screens; on phones the page itself is the lock screen. */
.lock-phone { display: none; }
@media (min-width: 960px) {
  .lock-ambient img { filter: blur(40px) saturate(1.2); transform: scale(1.15); }
  .lock::after { background: linear-gradient(90deg, rgba(5, 8, 20, 0.72) 0%, rgba(5, 8, 20, 0.35) 55%, rgba(5, 8, 20, 0.2) 100%); }
  .lock-inner { grid-template-columns: 1fr auto; grid-template-rows: 1fr; align-items: center; gap: 64px; padding-top: 104px; padding-bottom: 56px; }
  .lock-inner > .clock { display: none; }
  .lock-copy { grid-column: 1; }
  .lock-phone { display: block; grid-column: 2; position: relative; height: clamp(500px, calc(100svh - 210px), 760px); aspect-ratio: 9 / 19.5; border-radius: 54px; overflow: hidden;
    box-shadow: 0 0 0 10px #05070f, 0 0 0 11px rgba(255, 255, 255, 0.16), 0 50px 120px -20px rgba(0, 0, 0, 0.7); }
  .lock-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
  .lock-phone img.on { opacity: 1; }
  .lock-phone .clock { position: absolute; inset: 9% 0 auto; }
  .lock-phone .clock-time { font-size: 108px; }
  .lock-phone .clock-date { font-size: 17px; }
  .lock-phone::before { content: ""; position: absolute; z-index: 2; top: 14px; left: 50%; translate: -50% 0; width: 32%; height: 30px; border-radius: 20px; background: #05070f; }
}

/* ---------- Sections ---------- */
section.band { padding: clamp(72px, 11vw, 128px) 0; }
.band-head { display: grid; gap: 0; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Wallpaper wall ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)) 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--mist); background: var(--raised); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 550; cursor: pointer; color: var(--slate); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-radius: 18px; overflow: hidden; }
@media (min-width: 640px) { .wall { grid-template-columns: repeat(4, 1fr); gap: 8px; border-radius: 0; overflow: visible; } }
@media (min-width: 960px) { .wall { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.tile { position: relative; padding: 0; border: 0; background: var(--mist); aspect-ratio: 9 / 16; overflow: hidden; cursor: zoom-in; border-radius: 0; }
@media (min-width: 640px) { .tile { border-radius: 14px; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); opacity: 0; transition: opacity 0.2s ease; }
.tile:hover span, .tile:focus-visible span { opacity: 1; }
.wall-foot { margin: 22px 0 0; color: var(--slate); font-size: 15px; }

/* ---------- Lightbox ---------- */
dialog.view { padding: 0; border: 0; background: transparent; color: #fff; max-width: none; max-height: none; width: 100%; height: 100%; overflow: hidden; }
dialog.view::backdrop { background: rgba(6, 8, 18, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog.view[open] { display: grid; place-items: center; }
.view-stage { position: relative; display: grid; justify-items: center; gap: 18px; padding: 72px 16px 16px; }
.view-phone { position: relative; height: min(calc(100svh - 260px), 760px); aspect-ratio: 9 / 19.5; border-radius: 46px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 8px #05070f, 0 0 0 9px rgba(255, 255, 255, 0.18); }
.view-phone img { width: 100%; height: 100%; object-fit: cover; }
.view-phone .clock { position: absolute; inset: 9% 0 auto; }
.view-phone .clock-time { font-size: min(13svh, 108px); }
.view-phone .clock-date { font-size: min(2.2svh, 17px); }
@media (prefers-reduced-motion: no-preference) { dialog.view[open] .view-phone { animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); } }
@keyframes rise { from { transform: translateY(24px) scale(0.96); opacity: 0; } }
.view-meta { text-align: center; }
.view-meta b { display: block; font-family: var(--display); font-size: 22px; font-weight: 650; }
.view-meta span { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.view-actions { display: flex; align-items: center; gap: 12px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; cursor: pointer; }
.round:hover { background: rgba(255, 255, 255, 0.24); }
.round svg { width: 22px; height: 22px; }
.view-close { position: fixed; top: 16px; right: 16px; }
.view .store { min-height: 48px; font-size: 15px; }

/* ---------- Inside the app ---------- */
.app-band { background: var(--raised); border-block: 1px solid var(--mist); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 8px 0 0; margin: 0; gap: 28px; } }
.shot { margin: 0; scroll-snap-align: start; }
.shot .screen { aspect-ratio: 1320 / 2868; border-radius: 34px; overflow: hidden; background: var(--mist);
  box-shadow: 0 0 0 7px #0b0e18, 0 0 0 8px var(--mist), 0 30px 60px -30px rgba(20, 26, 46, 0.5); margin: 7px 7px 26px; }
.shot .screen img { width: 100%; height: 100%; object-fit: cover; }
.shot h3 { margin: 0 0 6px; }
.shot p { margin: 0; color: var(--slate); font-size: 16px; }

/* ---------- Free ---------- */
.free { display: grid; gap: 40px; }
@media (min-width: 960px) { .free { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.free dl { margin: 0; display: grid; gap: 0; }
.free dl > div { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--mist); }
.free dl > div:last-child { border-bottom: 1px solid var(--mist); }
@media (min-width: 640px) { .free dl > div { grid-template-columns: 220px 1fr; gap: 24px; } }
.free dt { font-family: var(--display); font-weight: 650; font-size: 21px; letter-spacing: -0.01em; }
.free dd { margin: 0; color: var(--slate); }
.free .small { margin: 18px 0 0; font-size: 15px; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--mist); }
.faq details:last-of-type { border-bottom: 1px solid var(--mist); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); rotate: 45deg; transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 225deg; margin-top: 12px; }
.faq details p { margin: 0 0 20px; color: var(--slate); max-width: 40em; }

/* ---------- Closing call ---------- */
.closing { position: relative; overflow: hidden; color: #fff; background: #10142a; isolation: isolate; text-align: center; }
.closing .strip { position: absolute; inset: 0; z-index: -2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); }
.closing .strip img { width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 10, 24, 0.62); }
.closing .wrap { padding-block: clamp(80px, 12vw, 140px); display: grid; justify-items: center; gap: 20px; }
.closing h2 { max-width: 12em; }
.closing p { margin: 0; color: rgba(255, 255, 255, 0.8); }

/* ---------- Footer ---------- */
footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--slate); }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--ink); text-decoration: none; font-weight: 550; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 0; }

/* ---------- Plain pages (support, 404) ---------- */
.page { padding: 120px 0 72px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; font-weight: 750; }
.page h2 { font-size: 28px; margin: 56px 0 8px; }
.contact { margin: 28px 0 0; padding: 24px; border-radius: 20px; background: var(--raised); border: 1px solid var(--mist); }
.contact a.mail { font-family: var(--display); font-size: clamp(22px, 4vw, 28px); font-weight: 650; text-decoration: none; word-break: break-all; }
.contact p { margin: 6px 0 0; color: var(--slate); }

/* ---------- Legal pages ---------- */
.legal .updated { margin: 14px 0 0; color: var(--slate); font-size: 15px; }
.legal .summary { margin: 28px 0 0; padding: 22px 24px; border-radius: 20px; background: var(--raised); border: 1px solid var(--mist); }
.legal .summary h2 { margin: 0 0 10px; font-size: 22px; }
.legal .summary ul { margin: 0; }
.legal nav.toc { margin: 32px 0 0; }
.legal nav.toc ol { margin: 0; padding-left: 22px; columns: 2 16em; column-gap: 32px; color: var(--slate); }
.legal nav.toc li { margin: 4px 0; break-inside: avoid; }
.legal h2 { scroll-margin-top: 84px; font-size: clamp(24px, 3.4vw, 30px); margin: 56px 0 10px; }
.legal h3 { font-size: 19px; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--slate); max-width: 44em; }
.legal p { margin: 10px 0; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); font-weight: 650; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--mist); color: var(--slate); }
.legal th { color: var(--ink); font-weight: 650; width: 30%; }
@media (max-width: 640px) { .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: auto; } .legal td { border-top: 0; padding-top: 0; } }
