/* kydz.site — style B "native simple". System fonts only: no external fonts or CDNs. */
:root {
  --bg: #ffffff;
  --ink: #111113;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --group: #f2f2f7;
  --card: #ffffff;
  --rule: #e5e5ea;
  --link: #0a63c9;
  --btn-bg: #111113;
  --btn-ink: #ffffff;
  --note-bg: #fff4e5;
  --note-ink: #5c3b00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --ink: #f5f5f7;
    --ink-2: #d1d1d6;
    --muted: #a1a1a6;
    --group: #1c1c1e;
    --card: #2c2c2e;
    --rule: #38383a;
    --link: #4da3ff;
    --btn-bg: #f5f5f7;
    --btn-ink: #111113;
    --note-bg: #3a2a10;
    --note-ink: #ffd89a;
  }
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(5vw, 20px, env(safe-area-inset-left, 0px));
  padding-right: max(5vw, 20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 1100px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* Header and work navigation */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; min-height: 52px; }
.site-name { color: var(--ink); font-weight: 600; font-size: 16px; }
.site-name:hover { text-decoration: none; }
.work-nav { border-bottom: 1px solid var(--rule); }
.work-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.work-name { font-weight: 600; font-size: 18px; }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.work-links a { color: var(--muted); padding: 10px 0; }
.work-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: 72px 0 64px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.app-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.hero h1 { font-size: clamp(40px, 7vw, 56px); font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; }
.hero .lead { margin: 0; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding-top: 6px; }
.hero .fine { margin: 0; font-size: 13px; color: var(--muted); }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; min-height: 44px; }
.btn:hover { text-decoration: none; opacity: 0.88; }
.link-more { display: inline-block; padding: 12px 16px; font-size: 16px; }

/* Grey band with cards */
.band-grey { background: var(--group); padding: 64px 0; }
.band-grey h2, .section h2 { font-size: clamp(26px, 4vw, 32px); font-weight: 700; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-icon { width: 28px; height: 28px; stroke: var(--link); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--link); }
.work-card { flex-direction: row; align-items: center; gap: 18px; }
.work-card img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.work-card .more { color: var(--link); font-size: 15px; }

/* Plain sections */
.section { padding: 64px 0; }
.section.center { text-align: center; }
.section.center .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section.center h2 { margin-bottom: 0; }
.section.center p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 34em; }
.section-icon { width: 40px; height: 40px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Long-form text: privacy policy, support */
.prose { padding: 48px 0 72px; }
.prose .wrap { max-width: 820px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; margin-bottom: 8px; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose ul { padding-left: 1.3em; }
.prose .meta { color: var(--muted); font-size: 15px; margin-top: 0; }
.prose strong { color: var(--ink); }
.note { background: var(--note-bg); color: var(--note-ink); border-radius: 12px; padding: 14px 18px; font-size: 15px; margin: 16px 0 24px; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: 12px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.table-scroll th { background: var(--group); font-weight: 600; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll td a { overflow-wrap: anywhere; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 32px; }
.faq details { background: var(--group); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; min-height: 44px; }
.faq details p { margin: 0 0 16px; }
.contact-box { background: var(--group); border-radius: 18px; padding: 24px; }
.contact-box p { margin: 6px 0; }

/* Footer */
.site-footer { background: var(--group); border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 22px; padding-bottom: 28px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 12px; }
.lang-switch [aria-current] { color: var(--ink); }
.filing { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto !important; }
.filing img { vertical-align: -3px; margin-right: 4px; }

/* 404 */
.not-found { padding: 96px 0; text-align: center; }
.not-found h1 { font-size: 40px; margin-bottom: 12px; }
.not-found p { color: var(--ink-2); margin: 6px 0; }
.not-found .links { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
