/* ==============================================
   GST.CSS — TrufinOps
   Uses ONLY existing TrufinOps design tokens.
   No new fonts, no new base sizes, no overrides.
   Mirrors rentsafe.css pattern throughout.
============================================== */

/* ── GST HERO ── */
.gst-hero {
  text-align: center;
  padding: 64px 22px 52px;
  max-width: 820px;
  margin: 0 auto;
}
.gst-hero-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(122,162,255,.1);
  border: 1px solid rgba(122,162,255,.22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.gst-hero h1 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: 18px;
  color: var(--text);
}
.gst-hero p {
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin: 0 auto 30px;
}
.gst-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}
.gst-hero-trust span {
  font-size: var(--fs-xs);
  color: var(--accent2);
  background: rgba(122,162,255,.07);
  border: 1px solid rgba(122,162,255,.18);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── SEARCH CARD ── */
.gst-search-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 22px 64px;
}
.gst-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color .2s;
}
.gst-search-card:focus-within {
  border-color: rgba(122,162,255,.35);
}
.gst-search-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.gst-search-card-title h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.gst-search-icon {
  font-size: 28px;
  line-height: 1;
}
.gst-search-subtitle {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 28px;
  line-height: var(--lh-normal);
}

/* ── TABS ── */
.gst-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.gst-tab {
  padding: 9px 16px;
  border-radius: 10px 10px 0 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.gst-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.gst-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
  background: rgba(122,162,255,.06);
  font-weight: var(--fw-semi);
}

/* ── FORM ── */
.gst-form-group { margin-bottom: 20px; }
.gst-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  margin-bottom: 8px;
}
.gst-label .required { color: var(--danger); margin-left: 3px; }
.gst-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-base);
  font-family: inherit;
  transition: border-color .18s, background .18s;
  outline: none;
  -webkit-appearance: none;
}
.gst-input:focus {
  border-color: rgba(122,162,255,.5);
  background: rgba(122,162,255,.04);
}
.gst-input::placeholder { color: var(--muted); font-size: var(--fs-sm); }
.gst-input.error { border-color: rgba(248,113,113,.5); }
.gst-input-hint {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 6px;
}
.gst-error-msg {
  font-size: var(--fs-xs);
  color: var(--danger);
  margin-top: 6px;
  display: none;
}
.gst-error-msg.visible { display: block; }

/* ── SUBMIT BUTTON ── */
.gst-submit-btn {
  width: 100%;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #000;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: opacity .18s, transform .18s;
  margin-top: 8px;
}
.gst-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.gst-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── DISCLAIMER BELOW FORM ── */
.gst-form-disclaimer {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

/* ── LOADING STATE ── */
.gst-loading {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.gst-loading.visible { display: block; }
.gst-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(122,162,255,.15);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: gst-spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes gst-spin { to { transform: rotate(360deg); } }
.gst-loading p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

/* ── REDIRECT INSTRUCTION CARD ── */
.gst-redirect-card {
  display: none;
  background: rgba(122,162,255,.06);
  border: 1px solid rgba(122,162,255,.25);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 0;
  text-align: center;
}
.gst-redirect-card.visible { display: block; }
.gst-redirect-icon { font-size: 42px; margin-bottom: 14px; }
.gst-redirect-card h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  color: var(--text);
  margin-bottom: 10px;
}
.gst-redirect-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  margin-bottom: 18px;
}
.gst-redirect-steps {
  text-align: left;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.gst-redirect-steps ol {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gst-redirect-steps li {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-normal);
}
.gst-redirect-steps li strong { color: var(--text); }
.gst-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #000;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .18s, transform .18s;
  text-decoration: none;
}
.gst-open-btn:hover { opacity: .88; transform: translateY(-1px); }
.gst-reset-link {
  display: block;
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
.gst-reset-link:hover { color: var(--text); }

/* ── INFO STRIP ── */
.gst-info-strip {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 38px 22px;
}
.gst-info-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.gst-info-item { text-align: center; }
.gst-info-item strong {
  display: block;
  font-size: 26px;
  font-weight: var(--fw-bold);
  color: var(--accent2);
  margin-bottom: 6px;
}
.gst-info-item span {
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: 150px;
  display: block;
  margin: auto;
  line-height: var(--lh-normal);
}

/* ── ABOUT / SEO CONTENT ── */
.gst-content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 22px;
}
.gst-content-section h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  color: var(--text);
}
.gst-content-section h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: 10px;
  color: var(--text);
}
.gst-content-section p {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: 16px;
}
.gst-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* ── HOW IT WORKS ── */
.gst-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.gst-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.gst-step:hover { border-color: rgba(122,162,255,.3); transform: translateY(-2px); }
.gst-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(122,162,255,.15);
  color: var(--accent2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  margin-bottom: 14px;
}
.gst-step h3 { font-size: var(--fs-base); margin-bottom: 8px; }
.gst-step p  { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-relaxed); }

