/* ============================================================
   TinyStudio — shared design tokens
   One neutral base + dual-intensity colour per tool.
   Surfaces use the pastel "tint"; CTAs/icons use the "accent".
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* neutrals — light */
  --ink: #18181b;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f3ee;
  --text: #1c1c21;
  --text-secondary: #56565f;
  --text-muted: #8a8a93;
  --border: #ebeae4;
  --border-strong: #dcdbd3;
  --brand: #1a21ff;

  /* generic accent — defaults to ink; tool pages override these three */
  --accent: var(--ink);
  --accent-tint: var(--surface-soft);
  --accent-tint-2: var(--border-strong);
  --accent-ink: var(--ink);
  --on-accent: #ffffff;

  /* per-tool palettes (tint surface · tint-2 chip · accent CTA · ink text-on-tint) */
  --analytics-tint: #e9eaff;  --analytics-tint-2: #ccceff;  --analytics-accent: #1a21ff;  --analytics-ink: #1219c2;
  --invoice-tint:   #e9f6ee;  --invoice-tint-2:   #c8e9d4;  --invoice-accent:   #2f9b57;  --invoice-ink:   #226e3f;
  --form-tint:      #f3ecfd;  --form-tint-2:      #e0cdf8;  --form-accent:      #9333ea;  --form-ink:      #6b21b0;
  --status-tint:    #e4f7fb;  --status-tint-2:    #b6ecf5;  --status-accent:    #06b6d4;  --status-ink:    #0b6e85;
  --bio-tint:       #fdebf2;  --bio-tint-2:       #f7cede;  --bio-accent:       #de4f84;  --bio-ink:       #a83563;
  --book-tint:      #fef3da;  --book-tint-2:      #fbe0a6;  --book-accent:      #f59e0b;  --book-ink:      #92600a;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2ef;
    --paper: #0e0e11;
    --surface: #1a1a1e;
    --surface-soft: #1f1f24;
    --text: #ececef;
    --text-secondary: #a6a6ae;
    --text-muted: #74747c;
    --border: #2a2a2f;
    --border-strong: #38383e;
    --brand: #5a60ff;

    --accent: var(--ink);
    --accent-tint: var(--surface-soft);
    --accent-tint-2: var(--border-strong);
    --accent-ink: var(--ink);
    --on-accent: #14141a;

    --analytics-tint: #191c40;  --analytics-tint-2: #2a2e6e;  --analytics-accent: #7177ff;  --analytics-ink: #c7caff;
    --invoice-tint:   #14271c;  --invoice-tint-2:   #1f4530;  --invoice-accent:   #57c483;  --invoice-ink:   #9fe1bb;
    --form-tint:      #241733;  --form-tint-2:      #3a2456;  --form-accent:      #b07ff0;  --form-ink:      #d6c2f7;
    --status-tint:    #0a2a33;  --status-tint-2:    #114a59;  --status-accent:    #22d3ee;  --status-ink:    #a5ecf7;
    --bio-tint:       #2c1521;  --bio-tint-2:       #4d2438;  --bio-accent:       #ec7aa3;  --bio-ink:       #f4bcd2;
    --book-tint:      #2e2107;  --book-tint-2:      #4f3a0f;  --book-accent:      #fbbf24;  --book-ink:      #f7dca0;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.brand .glyph { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text); }
.nav-links .signin { color: var(--text); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 20px; border-radius: var(--radius); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-soft); }

/* email capture */
.capture { display: flex; gap: 8px; max-width: 440px; }
.capture input { flex: 1; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: inherit; font-size: 15px; }
.capture input::placeholder { color: var(--text-muted); }
.capture input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* pill / badge */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; }

/* generic card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }

/* section rhythm */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 18px; }
.foot { text-align: center; color: var(--text-muted); font-size: 13px; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 80px; }

@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .capture { flex-direction: column; }
  .capture .btn { width: 100%; }
  .nav-links { gap: 16px; }
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; font-weight: 700; margin: 0; }
.display { font-size: clamp(38px, 6vw, 60px); font-weight: 800; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-secondary); line-height: 1.55; }
