/* Steady Hand Software: shared styles */
:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #141a22;
  --muted: #5a6472;
  --rule: #dfe3e9;
  --prolene: #2f4ca3;      /* the violet-blue of polypropylene suture */
  --prolene-2: #5b74d6;
  --prolene-soft: #e7ebf8;
  --glow: rgba(47, 76, 163, 0.16);
  --ok: #2c6e4f;
  --ok-soft: #e3f0e8;
  --shadow: 0 1px 2px rgba(20, 26, 34, .06), 0 8px 24px rgba(20, 26, 34, .07);
  --tile-shadow: 0 2px 4px rgba(20, 26, 34, .10), 0 14px 32px rgba(20, 26, 34, .16);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1117; --surface: #151b24; --ink: #e8ebef; --muted: #9aa5b2;
    --rule: #252d38; --prolene: #9db0f2; --prolene-2: #7f96ec; --prolene-soft: #1b2442;
    --glow: rgba(127, 150, 236, 0.18); --ok: #7fc6a1; --ok-soft: #16281f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --tile-shadow: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1117; --surface: #151b24; --ink: #e8ebef; --muted: #9aa5b2;
  --rule: #252d38; --prolene: #9db0f2; --prolene-2: #7f96ec; --prolene-soft: #1b2442;
  --glow: rgba(127, 150, 236, 0.18); --ok: #7fc6a1; --ok-soft: #16281f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --tile-shadow: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1100px 520px at 88% -8%, var(--glow), transparent 70%) no-repeat, var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  padding-inline: 20px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding-block: 24px 56px; }
a { color: var(--prolene); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--prolene); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* Masthead */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 600 1rem/1 var(--display); letter-spacing: -0.01em; }
.wordmark svg { width: 26px; height: 26px; flex: none; }
.mast nav { display: flex; gap: 22px; font: 500 0.92rem/1 var(--display); }
.mast nav a { color: var(--muted); text-decoration: none; }
.mast nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
  padding-block: 64px 36px; }
.eyebrow { font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--prolene); margin: 0 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--prolene);
  background: linear-gradient(90deg, var(--prolene), var(--prolene-2)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font: 600 0.95rem/1 var(--display); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn.primary { background: var(--prolene); color: var(--paper); box-shadow: 0 6px 18px var(--glow); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--glow); }
.btn.ghost { color: var(--ink); border: 1px solid var(--rule); background: var(--surface); }
.btn.ghost:hover { border-color: var(--muted); }

/* Icon cluster */
.cluster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; justify-items: center; }
.cluster li { display: grid; justify-items: center; gap: 10px; width: 100%;
  transform: translateY(calc((var(--i) - 1) * 0px)); animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s); }
.cluster li:nth-child(3n+2) { margin-top: 34px; }
.cluster .tile { width: min(116px, 100%); height: auto; aspect-ratio: 1; border-radius: 23%; box-shadow: var(--tile-shadow);
  display: block; max-width: 100%; }
.cluster span { font: 500 0.78rem/1.25 var(--display); color: var(--muted); text-align: center; max-width: 12ch; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.suture { display: block; width: 100%; height: 28px; margin-block: 8px 36px; color: var(--prolene); overflow: visible; }
.suture .thread { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s cubic-bezier(.4,0,.2,1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .suture .thread { animation: none; stroke-dashoffset: 0; }
  .cluster li { animation: none; }
  html { scroll-behavior: auto; }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 0 64px; }
.principles div { border-top: 2px solid var(--ink); padding-top: 14px; }
.principles h3 { font-size: 1.02rem; font-weight: 600; }
.principles p { margin: 6px 0 0; color: var(--muted); font-size: 0.98rem; }

/* App cards */
.block { margin-bottom: 64px; }
.section-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.6rem; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 22px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); }
.card .icon { width: 64px; height: 64px; border-radius: 23%; box-shadow: var(--tile-shadow); display: block; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .for { font: 500 0.7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.chip { font: 500 0.85rem/1 var(--display); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  background: var(--prolene-soft); color: var(--prolene); }
.chip:hover { background: var(--prolene); color: var(--surface); }
.card.small { flex-direction: row; align-items: flex-start; gap: 16px; box-shadow: none; background: transparent; }
.card.small .icon { width: 52px; height: 52px; flex: none; }
.card.small h3 { font-size: 1.08rem; }
.status { display: inline-block; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--prolene-soft); color: var(--prolene); }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; border-top: 1px solid var(--rule); padding-top: 28px; }
.about .section-title { font-size: 1.2rem; }
.about p { margin: 0 0 12px; max-width: 36em; }
.contact { display: inline-block; font-family: var(--mono); font-size: 0.95rem; user-select: all; background: var(--surface);
  border: 1px solid var(--rule); padding: 8px 12px; border-radius: 10px; }

footer.site { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted);
  font: 400 0.85rem/1.5 var(--display); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Document pages (privacy, support) */
.doc-head { padding-block: 56px 28px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.doc-head .app-name { font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--prolene); margin: 0; }
.doc-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; margin-top: 12px; }
.doc-head .tabs { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font: 500 0.92rem/1 var(--display); }
.doc-head .tabs a { color: var(--muted); text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.doc-head .tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--prolene); }
.doc { max-width: 40em; }
.doc h2 { font-size: 1.25rem; font-weight: 600; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; list-style: revert; }
.doc li { margin-bottom: 6px; }
.doc .meta { font: 400 0.9rem/1.4 var(--mono); color: var(--muted); }
.doc .faq { border-top: 1px solid var(--rule); padding-block: 16px 2px; }
.doc .note { background: var(--ok-soft); color: var(--ink); border-left: 3px solid var(--ok); padding: 14px 18px; margin: 0 0 18px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 20px; }
  .cluster { max-width: 420px; }
  .cards, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; gap: 18px; padding-bottom: 48px; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .cluster { gap: 20px 14px; }
  .cluster li:nth-child(3n+2) { margin-top: 22px; }
  .about { grid-template-columns: 1fr; gap: 8px; }
}
