/* Shared style for the product pages (index.html, en.html). Colors follow extension/sidepanel.css. */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #131722;
  --muted: #5d606b;
  --border: #e0e3eb;
  --accent: #2962ff;
  --accent-text: #ffffff;
  --up: #089981;
  --shadow: 0 12px 40px rgba(19, 23, 34, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131722;
    --surface: #1e222d;
    --text: #d1d4dc;
    --muted: #9598a1;
    --border: #2a2e39;
    --accent: #5c8aff;
    --accent-text: #0b0e14;
    --up: #22ab94;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--accent); }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; }

.lang { font-size: 15px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 48px;
}

@media (min-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-top: 48px; }
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.shot {
  justify-self: center;
  width: min(100%, 380px);
}

.shot img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Sections */
section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.3;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.4;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
}

.card p { margin: 0; color: var(--muted); }

ol.steps {
  margin: 0;
  padding-left: 1.4em;
}

ol.steps li { margin-bottom: 10px; }

.faq h3 { margin-top: 28px; max-width: 760px; }

.faq p { margin: 0; max-width: 760px; }

ul.plain { margin: 0; padding-left: 1.2em; }

ul.plain li { margin-bottom: 6px; }

footer {
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

footer p { margin: 0 0 8px; }
