/* Recorder Manager / 录音管家 — official site.
   Colours are the app's own Palette (androidApp ui/Theme.kt, desktop Palette).
   No web fonts: system faces only, so the site works offline and behind any server. */

:root {
  --bg: #edf1f2;
  --card: #ffffff;
  --ink: #10333a;
  --teal: #1b8582;
  --teal-deep: #0f6260;
  --teal-soft: #d5ecea;
  --ok-text: #0e5553;
  --amber: #f0a030;
  --amber-deep: #c97a0a;
  --amber-text: #2b1b00;
  --amber-soft: #fcebd0;
  --amber-soft-text: #6a4305;
  --red: #d4493c;
  --red-soft: #fbe3e0;
  --red-text: #8a2a20;
  --muted: #4e6267;
  --line: #d9e1e3;
  --track: #e3eaeb;

  --body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    "WenQuanYi Micro Hei", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Condensed face for times and numbers, like the app (Bahnschrift on Windows). */
  --num: Bahnschrift, "DIN Alternate", "DIN Condensed", "Roboto Condensed",
    "Arial Narrow", "Segoe UI", sans-serif;

  --radius: 16px;
  --wrap: 68rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;          /* 20px: many readers are older */
  line-height: 1.65;
  overflow-wrap: break-word;
}

:lang(en) body, body:lang(en) { line-height: 1.55; }

img, svg { max-width: 100%; }

