:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-sunken: #f2ede4;
  --border: #e4ddd0;
  --ink: #24211c;
  --ink-soft: #6b6255;
  --ink-faint: #a89d8b;
  --accent: #e06902;
  --accent-ink: #7a3600;
  --accent-wash: #fbe6d2;
  --ok: #2f6d4f; --ok-wash: #e2efe6;
  --soon: #b0730a; --soon-wash: #f8ecd6;
  --shadow: 0 1px 2px rgba(36,33,28,0.06), 0 8px 24px -12px rgba(36,33,28,0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a17; --surface: #242320; --surface-sunken: #2c2b27; --border: #3a3833;
    --ink: #f1ede4; --ink-soft: #b8b0a1; --ink-faint: #7d7566;
    --accent: #f0863c; --accent-ink: #ffd9b3; --accent-wash: #3d2814;
    --ok: #7cc9a0; --ok-wash: #223129;
    --soon: #e0ab4f; --soon-wash: #3a2e15;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #1b1a17; --surface: #242320; --surface-sunken: #2c2b27; --border: #3a3833;
  --ink: #f1ede4; --ink-soft: #b8b0a1; --ink-faint: #7d7566;
  --accent: #f0863c; --accent-ink: #ffd9b3; --accent-wash: #3d2814;
  --ok: #7cc9a0; --ok-wash: #223129;
  --soon: #e0ab4f; --soon-wash: #3a2e15;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-wash); color: var(--accent-ink); }
a { color: var(--accent-ink); }
code { background: var(--surface-sunken); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

.page { max-width: 880px; margin: 0 auto; padding: 0 20px 64px; }

header.masthead {
  background: var(--accent);
  margin: 0 calc(50% - 50vw);
  padding: clamp(24px, 4vw, 36px) calc(50vw - 50% + 20px);
  color: #ffffff;
}
header.masthead .crumbs { font-size: 12.5px; font-weight: 600; opacity: 0.85; margin-bottom: 8px; }
header.masthead .crumbs a { color: #fff; text-decoration: none; opacity: 0.85; }
header.masthead .crumbs a:hover { opacity: 1; text-decoration: underline; }
header.masthead .eyebrow { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.85; }
header.masthead h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(26px, 5vw, 38px);
  margin: 6px 0 8px; text-wrap: balance; max-width: 840px; display: flex; align-items: center; gap: 14px;
}
header.masthead h1 .icon { font-size: 0.9em; }
header.masthead p.lede { margin: 0; font-size: 15px; opacity: 0.92; max-width: 62ch; line-height: 1.55; }
header.masthead .badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 100px; background: rgba(255,255,255,0.22); margin-top: 10px;
}

nav.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
nav.jump a {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px;
}
nav.jump a:hover { color: var(--accent-ink); border-color: var(--accent); }
nav.jump a.home::before { content: "← "; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.service-tile {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; transition: transform 0.1s;
}
.service-tile:hover { border-color: var(--accent); }
.service-tile .t-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.service-tile h3 { font-family: 'Fraunces', Georgia, serif; font-size: 17px; margin: 0 0 4px; color: var(--ink); }
.service-tile p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.service-tile .badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; margin-top: 8px; display: inline-block; }
.badge.ok { background: var(--ok-wash); color: var(--ok); }
.badge.soon { background: var(--soon-wash); color: var(--soon); }

section.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); margin-bottom: 24px; scroll-margin-top: 16px;
}
section.card h2 { font-family: 'Fraunces', Georgia, serif; font-size: 21px; margin: 0 0 12px; }
section.card > p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
ol.steps, ul.steps { margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); }
ol.steps b, ul.steps b { color: var(--ink); }
ol.steps li, ul.steps li { margin-bottom: 4px; }
.login-cta, .service-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 10px 22px; border-radius: 8px;
}
.login-cta { background: var(--accent); color: #fff; margin-top: 14px; }
.service-link { color: var(--accent-ink); background: var(--accent-wash); padding: 8px 16px; font-size: 14px; margin: 4px 0 0; }
.tip {
  font-size: 13.5px; color: var(--ink-soft); background: var(--surface-sunken);
  border-radius: 8px; padding: 12px 16px; line-height: 1.6; margin-top: 14px;
}
.tip b { color: var(--ink); }
.tip + .tip { margin-top: 10px; }

h2.section-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; margin: 32px 0 16px; text-wrap: balance; }
h2.section-title:first-of-type { margin-top: 8px; }

section.contact {
  background: var(--surface-sunken); border-radius: 14px; padding: clamp(20px, 3vw, 28px);
  text-align: center; margin-top: 8px;
}
section.contact h2 { font-family: 'Fraunces', Georgia, serif; font-size: 20px; margin: 0 0 8px; }
section.contact p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.docs-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accent-wash); border: 1px solid var(--accent); border-radius: 12px;
  padding: 16px 20px; margin-top: 20px; font-size: 14px; color: var(--ink);
}
.docs-note .d-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.docs-note b { display: block; margin-bottom: 4px; }
.docs-note a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; }
.docs-note .lang { font-size: 12px; color: var(--ink-soft); font-weight: 400; }

footer.note { margin-top: 24px; font-size: 12px; color: var(--ink-faint); text-align: center; }

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
