/* Small visual refinements that preserve SignGen's existing page design. */
:root {
  --sg-ink: #102044;
  --sg-blue: #1976f3;
  --sg-blue-dark: #0f62d4;
  --sg-line: #dce6f2;
  --sg-muted: #60718d;
  --sg-coral: #ff786d;
  --sg-teal: #18b6b0;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: clip; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(25, 118, 243, .4) !important; outline-offset: 3px !important; }

/* Keep the current header and page layout; improve link clarity and touch targets. */
header .nav a { font-size: 15px; font-weight: 700; }
header .nav a:hover, footer a:hover { color: var(--sg-blue) !important; }
.menu-toggle { min-width: 44px; min-height: 44px; }

/* Slightly more space and contrast in the existing generator controls. */
.studio .field label, .studio .subhead, .studio .color-control {
  color: #263b5f;
  font-size: 14px;
  line-height: 1.45;
}
.studio .field input:not([type="checkbox"]):not([type="radio"]),
.studio .field select, .studio .field textarea {
  min-height: 42px;
  font-size: 15px;
}
.studio .panel { border-radius: 14px; }
.studio .tab { min-height: 42px; font-size: 14px; }
.studio .swatch { width: 28px; height: 28px; }

/* Pair the form and signature preview on desktop; keep each column compact. */
.home-hero .hero-layout {
  width: min(1100px, calc(100% - 40px));
  max-width: 1100px;
}
.home-hero .studio {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  gap: 10px;
}
.home-hero .form-panel, .home-hero .preview-panel {
  padding: 14px;
  border-radius: 12px;
}
.home-hero .tabs { margin-bottom: 10px; }
.home-hero #pane-data:not([hidden]) .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.home-hero .upload-row { margin-top: 10px; padding-top: 10px; gap: 10px; }
.home-hero .upload-box { height: 66px; min-height: 66px; }
.home-hero .swatches { gap: 5px; margin: 7px 0; }
.home-hero .color-controls { gap: 5px; margin-bottom: 7px; }
.home-hero .qr-toggle { padding-top: 8px; }
.home-hero .preview-head, .home-hero .mail-window {
  width: 100%;
  margin-inline: auto;
}
.home-hero .preview-head { margin-bottom: 8px; }
.home-hero .mail-body { padding: 10px 12px; }
.home-hero .templates { gap: 6px; }
.home-hero .template { padding: 7px; }
.home-hero .ai-note { margin: 8px auto; }
.home-hero .stripe-note { margin: 7px 0 0; }

@media (max-width: 760px) {
  .home-hero .studio {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(640px, 100%);
    align-items: stretch;
  }
}

/* Preserve existing cards and sections while adding a restrained hover cue. */
.card, .step-card, .template-card, .sitemap-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover, .step-card:hover, .template-card:hover, .sitemap-card:hover {
  border-color: #bfd8f5;
  box-shadow: 0 9px 24px rgba(16, 32, 68, .08);
  transform: translateY(-2px);
}
.faq-item summary { font-size: 16px !important; line-height: 1.45; }
footer .site-credit {
  display: block;
  width: min(1160px, calc(100% - 40px));
  margin: 12px auto 0;
  color: #b8c8dc;
  font-size: 14px;
  text-align: right;
}
footer .site-credit a { color: inherit; }

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .studio .field label, .studio .subhead, .studio .color-control { font-size: 14px; }
  footer .site-credit { width: calc(100% - 32px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Homepage polish: real brand assets, clearer compatibility strip, balanced header. */
header .brand-logo { width: 154px; }
header .nav { gap: 18px; }
.platform-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 18px auto 22px;
}
.platform-logo {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 11px;
  background: #fff;
  color: #253b5e;
  font-size: 14px;
  font-weight: 750;
}
.platform-logo img { width: 27px; height: 27px; object-fit: contain; }
.showcase-avatar-logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
}
.social-proof-heading p { max-width: 560px; margin-inline: auto; }
@media (max-width: 760px) {
  header .nav { gap: 10px; }
  .platform-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .platform-logo { min-height: 58px; padding: 9px; font-size: 13px; }
}
