/* Voxden: the signing goal (assets/support/support.js draws it).
   One glass card in the house language: the glass fill, a lit edge caught
   in mint at the top left and violet at the top right, hairlines inside.
   The bar is a voice waveform in a glass well; a small flow bar with eyes
   rides its leading edge. Nothing casts a shadow and nothing glows behind
   anything; light comes only from the bars themselves. */

.sg {
  --sg-pad: clamp(20px, 12px + 2.6vw, 44px);
  --sg-m: 64px;       /* room above the well for the character */
  --sg-wave: 84px;    /* the well */
  --sg-seal: 44px;
  position: relative; isolation: isolate;
  padding: var(--sg-pad);
  border-radius: 24px;
  background: var(--dither), var(--glass-fill);
}
.sg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background:
    radial-gradient(38% 60% at 0% 0%, rgba(var(--mint-rgb), .5), rgba(var(--mint-rgb), 0) 70%),
    radial-gradient(38% 60% at 100% 0%, rgba(var(--violet-rgb), .45), rgba(var(--violet-rgb), 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ---------- the head: words on the left, "Goal reached" on the right once it is ---------- */
.sg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s5) var(--s7); }
.sg-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s4);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint);
}
.sg-title {
  font: 600 clamp(28px, 21px + 1.9vw, 46px)/1.06 var(--font-display);
  letter-spacing: var(--track-h2); color: var(--text); text-wrap: balance;
}
.sg-lead { max-width: 60ch; margin-top: var(--s4); font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.sg-lead strong { color: var(--text); }

/* A live dot: mint, with a ring that widens and fades. */
.sg-live { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.sg-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(var(--mint-rgb), .7); opacity: 0;
}
.sg.is-offline .sg-live { background: var(--text-3); }
.sg.is-offline .sg-live::after { display: none; }

.sg-done { text-align: right; }
.sg-done-note { font-size: 15px; font-weight: 600; color: var(--mint); }

/* ---------- the figures ---------- */
.sg-figures {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5) var(--s6);
  margin-top: var(--s7);
}
.sg-raised {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px;
  font: 600 clamp(46px, 34px + 3.4vw, 80px)/1 var(--font-display); letter-spacing: -.045em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sg-num { display: inline-flex; --vg-lh: 1.06; }
.sg-of { font: 500 16px/1.4 var(--font-text); letter-spacing: 0; color: var(--text-3); }
.sg-of b { color: var(--text-2); font-weight: 600; }
.sg-stats { display: flex; gap: var(--s6); }
.sg-stats li { display: grid; gap: 2px; }
.sg-stats b { font: 600 22px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.sg-stats span { font-size: 12.5px; color: var(--text-3); }
.sg.is-reached .sg-stats li:last-child b { color: var(--mint); }

/* ---------- the bar ---------- */
.sg-track {
  position: relative; margin-top: var(--s5);
  height: calc(var(--sg-m) + var(--sg-wave));
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.sg-well {
  position: absolute; left: 0; right: 0; top: var(--sg-m); height: var(--sg-wave);
  border-radius: 22px;
  background: var(--glass-well);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: pointer;
}
.sg-track.is-dragging .sg-well { cursor: grabbing; }
.sg-wave {
  position: absolute; top: 0; left: 16px; height: 100%;
  width: calc(100% - 16px - var(--sg-seal) - 20px);
}
.sg-ticks { position: absolute; inset: 0; pointer-events: none; }
.sg-tick {
  position: absolute; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .26) 30%, rgba(255, 255, 255, .26) 70%, rgba(255, 255, 255, 0));
}
.sg-tick.is-done { background: linear-gradient(180deg, rgba(var(--mint-rgb), 0), rgba(var(--mint-rgb), .5) 30%, rgba(var(--mint-rgb), .5) 70%, rgba(var(--mint-rgb), 0)); }

/* The seal at the end: the signature the bar is going for. */
.sg-seal {
  position: absolute; right: 14px; top: 50%; width: var(--sg-seal); height: var(--sg-seal); margin-top: calc(var(--sg-seal) / -2);
  color: var(--text-3);
}
.sg-seal svg { width: 100%; height: 100%; overflow: visible; }
.sg-seal-edge { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.sg-seal-ring { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 2 3; }
.sg-seal-tick { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sg-seal.is-signed .sg-seal-edge { fill: rgba(var(--mint-rgb), .92); stroke: rgba(255, 255, 255, .6); }
.sg-seal.is-signed .sg-seal-ring { stroke: rgba(11, 11, 12, .35); stroke-dasharray: none; }
.sg-seal.is-signed .sg-seal-tick { stroke: #0b0b0c; }

/* ---------- the character ---------- */
/* The character (goal.css) stands on the well's top edge, its feet on the
   hairline, and walks along it with the fill. */
.sg-mascot.vb {
  position: absolute; top: calc(var(--sg-m) - 54px); left: 0; z-index: 2;
  width: 56px; height: 58px; padding: 0; border: 0; border-radius: 16px; background: none;
  cursor: pointer; will-change: transform;
}
.sg-mascot:focus-visible { outline-offset: 2px; }

/* The bubble: light glass beside the character, typed out. */
.sg-bubble {
  position: absolute; top: 14px; z-index: 3; max-width: min(300px, 70%);
  padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .12);
  font-size: 14px; line-height: 1.4; color: var(--text);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  white-space: normal; width: max-content;
}
.sg-bubble.is-on { opacity: 1; transform: none; }
.sg-bubble-text::after {
  content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px;
  background: var(--mint); border-radius: 1px;
}

/* ---------- milestones ---------- */
.sg-marks { position: relative; height: 40px; margin-top: 10px; }
.sg-mark {
  position: absolute; top: 0; display: grid; gap: 1px; transform: translateX(-50%);
  text-align: center; white-space: nowrap; font-size: 12.5px; line-height: 1.35;
}
.sg-mark.is-end { transform: translateX(-100%); text-align: right; }
.sg-mark b { font-weight: 600; color: var(--text-2); }
.sg-mark span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.sg-mark.is-done b { color: var(--mint); }
.sg-mark.is-tight span { display: none; }
.sg-mark.is-hidden { visibility: hidden; }

/* ---------- the latest ---------- */
.sg-feed {
  display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); min-height: 30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.sg-feed-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.sg-feed-label .sg-live { width: 6px; height: 6px; }
.sg-feed-list { display: flex; gap: 8px; }
.sg-feed-item {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--glass-line); background: rgba(255, 255, 255, .02);
  font-size: 13px; white-space: nowrap;
}
.sg-feed-item b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sg-feed-item span { color: var(--text-3); }
.sg-feed-item.is-new { box-shadow: inset 0 0 0 1px rgba(var(--mint-rgb), .55); }
.sg-feed-item.is-new b { color: var(--mint); }
.sg-feed-empty { font-size: 13.5px; color: var(--text-3); }

/* ---------- paying ---------- */
.sg-pay {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4) var(--s6);
  margin-top: var(--s6); padding-top: var(--s6);
  border-top: 1px solid var(--glass-line);
}
.sg-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sg-chip { position: relative; }
.sg-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sg-chip span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .02);
  font: 600 15px/1 var(--font-text); color: var(--text-2); font-variant-numeric: tabular-nums;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sg-chip:hover span { color: var(--text); box-shadow: inset 0 0 0 1px #3b3b41; }
.sg-chip input:checked + span { color: var(--text); background: rgba(var(--mint-rgb), .09); box-shadow: inset 0 0 0 1px rgba(var(--mint-rgb), .75); }
.sg-chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: var(--focus-offset); }
.sg-other {
  display: inline-flex; align-items: center; gap: 4px; width: 136px; height: 44px; padding: 0 14px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .02);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.sg-other.is-on { background: rgba(var(--mint-rgb), .09); box-shadow: inset 0 0 0 1px rgba(var(--mint-rgb), .75); }
