/* Hookjar site. Single dark theme on purpose: this is a terminal adjacent
   tool and the page commits to that look rather than offering two. */

:root {
  --bg:      #0c0d0e;
  --panel:   #141617;
  --panel-2: #1b1e1f;
  --line:    #262a2b;
  --text:    #e8e9e7;
  --muted:   #8f9694;
  --accent:  #60a5fa;
  --accent-ink: #0a1424;   /* text peste accent */
  --good:    #6fcf8e;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 940px;
  --gut: clamp(1.25rem, 5vw, 2rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 550; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ol, ul, dl, dd, dt { margin: 0; padding: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; background: var(--accent); color: var(--accent-ink);
        padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

code { font-family: var(--mono); font-size: .92em; }

/* ------------------------------------------------------------ header */

.top {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}
.top__inner { display: flex; align-items: center; gap: 1.5rem; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none;
  font-family: var(--mono); font-size: .95rem; color: var(--accent);
  letter-spacing: .02em;
}
.top nav { margin-left: auto; display: flex; gap: 1.35rem; font-size: .9rem; }
.top nav a { color: var(--muted); text-decoration: none; transition: color .18s var(--ease); }
.top nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .top nav { gap: 1rem; font-size: .84rem; }
  .top__inner { gap: .75rem; }
}

/* -------------------------------------------------------------- hero */

section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--line); }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  letter-spacing: -.035em;
  max-width: 16ch;
}
.lede {
  margin-top: 1.5rem; color: var(--muted);
  max-width: 62ch; font-size: 1.02rem;
}
.lede--after { margin-top: 1rem; color: var(--text); }

.note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------- snippets */

.snippet {
  margin: 1.75rem 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text);
}
.snippet code { font-size: inherit; white-space: pre; }
.snippet--sm { margin-top: 1rem; font-size: .8rem; padding: .75rem .9rem; }
.snippet .c { color: var(--muted); }

/* -------------------------------------------------------------- demo */

.sub { margin-top: .9rem; color: var(--muted); max-width: 62ch; }

.panel {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.panel__body { padding: 1.15rem; border-bottom: 1px solid var(--line); }

.btn {
  font: inherit; font-size: .92rem; font-weight: 550;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: 8px;
  padding: .5rem 1rem; cursor: pointer; white-space: nowrap;
  transition: filter .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: default; }

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--muted); filter: none; }

.status { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.status[data-state="ok"]   { color: var(--good); }
.status[data-state="warn"] { color: var(--accent); }

.fieldlabel {
  display: block; font-size: .8rem; color: var(--muted); margin-bottom: .5rem;
}
.copyrow { display: flex; gap: .5rem; }
.urlbox {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: .85rem;
  background: var(--bg); color: var(--accent);
  border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .75rem;
}

.feed { padding: 1.15rem; }
.feed__head {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; color: var(--muted); margin-bottom: .9rem;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }

.feed__list { display: grid; gap: .5rem; list-style: none; }
.feed__list li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: .75rem; align-items: baseline;
  font-family: var(--mono); font-size: .82rem;
  background: var(--bg);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: 6px; padding: .55rem .75rem;
}
.feed__list .m { color: var(--accent); }
.feed__list .q { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__list .t { color: var(--muted); }
.feed__empty { color: var(--muted); font-size: .87rem; }

@media (prefers-reduced-motion: no-preference) {
  .feed__list li { animation: slide .35s var(--ease); }
}
@keyframes slide { from { opacity: 0; transform: translateY(-4px) } }

/* ----------------------------------------------------------- install */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.75rem; }
.cols h3, .h3--spaced { font-size: .95rem; color: var(--muted); font-weight: 500; }
.h3--spaced { margin-top: 2.75rem; }
.h3--spaced + p { margin-top: .6rem; color: var(--muted); }
.cols .snippet { margin-top: .75rem; }

@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ tables */

.tablewrap { margin-top: 1.75rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 480px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .82rem; }
td code { color: var(--accent); }
.table--limits td:not(:first-child) { font-family: var(--mono); font-size: .85rem; }
.table--limits td:first-child { color: var(--muted); }

/* ------------------------------------------------------------- notes */

.facts { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.facts dt { font-weight: 500; }
.facts dd { margin-top: .4rem; color: var(--muted); max-width: 70ch; }

/* ------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.foot__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  color: var(--muted); font-size: .85rem;
}
.foot code { color: var(--accent); }

.brand img { width: 20px; height: 20px; }

.buyrow { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }
.buyrow__note { color: var(--muted); font-size: .85rem; }
