/* meetmoji.me: the Moji app's look on the web (ios/.../DesignSystem.swift). */
:root {
  color-scheme: dark light;
  --canvas: #0E0E10; --card: #1B1B1E; --surface: #2A2A2E; --tile: #29292D;
  --text: #F5F5F6; --text-2: #B2B2B8; --hair: rgba(255,255,255,.08);
  --accent: #FF8266; --accent-soft: #3A2420; --sunny: #FFD666; --good: #5FD38D;
  --action-bg: #ECEDEF; --action-text: #25282B; --rim: rgba(255,255,255,.10);
  --glow: rgba(255,255,255,.07);
  --r-compact: 10px; --r-field: 12px; --r-group: 20px; --r-sheet: 28px;
  --rounded: ui-rounded, "SF Pro Rounded", "SF Compact Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #F2F2F4; --card: #FFFFFF; --surface: #E8E8EC; --tile: #EFEFF2;
    --text: #1C1D20; --text-2: #717176; --hair: rgba(0,0,0,.08);
    --accent: #FF6A4D; --accent-soft: #FFE6E0; --good: #23A55A;
    --action-bg: #25282B; --action-text: #FFFFFF; --rim: rgba(255,255,255,.10); --glow: rgba(0,0,0,0);
  }
}
* { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--card); padding: 8px 14px; border-radius: var(--r-field); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Top bar: the wordmark, and the app's capsule controls for the pages. */
.top { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 21px/1 var(--rounded); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 4px; padding: 4px; background: var(--card); border-radius: 999px; }
.nav a { text-decoration: none; font: 600 14px/1 var(--rounded); color: var(--text-2); padding: 9px 13px; border-radius: 999px; }
.nav a[aria-current="page"] { background: var(--surface); color: var(--text); }
.nav a:hover { color: var(--text); }

/* Hero: the Home screen of the app. */
.hero { text-align: center; padding: 28px 0 8px; }
.device { position: relative; width: min(300px, 78vw); aspect-ratio: 353 / 311; margin: 0 auto; filter: drop-shadow(0 0 22px var(--glow)); }
.device img, .device .screen { position: absolute; inset: 0; width: 100%; height: 100%; }
.device .screen { inset: auto; left: calc(49.86% - 37.63%); top: calc(33.76% - 23.21%); width: 75.26%; height: 46.42%; background: #000; display: grid; place-items: center; }
.device .screen img { position: static; width: 87%; height: auto; image-rendering: pixelated; transform-origin: 50% 39%; animation: blink 6s infinite; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .device .screen img { animation: none; } }
.finishes { display: flex; justify-content: center; gap: 10px; margin: 14px 0 0; }
.finishes button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--canvas); outline: 1px solid var(--hair); cursor: pointer; padding: 0; }
.finishes button[aria-pressed="true"] { outline: 2px solid var(--text); }
.finishes [data-finish="onyx"] { background: #24262B; } .finishes [data-finish="cherry"] { background: #B83244; } .finishes [data-finish="denim"] { background: #78A8D8; }
h1.wordmark { font: 900 clamp(46px, 11vw, 64px)/1 var(--rounded); letter-spacing: -.02em; margin: 18px 0 14px; }
h1.title { font: 800 clamp(34px, 8vw, 44px)/1.08 var(--rounded); letter-spacing: -.01em; margin: 26px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 600 15px/1 var(--rounded); text-decoration: none; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.pill .chev { color: var(--text-2); }
.lede { color: var(--text-2); max-width: 30em; margin: 16px auto 24px; text-wrap: balance; }
.action { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 22px; border-radius: 999px;
  background: var(--action-bg); color: var(--action-text); box-shadow: inset 0 0 0 1px var(--rim); font: 700 17px/1 var(--rounded); text-decoration: none; }
.action:hover { filter: brightness(1.04); }
.action.quiet { background: var(--surface); color: var(--text); }

/* Grouped list cards. */
section { margin: 36px 0 0; }
h2 { font: 700 22px/1.2 var(--rounded); margin: 0 0 10px; padding: 0 4px; }
.sub { color: var(--text-2); margin: -4px 4px 12px; font-size: 15px; }
.group { background: var(--card); border-radius: var(--r-group); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; text-decoration: none; position: relative; }
.row + .row::before, .group > details + details::before { content: ""; position: absolute; top: 0; right: 0; left: 66px; border-top: 1px solid var(--hair); }
.group > details + details::before { left: 16px; }
a.row:hover, summary:hover { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.tile { flex: none; width: 36px; height: 36px; border-radius: var(--r-compact); background: var(--tile); display: grid; place-items: center; color: var(--accent); }
.tile svg { width: 20px; height: 20px; }
.tile:not(:has(svg)) { font: 800 13px/1 var(--rounded); letter-spacing: -.02em; }
.row .text { flex: 1; min-width: 0; }
.row .name { display: block; font: 600 17px/1.3 var(--rounded); }
.row .detail { display: block; color: var(--text-2); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.chevron { flex: none; color: var(--text-2); opacity: .7; }

/* Questions: rows that open. */
.group > details { position: relative; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 15px 16px; font: 600 17px/1.3 var(--rounded); }
summary::-webkit-details-marker { display: none; }
summary .chevron { margin-left: auto; transition: transform .2s; }
details[open] summary .chevron { transform: rotate(90deg); }
.answer { padding: 0 16px 16px; color: var(--text-2); font-size: 16px; }
.answer p, .answer ol, .answer ul { margin: 0 0 10px; }
.answer li { margin: 4px 0; }
.answer strong, .prose strong { color: var(--text); font-weight: 600; }

/* Long reading: privacy and terms. */
.prose { background: var(--card); border-radius: var(--r-group); padding: 6px 22px 10px; }
.prose h3 { font: 700 18px/1.3 var(--rounded); margin: 22px 0 6px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose ul { padding-left: 20px; }
.note { color: var(--text-2); font-size: 15px; text-align: center; margin: 14px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.chip { background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 14px/1.2 var(--rounded); color: var(--text-2); }
.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--r-group); padding: 16px; }
.callout p { margin: 0; font-size: 16px; }

footer { margin: 56px 0 0; padding: 22px 0 40px; border-top: 1px solid var(--hair); color: var(--text-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }
footer .made { margin-right: auto; }

@media (max-width: 420px) {
  .brand span { display: none; }
  .nav a { padding: 9px 10px; font-size: 13.5px; }
}

/* /setup: tools in grouped cards. */
.status-pill { margin: 0 0 4px; }
.status-pill .dot { background: var(--text-2); }
.status-pill .dot.ready { background: var(--good); }
.status-pill .dot.blocked { background: var(--accent); }
.tool .tool-body { padding: 0 16px 16px 66px; }
.steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 16px; }
.steps li { margin: 6px 0; } .steps strong, .check strong { color: var(--text); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 16px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
button.action { border: 0; cursor: pointer; }
button.action:disabled { opacity: .45; cursor: default; filter: none; }
.status { min-height: 1.5em; margin: 12px 0 0; color: var(--text-2); font-size: 15px; }
.status:empty { margin: 0; min-height: 0; }
progress { width: 100%; height: 8px; margin-top: 12px; appearance: none; border: 0; border-radius: 999px; background: var(--surface); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
@media (max-width: 480px) { .tool .tool-body { padding-left: 16px; } }
