/* significainteractive.com
 *
 * One stylesheet for the whole site. Company pages follow the visitor's
 * light or dark setting; each app's pages wear that app's own colours
 * (see .sparky below), so a link from the store listing lands somewhere
 * that looks like the app. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-v1.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-2: #4B5160;
  --ink-3: #6E7482;
  --hairline: #E7E5E4;
  --accent: #2F5BEA;
  --accent-2: #2F5BEA;
  --accent-ink: #FFFFFF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0E1015;
    --surface: #161922;
    --ink: #ECEEF3;
    --ink-2: rgba(236, 238, 243, .74);
    --ink-3: rgba(236, 238, 243, .55);
    --hairline: #242833;
    --accent: #8AA8FF;
    --accent-2: #8AA8FF;
    --accent-ink: #0E1015;
  }
}

/* Sparky Boost: the app's "Cybernetic Velocity" palette. Dark only, like the app. */
.sparky {
  --page: #0F131D;
  --surface: #171B26;
  --ink: #DFE2F1;
  --ink-2: #BAC9CC;
  --ink-3: #93A2A5;
  --hairline: #262A35;
  --accent: #00E5FF;
  --accent-2: #01F5A0;
  --accent-ink: #0B0F19;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(68rem, 100% - 2.5rem); margin: 0 auto; }
.doc { width: min(44rem, 100% - 2.5rem); margin: 0 auto; }

/* ---- Top bar & footer ---------------------------------------------------- */

.topbar { border-bottom: 1px solid var(--hairline); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.logo:hover { color: inherit; }
.logo b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--page);
  font-weight: 800; font-size: 1rem; letter-spacing: -.04em;
}
.logo img { width: 30px; height: 30px; border-radius: 50%; display: block; flex: none; }
.topbar nav { display: flex; gap: 1.1rem; font-size: .95rem; font-weight: 600; }
.topbar nav a { text-decoration: none; color: var(--ink-2); }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 1.75rem 0 2.5rem;
  color: var(--ink-3);
  font-size: .92rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* ---- Type ------------------------------------------------------------------ */

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); font-weight: 800; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.6rem); font-weight: 800; margin: 2.6rem 0 .7rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
.lead { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--ink-3); }
small, .small { font-size: .9rem; }

/* ---- Company home -------------------------------------------------------- */

.hero { padding: clamp(3rem, 10vw, 6rem) 0 clamp(1.5rem, 4vw, 2.5rem); }

.apps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.app {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.app:hover { color: inherit; border-color: var(--accent); transform: translateY(-2px); }
.app img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app h3 { margin: 0 0 .25rem; }
.app p { margin: 0 0 .6rem; color: var(--ink-2); font-size: .97rem; line-height: 1.55; }

.tag {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

/* ---- App landing --------------------------------------------------------- */

.app-hero { text-align: center; padding: clamp(2.5rem, 8vw, 4.5rem) 0 1rem; }
.app-hero .lead { margin-left: auto; margin-right: auto; }
.mascot {
  width: 160px; height: 160px; border-radius: 50%;
  display: block; margin: 0 auto 1.4rem;
  box-shadow: 0 0 0 3px var(--accent-2), 0 18px 60px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin-top: 2rem; }
.feature {
  padding: 1.2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.feature h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.feature .platform { display: block; margin-top: .55rem; font-size: .8rem; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }

.callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  background: color-mix(in srgb, var(--accent-2) 8%, var(--surface));
}
.callout p:last-child { margin-bottom: 0; }

/* ---- Legal pages --------------------------------------------------------- */

main.doc { padding-top: clamp(2.5rem, 6vw, 4rem); }
.doc .updated { color: var(--ink-3); margin-bottom: 2rem; }
.doc h2 { scroll-margin-top: 1rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--hairline); }
th { font-weight: 700; color: var(--ink-2); font-size: .85rem; letter-spacing: .02em; }
td:first-child { font-weight: 600; min-width: 9rem; }

.toc { padding: 1rem 1.25rem; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
.toc ol { margin: 0; }
.toc li { margin-bottom: .15rem; }

@media (prefers-reduced-motion: reduce) {
  .app { transition: none; }
  .app:hover { transform: none; }
}
