/* Shared stylesheet for UgeWorks static landing pages.
   Mirrors the tokens in src/index.css so the pages read as the same brand. */
:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0,0,0,0.12);
  --border-light: rgba(0,0,0,0.08);
  --pad-x: clamp(20px, 6vw, 96px);
  --max: 1000px;
  --touch-target: 44px;
  --grad-blue: linear-gradient(125deg, #0071e3 0%, #34aadc 50%, #5e5ce6 100%);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad-x);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.topbar .brand {
  font-size: 19px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
}
.topbar nav { display: flex; gap: 20px; align-items: center; }
.topbar nav a {
  font-size: 14px; color: var(--text-2); text-decoration: none;
}
.topbar nav a:hover { color: var(--text); }
.topbar nav a.cta {
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 980px; font-size: 14px;
}
@media (max-width: 700px) { .topbar nav a.hide-sm { display: none; } }

/* ── Layout ──────────────────────────────────────────── */
section { padding: clamp(48px, 8vw, 92px) var(--pad-x); }
.wrap { max-width: var(--max); margin: 0 auto; }
.alt { background: var(--bg-alt); }

/* ── Type ────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 14px;
}
h1 {
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.04em;
  margin-bottom: 22px;
}
h1 .grad {
  background: var(--grad-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.035em;
  margin-bottom: 18px;
}
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 8px; }
p { color: var(--text-2); margin-bottom: 16px; }
p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); max-width: 660px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

/* ── Badge ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 980px; padding: 6px 16px; margin-bottom: 24px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10B981;
  box-shadow: 0 0 6px rgba(16,185,129,0.6);
}
.badge span {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #10B981; font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────── */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 980px;
  font-size: 17px; text-decoration: none; letter-spacing: -0.015em;
  transition: background .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fbe59; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid rgba(0,113,227,0.4); }
.btn-ghost:hover { background: rgba(0,113,227,0.05); border-color: rgba(0,113,227,0.7); }

/* ── Stats ───────────────────────────────────────────── */
.stats {
  display: flex; gap: clamp(24px, 6vw, 56px); flex-wrap: wrap;
  padding-top: 32px; margin-top: 40px;
  border-top: 1px solid var(--border-light);
}
.stat .n { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ── Cards ───────────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 18px; padding: 26px;
}
.alt .card { background: #fff; }
.card p { font-size: 15px; margin-bottom: 0; }

/* ── Work list ───────────────────────────────────────── */
.work { display: grid; gap: 14px; }
.work-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  padding: 18px 0; border-bottom: 1px solid var(--border-light);
}
.work-item:last-child { border-bottom: 0; }
.work-item .t { font-weight: 600; font-size: 17px; }
.work-item .d { color: var(--text-2); font-size: 15px; flex: 1 1 320px; }

/* ── Steps ───────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: rgba(0,113,227,0.08); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.step p { font-size: 15px; margin-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--border-light); padding: 18px 0;
}
.faq summary {
  font-size: 17px; font-weight: 600; cursor: pointer;
  letter-spacing: -0.02em; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; font-size: 16px; margin-bottom: 0; }

/* ── Areas ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  font-size: 14px; color: var(--text-2);
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 980px; padding: 6px 14px;
}

/* ── Final CTA ───────────────────────────────────────── */
.cta-band { background: #1d1d1f; color: #f5f5f7; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.62); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding: 36px var(--pad-x); border-top: 1px solid var(--border-light);
  font-size: 14px; color: var(--text-3);
}
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }

