/* app.jinhoe.com — one stylesheet for the hub and every app mini-site.
   Each app page sets --accent on <html>; tint and accent text derive from it. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #EBEAE6;
  --surface: #F4F3F0;
  --text: #1B1B19;
  --text-2: #3D3C38;
  --muted: #5E5D58;
  --line: #D3D1CA;
  --line-2: #DEDCD6;
  --border: #DCDAD4;
  --hover: rgba(27, 27, 25, 0.06);
  --accent: #5E5D58;
  --tint-mix: 14%;
  --card-mix: 14%;
  --shade: #000 30%;
  --tint: color-mix(in oklab, var(--accent) var(--tint-mix), var(--bg));
  --accent-text: color-mix(in oklab, var(--accent), var(--shade));
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --gap: clamp(72px, 10vw, 128px);
}

/* Dark: chosen with the appearance toggle, or following the system when set to Auto.
   Same data-theme / localStorage("theme") convention as jinhoe.com. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161615;
  --surface: #1F1F1D;
  --text: #ECEBE6;
  --text-2: #C9C7C0;
  --muted: #9C9A93;
  --line: #34332F;
  --line-2: #2A2927;
  --border: #2E2D2A;
  --hover: rgba(236, 235, 230, 0.07);
  --tint-mix: 22%;
  --card-mix: 24%;
  --shade: #fff 35%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #161615;
    --surface: #1F1F1D;
    --text: #ECEBE6;
    --text-2: #C9C7C0;
    --muted: #9C9A93;
    --line: #34332F;
    --line-2: #2A2927;
    --border: #2E2D2A;
    --hover: rgba(236, 235, 230, 0.07);
    --tint-mix: 22%;
    --card-mix: 24%;
    --shade: #fff 35%;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tint); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.block { padding-top: var(--gap); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; background: var(--text); color: var(--bg); border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.label a { color: var(--accent-text); text-decoration: none; padding: 8px 0; }
.label a:hover { text-decoration: underline; }

.display {
  font-size: clamp(40px, 5.8vw, 70px); line-height: 1.03;
  letter-spacing: -0.04em; font-weight: 600; text-wrap: balance;
}
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent-text); margin-bottom: 20px; }
.lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 34rem; text-wrap: pretty; }
.statement {
  max-width: 46rem; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.38;
  font-weight: 500; letter-spacing: -0.02em; text-wrap: pretty;
}

/* ---------- appearance toggle (hidden until JS has set data-theme) ---------- */

.theme-toggle {
  display: none; flex: none; width: 44px; height: 44px; padding: 0; margin-right: -12px;
  align-items: center; justify-content: center;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
html[data-theme] .theme-toggle { display: flex; }
.theme-icon { display: none; }
html[data-theme="light"] .theme-icon-light,
html[data-theme="dark"] .theme-icon-dark,
html[data-theme="auto"] .theme-icon-auto { display: block; }
.app-nav .theme-toggle { margin-left: 4px; }

/* ---------- hub header / footer ---------- */

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px; }
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; padding-block: 10px; }
.wordmark span { color: var(--muted); font-weight: 500; }

