/* Tool House Style — shared tokens for every tool Jay builds.
   Light theme: Hightouch (hightouch.com). Dark theme: Best Free Fonts (bestfreefonts.com).
   Font: Figtree, always. Copy this file into the tool and build on these variables. */

/* Load in <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com" />
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
   <link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
*/

:root {
  color-scheme: light;
  /* light — Hightouch */
  --bg: #ffffff;
  --surface: #f5f5f5;      /* section / panel fill */
  --surface-2: #ebebeb;    /* hover, inset, segmented control track */
  --card: #ffffff;
  --ink: #141213;          /* main text, warm near-black */
  --ink-2: #302d2e;        /* secondary dark, dark buttons hover */
  --muted: #6b6667;        /* secondary text (4.5:1 on white) */
  --faint: #9c9798;        /* placeholders, disabled */
  --line: #e6e2e3;         /* hairline borders */
  --line-strong: #c7c2c3;  /* input borders, outlined buttons */
  --btn: #101111;          /* primary button */
  --btn-ink: #ffffff;
  --chip: #ffffff;         /* selected pill */
  --chip-ink: #141213;
  --focus: rgba(20, 18, 19, 0.18);
  /* warm accent pair, from the Hightouch hero gradient — use sparingly */
  --peach: #f5b47e;
  --sage: #9cb9ae;
  --glow: linear-gradient(135deg, #fbd3a6 0%, #f5b47e 35%, #b9c9b4 70%, #9cb9ae 100%);
  --shadow: 0 1px 2px rgba(20, 18, 19, 0.06);

  --font: 'Figtree', system-ui, sans-serif;
  --r-sm: 3px;             /* inputs, small controls */
  --r: 6px;                /* cards, buttons, panels — keep corners tight */
  --r-lg: 8px;             /* the largest radius allowed */
  --pill: 999px;           /* tiny tags only */
}

/* dark — Best Free Fonts */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-2: #1b1b1b;
  --card: #111111;
  --ink: #ffffff;
  --ink-2: #e6e6e6;
  --muted: #9a9a9a;
  --faint: #5f5f5f;
  --line: #232323;
  --line-strong: #333333;
  --btn: #ffffff;
  --btn-ink: #000000;
  --chip: #ffffff;
  --chip-ink: #000000;
  --focus: rgba(255, 255, 255, 0.22);
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #000000; --surface: #0b0b0b; --surface-2: #1b1b1b; --card: #111111;
    --ink: #ffffff; --ink-2: #e6e6e6; --muted: #9a9a9a; --faint: #5f5f5f;
    --line: #232323; --line-strong: #333333; --btn: #ffffff; --btn-ink: #000000;
    --chip: #ffffff; --chip-ink: #000000; --focus: rgba(255, 255, 255, 0.22); --shadow: none;
  }
}

/* base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.muted { color: var(--muted); }

/* Signature headline: big, tight, second line muted (Best Free Fonts style) */
.headline { font-size: clamp(36px, 6vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.headline span { color: var(--muted); font-weight: 500; display: block; }

/* buttons */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r); border: 1px solid transparent;
  background: var(--btn); color: var(--btn-ink); transition: opacity 0.15s, background 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface-2); opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); opacity: 1; }
.btn:disabled { opacity: 0.4; cursor: default; }
.icon-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--r); }
.btn svg, .icon-btn svg { width: 16px; height: 16px; }

/* pills / tags */
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--pill);
  border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted);
}
.tag.on { background: var(--chip); color: var(--chip-ink); border-color: var(--chip); }

/* segmented control */
.segmented { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--surface-2); }
.segmented button {
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; border: 0; background: none;
  color: var(--muted); padding: 7px 14px; border-radius: var(--r-sm);
}
.segmented button.on { background: var(--chip); color: var(--chip-ink); box-shadow: var(--shadow); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* inputs */
.input {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong);
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
