/**
 * pin-point.in — shared styles.
 *
 * Brand §9 tokens verbatim, §3 typography, §5 spacing and radii, §7 motion. Fonts are
 * served from this origin rather than a font CDN so the site and the extension render
 * identically and neither depends on a third party being up.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-sans-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --reel: #16121f;
  --cassette: #241e32;
  --deck: #332b45;
  --amber: #ffc53d;
  --uv: #8b6bff;
  --bone: #f3f1f7;
  --dust: #9a93ac;
  --ok: #3fcf8e;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ui: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--reel);
  color: var(--bone);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A single soft field of colour behind the fold. Brand §5 forbids shadows; this is light,
   not elevation. */
body::before {
  content: '';
  position: fixed;
  inset: -20% 0 auto;
  height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, rgb(139 107 255 / 14%), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6.4vw, 68px);
}

h2 {
  font-size: clamp(28px, 3.8vw, 40px);
}

h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.lede {
  color: var(--dust);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgb(22 18 31 / 82%);
  border-bottom: 1px solid var(--deck);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--dust);
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--bone);
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition:
    background-color 120ms var(--ease-out),
    border-color 120ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Brand §2: amber buttons take reel text, never white. */
.btn--primary {
  background: var(--amber);
  color: var(--reel);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--amber) 88%, white);
}

.btn--ghost {
  background: var(--cassette);
  border-color: var(--deck);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--dust);
}

/*
 * A store button that cannot install anything.
 *
 * The extensions are not published yet. Rendering these as working links would send
 * people to a 404 and cost more trust than the honest state does.
 */
.btn[aria-disabled='true'] {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.btn__sub {
  color: inherit;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- sections ---------- */

section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.hero {
  padding-top: clamp(56px, 8vw, 96px);
  text-align: center;
}

.hero h1 {
  max-width: 15ch;
  margin: 0 auto 20px;
}

.hero .lede {
  max-width: 58ch;
  margin: 0 auto 36px;
}

.hero .btn-row {
  justify-content: center;
}

.hero__note {
  margin-top: 18px;
  color: var(--dust);
  font-size: 14px;
}

/* The bracket device (§4), used once, at the size it deserves. */
.span-demo {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 28px;
  background: var(--cassette);
  border: 1px solid var(--deck);
  border-top-color: rgb(255 255 255 / 6%);
  border-radius: var(--r-lg);
  text-align: left;
}

.span-track {
  position: relative;
  height: 8px;
  margin: 22px 0 18px;
  background: var(--deck);
  border-radius: 999px;
}

.span-fill {
  position: absolute;
  inset: 0 42% 0 22%;
  background: var(--amber);
  border-radius: 999px;
}

.span-fill::before,
.span-fill::after {
  content: '';
  position: absolute;
  top: -7px;
  width: 4px;
  height: 22px;
  background: var(--amber);
  border-radius: 2px;
}

.span-fill::before {
  left: -2px;
}

.span-fill::after {
  right: -2px;
}

.span-demo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--dust);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step {
  padding: 28px;
  background: var(--cassette);
  border: 1px solid var(--deck);
  border-top-color: rgb(255 255 255 / 6%);
  border-radius: var(--r-lg);
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  background: var(--reel);
  border: 1px solid var(--deck);
  border-radius: var(--r-sm);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--dust);
  font-size: 15px;
}

kbd {
  padding: 2px 7px;
  background: var(--reel);
  border: 1px solid var(--deck);
  border-radius: var(--r-sm);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
}

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

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--deck);
  border-radius: var(--r-lg);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--deck);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--cassette);
  color: var(--bone);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody th {
  color: var(--bone);
  font-weight: 500;
}

td {
  color: var(--dust);
}

.yes {
  color: var(--ok);
}

.no {
  color: var(--deck);
}

.price {
  color: var(--bone);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price small {
  display: block;
  color: var(--dust);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.col-featured {
  background: rgb(255 197 61 / 6%);
}

/* ---------- features ---------- */

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature {
  padding: 26px;
  background: var(--cassette);
  border: 1px solid var(--deck);
  border-top-color: rgb(255 255 255 / 6%);
  border-radius: var(--r-lg);
  transition:
    border-color 120ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.feature:hover {
  border-color: var(--dust);
  transform: translateY(-2px);
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--dust);
  font-size: 15px;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 22px;
  background: var(--cassette);
  border: 1px solid var(--deck);
  border-radius: var(--r-md);
}

summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

details p {
  margin-top: 10px;
  color: var(--dust);
  font-size: 15px;
}

/* ---------- cta + footer ---------- */

.cta {
  padding: clamp(48px, 7vw, 80px) 32px;
  background: var(--cassette);
  border: 1px solid var(--deck);
  border-top-color: rgb(255 255 255 / 6%);
  border-radius: var(--r-lg);
  text-align: center;
}

.cta .btn-row {
  justify-content: center;
  margin-top: 28px;
}

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--deck);
  color: var(--dust);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--dust);
}

.site-footer a:hover {
  color: var(--bone);
}

/* ---------- long-form documents ---------- */

.doc {
  max-width: 760px;
  padding: 56px 0 80px;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 10px;
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 23px;
}

.doc p,
.doc li {
  color: var(--dust);
  font-size: 16px;
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin: 8px 0;
}

.doc strong {
  color: var(--bone);
  font-weight: 550;
}

.updated {
  color: var(--dust);
  font-family: var(--mono);
  font-size: 13px;
}

/* Brand §7 — every motion no-ops under reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .feature {
    transition-duration: 1ms;
  }

  .btn:hover,
  .feature:hover {
    transform: none;
  }
}

/* Announced to screen readers, invisible on screen (§14 Accessibility). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
