/* idspot design system: editorial paper, serif display, coral accent. Shared by the landing page and the app. */
:root {
  --bg: #F6F3EE;
  --paper: #FBF9F5;
  --paper-2: #F1ECE4;
  --ink: #161412;
  --ink-2: #3A3632;
  --ink-3: #5E5953;
  --mute: #8C867D;
  --mute-2: #B3ACA2;
  --rule: #E4DED4;
  --rule-2: #D6CFC3;
  --coral: #EA6A50;
  --coral-ink: #C84F37;
  --coral-soft: #FBE7E0;
  --coral-wash: #FDF3EF;
  --green: #2F8F5B;
  --green-soft: #E3F1E8;
  --amber: #B7791F;
  --amber-soft: #F8EDD8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --shadow-1: 0 1px 2px rgba(22, 20, 18, .04), 0 2px 8px rgba(22, 20, 18, .04);
  --shadow-2: 0 2px 6px rgba(22, 20, 18, .05), 0 12px 32px rgba(22, 20, 18, .08);
  --shadow-3: 0 24px 64px rgba(22, 20, 18, .16);
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
a { color: inherit; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--coral-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 3px; }

/* type */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; line-height: 1.02; margin: 0; }
.h1 { font-size: clamp(40px, 5.4vw, 76px); }
.h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
.h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.lede { font-size: 20px; color: var(--ink-2); line-height: 1.5; }
.italic { font-style: italic; }
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.eyebrow.dark { color: var(--ink-3); }
.small { font-family: var(--sans); font-size: 13px; color: var(--mute); }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.coral { color: var(--coral); }
.muted { color: var(--mute); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.underline-coral { position: relative; display: inline-block; }
.underline-coral::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 36px; height: 2px; background: var(--coral); }
.script { font-family: "Caveat", "Newsreader", cursive; color: var(--ink-3); }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { height: 30px; width: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 20px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-decoration: none;
  transition: transform .18s var(--ease-out), background .2s var(--ease), box-shadow .2s var(--ease), color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 4px 14px rgba(234, 106, 80, .28); }
.btn-primary:hover { background: #E45E43; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px rgba(234, 106, 80, .34); transform: translateY(-1px); }
.btn-primary[disabled] { background: #F2B4A6; box-shadow: none; cursor: default; transform: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2622; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-3); }
.btn-link { background: none; border: 0; padding: 0; color: var(--coral-ink); font-weight: 600; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.chip.coral { background: var(--coral-soft); border-color: #F5CFC3; color: var(--coral-ink); }
.chip.green { background: var(--green-soft); border-color: #CBE5D4; color: var(--green); }
.chip.amber { background: var(--amber-soft); border-color: #EFDDB9; color: var(--amber); }

/* platform tiles */
.tile { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.tile svg { width: 56%; height: 56%; fill: currentColor; }
.tile.sm { width: 28px; height: 28px; border-radius: 7px; }
.tile.xs { width: 20px; height: 20px; border-radius: 5px; }
.tile.lg { width: 52px; height: 52px; border-radius: 13px; }
.t-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.t-tiktok, .t-twitter, .t-threads, .t-github { background: #111; }
.t-youtube { background: #FF0033; }
.t-pinterest { background: #E60023; }
.t-twitch { background: #9146FF; }
.t-snapchat { background: #FFFC00; color: #111; }
.t-facebook { background: #1877F2; }
.t-linkedin { background: #0A66C2; }
.t-reddit { background: #FF4500; }
.t-bluesky { background: #1185FE; }
.t-soundcloud { background: #FF5500; }
.t-linktree { background: #43E660; color: #111; }
.t-gravatar { background: #1E8CBE; }
.t-suno, .t-web { background: #E9E4DB; color: #5E5953; }
.t-locked { background: #E9E4DB; color: #A39C91; }

/* motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.9); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, #EFEAE2 0, #F7F3ED 50%, #EFEAE2 100%); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; font-family: var(--sans); font-size: 14px; padding: 11px 18px; border-radius: 8px; box-shadow: var(--shadow-3);
  animation: fadeUp .35s var(--ease-out); display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.toast.err { background: #7A2A1C; }
.toast svg { width: 14px; height: 14px; fill: currentColor; }

/* icon sizing: every inline icon gets an explicit size (an unsized svg fills its box) */
.btn svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.btn-lg svg { width: 16px; height: 16px; }
.chip svg { width: 11px; height: 11px; fill: currentColor; flex: none; }
.chip { white-space: nowrap; }
svg.chev { width: 10px; height: 10px; fill: var(--mute-2); flex: none; }
.btn-link svg { width: 12px; height: 12px; fill: currentColor; display: inline-block; vertical-align: -1px; margin-left: 4px; }
