/* Square Rise Solutions — site styles.
   Served under a content-hashed name (see tool/build.dart), so browsers can
   cache it for a year and a new version is never mixed with old pages. */

:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef2f8;
  --text: #121a27;
  --muted: #5b6575;
  --line: #e1e6ef;
  --accent: #2f6fe0;
  --accent-text: #ffffff;
  --ok-bg: #e7f0ff;
  --ok-text: #1f4fa8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.05);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121b2d;
    --surface-2: #17223a;
    --text: #e7ecf4;
    --muted: #9aa6ba;
    --line: #233049;
    --accent: #6fa2ff;
    --accent-text: #0b1220;
    --ok-bg: #1a2a4a;
    --ok-text: #a9c7ff;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 720px; }

/* ── Header ─────────────────────────────────────────────── */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--text); text-decoration: none; }

/* ── Type ───────────────────────────────────────────────── */
main { padding: 64px 0 80px; }
h1 { font-size: 44px; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 18px; }
h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 18px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.crumb a { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 36px; }

/* ── Sections ───────────────────────────────────────────── */
.hero { padding-bottom: 24px; }
section.block { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ── Buttons and pills ──────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: var(--bg);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.06); }
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--ok-bg); color: var(--ok-text);
  white-space: nowrap;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.app-card { display: flex; flex-direction: column; }
.app-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app-card .eyebrow { margin: 0; }
.app-card p { color: var(--muted); flex: 1; }
.app-card .more { font-weight: 600; font-size: 15px; margin-top: 6px; }

.placeholder {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: transparent; border-style: dashed; box-shadow: none; min-height: 220px;
}
.placeholder h3 { color: var(--muted); }

.principle h3 { font-size: 17px; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 15.5px; margin: 0; }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.contact-card p { margin: 0; color: var(--muted); }
.contact-card h2 { margin-bottom: 6px; }

/* ── Lists, tables, legal ───────────────────────────────── */
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin: 6px 0; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { margin: 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links a { display: flex; justify-content: space-between; padding: 12px 0; color: var(--text); font-weight: 500; }
.links a::after { content: "→"; color: var(--muted); }
.links a:hover { color: var(--accent); text-decoration: none; }
.card-note { margin: 14px 0 0; }

.legal section:not(.card) { padding-top: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.summary { margin-bottom: 8px; }
.summary h2 { margin-top: 0 !important; }
.disclaimer { font-size: 14px; color: var(--muted); font-style: italic; margin: 0; }
.legal .card + section h2 { margin-top: 36px; }
.legal .card { margin: 20px 0; }

.table-wrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; background: var(--surface); white-space: nowrap; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 36px;
}
footer.site p { margin: 3px 0; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
.foot-links { text-align: right; }
.foot-links strong { color: var(--text); font-weight: 600; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 720px) {
  .grid.three { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  main { padding: 40px 0 56px; }
  h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  section.block { padding-top: 44px; }
  .card { padding: 22px; }
  nav { gap: 16px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
}