/* ── USE CASES ── */
.gst-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.gst-use-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.gst-use-card:hover { border-color: rgba(108,242,194,.25); transform: translateY(-2px); }
.gst-use-card-icon { font-size: 24px; margin-bottom: 10px; display: block; }
.gst-use-card h3   { font-size: var(--fs-base); margin-bottom: 6px; }
.gst-use-card p    { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-relaxed); }

/* ── FAQ ── */
.gst-faq { max-width: 760px; margin: 32px auto 0; }
.gst-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.gst-faq-item:first-child { border-top: 1px solid var(--border); }
.gst-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--text);
  font-family: inherit;
  padding: 0;
  transition: color .15s;
}
.gst-faq-q:hover { color: var(--accent2); }
.gst-faq-chevron { flex-shrink: 0; transition: transform .25s; font-size: 14px; }
.gst-faq-item.open .gst-faq-chevron { transform: rotate(180deg); }
.gst-faq-a {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .2s;
  padding-top: 0;
}
.gst-faq-item.open .gst-faq-a { max-height: 400px; padding-top: 14px; }

/* ── FUTURE SERVICES ── */
.gst-future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.gst-future-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  opacity: .7;
}
.gst-future-card-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.gst-future-card h3   { font-size: var(--fs-base); margin-bottom: 6px; }
.gst-future-card p    { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-relaxed); margin-bottom: 10px; }

/* ── CTA BLOCK ── */
.gst-cta-block {
  text-align: center;
  padding: 56px 22px;
  background: rgba(122,162,255,.04);
  border-top: 1px solid rgba(122,162,255,.12);
  border-bottom: 1px solid rgba(122,162,255,.12);
}
.gst-cta-block h2 { font-size: var(--fs-2xl); margin-bottom: 12px; }
.gst-cta-block p  { color: var(--muted); font-size: var(--fs-md); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── SECTION LABELS ── */
.gst-section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(122,162,255,.1);
  border: 1px solid rgba(122,162,255,.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ── SOURCE BADGE ── */
.gst-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--accent);
  background: rgba(108,242,194,.06);
  border: 1px solid rgba(108,242,194,.18);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .gst-hero h1       { font-size: var(--fs-2xl); }
  .gst-search-card   { padding: 24px 18px; }
  .gst-info-inner    { gap: 18px; }
  .gst-tabs          { overflow-x: auto; gap: 4px; }
  .gst-tab           { font-size: var(--fs-xs); padding: 8px 12px; }
}
@media (max-width: 480px) {
  .gst-hero          { padding: 40px 14px 36px; }
  .gst-search-section { padding: 0 14px 48px; }
  .gst-content-section { padding: 40px 14px; }
}

/* ── CLIPBOARD PILL ── */
.gst-copied-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(108,242,194,.08);
  border: 1px solid rgba(108,242,194,.28);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: var(--fs-sm);
  color: var(--text);
  max-width: 100%;
  word-break: break-all;
}
.gst-copied-icon { font-size: 18px; flex-shrink: 0; }
.gst-copied-text { line-height: var(--lh-normal); }
.gst-copied-pill.flash {
  animation: gst-flash .5s ease;
}
@keyframes gst-flash {
  0%   { background: rgba(108,242,194,.25); border-color: rgba(108,242,194,.6); }
  100% { background: rgba(108,242,194,.08); border-color: rgba(108,242,194,.28); }
}

/* ── COPY FALLBACK WIDGET ── */
.gst-copy-fallback {
  margin-bottom: 18px;
  text-align: left;
}
.gst-copy-fallback-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.gst-copy-fallback-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gst-copy-code {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-family: 'Courier New', monospace;
  color: var(--accent);
  letter-spacing: .05em;
  user-select: all;
  min-width: 0;
  word-break: break-all;
}
.gst-manual-copy-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: rgba(122,162,255,.15);
  border: 1px solid rgba(122,162,255,.3);
  color: var(--accent2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.gst-manual-copy-btn:hover { background: rgba(122,162,255,.25); }

/* ── KBD SHORTCUT CHIP ── */
kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: var(--fs-xs);
  font-family: 'Courier New', monospace;
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}
