/* Qrisma site. Lagoon palette, matches the apps. */
:root {
  --bg: #F2F7F8;
  --surface: rgba(255, 255, 255, .85);
  --surface-solid: #FFFFFF;
  --surface2: #E5EFF1;
  --ink: #0C1A1F;
  --muted: #5B737C;
  --line: rgba(12, 26, 31, .08);
  --accent: #0F6FD8;
  --warn: #B45309;
  --err: #C62828;
  --grad: linear-gradient(135deg, #1D6FE8 0%, #0EA5B5 55%, #22C55E 100%);
  --glow: rgba(14, 165, 181, .25);
  --shadow: 0 10px 30px rgba(12, 26, 31, .07), 0 1px 2px rgba(12, 26, 31, .06);
  --blob-op: .45;
  --r: 32px;
  --r2: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #061115;
  --surface: rgba(255, 255, 255, .05);
  --surface-solid: #0D1B20;
  --surface2: rgba(255, 255, 255, .08);
  --ink: #E8F3F5;
  --muted: #8EA8B0;
  --line: rgba(255, 255, 255, .09);
  --accent: #4FA9FF;
  --warn: #F5B451;
  --err: #FF8A80;
  --grad: linear-gradient(135deg, #3B8BFF 0%, #17BFCB 55%, #3DDC84 100%);
  --glow: rgba(23, 191, 203, .25);
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --blob-op: .28;
  --sw-ring: rgba(255, 255, 255, .28);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #061115;
    --surface: rgba(255, 255, 255, .05);
    --surface-solid: #0D1B20;
    --surface2: rgba(255, 255, 255, .08);
    --ink: #E8F3F5;
    --muted: #8EA8B0;
    --line: rgba(255, 255, 255, .09);
    --accent: #4FA9FF;
    --warn: #F5B451;
    --err: #FF8A80;
    --grad: linear-gradient(135deg, #3B8BFF 0%, #17BFCB 55%, #3DDC84 100%);
    --glow: rgba(23, 191, 203, .25);
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --blob-op: .28;
    --sw-ring: rgba(255, 255, 255, .28);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* glows */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-op); }
.b1 { width: 560px; height: 560px; background: #2F7BFF; left: -220px; top: -200px; }
.b2 { width: 480px; height: 480px; background: #14C1C9; right: -220px; top: 34%; }
.b3 { width: 440px; height: 440px; background: #3DDC84; left: 22%; bottom: -300px; }
main, header, footer { position: relative; z-index: 1; }

/* top bar */
.top { display: flex; align-items: center; gap: 16px; max-width: 1312px; margin: 0 auto; padding: 28px 36px 0; }
.wordmark { font-weight: 800; letter-spacing: -.04em; font-size: 26px; color: var(--ink); text-decoration: none; flex: 1; }
.wordmark span, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg { display: flex; background: var(--surface2); border-radius: 999px; padding: 3px; gap: 2px; border: 0; margin: 0; }
.seg button, .seg label {
  border: 0; background: none; cursor: pointer; padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center;
}
.seg [aria-pressed="true"], .seg input:checked + label { background: var(--surface-solid); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.theme button { padding: 7px 10px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* hero */
.hero { text-align: center; padding: 56px 24px 0; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 800; margin: 0; }
.hero p { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); margin: 18px 0 0; }

/* stage */
.card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.stage { max-width: 1240px; margin: 44px auto 0; display: grid; grid-template-columns: 480px minmax(0, 1fr); overflow: hidden; }
.preview-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 32px; border-right: 1px solid var(--line); }
.halo { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: conic-gradient(from 200deg, #2F7BFF, #14C1C9, #3DDC84, #2F7BFF); filter: blur(60px); opacity: .36; left: 50%; top: 50%; transform: translate(-50%, -58%); }
.preview {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 28px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 20px; box-shadow: 0 20px 50px rgba(12, 26, 31, .16);
}
.preview.checker { background: repeating-conic-gradient(#d9e2e5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.preview svg { display: block; width: 100%; height: 100%; }
.preview.is-empty { background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.preview .placeholder { width: 46%; height: auto; border-radius: 24%; opacity: .9; box-shadow: 0 12px 30px rgba(14, 165, 181, .25); }
.empty { color: #5B737C; text-align: center; font-size: 15px; padding: 24px; }
.empty.err { color: #C62828; }
.meta { position: relative; font-size: 12.5px; font-weight: 600; color: var(--muted); min-height: 19px; text-align: center; }
.warn { position: relative; font-size: 13px; color: var(--warn); text-align: center; max-width: 380px; }
.warn:empty { display: none; }
.actions { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 380px; }
.btn {
  height: 48px; border-radius: 999px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 15px; background: var(--surface2); color: var(--ink); text-decoration: none; padding: 0 16px;
}
.btn:hover:not(:disabled) { filter: brightness(1.04); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px var(--glow); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.controls { padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; cursor: pointer; flex: none; white-space: nowrap;
  font-size: 14px; font-weight: 600; background: var(--surface2); color: var(--ink);
}
.chip svg.i { width: 16px; height: 16px; }
.chip[aria-selected="true"] { background: var(--grad); color: #fff; }
.pane { display: flex; flex-direction: column; gap: 12px; }
.pane[hidden] { display: none; }
.lbl { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin: 0 0 7px; letter-spacing: .01em; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
input[type=text], input[type=url], input[type=email], input[type=tel], textarea, select {
  width: 100%; border: 1px solid transparent; border-radius: var(--r2); background: var(--surface2); padding: 12px 14px; font-size: 16px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: url("../img/chev.svg"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 550; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }

.swatches { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sw {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--sw-ring, var(--line)); cursor: pointer; padding: 0; position: relative;
}
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.sw-lagoon { background: linear-gradient(135deg, #0B3C8F, #0A6B52); }
.sw-ink { background: #0C1A1F; }
.sw-blue { background: #1D6FE8; }
.sw-green { background: #0E8A5F; }
.sw-berry { background: #C2185B; }
.sw-white { background: #fff; }
.sw-mist { background: #F2F7F8; }
.sw-none { background: repeating-conic-gradient(#ccd6da 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.sw-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

.file { display: flex; gap: 8px; align-items: center; }
.file .btn { height: 44px; font-size: 14.5px; font-weight: 600; }
.file .name { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.tools-row { display: flex; align-items: flex-start; gap: 12px; }
.tools-row details.more { flex: 1; min-width: 0; }
.reset { border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--muted); padding: 0; flex: none; }
.reset:hover { color: var(--ink); }
.reset svg.i { width: 16px; height: 16px; }
details.more summary { cursor: pointer; font-size: 14px; font-weight: 650; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { transition: transform .15s; }
details.more[open] summary svg { transform: rotate(90deg); }
details.more .grid2 { margin-top: 14px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* download */
.get { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 44px 0 0; flex-wrap: wrap; }
.get a { display: block; line-height: 0; }
.get .apple { height: 52px; }
.get .google { height: 76px; margin: -12px -6px; }
.get [hidden] { display: none; }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: block; }
:root[data-theme="dark"] .theme-light-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-dark-only { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-light-only { display: none; }
}
.soon { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; color: var(--muted); font-size: 16px; flex-wrap: wrap; padding: 0 20px; }
.soon b { color: var(--ink); }
.plat { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.plat span { padding: 7px 12px; border-radius: 999px; background: var(--surface2); font-size: 13.5px; font-weight: 600; color: var(--ink); }

footer { display: flex; justify-content: center; gap: 28px; padding: 56px 20px 44px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover, footer a[aria-current] { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 12px; opacity: 0; transition: .2s; pointer-events: none; font-size: 14px; font-weight: 550; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* content pages */
.page { max-width: 1100px; margin: 0 auto; padding: 48px 36px 0; }
.page h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.05em; line-height: 1; margin: 0; font-weight: 800; }
.page .lead { font-size: 19px; color: var(--muted); margin: 14px 0 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 36px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 22px; padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 650; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }
.side { display: flex; flex-direction: column; gap: 12px; }
.side .card { padding: 22px; border-radius: 24px; }
.side h2 { font-size: 19px; margin: 12px 0 4px; letter-spacing: -.02em; }
.side p { color: var(--muted); margin: 0 0 14px; }
.fi { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.fi svg.i { width: 22px; height: 22px; }
.doc { margin-top: 32px; padding: 36px 40px; border-radius: 28px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .updated { font-size: 14px; }
.center { text-align: center; }

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; margin: 32px 16px 0; }
  .preview-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .controls { padding: 24px 20px; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { padding: 18px 18px 0; }
  .wordmark { font-size: 22px; }
  .hero { padding-top: 36px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .chips::-webkit-scrollbar { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .preview { max-width: 300px; }
  .page { padding: 32px 18px 0; }
  .doc { padding: 24px 20px; }
  .get .apple { height: 44px; }
  .get .google { height: 64px; margin: -10px -5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
