
/* studIGI Landing — component styles. Every value is a token from tokens.css. Prefix: sg- */

body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; margin: 0; }

/* Type helpers */
.sg-display { font-size: 72px; line-height: 76px; font-weight: 700; letter-spacing: -0.035em; margin: 0; color: var(--ink); }
.sg-h1 { font-size: 52px; line-height: 58px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.sg-h2 { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.sg-h3 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.sg-lead { font-size: 20px; line-height: 30px; letter-spacing: -0.01em; color: var(--ink-muted); margin: 0; }
.sg-body { font-size: 16px; line-height: 26px; color: var(--ink-muted); margin: 0; }
.sg-small { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-subtle); }
@media (max-width: 640px) {
  .sg-display { font-size: 44px; line-height: 48px; }
  .sg-h1 { font-size: 36px; line-height: 42px; }
}

/* Button */
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; box-shadow: var(--shadow-press); font: 600 15px/20px var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.sg-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sg-btn:active { box-shadow: none; transform: translateY(1px); }
.sg-btn--primary { background: var(--accent); color: var(--on-accent); }
.sg-btn--primary:hover { background: var(--accent-hover); }
.sg-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.sg-btn--secondary:hover { background: var(--surface-raised); }
.sg-btn--sm { height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.sg-link { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.sg-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Nav bar */
.sg-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-4) var(--space-5); }
.sg-logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sg-logo { display: block; height: 1em; width: auto; aspect-ratio: 237 / 49; }
.sg-wordmark { display: inline-flex; align-items: center; font-size: 28px; color: var(--ink); text-decoration: none; }
.sg-nav__links { display: flex; gap: var(--space-6); font-size: 15px; font-weight: 500; }
.sg-nav__links a { color: var(--ink-muted); text-decoration: none; }
.sg-nav__links a:hover { color: var(--ink); }
@media (max-width: 720px) { .sg-nav__links { display: none; } }

/* Hero */
.sg-hero { display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--text-max); padding: var(--space-6) var(--space-5); }
.sg-hero .sg-lead { margin-top: var(--space-2); }
.sg-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Step tile — "How it works" */
.sg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-5); padding: var(--space-5); }
.sg-step { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.sg-step__num { font: 600 13px/20px var(--font-sans); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.sg-step__tile { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.sg-step__tile svg { width: 22px; height: 22px; }
.sg-step__label { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.sg-step__text { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 0; }

/* Feature card */
.sg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-3); max-width: 360px; }
.sg-card__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; margin-bottom: var(--space-2); }
.sg-card__icon svg { width: 20px; height: 20px; }
.sg-stat { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sg-amount--pos { color: var(--positive); font-weight: 600; }
.sg-amount--neg { color: var(--negative); font-weight: 600; }

/* Ask bar */
.sg-ask { display: flex; align-items: center; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 6px 6px 6px var(--space-4); max-width: 480px; }
.sg-ask:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sg-ask .sg-btn { border-radius: var(--radius-sm); box-shadow: none; }
.sg-ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 15px/20px var(--font-sans); }
.sg-ask input::placeholder { color: var(--ink-subtle); }

