/* Steadlink landing + docs — shared styles */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --border: #e3e6ea;
  --strong: #c9cfd8;
  --fg: #272d36;
  --muted: #5b6470;
  --subtle: #636c7a;
  --accent: #0c5b4a;
  --accent-hover: #094a3c;
  --accent-active: #073a30;
  --accent-fg: #ffffff;
  --accent-soft: #e2f0ec;
  --danger: #b3261e;
  --success: #2b752e;
  --ai: #6a4bc8;
  --gutter: 24px;
  --content: 1180px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-raised: 0 2px 4px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- header ---- */
header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(10px); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); max-width: var(--content); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo svg { width: 32px; height: 32px; }
nav.links { display: none; gap: 24px; margin-left: 32px; }
nav.links a { font-size: 14px; color: var(--muted); transition: color .15s; }
nav.links a:hover { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 16px; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-menu a { padding: 10px 4px; font-size: 15px; color: var(--muted); border-radius: var(--radius); }
.mobile-menu a:hover { color: var(--fg); background: var(--surface-2); }
.mobile-menu.open { display: flex; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-lg { padding: 12px 22px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .01em; }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 20px 0 16px; font-weight: 700; letter-spacing: -0.025em; }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero small { font-size: 14px; color: var(--muted); }
.shot { margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-raised); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface-2); }

/* ---- sections ---- */
section { padding: 96px 0; }
section.surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 18px; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 680px; font-size: 17px; line-height: 1.6; }
.grid-2 { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { display: grid; gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.card p { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.55; }
ol.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 32px; }
.step-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); font-weight: 600; }
.step-title { font-size: 18px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -0.01em; }
.step-body { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.feature-note { margin-top: 32px; font-size: 14.5px; color: var(--muted); max-width: 760px; line-height: 1.6; }

/* ---- cost ---- */
.cost-grid { display: grid; gap: 40px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cost-table th, .cost-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cost-table th { font-weight: 600; color: var(--fg); background: var(--surface-2); }
.cost-table td:first-child { color: var(--fg); font-weight: 500; }
.cost-table td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.cost-table td:last-child { color: var(--muted); }
.cost-table .cost-total td { font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.cost-table .cost-total td:last-child { color: var(--accent); }

/* ---- faq ---- */
.faq { max-width: 760px; margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mark { color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] .mark { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---- cta ---- */
.cta { text-align: center; padding: 96px 0; }
.cta h2 { max-width: 760px; margin: 0 auto 12px; }
.cta p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.6; }
.cta .hero-actions { justify-content: center; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
footer .links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--fg); }
footer .copy { color: var(--subtle); font-size: 13px; }

/* ---- docs ---- */
.docs-hero { padding: 64px 0 32px; }
.docs-hero h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; letter-spacing: -0.02em; }
.docs-hero p { color: var(--muted); font-size: 17px; max-width: 720px; line-height: 1.6; }
.docs-layout { display: grid; gap: 48px; padding: 32px 0 96px; }
.docs-toc { position: sticky; top: 80px; align-self: start; }
.docs-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.docs-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.docs-toc a { font-size: 14px; color: var(--muted); }
.docs-toc a:hover { color: var(--fg); }
.docs-body h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.docs-body h2:first-of-type { border-top: none; margin-top: 0; }
.docs-body h3 { font-size: 17px; margin: 24px 0 8px; }
.docs-body p, .docs-body li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.docs-body ul, .docs-body ol { padding-left: 20px; }
.docs-body pre { background: var(--fg); color: #e6ecf4; padding: 16px 18px; border-radius: var(--radius-lg); overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 12px 0; position: relative; }
.docs-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-body p code, .docs-body li code { background: var(--surface-2); color: var(--fg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #e6ecf4; border-radius: 6px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; }
.callout p { color: var(--fg); margin: 0; }

/* ---- back to top ---- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-raised); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 15; }
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

@media (min-width: 640px) {
  .gutter { --gutter: 32px; }
  nav.links { display: flex; }
  .menu-btn { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .docs-layout { grid-template-columns: 220px 1fr; }
}
@media (min-width: 960px) {
  .cost-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .hero { padding: 96px 0 64px; }
}
@media (max-width: 639px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .cost-table th, .cost-table td { padding: 10px 8px; font-size: 13px; }
}
header.scrolled { box-shadow: 0 4px 16px rgba(16,24,40,.08); }
