/* XyneX site. No web fonts, no trackers: everything is served from this host. */
:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #1b1a17;
  --muted: #5d5a52;
  --line: #dcd7cb;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --mark: #e9e2cf;
  --radius: 10px;
  --max: 1040px;
  --read: 720px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Charter", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1c1c19;
    --ink: #ece9e1;
    --muted: #a8a397;
    --line: #34332e;
    --accent: #8cc7b2;
    --accent-ink: #10201a;
    --mark: #2a2a24;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; font-size: 19px; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 14px; }
h3 { font-size: 20px; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 620px; }
.small { font-size: 14px; color: var(--muted); }
.note { margin-top: 12px; }

/* sections */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 72px 0 56px; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card h3 { margin-top: 0; }
.card ul { padding-left: 18px; margin: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mark); color: var(--ink); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.btn:hover { filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

/* pricing */
.plan { max-width: 460px; }
.price { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 4px 0; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--muted); font-weight: 400; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 18px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* legal pages */
.legal { padding: 48px 0 64px; }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal h3 { font-size: 18px; }
.legal li { margin-bottom: 6px; }
.meta { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--surface); margin-bottom: 28px; }
.toc { font-size: 15px; columns: 2 220px; padding-left: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .hero { padding: 48px 0 40px; }
}
