/* Tether public website. Based on design study A ("Together", #495). */

:root {
  /* The extension's charcoal and white (its icon and Marketplace banner use #1E1E1E),
     with the browser preview's green, lightened for dark backgrounds, as the one accent. */
  --ink: #f3f3f3;
  --body: #cbcbcb;
  --muted: #9b9b9b;
  --line: #2c2c2c;
  --green: #3fbf8c;
  --green-strong: #6dd3aa;
  --on-green: #0c1712;
  --paper: #141414;
  --raised: #1e1e1e;
  --focus: #ffffff;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
button { font: inherit; color: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 20;
  background: var(--raised); color: var(--ink); padding: 12px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 5%; }

/* Header and footer */
.header {
  min-height: 96px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
}
.header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 550; }
.header nav a:not(.btn) { text-decoration: none; }
.header nav a:not(.btn):hover, .header nav a[aria-current="page"] {
  text-decoration: underline; text-underline-offset: 5px;
}
/* The logo is the extension's own icon beside the name, in one colour. */
.logo {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.mark { width: 1.1em; height: 1.1em; flex: none; }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted); font-size: 13px;
}
.footer .logo { font-size: 21px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green);
}
h1 { font-size: clamp(56px, 8vw, 108px); font-weight: 550; letter-spacing: -0.075em; line-height: 0.99; }
h1 em, .doc-title em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; }
h3 { font-size: 21px; font-weight: 550; letter-spacing: -0.02em; line-height: 1.3; }
p, li { font-size: 16px; line-height: 1.65; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-weight: 550; }
.text-link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 22px;
  border: 1px solid var(--green); border-radius: 5px;
  background: var(--green); color: var(--on-green);
  font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.btn:hover { background: var(--green-strong); border-color: var(--green-strong); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.secondary { background: transparent; color: var(--ink); border-color: #3c3c3c; }
.btn.secondary:hover { background: var(--raised); border-color: var(--green); }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: 7%; align-items: end;
  padding: 80px 0 56px;
}
.hero h1 { margin-top: 24px; }
.intro { max-width: 420px; }
.intro > p:first-child { font-size: 19px; color: var(--muted); }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Demo */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-tabs button {
  min-height: 40px; padding: 8px 16px;
  border: 1px solid #3c3c3c; border-radius: 999px; background: transparent;
  font-size: 14px;
}
.demo-tabs button:hover { border-color: var(--green); }
.demo-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* VS Code-style window, Dark Modern colours. Mirrors what Tether draws in the editor. */
.vsc {
  --v-bg: #1f1f1f; --v-side: #181818; --v-border: #2b2b2b; --v-text: #cccccc; --v-dim: #9d9d9d;
  --v-blue: #0078d4; --jo: #4c9df3; --sa: #e8914f;
  border: 1px solid #333; border-radius: 10px; overflow: hidden;
  background: var(--v-bg); color: var(--v-text);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;
  box-shadow: 0 30px 80px #000c, 0 0 0 1px #0008;
}
.vsc svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vsc svg .fill { fill: currentColor; stroke: none; }
.vsc-title {
  display: grid; grid-template-columns: 1fr minmax(0, 340px) 1fr; align-items: center; gap: 12px;
  height: 36px; padding: 0 12px; background: var(--v-side); border-bottom: 1px solid var(--v-border);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.command-center {
  text-align: center; font-size: 12px; color: var(--v-dim);
  border: 1px solid #3c3c3c; border-radius: 6px; background: #222; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vsc-body { display: grid; grid-template-columns: 48px 220px minmax(0, 1fr); min-height: 470px; }
.activity { background: var(--v-side); border-right: 1px solid var(--v-border); padding-top: 6px; }
.act { display: grid; place-items: center; height: 48px; color: #868686; border-left: 2px solid transparent; }
.act.active { color: #d7d7d7; border-left-color: var(--v-blue); }
.side { background: var(--v-side); border-right: 1px solid var(--v-border); padding: 0 0 12px; }
.side p { font-size: 13px; line-height: 22px; }
.side-title { padding: 0 20px; height: 35px; line-height: 35px !important; font-size: 11px !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--v-text); }
.side-section { padding: 0 8px; font-size: 11px !important; font-weight: 700; }
.tree { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 22px; white-space: nowrap; }
.tree.file { padding-left: 38px; }
.tree.file.root { padding-left: 22px; }
.tree.sel-file { background: #04395e; outline: 1px solid var(--v-blue); outline-offset: -1px; }
.deco { margin-left: auto; font-size: 11px; color: var(--v-dim); }
.fi { display: inline-grid; place-items: center; min-width: 16px; font: 700 9px/1 ui-sans-serif, system-ui, sans-serif; }
.fi.ts { color: #3178c6; }
.fi.md { color: #519aba; }
.fi.ig { color: #8a8a8a; font-size: 11px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; height: 35px; background: var(--v-side); border-bottom: 1px solid var(--v-border); }
.tab { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--v-dim); border-right: 1px solid var(--v-border); white-space: nowrap; }
.tab.active { background: var(--v-bg); color: #fff; box-shadow: inset 0 1px 0 var(--v-blue); margin-bottom: -1px; }
.tab .x { margin-left: 8px; color: var(--v-dim); }
.crumbs { padding: 3px 18px; font-size: 12px; color: var(--v-dim); }
.crumbs .f { color: #dcdcaa; }
.code { flex: 1; padding: 6px 0 18px; overflow-x: auto; font: 13px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row { display: flex; align-items: stretch; min-width: max-content; }
.row[hidden] { display: none; }
.row.active { background: #ffffff0a; }
.row .ln { width: 40px; padding-right: 22px; text-align: right; color: #6e7681; user-select: none; flex: none; }
.row.active .ln { color: #cccccc; }
.gut { position: relative; width: 12px; flex: none; }
.gut::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 4px; background: var(--sa); opacity: 0; }
.row.work .gut::before { opacity: 1; }
.vsc [hidden] { display: none !important; }
.row code { font: inherit; white-space: pre; padding-right: 24px; }
.k { color: #569cd6; } .f { color: #dcdcaa; } .v { color: #9cdcfe; } .s { color: #ce9178; } .c { color: #6a9955; }
.claim { margin-left: 3ch; font-style: italic; color: var(--sa); }
.claim.off { opacity: 0; }
.sel.blue { background: #4c9df340; }
.caret { position: relative; display: inline-block; width: 2px; height: 20px; margin: 0 1px; vertical-align: top; }
.caret::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 0; width: 2px; }
.flag {
  position: absolute; left: 0; top: -1px; padding: 0 3px; border-radius: 2px;
  font: 700 9px/10px ui-sans-serif, system-ui, sans-serif; color: #111; white-space: nowrap;
}
.caret.blue::before, .caret.blue .flag { background: var(--jo); }
.caret.orange::before, .caret.orange .flag { background: var(--sa); }
.thread {
  margin: 4px 24px 6px 74px; max-width: 560px;
  border-top: 2px solid var(--v-blue); border-bottom: 2px solid var(--v-blue);
  background: #252526; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;
}
.thread-head { display: flex; justify-content: space-between; padding: 6px 12px; font-size: 12px; color: var(--v-dim); border-bottom: 1px solid #333; }
.thread-actions { display: flex; gap: 12px; }
.comment { display: flex; gap: 10px; padding: 10px 12px 2px; }
.comment p { font-size: 13px; line-height: 1.5; color: var(--v-text); }
.comment .who { font-weight: 600; color: #e7e7e7; }
.comment .avatar { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; font-size: 9px; font-weight: 700; }
.comment .avatar.blue { background: var(--jo); color: #111; }
.comment .avatar.orange { background: var(--sa); color: #111; }
.comment .avatar.green { background: var(--green); color: #111; }
.thread.resolved .comment p, .thread.resolved .comment .who { color: #8b8b8b; }
.thread.resolved .comment .avatar { filter: grayscale(1) brightness(0.75); }
.thread.resolved .thread-head { color: #b5b5b5; }
.placeholder { color: #8b8b8b; }
.type-caret { display: inline-block; width: 1px; height: 14px; margin: 0 1px; vertical-align: -2px; background: #e0e0e0; }
.vbtn.pressed { filter: brightness(1.3); box-shadow: 0 0 0 2px #ffffff40; }
.reply {
  margin: 10px 12px 8px 46px; padding: 6px 8px; min-height: 30px; font-size: 12px; color: var(--v-text);
  border: 1px solid var(--v-blue); background: #1f1f1f;
}
.thread-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.vbtn { padding: 3px 10px; font-size: 12px; border-radius: 2px; background: var(--v-blue); color: #fff; }
.vbtn.ghost { background: #313131; color: var(--v-text); }
.vsc-status {
  display: flex; justify-content: space-between; height: 22px; padding: 0 6px;
  background: var(--v-side); border-top: 1px solid var(--v-border); font-size: 12px; color: var(--v-dim);
}
.st-left, .st-right { display: flex; }
.st-item { padding: 0 8px; line-height: 22px; white-space: nowrap; }
.demo-note { margin-top: 14px; min-height: 3.3em; font-size: 14px; color: var(--muted); max-width: 640px; }

/* Steps, features and split sections */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.steps article { padding: 32px 26px 34px 0; }
.steps article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.number { font: 12px ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.steps article p:last-child { margin-top: 12px; font-size: 15px; color: var(--muted); }

.features, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 80px; }
.features h2, .split h2 { margin-top: 22px; }
.split p { color: var(--body); }
.split p + p { margin-top: 16px; }
.feature-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 15px; }
.feature-list strong { color: var(--ink); font-weight: 600; }

/* Document pages */
.doc { max-width: 760px; padding: 72px 0 80px; }
.doc-title { margin: 22px 0 26px; font-size: clamp(46px, 6vw, 76px); }
.lede { font-size: 19px; color: var(--muted); }
.doc section { margin-top: 56px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.doc p, .doc li { color: var(--body); }
.doc p + p, .doc p + .table-scroll, .doc .table-scroll + p { margin-top: 16px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
thead th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
tbody th { font-weight: 600; }

/* Responsive */
@media (max-width: 1000px) {
  .hero { gap: 5%; }
  .vsc-body { grid-template-columns: 48px 180px minmax(0, 1fr); }
  .header nav { gap: 18px; }
  .features, .split { gap: 48px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header { min-height: 76px; }
  .header nav { gap: 16px; font-size: 13px; }
  .header nav .desktop { display: none; }
  .logo { font-size: 23px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 36px; }
  .hero h1 { margin-top: 16px; }
  .intro > p:first-child { font-size: 17px; }
  .vsc-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .activity, .side, .st-right .st-item:nth-child(n+2) { display: none; }
  .vsc-title { grid-template-columns: auto minmax(0, 1fr); }
  .vsc-title > span:last-child { display: none; }
  .code { font-size: 11.5px; line-height: 19px; }
  .row .ln { width: 30px; padding-right: 12px; }
  .gut { width: 8px; }
  .gut::before { left: 3px; width: 3px; }
  .thread { margin-left: 12px; margin-right: 12px; }
  .steps { grid-template-columns: 1fr; margin: 40px 0 56px; }
  .steps article, .steps article + article { padding: 24px 0; border-left: 0; }
  .steps article + article { border-top: 1px solid var(--line); }
  .features, .split { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .doc { padding: 44px 0 56px; }
  .doc section { margin-top: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .caret::before { animation: blink 1.2s steps(1) infinite; }
  .caret.typing::before { animation: none; }
  .gut::before, .claim, .comment, .deco { transition: opacity 400ms ease; }
  .comment.arrive { animation: arrive 400ms ease; }
  @keyframes arrive { from { opacity: 0; transform: translateY(4px); } }
  @keyframes blink { 50% { opacity: 0.25; } }
  .btn, .demo-tabs button { transition: background-color 150ms ease, border-color 150ms ease; }
}

@media (forced-colors: active) {
  .vsc { forced-color-adjust: none; }
}