/* ── Persistent contact affordance ───────────────────── */
.actionbar { position: fixed; z-index: 60; display: flex; }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  min-height: var(--touch-target);
  transition: filter .2s ease, transform .2s ease;
}
.actionbar a:hover { filter: brightness(1.07); }
.actionbar .wa { background: #25D366; color: #fff; }
.actionbar .call { background: var(--accent); color: #fff; }

/* Phones: a full-width bar pinned to the bottom edge. */
@media (max-width: 768px) {
  body { padding-bottom: 76px; }
  .actionbar {
    left: 0; right: 0; bottom: 0;
    border-top: 1px solid var(--border-light);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .actionbar a { flex: 1; min-height: 56px; }
}

/* Desktop: floating pills, matching the homepage treatment. */
@media (min-width: 769px) {
  .actionbar {
    right: clamp(20px, 3vw, 36px);
    bottom: clamp(20px, 3vw, 32px);
    flex-direction: column; gap: 10px; align-items: flex-end;
  }
  .actionbar a {
    padding: 12px 22px; border-radius: 980px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  }
  .actionbar a:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .actionbar a { transition: none; }
}

/* ── Breadcrumb ──────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text-2); }

/* ── Guides (blog) ───────────────────────────────────── */
.post-head { padding: clamp(40px, 7vw, 80px) var(--pad-x) clamp(24px, 4vw, 40px); }
.post-head h1 { font-size: clamp(32px, 5.4vw, 54px); max-width: 820px; }
.post-head .lead { max-width: 720px; }
.byline { font-size: 14px; color: var(--text-3); margin-top: 18px; }
.byline a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.byline a:hover { color: var(--text); }
.post-body { max-width: 760px; padding: 0 0 clamp(40px, 6vw, 72px); }
.post-body > p, .post-body > ul, .post-body > ol { font-size: 17px; line-height: 1.65; }
.post-body > p { color: var(--text); }
.post-body h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 44px; margin-bottom: 14px; scroll-margin-top: 80px; }
.post-body h3 { font-size: 19px; margin-top: 28px; margin-bottom: 8px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 18px; color: var(--text); }
.post-body li { margin-bottom: 8px; }
.post-body li strong { color: var(--text); }
.post-body a { text-decoration: underline; text-decoration-color: rgba(0,113,227,0.35); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--accent); }
.summary { background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 18px; padding: 22px 26px; margin: 4px 0 28px; }
.summary p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.6; }
.summary .eyebrow { margin-bottom: 8px; }
.toc { border-left: 2px solid rgba(0,113,227,0.25); padding: 4px 0 4px 18px; margin: 0 0 30px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.callout { background: rgba(0,113,227,0.06); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 18px; color: var(--text); }
.tbl { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--text); background: var(--bg-alt); }
.tbl td { color: var(--text-2); }
.tbl td:first-child { color: var(--text); font-weight: 500; }
.sources { font-size: 14px; color: var(--text-2); padding-left: 20px; }
.sources li { margin-bottom: 6px; }
.author-box { border-top: 1px solid var(--border-light); margin-top: 44px; padding-top: 24px; }
.author-box p { font-size: 15px; }
.post .work-item .t a { color: var(--text); text-decoration: none; }
.post .work-item .t a:hover { color: var(--accent); }
.work-item .t a { color: var(--text); text-decoration: none; }
.work-item .t a:hover { color: var(--accent); }
.reading { display: grid; gap: 12px; }
.reading a { display: block; padding: 16px 20px; border: 1px solid var(--border-light); border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; }
.reading a:hover { border-color: rgba(0,113,227,0.4); }
.reading a span { display: block; font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ── Work (case studies) ─────────────────────────────── */
.case { display: grid; gap: 22px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case h3 { font-size: 17px; margin-bottom: 8px; }
.case p, .case li { font-size: 16px; color: var(--text-2); }
.case ul { padding-left: 20px; margin: 0; }
.case li { margin-bottom: 8px; }
a.chip:hover { color: var(--accent); border-color: rgba(0,113,227,0.3); }

/* ── Quote form ──────────────────────────────────────── */
.lead-form { max-width: 760px; }
.lead-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.lf-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font: inherit; font-size: 16px; letter-spacing: -0.01em;
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.14); }
.lead-form button { border: 0; cursor: pointer; font: inherit; font-size: 17px; }
.lead-form button:disabled { opacity: .6; cursor: progress; }
.lf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-note { font-size: 13px; color: var(--text-3); }
.lf-status { margin-top: 14px; font-size: 16px; }
.lf-status.ok { color: #0a7a3b; }
.lf-status.err { color: #b3261e; }
body.ta .lead-form label { letter-spacing: 0; }
#quote { scroll-margin-top: 64px; }
body.ta .eyebrow, body.ta .badge span { letter-spacing: 0; text-transform: none; }
