/* Yujona Studio apps site. System fonts only, no third-party scripts or requests. */

:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #15201c;
  --muted: #5c6763;
  --line: #dce1de;
  --accent: #15201c;
  --accent-soft: #e9ecea;
  --focus: #0e5e58;
  --no: #a23b2a;
  --wrap: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1211;
    --surface: #151a18;
    --ink: #e9edeb;
    --muted: #97a29e;
    --line: #26302c;
    --accent: #e9edeb;
    --accent-soft: #1b2220;
    --focus: #5cc8be;
    --no: #e88a78;
    color-scheme: dark;
  }
}

/* Each app page carries its own accent */
.app-quillway { --accent: #0e5e58; --accent-soft: #e4efec; }
.app-evenpitch { --accent: #0b5e41; --accent-soft: #e3f1ea; }
@media (prefers-color-scheme: dark) {
  .app-quillway { --accent: #5cc8be; --accent-soft: #132b28; }
  .app-evenpitch { --accent: #8df0c5; --accent-soft: #12261f; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px;
}
.wordmark {
  font-weight: 650; font-size: 18px; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none;
}
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -1.5px 0 currentColor; }

/* Type */
main { padding: 48px 0 88px; }
h1 {
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06;
  letter-spacing: -0.03em; font-weight: 650; margin: 0 0 16px;
}
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 620; margin: 56px 0 12px; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 620; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { font-weight: 620; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.meta { font-size: 14px; color: var(--muted); }
.crumb { font-size: 14px; margin-bottom: 18px; }
.crumb a { color: var(--muted); }
code, kbd {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-soft); padding: 1px 6px; border-radius: 6px;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Status: a quiet pill, sentence case */
.status {
  display: inline-block; font-size: 13px; line-height: 1; font-weight: 550;
  padding: 6px 11px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid currentColor; opacity: 0.8;
}

/* ---------- Home ---------- */
.hero { display: grid; gap: 20px 64px; padding: 24px 0 48px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.0; letter-spacing: -0.04em; max-width: 15ch; margin: 0; }
.hero .lede { margin: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 7fr 5fr; align-items: end; padding-top: 48px; }
}

/* The two app plates: the one bold element on the site */
.plates { display: grid; gap: 20px; margin: 8px 0 72px; }
@media (min-width: 820px) { .plates { grid-template-columns: 1fr 1fr; } }

.plate {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: 32px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.plate .icon {
  width: 112px; height: 112px; border-radius: 25px; display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 12px 32px rgba(0, 0, 0, 0.22);
}
.plate h2 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 10px; color: inherit; }
.plate p { margin: 0 0 22px; max-width: 30em; opacity: 0.86; }
.plate .status { margin-bottom: 14px; }
.plate .links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.plate .links a {
  color: inherit; text-decoration: none; font-size: 15px; font-weight: 550;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}
.plate .links a:first-child { background: color-mix(in srgb, currentColor 14%, transparent); border-color: transparent; }
.plate .links a:hover { border-color: currentColor; }
.plate :focus-visible { outline-color: currentColor; }

/* Quillway: deep teal with faint logbook rules */
.plate-quillway {
  color: #ffffff;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, 0.06) 31px 32px),
    linear-gradient(160deg, #136f68 0%, #0e5e58 55%, #0a4a45 100%);
}
/* Evenpitch: the tuner's dark ground with its in-tune glow */
.plate-evenpitch {
  color: #f3efe7;
  background:
    radial-gradient(circle at 78% 22%, rgba(141, 240, 197, 0.26) 0, rgba(141, 240, 197, 0.08) 28%, transparent 55%),
    linear-gradient(170deg, #1c1a17 0%, #0f0e0d 70%);
}
@media (prefers-color-scheme: dark) { .plate-evenpitch { box-shadow: inset 0 0 0 1px rgba(243, 239, 231, 0.08); } }
.plate-evenpitch .icon { box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.14), 0 12px 32px rgba(0, 0, 0, 0.5); }

/* Principles row: plain hairline columns, not cards */
.facts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
}
.facts li { margin: 0; padding: 16px 20px 0 0; font-size: 17px; line-height: 1.4; }
.facts b { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.home-facts { margin-bottom: 72px; }
.home-facts li { font-size: 20px; letter-spacing: -0.01em; }

.contact { border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 4px 64px; }
.contact h2 { margin: 0; }
.contact p { font-size: 20px; margin: 0; }
.contact a { color: var(--ink); }
@media (min-width: 900px) { .contact { grid-template-columns: 7fr 5fr; } }

/* ---------- App pages ---------- */
.app-hero { display: grid; gap: 28px 64px; align-items: center; margin-bottom: 16px; }
.app-hero h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 18px; }
.app-hero .lede { margin-bottom: 0; }
.app-hero .plate { min-height: 0; aspect-ratio: 16 / 10; align-items: center; justify-content: center; padding: 24px; }
.app-hero .plate .icon { width: 128px; height: 128px; border-radius: 29px; }
@media (min-width: 900px) {
  .app-hero { grid-template-columns: 6fr 5fr; }
  .app-hero .plate { aspect-ratio: 1 / 1; order: 2; }
  .app-hero .plate .icon { width: 176px; height: 176px; border-radius: 40px; }
}

/* App video: a wide, quiet frame under the hero */
.film { margin: 48px 0 8px; }
@media (min-width: 1260px) { .film { margin-left: -64px; margin-right: -64px; } }
.film-frame {
  position: relative; overflow: hidden; border-radius: 28px;
  aspect-ratio: 16 / 9; background: var(--film-bg, #000);
  box-shadow: 0 0 0 1px rgba(21, 32, 28, 0.06), 0 40px 90px -30px rgba(21, 32, 28, 0.35), 0 12px 30px -12px rgba(21, 32, 28, 0.18);
}
.app-quillway .film-frame { --film-bg: #f2f2ed; }
.app-evenpitch .film-frame { --film-bg: #0e0c0d; }
@media (prefers-color-scheme: dark) {
  .film-frame { box-shadow: 0 0 0 1px rgba(233, 237, 235, 0.09), 0 40px 90px -30px rgba(0, 0, 0, 0.7); }
}
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film.is-enhanced video { cursor: pointer; }
.film-frame:fullscreen { border-radius: 0; background: #000; box-shadow: none; }
.film-frame:-webkit-full-screen { border-radius: 0; background: #000; box-shadow: none; }
.film-frame:fullscreen video { object-fit: contain; }
.film-frame:-webkit-full-screen video { object-fit: contain; }

/* the control bar: play, time, seek, sound, full screen */
.film-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 48px 16px 12px; color: #fff;
  background: linear-gradient(180deg, rgba(8, 10, 9, 0) 0%, rgba(8, 10, 9, 0.38) 55%, rgba(8, 10, 9, 0.62) 100%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.film.is-started .film-controls { opacity: 1; pointer-events: auto; }
.film.is-started.is-idle .film-controls { opacity: 0; }
.film.is-idle video { cursor: none; }
.film-btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.film-btn:hover { background: rgba(255, 255, 255, 0.16); }
.film-btn svg { width: 20px; height: 20px; }
.film-time {
  flex: none; min-width: 84px; padding: 0 8px 0 2px;
  font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; opacity: 0.92;
}
.film-seek {
  --p: 0%;
  flex: 1; min-width: 60px; height: 24px; margin: 0 8px 0 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.film-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #fff 0 var(--p), rgba(255, 255, 255, 0.32) var(--p) 100%);
}
.film-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.32); }
.film-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.film-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease;
}
.film-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.film-seek:hover::-webkit-slider-thumb, .film-seek:active::-webkit-slider-thumb { transform: scale(1.2); }
.film-start {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(16, 20, 19, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.film-start:hover { background: rgba(16, 20, 19, 0.7); }
.film-start svg { width: 34px; height: 34px; margin-left: 4px; }
.film.is-started .film-start { opacity: 0; transform: scale(0.9); pointer-events: none; }
.film-btn:focus-visible, .film-start:focus-visible, .film-seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.film figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .film { margin-top: 32px; }
  .film-frame { border-radius: 18px; }
  .film-controls { padding: 32px 6px 4px; gap: 0; }
  .film-btn { width: 36px; height: 36px; }
  .film-btn svg { width: 18px; height: 18px; }
  .film-time { min-width: 0; font-size: 11px; padding: 0 6px 0 0; }
  .film-seek { margin-right: 4px; }
  .film-start { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .film-start svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .film-controls, .film-start, .film-seek::-webkit-slider-thumb { transition: none; }
}

.features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; border-top: 1px solid var(--line); }
.features li { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.features li strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
@media (min-width: 820px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

.note {
  border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; margin: 28px 0;
  color: var(--muted); font-size: 15px; max-width: 46em;
}

/* ---------- Policy and support pages ---------- */
.doc { max-width: 760px; }
@media (min-width: 1000px) {
  .doc:has(> .toc) {
    max-width: var(--wrap);
    display: grid; grid-template-columns: 220px minmax(0, 700px); column-gap: 72px;
  }
  .doc:has(> .toc) > * { grid-column: 2; }
  .doc:has(> .toc) > .toc {
    grid-column: 1; grid-row: 1 / span 400; align-self: start;
    position: sticky; top: 28px; margin-top: 8px;
  }
}
.doc h1 { font-size: clamp(32px, 4vw, 46px); }
.doc h2 { scroll-margin-top: 24px; }

.summary {
  background: var(--accent-soft); border-radius: 20px;
  padding: 24px 26px; margin: 28px 0 8px;
}
.summary p:last-child { margin-bottom: 0; }
.summary strong { font-size: 20px; line-height: 1.4; display: block; margin-bottom: 8px; letter-spacing: -0.01em; }

.toc { font-size: 15px; margin: 24px 0 8px; }
.toc p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }

.data-list { border-top: 1px solid var(--line); margin: 16px 0 8px; }
.data-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.data-item h3 { margin: 0 0 4px; font-size: 17px; }
.data-item p { margin: 0 0 6px; }
.data-item p:last-child { margin-bottom: 0; }
.data-item .when { font-size: 15px; color: var(--muted); }

.never { list-style: none; padding: 0; }
.never li { padding-left: 28px; position: relative; }
.never li::before { content: "✕"; position: absolute; left: 4px; top: 0; color: var(--no); font-weight: 700; }

.check {
  border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  padding: 14px 18px; margin: 14px 0 6px; font-size: 15px;
}
.check strong { color: var(--accent); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 18px 0 8px; }
.jump li { margin: 0; }
.jump a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 15px; background: var(--surface); color: var(--ink);
}
.jump a:hover { border-color: var(--ink); }
section[id] { scroll-margin-top: 24px; }
section[id] h3 { margin-top: 36px; }

.faq h3 { margin-top: 28px; }
.changes { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-top: 28px; padding-bottom: 40px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .fine { flex-basis: 100%; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  main { padding-top: 24px; }
  .lede { font-size: 18px; }
  .plate { padding: 24px; min-height: 0; border-radius: 24px; gap: 28px; }
  .plate .icon { width: 84px; height: 84px; border-radius: 19px; }
  .plate h2 { font-size: 28px; }
  .home-facts { grid-template-columns: 1fr; }
  .home-facts li { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .home-facts b { margin-bottom: 2px; }
  .contact p { font-size: 18px; }
  .summary { padding: 20px; }
}
