/* RelisterPro site. Tokens follow the extension's brand (teal on harbor ink) with one signal:
   the amber outline RelisterPro draws around a site's Publish button. */
:root {
  --ink: #04201d;
  --ink-2: #0b2f2b;
  --teal: #2bb3a3;
  --teal-deep: #17867a;
  --glass: #eef5f3;
  --paper: #ffffff;
  --slate: #4d6663;
  --line: #d3e3df;
  --amber: #f59e0b;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--glass);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────── */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.head-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.head-links a:not(.btn) { color: var(--slate); text-decoration: none; }
.head-links a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 150ms, color 150ms, border-color 150ms, transform 150ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); color: var(--paper); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.kicker { font: 500 13px/1.4 var(--mono); color: var(--teal-deep); letter-spacing: 0.02em; margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.98; font-variation-settings: "wdth" 88; }
h1 .yours { position: relative; white-space: nowrap; }
h1 .yours::after {
  content: ""; position: absolute; inset: -4px -10px; border: 3px dashed var(--amber); border-radius: 12px;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--slate); max-width: 34em; margin: 26px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--slate); margin: 16px 0 0; }

/* Hero demo: one listing, three posting forms, three Publish buttons only you click. */
.demo { position: relative; display: grid; gap: 14px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(4, 32, 29, 0.05), 0 12px 32px -18px rgba(4, 32, 29, 0.25);
}
.listing { padding: 18px 20px; display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.listing .photo { width: 92px; height: 74px; border-radius: 10px; background: linear-gradient(160deg, #cfe3e0 0 52%, #7fb3ab 52% 70%, #2f6f68 70%); }
.listing .src { font: 500 12px/1 var(--mono); color: var(--slate); margin-bottom: 8px; }
.fields { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 13px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--glass); color: var(--ink); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form { padding: 14px; display: grid; gap: 8px; }
.form .site { font: 700 13px/1.2 var(--body); }
.line { height: 9px; border-radius: 5px; background: var(--glass); }
.line.filled { background: color-mix(in srgb, var(--teal) 32%, var(--glass)); }
.line.w60 { width: 60%; } .line.w80 { width: 80%; } .line.w45 { width: 45%; }
.publish {
  margin-top: 6px; justify-self: start; font: 700 12px/1 var(--body); padding: 8px 12px; border-radius: 8px;
  background: var(--ink); color: var(--paper); outline: 3px dashed var(--amber); outline-offset: 3px;
}
.caption { font: 500 12px/1.4 var(--mono); color: var(--slate); text-align: right; margin: 4px 2px 0; }

/* Load sequence: the listing is captured, then each form fills, then the Publish outlines appear. */
@media (prefers-reduced-motion: no-preference) {
  .js .chip { opacity: 0; transform: translateY(4px); animation: in 360ms ease-out forwards; }
  .js .chip:nth-child(1) { animation-delay: 300ms; } .js .chip:nth-child(2) { animation-delay: 420ms; }
  .js .chip:nth-child(3) { animation-delay: 540ms; } .js .chip:nth-child(4) { animation-delay: 660ms; }
  .js .chip:nth-child(5) { animation-delay: 780ms; }
  .js .line.filled { transform-origin: left; transform: scaleX(0); animation: fill 420ms ease-out forwards; }
  .js .form:nth-child(1) .line.filled { animation-delay: 1000ms; }
  .js .form:nth-child(2) .line.filled { animation-delay: 1250ms; }
  .js .form:nth-child(3) .line.filled { animation-delay: 1500ms; }
  .js .publish { outline-color: transparent; animation: mark 500ms ease-out 2100ms forwards; }
}
@keyframes in { to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: none; } }
@keyframes mark { to { outline-color: var(--amber); } }

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 96px); }
/* Two light sections in a row share one gap instead of doubling it. */
.section:not(.dark) + .section:not(.dark) { padding-top: 0; }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.section-head p { color: var(--slate); margin: 14px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 14px/1 var(--mono); margin-bottom: 16px; }
.steps li:last-child::before { background: var(--paper); color: var(--ink); outline: 3px dashed var(--amber); outline-offset: 2px; }
.steps h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; color: var(--slate); }

.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sites .group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.sites .label { font: 500 12px/1 var(--mono); color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.sites ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.sites .soon li { color: var(--slate); font-weight: 500; }

.dark { background: var(--ink); color: #e6f1ef; }
.dark h2 { color: var(--paper); }
.dark .section-head p { color: #a9c4bf; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--r); overflow: hidden; }
.rules div { background: var(--ink-2); padding: 24px; }
.rules h3 { font-size: 19px; color: var(--paper); margin-bottom: 8px; }
.rules p { margin: 0; color: #a9c4bf; font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.split .card { padding: 26px; }
.split h3 { font-size: 22px; margin-bottom: 8px; }
.split p { margin: 0; color: var(--slate); }

.beta { text-align: left; }
.beta .card { padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
.beta p { margin: 12px 0 0; color: var(--slate); }

/* ── Footer ─────────────────────────────────────────── */
.site-foot { padding-block: 36px 48px; font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { color: var(--slate); }
.fine { flex-basis: 100%; font-size: 13px; margin: 0; }

/* ── Legal pages ────────────────────────────────────── */
.doc { padding-block: 24px 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-variation-settings: normal; }
.doc .meta { font: 500 13px/1.4 var(--mono); color: var(--slate); margin: 14px 0 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.015em; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #1f3d39; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; background: var(--paper); }
.doc .callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 16px 18px; }

/* ── Small screens ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sites { grid-template-columns: 1fr; }
  .beta .card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .head-links a:not(.btn) { display: none; }
  .flow { grid-template-columns: 1fr; }
  .steps, .rules, .split { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 72px 1fr; }
  .listing .photo { width: 72px; height: 60px; }
  h1 .yours { white-space: normal; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: 0; padding: 4px 0; }
  .doc td:first-child { font-weight: 700; color: var(--ink); }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