a { color: var(--ok-text); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 4px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 1rem; color: #fff; }

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

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

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.3rem;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; flex: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 0.35rem 0.7rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 600;
}
.nav a:hover { background: var(--teal-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.lang {
  display: inline-block; padding: 0.3rem 0.8rem; border: 2px solid var(--ink);
  border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.lang:hover { background: var(--ink); color: #fff; }
@media (max-width: 48rem) {
  .top nav { order: 3; flex-basis: 100%; }
  .nav { margin-left: -0.7rem; }
}

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.01em; }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.35rem; max-width: 38em; }
.small { font-size: 1.05rem; color: var(--muted); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

main { display: block; }
.section { padding: 3rem 0; }
.section + .section { padding-top: 0; }
.page-head { padding: 2.5rem 0 1.5rem; }
.page-head .lead { margin-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.5rem; padding: 0.7rem 1.6rem; border-radius: var(--radius);
  font-size: 1.3rem; font-weight: 800; text-decoration: none; line-height: 1.25; text-align: center;
  border: 0;
}
.btn-main { background: var(--amber); color: var(--amber-text); box-shadow: 0 3px 0 var(--amber-deep); }
.btn-main:hover { background: #f5b04d; color: var(--amber-text); }
.btn-quiet { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] {
  background: var(--track); color: var(--muted); box-shadow: none; cursor: not-allowed;
  border: 2px dashed var(--muted);
}

/* Marker for anything the owner still has to fill in. Deliberately loud. */
.todo {
  display: inline-block; background: #fff3a8; color: #3b3000; border: 2px dashed #8a7300;
  border-radius: 8px; padding: 0 0.45rem; font-weight: 700; font-size: 0.92em;
}

/* ---------- hero: the day strip ---------- */

.hero { padding: 3rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2.25rem; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; align-items: center; }
}
.hero h1 { margin-bottom: 0.45em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }

.days {
  background: var(--card); border-radius: 22px; padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(16, 51, 58, 0.45);
}
.days-title { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.75rem; }
.days-title strong { font-size: 1.1rem; }
.days-title span { font-size: 0.95rem; color: var(--muted); }

.day { display: grid; grid-template-columns: 3.2em 1fr; gap: 0.6rem; align-items: center; margin-bottom: 0.55rem; }
.day-name { font-family: var(--num); font-weight: 700; font-size: 1.05rem; }
.strip { position: relative; display: block; height: 34px; border-radius: 8px; overflow: hidden; }
.strip svg { display: block; width: 100%; height: 100%; }
.s-off { fill: var(--track); }
.s-quiet { fill: var(--teal-soft); }
.s-talk { fill: var(--teal); }

.hours {
  display: grid; grid-template-columns: 3.2em 1fr; gap: 0.6rem; margin-top: 0.15rem;
  font-family: var(--num); color: var(--muted);
}
.hours ol { position: relative; height: 1.5em; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.hours li { position: absolute; top: 0; transform: translateX(-50%); }
.hours li:nth-child(1) { left: 0; transform: none; }
.hours li:nth-child(2) { left: 25%; }
.hours li:nth-child(3) { left: 50%; }
.hours li:nth-child(4) { left: 75%; }
.hours li:nth-child(5) { left: auto; right: 0; transform: none; }

.strips { position: relative; }
.playhead {
  position: absolute; top: -6px; bottom: 1.9rem; width: 4px; margin-left: -2px;
  left: calc(3.2em + 0.6rem + (100% - 3.2em - 0.6rem) * 0.45);
  background: var(--amber); border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 0 2px #fff;
}
.playhead::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 2px #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .playhead { animation: sweep 5.5s cubic-bezier(0.45, 0, 0.2, 1) 0.4s both; }
  @keyframes sweep {
    from { left: calc(3.2em + 0.6rem); }
    to { left: calc(3.2em + 0.6rem + (100% - 3.2em - 0.6rem) * 0.45); }
  }
}

.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0.9rem 0 0; padding: 0; list-style: none; font-size: 1rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend i { display: inline-block; width: 1.4em; height: 0.85em; border-radius: 4px; }
.legend .k-off { background: var(--track); border: 1px solid #c3cfd2; }
.legend .k-quiet { background: var(--teal-soft); border: 1px solid #a9d3cf; }
.legend .k-talk { background: var(--teal); }
.caption { font-size: 0.95rem; color: var(--muted); margin: 0.6rem 0 0; }

/* ---------- feature list ---------- */

.does { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 44rem) { .does { grid-template-columns: repeat(2, 1fr); } }
.does li {
  background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.35rem;
  border-left: 8px solid var(--teal);
}
.does h3 { margin-bottom: 0.3em; }
.does p { margin: 0; }

/* ---------- warning: do not format ---------- */

.stop {
  background: var(--red-soft); color: var(--red-text); border-radius: 22px;
  padding: 1.75rem 1.5rem; border: 3px solid var(--red);
  display: grid; gap: 1rem;
}
@media (min-width: 52rem) { .stop { grid-template-columns: auto 1fr; gap: 1.75rem; padding: 2rem 2.25rem; } }
.stop-mark {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 900; line-height: 1; font-family: var(--num);
}
.stop h2 { color: var(--red-text); }
.stop p:last-child { margin-bottom: 0; }
.stop strong { color: #6e1e16; }

/* ---------- generic cards ---------- */

.card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.card > :last-child { margin-bottom: 0; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.price-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  background: var(--card); border-radius: 12px; padding: 1rem 1.25rem;
}
.price-list .what { font-weight: 700; }
.price-list .what > span:not(.tag) { display: block; font-weight: 400; font-size: 1.05rem; color: var(--muted); }
.price-list .cost { font-family: var(--num); font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.tag {
  display: inline-block; font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.6rem;
  background: var(--amber-soft); color: var(--amber-soft-text); vertical-align: 0.15em;
}
.tag-ok { background: var(--teal-soft); color: var(--ok-text); }
/* Brand label: one per recorder brand, shown next to the model name, never part of it. */
.tag-brand { background: transparent; color: var(--muted); border: 1.5px solid currentColor; letter-spacing: 0.02em; }
.brand { margin: 0 0 0.35rem; }

.dl { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .dl { grid-template-columns: repeat(2, 1fr); } }
.dl .card { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.dl .card h3 { margin: 0; }

.note { background: var(--amber-soft); color: var(--amber-soft-text); border-radius: 12px; padding: 0.9rem 1.15rem; }
.note-draft { background: #fff3a8; color: #3b3000; border: 2px dashed #8a7300; }

/* ---------- steps (a real sequence) ---------- */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.steps > li {
  counter-increment: s; position: relative; background: var(--card); border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.1rem 4.6rem; min-height: 4.5rem;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 1.1rem; top: 1rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-family: var(--num); font-weight: 700; font-size: 1.35rem;
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 52rem) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li { background: var(--card); border-radius: 12px; padding: 0.85rem 1rem 0.85rem 3rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem;
  border: 3px solid var(--teal); border-radius: 4px;
}
.checklist b { display: block; }
.checklist span { font-size: 1.05rem; color: var(--muted); }

/* ---------- connection ladder ---------- */

.ways { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .ways { grid-template-columns: repeat(2, 1fr); } }
.way { border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.way-now { background: var(--card); border: 3px solid var(--teal); }
.way-plan { background: transparent; border: 3px dashed #9bb0b4; }
.way h3 { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.way p:last-child { margin-bottom: 0; }

/* ---------- contact block ---------- */

.contact { background: var(--ink); color: #fff; border-radius: 22px; padding: 1.75rem 1.5rem; }
.contact h2 { color: #fff; }
.contact dl { margin: 0 0 1.5rem; display: grid; gap: 0.9rem; }
@media (min-width: 44rem) { .contact dl { grid-template-columns: 12em 1fr; gap: 0.9rem 1.5rem; } }
.contact dl > div { display: contents; }
.contact dl > div[hidden] { display: none; }
.contact dt { color: #b9d6d8; font-weight: 700; }
.contact dd { margin: 0; white-space: pre-line; }
.contact a { color: #fff; }
.contact a.btn-main { color: var(--amber-text); }
.contact .opt { font-weight: 400; font-size: 0.95rem; }

/* ---------- model card ---------- */

.model { background: var(--card); border-radius: 22px; padding: 1.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .model { grid-template-columns: 15rem 1fr; padding: 2rem; } }
.model-name { font-family: var(--num); font-weight: 700; font-size: 2.6rem; line-height: 1.1; margin: 0 0 0.4rem; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 1.1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 26rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.4rem; } }
.yes { list-style: none; margin: 0 0 1rem; padding: 0; }
.yes li { padding-left: 1.6rem; position: relative; margin-bottom: 0.35rem; }
.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.9rem; }
.faq details { background: var(--card); border-radius: var(--radius); padding: 0; }
.faq summary {
  cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.35rem; font-weight: 700; font-size: 1.3rem;
  list-style: none; position: relative; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 0.85rem; font-size: 1.8rem; line-height: 1;
  font-family: var(--num); color: var(--teal);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 1.35rem 1.25rem; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .urgent { border-left: 8px solid var(--red); }
.faq ol, .faq ul { padding-left: 1.4em; margin: 0 0 1em; }
.faq li { margin-bottom: 0.3em; }

.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- pricing ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.plans { display: grid; gap: 1rem; }
@media (min-width: 60rem) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { background: var(--card); border-radius: 22px; padding: 1.5rem; border-top: 8px solid var(--teal); display: flex; flex-direction: column; gap: 0.75rem; }
.plan-soon { border-top-color: #9bb0b4; }
.plan h2, .plan h3 { margin: 0; font-size: 1.5rem; }
.plan .amount { font-family: var(--num); font-weight: 700; font-size: 2.4rem; line-height: 1.1; margin: 0; }
.plan .amount small { font-family: var(--body); font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0; }
.plan p { margin: 0; }
.plan .btn { align-self: stretch; }

.disclosure { background: var(--teal-soft); color: var(--ink); border-radius: 12px; padding: 0.8rem 1rem; font-size: 1.05rem; }
.disclosure strong { display: block; }

.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 1.1rem; }
.compare th, .compare td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; }
.compare td { text-align: center; width: 6.5em; font-weight: 800; }
.compare td.in { color: var(--teal-deep); }
.compare td.out { color: #8a9a9e; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- buy form ---------- */

.buy { display: grid; gap: 1.25rem; max-width: 44rem; }
.buy fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.buy legend { font-weight: 800; font-size: 1.3rem; margin-bottom: 0.5rem; padding: 0; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.85rem; align-items: start; background: var(--card); border-radius: var(--radius); padding: 1rem 1.25rem; border: 3px solid transparent; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); }
.choice input { width: 1.4rem; height: 1.4rem; margin-top: 0.3rem; accent-color: var(--teal); }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: 1.05rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input[type="email"] { width: 100%; font: inherit; padding: 0.65rem 0.9rem; border: 2px solid var(--muted); border-radius: 12px; background: #fff; color: var(--ink); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 1.1rem; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.25rem; accent-color: var(--teal); }
.error { background: var(--red-soft); color: var(--red-text); border-radius: 12px; padding: 0.7rem 1rem; font-weight: 700; margin: 0; }
button.btn { font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: wait; }

.legal-meta { color: var(--muted); font-size: 1.05rem; margin: 0.5rem 0 0; }

/* ---------- footer ---------- */

.foot { margin-top: 3rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--muted); }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.foot p { margin: 0; }
.foot .seller { margin-top: 0.6rem; font-size: 0.98rem; }

/* ---------- language chooser (site/index.html) ---------- */

.choose { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.choose .box { text-align: center; max-width: 30rem; }
.choose img { width: 96px; height: 96px; }
.choose .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

@media (max-width: 26rem) {
  body { font-size: 1.15rem; }
  .nav a { padding: 0.3rem 0.5rem; font-size: 1rem; }
  .brand { font-size: 1.1rem; gap: 0.45rem; }
  .brand img { width: 36px; height: 36px; }
  .lang { padding: 0.2rem 0.6rem; }
  .nav { margin-left: -0.5rem; }
  .wrap { padding: 0 1rem; }
  .btn { width: 100%; }
  .days { padding: 1rem 0.85rem 0.85rem; }
  .steps > li { padding-left: 3.9rem; }
  .steps > li::before { left: 0.8rem; width: 2.3rem; height: 2.3rem; font-size: 1.2rem; }
  .contact, .stop { padding: 1.4rem 1.1rem; }
  .compare th, .compare td { padding: 0.6rem 0.55rem; }
  .compare td { width: 3.4em; }
  .plan .amount { font-size: 2rem; }
}

@media print {
  .top .nav, .lang, .skip, .playhead { display: none; }
  body { background: #fff; }
}
