/* Site stylesheet. One file, no scripts, system fonts. Dark only. */

:root {
  --bg: #0B0B0F;
  --surface: #15151C;
  --surface-2: #1E1E28;
  --line: #2C2C3A;
  --text: #F3F3F6;
  --muted: #B6B6C3;
  --accent: #FFD60A;
  --accent-ink: #0B0B0F;
  --radius: 14px;
  --max: 68rem;
  --pad: 1.25rem;
  color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

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

.skip {
  position: absolute; left: var(--pad); top: -4rem; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--text); font-weight: 700; font-size: 1.1rem; text-decoration: none;
}
.brand-mark {
  width: 1.5rem; height: 1.5rem; border-radius: 6px; background: var(--accent);
  display: inline-block; position: relative; flex: none;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; left: 22%; height: 12%; border-radius: 2px; background: var(--accent-ink);
}
.brand-mark::before { top: 36%; width: 56%; }
.brand-mark::after { top: 58%; width: 38%; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Sections */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Hero */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 20em; }
.hero-facts { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
.notice-line {
  margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); font-size: 0.95rem;
}

.store-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
}
.store-btn:hover { background: #FFE23F; }
.store-soon {
  display: inline-block; margin: 0; padding: 0.7rem 1.2rem; border-radius: 12px;
  border: 2px dashed var(--accent); color: var(--accent); font-weight: 600;
}

/* Cards and grids */
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { color: var(--accent); }
.card p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.2rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--muted); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7em; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.55em;
  width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--accent);
}

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; }
caption { text-align: left; padding: 0.9rem 1rem 0; color: var(--muted); font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; }
td.price { white-space: nowrap; color: var(--accent); font-weight: 700; }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
summary {
  cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font-weight: 600;
  list-style: none; position: relative; border-radius: var(--radius);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 0.85rem;
  color: var(--accent); font-size: 1.25rem; font-weight: 700; line-height: 1.5;
}
details[open] > summary::after { content: "\2212"; }
summary:hover { color: var(--accent); }
details[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.answer { padding: 1rem 1.25rem 0.25rem; }
.answer ol li, .answer ul li { margin-bottom: 0.5em; }

/* Placeholder box (legal pages, contact) */
.placeholder {
  border: 2px dashed var(--accent); border-radius: var(--radius);
  padding: 1.25rem; background: var(--surface);
}
.placeholder strong { color: var(--accent); }

/* Text pages */
.page { padding: 2.5rem 0 3rem; }
.page h2 { margin-top: 2em; }
.page h3 { margin-top: 1.5em; }
.page table { display: block; max-width: 100%; overflow-x: auto; min-width: 0; margin: 1.25em 0; font-size: 0.95rem; }
.page th, .page td { border: 1px solid var(--line); padding: 0.6rem 0.7rem; min-width: 8.5rem; vertical-align: top; text-align: left; }
.page code { font-size: 0.9em; overflow-wrap: anywhere; }

/* Phone mock-ups (CSS only; replace with screenshots) */
.phones { display: grid; gap: 1.5rem; justify-items: center; margin-top: 2rem; }
.phone {
  margin: 0 auto; width: 100%; max-width: 17.5rem; aspect-ratio: 9 / 18.5;
  border-radius: 2.4rem; padding: 0.6rem; background: #000;
  border: 2px solid #3A3A48; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
}
.phone-screen {
  height: 100%; border-radius: 1.9rem; background: var(--bg); overflow: hidden;
  padding: 1.6rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.7rem;
  font-size: 0.86rem; line-height: 1.4;
}
.phone-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.72rem; }
.listening { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent); font-weight: 600; }
.listening::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.cap { margin: 0; color: var(--text); }
.tr { margin: -0.45rem 0 0; color: var(--accent); }
.cap.dim, .tr.dim { opacity: 0.55; }
.panel {
  margin-top: auto; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.7rem 0.8rem;
}
.panel-title { margin: 0 0 0.35rem; font-weight: 700; color: var(--accent); font-size: 0.78rem; }
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { margin-bottom: 0.15em; }
.panel p { margin: 0 0 0.3rem; }
.ai-label { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.68rem; }
.phone-caption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }
/* Real screenshots, when they replace the mock-ups: <img class="phone-shot" ...> */
.phone-shot { display: block; width: 100%; max-width: 15rem; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--text); }

/* Narrow screens: each row of the prices table becomes a small block, so nothing scrolls sideways.
   The table keeps its meaning for screen readers through the role attributes in the HTML. */
@media (max-width: 39.99rem) {
  .table-wrap table { min-width: 0; display: block; }
  .table-wrap caption { display: block; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
  .table-wrap thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .table-wrap tbody { display: block; }
  .table-wrap tbody tr {
    display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem;
    padding: 0.9rem 1rem; border-bottom: 1px solid var(--line);
  }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap tbody th, .table-wrap tbody td { display: block; padding: 0; border: 0; }
  .table-wrap tbody th { white-space: normal; }
  .table-wrap tbody td:last-child { grid-column: 1 / -1; color: var(--muted); }
}

/* Wider screens */
@media (min-width: 48rem) {
  :root { --pad: 2rem; }
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .phone, .phones, .skip { display: none; }
  a { color: #000; }
}

/* Seller details in the footer (consumer-law requirement) */
.seller { font-size: 0.85rem; opacity: 0.75; margin: 0.5rem 0 0; }
