/* Site styles. Extracted from index.html so every page can share them
   without duplicating ~500 lines. Served from public/ verbatim - not
   processed or hashed by Vite, so keep it dependency-free. */

    /* Custom scrollbar for better aesthetics */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #555;
    }

    /* ── Reset & base ─────────────────────────────────────── */
    #landing * { box-sizing: border-box; }

    /* ── Animations ───────────────────────────────────────── */
    @keyframes sg-fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes sg-pulse-ring {
      0%   { box-shadow: 0 0 0 0 rgba(0,163,80,.45); }
      70%  { box-shadow: 0 0 0 14px rgba(0,163,80,0); }
      100% { box-shadow: 0 0 0 0 rgba(0,163,80,0); }
    }
    @keyframes sg-float {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-6px); }
    }
    @keyframes sg-cursor-blink {
      0%, 100% { opacity: 1; } 50% { opacity: 0; }
    }
    @keyframes sg-grid-drift {
      0%   { background-position: 0 0; }
      100% { background-position: 40px 40px; }
    }

    .sg-fade-up { animation: sg-fadeUp .7s ease both; }
    .sg-delay-1 { animation-delay: .15s; }
    .sg-delay-2 { animation-delay: .3s; }
    .sg-delay-3 { animation-delay: .45s; }
    .sg-delay-4 { animation-delay: .65s; }

    /* scroll-reveal — JS adds .sg-visible */
    .sg-reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .sg-reveal.sg-visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── Nav ──────────────────────────────────────────────── */
    #sg-nav { transition: box-shadow .3s ease; }
    #sg-nav.sg-scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.08); }

    /* ── Hero ─────────────────────────────────────────────── */
    .sg-hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 120px 24px 80px;
      position: relative;
      overflow: hidden;
      background: #fff;
    }
    .sg-hero-bg {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,163,80,.07) 0%, transparent 70%);
      pointer-events: none;
    }
    .sg-hero-grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(0,163,80,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,163,80,.06) 1px, transparent 1px);
      background-size: 40px 40px;
      animation: sg-grid-drift 20s linear infinite;
      pointer-events: none;
      mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
      -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    }

    .sg-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #e6f6ee;
      color: #00a350;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 11px;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid rgba(0,163,80,.2);
      margin-bottom: 28px;
    }

    .sg-h1 {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: clamp(2.4rem, 6vw, 4rem);
      letter-spacing: -.03em;
      line-height: 1.1;
      color: #111;
      margin: 0 0 24px;
    }
    .sg-h1-accent { color: #00a350; }

    .sg-subhead {
      font-family: 'Open Sans', sans-serif;
      font-size: clamp(1rem, 2.2vw, 1.2rem);
      color: #555;
      line-height: 1.7;
      margin: 0 auto 40px;
      max-width: 600px;
    }

    /* ── CTA buttons ──────────────────────────────────────── */
    .sg-cta-main {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #00a350;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 15px;
      letter-spacing: .02em;
      padding: 16px 32px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    }
    .sg-cta-main:hover {
      background: #008a44;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,163,80,.3);
    }
    .sg-cta-main svg { transition: transform .2s ease; }
    .sg-cta-main:hover svg { transform: translateY(3px); }
    .sg-cta-pulse { animation: sg-pulse-ring 2.2s ease infinite; }

    .sg-cta-sm {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #111;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 12px;
      letter-spacing: .04em;
      padding: 9px 18px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      transition: background .2s ease;
    }
    .sg-cta-sm:hover { background: #00a350; }

    /* ── Code preview ─────────────────────────────────────── */
    .sg-code-preview {
      margin: 48px auto 0;
      max-width: 520px;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.07);
      animation: sg-float 5s ease-in-out infinite;
      text-align: left;
    }
    .sg-code-bar {
      background: #1e1e2e;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .sg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
    .sg-dot-r { background: #ff5f56; }
    .sg-dot-y { background: #ffbd2e; }
    .sg-dot-g { background: #27c93f; }
    .sg-code-label {
      margin-left: auto;
      font-family: 'Montserrat', sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,.35);
      letter-spacing: .05em;
    }
    .sg-code-body {
      background: #13131f;
      margin: 0;
      padding: 24px 28px;
      font-family: 'Fira Code', 'Courier New', monospace;
      font-size: 13px;
      line-height: 1.8;
      overflow-x: auto;
    }
    .sg-code-body code { display: block; }
    .sg-c-brace  { color: #89ddff; }
    .sg-c-key    { color: #c3e88d; }
    .sg-c-str    { color: #f78c6c; }
    .sg-c-num    { color: #f78c6c; }
    .sg-c-colon  { color: #89ddff; }
    .sg-c-comma  { color: #89ddff; }

    /* ── Sections ─────────────────────────────────────────── */
    .sg-section { padding: 96px 0; }
    .sg-section-white { background: #fff; }
    .sg-section-gray  { background: #f6f6f6; }
    .sg-section-dark  { background: #111; }
    .sg-section-cta   { background: #fff; border-top: 1px solid #eee; }

    .sg-overline {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: #00a350;
      margin: 0 0 16px;
    }
    .sg-overline-light { color: rgba(0,163,80,.8); }

    .sg-h2 {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: clamp(1.6rem, 3.5vw, 2.4rem);
      letter-spacing: -.025em;
      color: #111;
      margin: 0 0 48px;
      line-height: 1.2;
    }
    .sg-h2-light { color: #fff; }

    /* ── Steps ────────────────────────────────────────────── */
    .sg-steps {
      display: flex;
      align-items: flex-start;
      gap: 0;
    }
    @media (max-width: 768px) {
      .sg-steps { flex-direction: column; }
      .sg-step-divider { width: 2px !important; height: 32px !important; margin: 0 0 0 32px !important; }
    }
    .sg-step {
      flex: 1;
      padding: 32px 28px;
      background: #fff;
      border: 1px solid #eee;
      border-radius: 12px;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .sg-step:hover {
      box-shadow: 0 8px 32px rgba(0,0,0,.08);
      transform: translateY(-3px);
    }
    .sg-step-divider {
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, #ddd 0%, #00a350 50%, #ddd 100%);
      margin: 56px 0 0;
      flex-shrink: 0;
    }
    .sg-step-num {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: 11px;
      letter-spacing: .1em;
      color: #00a350;
      margin-bottom: 16px;
    }
    .sg-step-icon {
      width: 44px;
      height: 44px;
      background: #e6f6ee;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #00a350;
      margin-bottom: 20px;
    }
    .sg-step-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 16px;
      color: #111;
      margin: 0 0 10px;
    }
    .sg-step-body {
      font-family: 'Open Sans', sans-serif;
      font-size: 14px;
      line-height: 1.7;
      color: #666;
      margin: 0;
    }
    .sg-step-body code {
      background: #f0f0f0;
      padding: 1px 5px;
      border-radius: 4px;
      font-size: 12px;
      color: #333;
    }

    /* ── Schema type cards ────────────────────────────────── */
    .sg-type-group { margin-bottom: 48px; }
    .sg-type-group:last-child { margin-bottom: 0; }
    .sg-type-group-label {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 11px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: #999;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e5e5e5;
    }
    .sg-type-group-note {
      font-family: 'Open Sans', sans-serif;
      font-size: 12.5px;
      line-height: 1.65;
      color: #777;
      margin: -4px 0 16px;
      max-width: 62ch;
    }
    .sg-type-intro {
      font-family: 'Open Sans', sans-serif;
      font-size: 15px;
      line-height: 1.7;
      color: #555;
      margin: 12px 0 10px;
      max-width: 70ch;
    }
    .sg-verified {
      font-family: 'Open Sans', sans-serif;
      font-size: 12px;
      line-height: 1.6;
      color: #8a8a8a;
      margin: 0 0 28px;
      padding-left: 12px;
      border-left: 2px solid #d8d8d8;
      max-width: 70ch;
    }
    .sg-type-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
    }
    .sg-type-card {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      background: #fff;
      border: 1px solid #e8e8e8;
      border-radius: 10px;
      padding: 18px 20px;
      transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }
    .sg-type-card:hover {
      border-color: #00a350;
      box-shadow: 0 4px 20px rgba(0,163,80,.1);
      transform: translateY(-2px);
    }
    .sg-type-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .sg-icon-green { background: #e6f6ee; color: #00a350; }
    .sg-icon-gray  { background: #f0f0f0; color: #555; }
    .sg-type-name {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 13px;
      color: #111;
      margin-bottom: 4px;
    }
    .sg-type-desc {
      font-family: 'Open Sans', sans-serif;
      font-size: 12px;
      line-height: 1.6;
      color: #777;
    }

    /* ── Why / dark section ───────────────────────────────── */
    .sg-why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    @media (max-width: 768px) {
      .sg-why-grid { grid-template-columns: 1fr; gap: 48px; }
    }
    .sg-body-light {
      font-family: 'Open Sans', sans-serif;
      font-size: 15px;
      line-height: 1.8;
      color: rgba(255,255,255,.65);
      margin: 0 0 20px;
    }
    .sg-inline-code {
      background: rgba(255,255,255,.1);
      color: #c3e88d;
      padding: 2px 7px;
      border-radius: 4px;
      font-size: 13px;
      font-family: 'Courier New', monospace;
    }
    .sg-pillars { display: flex; flex-direction: column; gap: 24px; }
    .sg-pillar {
      padding: 24px 28px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 12px;
      background: rgba(255,255,255,.04);
      transition: background .2s ease, border-color .2s ease;
    }
    .sg-pillar:hover {
      background: rgba(0,163,80,.08);
      border-color: rgba(0,163,80,.3);
    }
    .sg-pillar-val {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: 28px;
      color: #00a350;
      letter-spacing: -.02em;
      margin-bottom: 6px;
    }
    .sg-pillar-label {
      font-family: 'Open Sans', sans-serif;
      font-size: 13px;
      color: rgba(255,255,255,.5);
      line-height: 1.5;
    }

    .sg-subhead-sm {
      font-family: 'Open Sans', sans-serif;
      font-size: 1rem;
      color: #666;
      line-height: 1.7;
      margin: 0 auto 36px;
    }

    /* ── Mobile breakpoints ───────────────────────────────── */
    @media (max-width: 640px) {
      /* Hero: tighten vertical rhythm */
      .sg-hero {
        padding: 88px 16px 48px;
        min-height: auto;
      }
      /* Shrink code preview on phones */
      .sg-code-preview {
        margin-top: 28px;
        max-width: 100%;
        border-radius: 10px;
      }
      .sg-code-body {
        padding: 14px 16px;
        font-size: 11px;
        line-height: 1.65;
      }
      /* Sections: halve the padding */
      .sg-section { padding: 56px 0; }
      /* Type grid: single column on small phones */
      .sg-type-grid { grid-template-columns: 1fr; }
      /* Why grid (already has 768px rule — extra tightening) */
      .sg-why-grid { gap: 28px; }
      /* Heading sizes */
      .sg-h2 { margin-bottom: 28px; }
      /* Step cards: tighten padding */
      .sg-step { padding: 22px 18px; }
      /* Pillars: tighten padding */
      .sg-pillar { padding: 18px 20px; }
      .sg-pillar-val { font-size: 22px; }
      /* Nav: tighter on phone */
      #sg-nav .max-w-6xl { padding-left: 16px; padding-right: 16px; }
    }

    @media (max-width: 400px) {
      /* Very small phones: hide the code preview entirely to prevent overflow */
      .sg-code-preview { display: none; }
      .sg-h1 { font-size: 2rem; }
    }

/* ═══════════════════════════════════════════════════════════════════
   Homepage rewrite — components for the agent-facing copy.
   ═══════════════════════════════════════════════════════════════════ */

.sg-navlinks { display: flex; align-items: center; gap: 28px; }
.sg-navlink {
  font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: 600;
  color: #555; text-decoration: none; transition: color .2s;
}
.sg-navlink:hover { color: #00a350; }
@media (max-width: 900px) { .sg-navlinks { display: none; } }

.sg-cta-note {
  font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #888; margin-top: 14px;
}

/* Before / after: what a crawler reads with and without markup */
.sg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; text-align: left; }
@media (max-width: 820px) { .sg-compare { grid-template-columns: 1fr; } }
.sg-panel {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}
.sg-panel-muted { background: #fbfbfb; }
.sg-panel-label {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 10.5px;
  letter-spacing: .09em; text-transform: uppercase; color: #999; margin-bottom: 14px;
}
.sg-panel-raw {
  font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 2; color: #666;
}
.sg-panel-row {
  display: flex; gap: 10px; font-family: 'Open Sans', sans-serif;
  font-size: 13.5px; line-height: 1.7; padding: 6px 0; border-bottom: 1px solid #f2f2f2;
}
.sg-panel-row:last-of-type { border-bottom: none; }
.sg-panel-key { color: #999; min-width: 104px; flex-shrink: 0; }
.sg-panel-val { color: #111; font-weight: 600; }
.sg-panel-caption {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0;
  font-family: 'Open Sans', sans-serif; font-size: 12px; line-height: 1.65; color: #8a8a8a;
}

/* Library card badges */
.sg-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sg-tag {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 9.5px;
  letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 999px; white-space: nowrap;
}
.sg-tag-green { background: #e6f6ee; color: #007a3c; }
.sg-tag-gray  { background: #f0f0f0; color: #777; }
.sg-tag-mixed { background: #fff4e0; color: #a86400; }
.sg-builds { font-family: 'Open Sans', sans-serif; font-size: 11px; color: #aaa; margin-top: 12px; }
.sg-builds code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #888; }

/* Honesty strip: one line and a link, full-bleed green. */
.sg-strip { background: #00a350; padding: 24px 0; }
.sg-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.sg-strip-text {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: clamp(16px, 2.2vw, 21px); letter-spacing: -.01em;
  color: #fff; margin: 0;
}
.sg-strip-link {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
  color: #fff; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid rgba(255,255,255,.45); padding-bottom: 2px;
  transition: border-color .2s;
}
.sg-strip-link:hover { border-bottom-color: #fff; }
@media (max-width: 640px) {
  .sg-strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Creator */
.sg-creator { max-width: 720px; }
.sg-creator p { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.8; color: #555; margin-bottom: 16px; }
.sg-textlink { color: #00a350; text-decoration: none; font-weight: 600; }
.sg-textlink:hover { text-decoration: underline; }

/* Proof strip */
.sg-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .sg-proof { grid-template-columns: 1fr; } }
.sg-proof-item { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 24px; }
.sg-proof-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: #111; margin-bottom: 8px; }
.sg-proof-body { font-family: 'Open Sans', sans-serif; font-size: 13.5px; line-height: 1.7; color: #777; }

/* Footer */
.sg-footer { border-top: 1px solid #eee; padding: 40px 0; background: #fff; }
.sg-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; text-align: center; }
.sg-footer-name {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px;
  letter-spacing: .02em; color: #111; text-transform: uppercase;
}
.sg-footer-meta { font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #888; margin-top: 8px; }
.sg-footer-links { margin-top: 16px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.sg-footer-link { font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #777; text-decoration: none; }
.sg-footer-link:hover { color: #00a350; }
.sg-footer-note { font-family: 'Open Sans', sans-serif; font-size: 11.5px; color: #aaa; margin-top: 20px; line-height: 1.6; }
