/* ===========================================================
   SIGN-UP PAGES — /hub/, /live-group/, /privacy.html
   =========================================================== */

.sg { max-width: 720px; margin: 0 auto; padding: 72px 32px 0; }

.sg-head { text-align: center; }
.sg-head .l-tag { margin-bottom: 20px; }
.sg-title {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 350; font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02; letter-spacing: -0.03em; margin: 0;
}
.sg-title em { font-style: italic; font-weight: 300; color: var(--accent-2); }
.sg-lede {
  font-size: 18px; line-height: 1.6; color: var(--ink-2);
  max-width: 620px; margin: 28px auto 0;
}

.sg-card {
  margin: 44px auto 0; padding: 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 8px 32px rgba(18, 19, 26, 0.06);
  scroll-margin-top: 24px;
}

.sg-form { display: grid; gap: 18px; }
.sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg-field { display: grid; gap: 7px; }
.sg-field > span { font-size: 14px; font-weight: 500; color: var(--ink); }
.sg-field > span i, .sg-group legend i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.sg-field input,
.sg-field textarea {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
  background: white; border: 1px solid var(--rule); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sg-field textarea { min-height: 88px; resize: vertical; }
.sg-field input::placeholder,
.sg-field textarea::placeholder { color: var(--ink-3); }
.sg-field input:focus,
.sg-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 118, 65, 0.15);
}

.sg-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sg-group legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.sg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sg-opt { position: relative; display: block; cursor: pointer; }
.sg-opt input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.sg-opt span {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 12px 14px; font-size: 15px; line-height: 1.35; color: var(--ink);
  background: white; border: 1px solid var(--rule); border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sg-opt span::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ink-3); background: white;
}
.sg-opt:hover span { border-color: var(--ink-3); }
.sg-opt input:checked + span { border-color: var(--accent); background: rgba(217, 118, 65, 0.07); }
.sg-opt input:checked + span::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px white, inset 0 0 0 8px var(--accent);
}
.sg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.sg-chip span { padding: 8px 14px; font-size: 14px; border-radius: 999px; gap: 6px; }
.sg-chip span::before {
  content: "+"; width: auto; height: auto; border: 0; border-radius: 0;
  background: none; color: var(--ink-3); font-weight: 500;
}
.sg-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: white; }
.sg-chip input:checked + span::before { content: "✓"; color: white; box-shadow: none; }

.sg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sg-submit {
  justify-self: start;
  border: 0; background: var(--ink); color: white; padding: 14px 28px;
  border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.sg-submit:hover { background: var(--accent-2); }
.sg-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sg-submit[disabled] { opacity: 0.6; cursor: progress; }

.sg-done, .sg-alert { display: none; }
.sg-done:target, .sg-done.is-shown { display: block; }
.sg-done:target ~ form, .sg-done.is-shown ~ form { display: none; }
.sg-alert:target, .sg-alert.is-shown { display: block; }

.sg-done { outline: none; }
.sg-done p {
  font-family: "Fraunces", serif; font-size: 22px; line-height: 1.4;
  font-weight: 350; margin: 0; color: var(--ink);
}
.sg-done .sig { font-style: italic; color: var(--accent-2); margin-top: 14px; }

.sg-alert {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; color: var(--down);
  background: rgba(192, 72, 64, 0.07); border: 1px solid rgba(192, 72, 64, 0.25);
}

.sg-fine {
  margin: 18px auto 0; text-align: center;
  font-size: 13px; color: var(--ink-3);
}
.sg-fine a { color: var(--ink-2); }
.sg-fine a:hover { color: var(--accent-2); }

/* Privacy notice */
.sg-prose { margin-top: 40px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.sg-prose h2 {
  font-family: "Fraunces", serif; font-weight: 400; font-size: 22px;
  color: var(--ink); margin: 32px 0 8px; letter-spacing: -0.01em;
}
.sg-prose p { margin: 0 0 12px; }
.sg-prose a { color: var(--accent-2); }

@media (max-width: 720px) {
  .sg { padding: 44px 20px 0; }
  .sg-lede { font-size: 17px; margin-top: 22px; }
  .sg-card { padding: 22px 18px; margin-top: 32px; }
  .sg-row, .sg-cards { grid-template-columns: 1fr; }
  .sg-submit { justify-self: stretch; }
}