.sg-other:focus-within { box-shadow: inset 0 0 0 1px var(--mint); }
.sg-cur { font: 600 15px/1 var(--font-text); color: var(--text-3); }
.sg-other input {
  width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none;
  font: 600 15px/1 var(--font-text); color: var(--text); font-variant-numeric: tabular-nums;
}
.sg-other input::placeholder { color: var(--text-3); font-weight: 500; }
.sg-go { display: grid; justify-items: end; gap: 8px; }
.sg-submit { min-width: 220px; }
.sg-submit:disabled { cursor: default; background: var(--cta-quiet); opacity: .55; }
.sg-submit-arrow { transition: transform var(--dur) var(--ease); }
.sg-submit:not(:disabled):hover .sg-submit-arrow { transform: translateX(3px); }
.sg.is-busy .sg-submit-arrow { display: none; }
.sg-effect { min-height: 1.4em; font-size: 13.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.sg-effect.is-error { color: #f3a9a9; }
.sg.is-thanked .sg-effect { color: var(--mint); }
.sg-fine { margin-top: var(--s5); max-width: 78ch; }
.sg-switch {
  padding: 0; border: 0; background: none; font: inherit; color: var(--text-2); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(237, 237, 239, .32);
}
.sg-switch:hover { color: var(--text); text-decoration-color: var(--text); }


/* ---------- /support: where it goes, and what signing changes ---------- */
.sg-costs { display: grid; gap: 0; margin-top: var(--s5); }
.sg-cost {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s5); align-items: baseline;
  padding: var(--s4) 0; border-top: 1px solid var(--line);
}
.sg-cost:last-child { border-bottom: 1px solid var(--line); }
.sg-cost b { font: 600 17px/1.35 var(--font-display); color: var(--text); }
.sg-cost p { grid-column: 1; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.sg-cost-amount { grid-column: 2; grid-row: 1 / span 2; font: 600 20px/1.2 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.sg-cost-amount small { display: block; font: 500 12.5px/1.4 var(--font-text); color: var(--text-3); text-align: right; }

.sg-compare { align-items: stretch; row-gap: var(--gap); }
.sg-compare > figure { grid-column: span 6; display: grid; gap: var(--s3); }
.sg-compare figcaption { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sg-compare figure.is-after figcaption { color: var(--mint); }
.sg-compare .ss { max-width: none; }
.sg-compare .sg-publisher b { color: var(--text); }
.sg-compare figure.is-after .sg-publisher b { color: var(--mint); }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .sg { --sg-wave: 72px; --sg-seal: 36px; border-radius: 20px; }
  .sg-head { grid-template-columns: minmax(0, 1fr); }
  .sg-done { text-align: left; }
  .sg-figures { margin-top: var(--s6); }
  .sg-stats { gap: var(--s5); }
  .sg-stats b { font-size: 19px; }
  .sg-wave { left: 12px; width: calc(100% - 12px - var(--sg-seal) - 16px); }
  .sg-seal { right: 10px; }
  .sg-pay { grid-template-columns: minmax(0, 1fr); }
  .sg-go { justify-items: stretch; }
  .sg-submit { width: 100%; min-width: 0; }
  .sg-effect { text-align: left; }
  .sg-chip span { padding: 0 14px; }
  .sg-other { width: 118px; }
  .sg-bubble { max-width: calc(100% - 24px); font-size: 13px; }
  .sg-compare > figure { grid-column: 1 / -1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sg-live::after { animation: sg-ping 2.4s var(--ease) infinite; }
  .sg-feed-item.is-new { animation: sg-in 520ms cubic-bezier(.16, 1, .3, 1) both; }
  .sg-seal.is-stamp svg { animation: sg-stamp 620ms cubic-bezier(.2, .9, .3, 1.2) both; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-bubble { transition: none; }
}
@keyframes sg-ping { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes sg-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes sg-stamp { 0% { transform: scale(1.8) rotate(-18deg); opacity: 0; } 60% { transform: scale(.92) rotate(3deg); opacity: 1; } 100% { transform: none; } }

/* Links inside the goal's words and the download page's note. */
.sg-lead-link, .ssd-why a {
  color: var(--text); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(237, 237, 239, .32);
  transition: text-decoration-color var(--dur) var(--ease);
}
.sg-lead-link:hover, .ssd-why a:hover { text-decoration-color: var(--text); }
.sg-section > .container { padding-top: 0; }
.sg-costs-note { margin-top: var(--s5); }
