/* tokens.css — Design tokens, typography and the top app bar */
/* ================================================================
   FreeCut UI — Sora (display) + Inter (body) · Teal #087f79
   Matches cutdee.com marketing aesthetic.
   ================================================================ */
:root {
  --canvas: #f6f4ef; --paper: #fff; --paper-soft: #fafaf8;
  --ink: #151918; --ink-soft: #4d5754; --muted: #74807c;
  --line: #e5e8e4; --line-strong: #c7cfc9;
  --teal: #087f79; --teal-dark: #05645f; --teal-soft: #e6f4f1; --teal-glow: rgba(8,127,121,.22);
  --amber: #a65a0a; --amber-soft: #fff6e8;
  --red: #b42318; --red-soft: #fff0ee;
  --green: #16794b; --green-soft: #e7f5ec;
  --blue: #2563a8; --blue-soft: #eaf1fb;
  --grad-hero: linear-gradient(135deg, #087f79 0%, #0a9d96 35%, #6d28d9 100%);
  --grad-button: linear-gradient(135deg, #087f79, #0a9d96);
  --grad-bg: radial-gradient(ellipse at 0% 0%, rgba(8,127,121,.07), transparent 45%),
             radial-gradient(ellipse at 100% 100%, rgba(109,40,217,.05), transparent 50%);
  --shadow-sm: 0 2px 6px rgba(15,32,28,.05), 0 1px 2px rgba(15,32,28,.04);
  --shadow: 0 10px 28px rgba(15,32,28,.08), 0 2px 6px rgba(15,32,28,.04);
  --shadow-teal: 0 8px 24px rgba(8,127,121,.28);
  --r-xs: 6px; --r-sm: 10px; --r: 14px;
}
* { box-sizing: border-box; }
html { min-width: 0; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  color: var(--ink); background: var(--canvas);
  background-image:
    var(--grad-bg),
    linear-gradient(rgba(8,127,121,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,127,121,.035) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed;
  font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
::selection { background: var(--teal); color: white; }
button:focus-visible, a:focus-visible, label[for]:focus-visible,
select:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal-glow); outline-offset: 2px; border-radius: var(--r-xs);
}

/* Typography */
h1, h2, .brand-copy strong, .tab strong, .primary,
.dropzone-label strong, .brand-cutdee, .brand-copy strong {
  font-family: Sora, Inter, system-ui, sans-serif;
  letter-spacing: -.025em; margin: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.04;
      margin: 0 0 .6rem; letter-spacing: -.035em; }
h1 .grad { background: var(--grad-hero); -webkit-background-clip: text;
            background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0 0 .85rem; }
.lead { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.lead strong { color: var(--ink); font-weight: 600; }
code { padding: .12rem .4rem; border-radius: 5px; background: var(--paper-soft);
       border: 1px solid var(--line); color: var(--teal-dark);
       font: .82em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); font-size: .82rem; }

/* Eyebrow + section-label (small uppercase) */
.eyebrow, .section-label {
  display: inline-block;
  margin: 0 0 .5rem; color: var(--teal);
  font-family: Sora, sans-serif; font-size: .68rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
}

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
          justify-content: space-between; gap: 1.5rem; min-height: 76px;
          padding: .75rem max(1rem, calc((100vw - 1180px) / 2));
          border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85);
          -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px); box-shadow: var(--shadow-sm); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px;
              place-items: center; border-radius: var(--r-sm);
              background: var(--grad-button); color: white;
              box-shadow: var(--shadow-teal); transition: transform .25s; }
.brand-mark svg { width: 24px; fill: none; stroke: currentColor;
                   stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 1.08rem; }
.brand-copy small { margin-top: .15rem; color: var(--muted); font-size: .7rem; }
.brand-divider { color: var(--line-strong); font-weight: 400; -webkit-user-select: none; user-select: none; }
.brand-cutdee { display: inline-flex; align-items: center; gap: .3rem;
                padding: .25rem .5rem; border-radius: var(--r-xs);
                color: var(--ink-soft); font-family: Sora, Inter, sans-serif;
                font-size: .8rem; font-weight: 600; letter-spacing: -.01em;
                transition: background .15s, color .15s;
                -webkit-user-select: none; user-select: none; }
.brand-cutdee:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.beagle-icon { width: 14px; height: 14px; flex: 0 0 14px; color: var(--teal); transition: transform .3s; }
.brand-cutdee:hover .beagle-icon { transform: scale(1.15) rotate(-6deg); }
.brand-cutdee-accent { color: var(--teal); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-width: 0; }

/* Quota bar */
.quota-bar { display: flex; align-items: center; gap: .6rem; min-width: 200px;
              padding: .5rem .75rem; border: 1px solid #b9dcd8; border-radius: var(--r-sm);
              background: var(--teal-soft); color: var(--teal-dark); transition: all .2s; }
.quota-bar.warning { border-color: #f3c589; background: var(--amber-soft); color: #7a4308;
                     animation: pulse-warn 2s ease-in-out infinite; }
.quota-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%;
              background: currentColor; box-shadow: 0 0 0 4px rgba(8,127,121,.11); }
.quota-bar.warning .quota-dot { box-shadow: 0 0 0 4px rgba(166,90,10,.13); }
.quota-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.quota-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.quota-copy small { margin-top: .15rem; color: currentColor; font-size: .68rem; opacity: .8; }
@keyframes pulse-warn { 0%, 100% { box-shadow: 0 0 0 0 rgba(166,90,10,0); }
                          50% { box-shadow: 0 0 0 6px rgba(166,90,10,.14); } }
