/* Shared styles for the Squareworks website. No external fonts or trackers. */
:root {
  --ink: #1f2328;
  --muted: #59636e;
  --line: #e3e6ea;
  --soft: #f6f8f9;
  --bg: #ffffff;
  --accent: #0b7a6f;
  --accent-2: #14b8a6;
  --accent-soft: #e6f7f4;
  --radius: 12px;
  --max: 980px;
}
.p-ukp { --accent: #c2410c; --accent-2: #f97316; --accent-soft: #fff1e8; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: center; }
.hero img { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; max-width: 46em; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.secondary { color: var(--accent); background: #fff; }
.btn:hover { filter: brightness(1.06); }

/* Sections */
section { padding: 28px 0; }
h2 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.card p { margin: 0; color: var(--muted); }
.card code { font-size: 13.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.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(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan.pro { border: 2px solid var(--accent); background: var(--accent-soft); }
.plan .price { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 12px 0 16px; }
.plan li { margin: 4px 0; }

/* Tables and prose (privacy, terms, help) */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose { max-width: 760px; padding-top: 40px; }
.prose h1 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose li { margin: 4px 0; }
.note { background: var(--soft); border-radius: var(--radius); padding: 14px 18px; color: var(--muted); font-size: 15px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: 0.92em; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 16px; }
  .hero img { width: 80px; height: 80px; }
  .hero p.lead { font-size: 17px; }
}
