/* Jimo Link website. Light palette on :root, dark palette follows the system setting. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --accent: #007aff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
  /* app surfaces, matched to the real UI */
  --panel: #f6f6f5;
  --panel-row: #ffffff;
  --panel-line: #ececec;
  --switch-off: #e3e3e3;
  --btn2: #e4e4e4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text2: #98989d;
    --line: rgba(255, 255, 255, .1);
    --accent: #0a84ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
    --panel: #2a2a2b;
    --panel-row: #333335;
    --panel-line: #3e3e40;
    --switch-off: #4a4a4c;
    --btn2: #46464a;
    color-scheme: dark;
  }
  .only-light { display: none !important; }
  .only-dark { display: block !important; }
}
.only-dark { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }

/* ---------- nav and footer ---------- */
.nav {
  display: flex; align-items: center; gap: 20px;
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav > a:not(.brand) { color: var(--text2); font-size: 13px; }
.nav > a[aria-current="page"] { color: var(--text); }
.footer {
  max-width: 1120px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--text2); font-size: 12px;
}
.footer a { color: var(--text2); }
.footer span:first-child { margin-right: auto; }

/* ---------- download button ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px;
  border-radius: 20px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.cta:hover { text-decoration: none; filter: brightness(1.08); }
.cta svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- home hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px;
}
.hero .icon { width: 64px; height: 64px; margin-bottom: 20px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 24px; text-wrap: balance; }
.stage { position: relative; background: var(--surface); border-radius: 20px; height: 480px; overflow: hidden; }
.stage .menu { position: absolute; top: 24px; right: 32px; }
.stage .card { position: absolute; left: 32px; top: 196px; transform-origin: 70% 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 20px 56px; }
  .hero h1 { font-size: 26px; }
  .hero .icon { width: 56px; height: 56px; }
}
@media (max-width: 560px) {
  .stage { height: 520px; }
  .stage .menu { right: 50%; margin-right: -150px; top: 20px; }
  .stage .card { left: 50%; margin-left: -150px; width: 300px; top: 236px; }
}

/* approval card, replica of the real one */
.card {
  width: 340px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; font-size: 13px; line-height: 1.5;
}
.card-bar { height: 3px; background: var(--accent); }
.card-in { padding: 14px 16px 16px; }
.card-head { display: flex; gap: 12px; align-items: center; }
.card-head img { width: 40px; height: 40px; }
.card-from { color: var(--text2); font-size: 12px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.card-time { margin-left: auto; color: var(--text2); font-size: 12px; align-self: flex-start; padding-top: 10px; }
.card-box {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 12px;
  padding: 10px 12px; background: var(--panel-row); border: 1px solid var(--panel-line); border-radius: 10px;
}
.card-box dt { color: var(--text2); }
.card-box dd { margin: 0; }
.card-check { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 12px; }
.card-check i { flex: none; width: 16px; height: 16px; border-radius: 4px; background: var(--btn2); }
.card-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.card-acts span {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 16px;
  border-radius: 8px; font-weight: 600; background: var(--btn2);
}
.card-acts .ok { background: var(--accent); color: #fff; }
.card-acts kbd { font: inherit; font-weight: 400; font-size: 11px; opacity: .7; }

/* menu panel, replica of the real one */
.menu {
  width: 300px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 12px; font-size: 13px; line-height: 1.4;
}
.menu-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 600; font-size: 14px; }
.menu-head img { width: 22px; height: 22px; }
.menu-head .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.menu-label { color: var(--text2); font-size: 11px; font-weight: 600; padding: 0 4px 6px; }
.menu-group { background: var(--panel-row); border-radius: 10px; border: 1px solid var(--panel-line); margin-bottom: 12px; }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.menu-row + .menu-row { border-top: 1px solid var(--panel-line); }
.menu-row img { width: 26px; height: 26px; }
.menu-row .name { font-weight: 600; margin-right: auto; }
.menu-row .when { color: var(--text2); font-size: 12px; }
.switch {
  flex: none; width: 32px; height: 19px; border-radius: 10px; background: var(--switch-off); position: relative;
  transition: background-color .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .18s ease;
}
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(13px); }

/* The card starts hidden only when the script is ready to animate it (see hero.js). */
.animating .card { opacity: 0; transform: translateY(-10px) scale(.96); }
.animating .card.shown {
  opacity: 1; transform: none;
  transition: opacity .22s ease, transform .38s cubic-bezier(.34, 1.3, .64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .switch, .switch::after { transition: none; }
}

/* ---------- document pages ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 40px 24px 72px; }
.doc h1 { font-size: 30px; line-height: 1.3; margin-bottom: 8px; }
.doc .date { color: var(--text2); font-size: 13px; margin: 0 0 32px; }
.doc h2 { font-size: 18px; line-height: 1.4; margin: 36px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 24px 14px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--text2); border-bottom: 1.5px solid var(--text2); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq details > div { padding: 0 0 14px; color: var(--text); }
.contact { margin-top: 40px; padding: 20px; background: var(--surface); border-radius: 12px; }
.contact h2 { margin-top: 0; }
@media (max-width: 560px) {
  .doc { padding: 24px 20px 56px; }
  .doc h1 { font-size: 26px; }
  .nav { padding: 12px 20px; gap: 16px; }
  .footer { padding: 20px; }
}
