:root {
  --accent: #17dce6;
  --accent-ink: #0b7d84;
  --slate: #34495e;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --border: #e3e6ea;
  --link: #0b7d84;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --bg-soft: #181c20;
    --text: #f2f2f7;
    --muted: #a1a1aa;
    --border: #2a2f35;
    --link: #5fe6ee;
    --accent-ink: #5fe6ee;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2em;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Home */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: 2.6em; line-height: 1.15; margin: 0 0 12px; }
.hero .lead { font-size: 1.2em; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.device { max-width: 760px; margin: 0 auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18)); }

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.button {
  display: inline-block; padding: 10px 20px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--bg-soft);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #0b2a2c; }

section { padding: 32px 0; }
section h2 { font-size: 1.6em; margin: 0 0 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05em; }
.card p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.callout {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  border-radius: 0 12px 12px 0; padding: 16px 20px;
}

ol.steps, ul.plain { padding-left: 1.3em; }
ol.steps li, ul.plain li { margin-bottom: 6px; }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
}

/* Legal pages */
.doc { padding: 40px 0 16px; }
.doc h1 { font-size: 2em; margin: 0 0 4px; }
.doc .subtitle { color: var(--muted); margin: 0; }
.doc h2 { font-size: 1.2em; margin: 2em 0 0.4em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95em; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0 40px; color: var(--muted); font-size: 0.9em; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer p { margin: 4px 0; }
