/* Squiggle marketing site: shared tokens and components (landing, pricing, legal).
   Light-only on purpose: these pages are brand surfaces, not app chrome. */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.sq-site {
  --sq-ink: #1e1e2e;
  --sq-muted: #6b6b80;
  --sq-body: #4a4a5e;
  --sq-paper: #fbfaf7;
  --sq-card: #ffffff;
  --sq-line: #e4e0d6;
  --sq-line-soft: #eeebe3;
  --sq-action: #6d5dfc;      /* buttons; white text on it */
  --sq-action-text: #5646e0; /* small violet text on light grounds (passes 4.5:1) */
  --sq-action-tint: #efedff;
  --sq-voice: #8b5cf6;
  --sq-ideas: #3b82f6;
  --sq-structure: #14b8a6;
  --sq-live: #a855f7;
  --sq-night: #0e1030;
  --sq-night-card: #151842;
  --sq-night-line: #2a2e66;
  --sq-night-text: #f4f3ff;
  --sq-night-muted: #b9b8d6;
  --sq-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sq-hand: "Excalifont", cursive;
  --sq-radius: 20px;
  color: var(--sq-ink);
  background: var(--sq-paper);
  font-family: var(--sq-sans);
  -webkit-font-smoothing: antialiased;
}
.sq-site *, .sq-site *::before, .sq-site *::after { box-sizing: border-box; }
.sq-site a { color: var(--sq-action-text); }
.sq-site a:hover { color: #3f30c4; }
.sq-site :focus-visible { outline: 3px solid #a99fff; outline-offset: 2px; }
.sq-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Logo lockup */
.sq-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sq-ink); }
.sq-logo svg { display: block; }
.sq-wordmark { font-weight: 800; font-size: 26px; letter-spacing: -0.5px; color: var(--sq-ink); }
.sq-wordmark .dot { color: var(--sq-structure); }
.sq-wordmark .tld { background: linear-gradient(90deg, var(--sq-ideas), var(--sq-live)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sq-night-surface .sq-wordmark { color: var(--sq-night-text); }

/* Nav */
.sq-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.sq-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 16px; }
.sq-nav-links a { color: var(--sq-ink); text-decoration: none; }
.sq-nav-links a:hover { color: var(--sq-action-text); }

/* Buttons */
.sq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: filter .15s ease, background-color .15s ease; }
.sq-site .sq-btn-primary { background: var(--sq-action); color: #fff; }
.sq-site .sq-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.sq-site .sq-btn-dark { background: var(--sq-ink); color: #fff; }
.sq-site .sq-btn-dark:hover { color: #fff; filter: brightness(1.25); }
.sq-btn-lg { padding: 16px 30px; font-size: 18px; }

/* Type */
.sq-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--sq-action-text); }
.sq-h1 { margin: 0; font-family: var(--sq-hand); font-weight: 400; font-size: clamp(42px, 5.2vw, 68px); line-height: 1.08; }
.sq-h2 { margin: 0; font-family: var(--sq-hand); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; text-wrap: balance; }
.sq-lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--sq-muted); max-width: 540px; }
.sq-section { padding-top: 88px; padding-bottom: 88px; }
.sq-section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 44px; }

/* Cards */
.sq-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.sq-card { background: var(--sq-card); border: 1.5px solid var(--sq-line); border-radius: var(--sq-radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.sq-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.sq-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sq-muted); }
.sq-icon-tile { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }

/* Night surface */
.sq-night-surface { background: var(--sq-night); color: var(--sq-night-text); }
.sq-night-surface .sq-eyebrow { color: #8fe3d6; }
.sq-night-surface p { color: var(--sq-night-muted); }

/* Footer */
.sq-footer { border-top: 1px solid var(--sq-night-line); }
.sq-footer .sq-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; font-size: 15px; color: var(--sq-night-muted); }
.sq-footer nav { display: flex; gap: 24px; }
.sq-site .sq-footer a { color: var(--sq-night-muted); }
.sq-site .sq-footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sq-site *, .sq-site *::before, .sq-site *::after { transition: none !important; animation: none !important; }
}

/* Toasts (Django messages): templates/site/_toasts.html, on the app pages and the landing page. */
.sq-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 380px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sq-toast { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--sq-line); border-radius: 16px; padding: 14px 14px 16px; box-shadow: 0 18px 40px -18px rgba(30,30,46,.4); animation: sq-toast-in .25s ease-out; }
.sq-toast .ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sq-action-tint); color: var(--sq-action); }
.sq-toast.success .ic { background: #e7f8f5; color: #0f9488; }
.sq-toast.warning .ic { background: #fef3c7; color: #b45309; }
.sq-toast.error .ic { background: #fef3f2; color: #b42318; }
.sq-toast .msg { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.45; padding-top: 5px; }
.sq-toast .x { flex: 0 0 auto; width: 32px; height: 32px; margin: -2px -4px 0 0; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--sq-muted); }
.sq-toast .x:hover { background: #f4f2ec; }
.sq-toast .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .45; transform-origin: left; animation: sq-toast-bar linear forwards; }
.sq-toast.success .bar { color: #0f9488; } .sq-toast.info .bar { color: var(--sq-action); }
@keyframes sq-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sq-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .sq-toasts { right: 16px; bottom: 16px; } }