.site-footer { margin-top: var(--gap); border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px 24px; padding-block: 24px 40px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.site-footer a { text-decoration: none; padding-block: 10px; }
.site-footer a:hover { color: var(--text); }
.footer-app { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; font-family: var(--sans); font-size: 15px; color: var(--text-2); }
.footer-app .brand { font-size: 15px; color: var(--text); }
.footer-app .brand img { width: 24px; height: 24px; border-radius: 6px; }

/* ---------- home ---------- */

.home-hero { padding-block: clamp(64px, 11vw, 136px) clamp(56px, 8vw, 96px); }
.home-hero .display { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; max-width: 13em; }
.home-hero .eyebrow { color: var(--muted); }

.cards {
  display: grid; gap: 24px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
}
.card {
  --tint: color-mix(in oklab, var(--accent) var(--card-mix), var(--surface));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.card-shot { margin-top: auto; }
@supports (grid-template-rows: subgrid) {
  .card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .card-shot { margin-top: 0; }
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card:hover .card-head svg { transform: translateX(3px); }
.card-head { display: flex; align-items: center; gap: 18px; padding: 28px 28px 0; }
.card-head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.card-head h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card-head svg { margin-left: auto; flex: none; transition: transform .2s; }
.card p { padding: 20px 28px 28px; font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.card-shot {
  height: 300px; overflow: hidden; background: var(--tint);
  display: flex; justify-content: center; align-items: flex-start; padding-top: 36px;
}
.card-shot img { width: 236px; border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35); }

.about { display: flex; flex-wrap: wrap; gap: 24px 48px; border-top: 1px solid var(--line); padding-top: 16px; }
.about h2 { flex: 1 1 200px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.about div { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.about p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; text-wrap: pretty; }
.about a {
  display: flex; align-items: center; gap: 8px; padding-block: 10px;
  font-size: 17px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}

/* ---------- app header ---------- */

.app-header { border-bottom: 1px solid var(--line); }
.app-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 16px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; padding-block: 6px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.app-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.app-nav a {
  padding: 11px 16px; border-radius: 999px;
  color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .15s;
}
.app-nav a:hover { background: var(--hover); }
.app-nav a[aria-current="page"] { background: var(--tint); color: var(--accent-text); }
.app-nav .sep { width: 1px; height: 20px; background: var(--line); margin-inline: 8px; }
.app-nav .back { display: flex; align-items: center; gap: 6px; padding-inline: 8px; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }

/* ---------- app overview ---------- */

.app-hero {
  display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 40px 64px;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
}
.app-hero > div { flex: 999 1 480px; min-width: 0; }
.app-icon-lg {
  flex: none; width: clamp(112px, 15vw, 176px); aspect-ratio: 1; border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px color-mix(in oklab, var(--accent), #000 40%);
}
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 36px; }
.badge img { height: 48px; width: auto; }

.shots {
  /* left edge lines up with the page content; the track bleeds off the right edge so the next screenshot peeks in */
  --edge: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  background: var(--tint);
}
.shots-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 40px; min-height: 84px; }
.shots-bar h2 { font-weight: 500; color: var(--accent-text); }
.shots-nav { display: flex; gap: 8px; }
.shots-nav[hidden] { display: none; }
.shots-nav button {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 999px; cursor: pointer; color: var(--text);
  border: 1px solid color-mix(in oklab, var(--accent-text) 28%, transparent);
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  transition: background-color .15s, opacity .15s;
}
.shots-nav button:hover:not(:disabled) { background: var(--bg); }
.shots-nav button:disabled { opacity: .35; cursor: default; }
.shots-track {
  display: flex; gap: 20px; padding: 24px var(--edge) 56px; scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track img {
  flex: none; width: 264px; border-radius: 20px; scroll-snap-align: start;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .4);
}

.features {
  display: grid; gap: 48px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.feature { border-top: 1px solid var(--line); padding-top: 16px; }
.feature .num { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.feature h2 { margin-top: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.feature p, .feature ul { margin-top: 12px; color: var(--text-2); line-height: 1.55; }
.feature ul { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }

.quote {
  max-width: 48rem; font-size: clamp(24px, 3vw, 36px); line-height: 1.3;
  font-weight: 500; letter-spacing: -0.025em; text-wrap: pretty;
}
.quote em { font-style: normal; color: var(--accent-text); }
.note { margin-top: 48px; max-width: 40rem; font-size: 14px; color: var(--muted); }

.posts { list-style: none; padding: 0; margin-top: 8px; }
.posts li { border-bottom: 1px solid var(--line-2); }
.posts a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 20px; text-decoration: none; }
.posts a > span:first-child { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.posts a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.posts .post-meta { flex: none; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.posts a:hover .post-meta { color: var(--text); }
.section-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.more-posts summary { list-style: none; cursor: pointer; padding-block: 20px; font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.more-posts summary::-webkit-details-marker { display: none; }
.more-posts[open] summary { display: none; }
.more-posts .posts { margin-top: 0; }

/* ---------- support ---------- */

.narrow { max-width: calc(760px + 2 * var(--pad)); }
.page-head { padding-top: clamp(56px, 9vw, 104px); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head .lead { margin-top: 20px; }

.contact {
  margin-top: 40px; padding: 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.contact h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.contact p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 22px;
  border-radius: 999px; background: var(--accent-text); color: var(--bg);
  font-size: 16px; font-weight: 500; text-decoration: none; transition: opacity .15s;
}
.button:hover { opacity: .88; }

.faq { margin-top: clamp(64px, 9vw, 96px); }
.faq h2.label { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: 24px; max-width: 40rem; color: var(--text-2); }
.faq details > p + p { margin-top: -12px; }
.faq a { color: var(--accent-text); }

/* ---------- privacy ---------- */

.doc { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: clamp(56px, 9vw, 104px); }
.toc { flex: 1 1 200px; font-size: 15px; }
.toc p { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; }
.toc a { display: block; padding-block: 7px; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.prose { flex: 999 1 560px; min-width: 0; max-width: 680px; color: var(--text-2); line-height: 1.65; }
.prose h1 { font-size: clamp(40px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; color: var(--text); }
.prose .updated { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.prose h2 { margin-top: 56px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--text); scroll-margin-top: 24px; }
.prose h3 { margin-top: 24px; font-size: 17px; font-weight: 600; color: var(--text); }
.prose h2 + p, .prose h2 + ul { margin-top: 12px; }
.prose h3 + p, .prose h3 + ul { margin-top: 8px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 16px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); }
.summary { margin-block: 36px 32px; padding: 24px 28px; border-radius: 20px; background: var(--tint); }
.summary span { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.summary p { margin-top: 8px; font-size: 19px; line-height: 1.5; color: var(--text); text-wrap: pretty; }

@media (max-width: 520px) {
  .app-nav .sep { display: none; }
  .app-nav { margin-left: -16px; }
}
