/* Layout */
.pg-thanks .thanks-wrap {
  padding-top: 64px;
  padding-bottom: 80px;
  display: grid;
  gap: 48px;
}

/* Browser Mockup Illustration */
.pg-thanks .browser-mockup {
  background: var(--chrome);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.pg-thanks .bm-tabs {
  display: flex;
  background: #080d14; /* Darker than chrome to simulate window frame */
  padding: 12px 12px 0;
  gap: 8px;
}

.pg-thanks .bm-tab {
  background: var(--chrome);
  border-radius: 8px 8px 0 0;
  padding: 8px 16px;
  font: 13px/1 var(--font);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 160px;
}

.pg-thanks .bm-tab svg {
  color: var(--text-dim);
}

.pg-thanks .bm-toolbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.pg-thanks .bm-nav-btns {
  display: flex;
  gap: 16px;
  padding: 0 8px;
  color: var(--text-dim);
}

.pg-thanks .bm-nav-btns svg { width: 16px; height: 16px; }

.pg-thanks .bm-url {
  flex: 1;
  background: #080d14;
  border-radius: 20px;
  padding: 8px 16px;
  font: 13px/1 var(--font);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}

.pg-thanks .bm-url svg { width: 14px; height: 14px; color: var(--text-dim); }

.pg-thanks .bm-ext-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 8px;
}

.pg-thanks .bm-puzzle {
  width: 18px; height: 18px; color: var(--text-dim);
}

.pg-thanks .bm-sz-icon {
  background: rgba(61, 125, 255, 0.15);
  color: var(--sky);
  padding: 6px;
  border-radius: 6px;
  position: relative;
  display: flex;
}

.pg-thanks .bm-sz-icon svg { width: 18px; height: 18px; }

.pg-thanks .bm-tooltip {
  position: absolute;
  top: 100%;
  right: -20px;
  margin-top: 18px;
  background: var(--blue-deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font: 14px/1.4 var(--font);
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(61, 125, 255, 0.4);
  animation: floatUp 1s ease-out 1;
  z-index: 10;
}

.pg-thanks .bm-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 28px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--blue-deep) transparent;
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* Content */
.pg-thanks .thanks-text {
  text-align: center;
  margin-bottom: 60px;
}

.pg-thanks .thanks-text .kicker {
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  margin-bottom: 18px;
}
.pg-thanks .thanks-text .kicker::before { width: 9px; height: 9px; }

.pg-thanks .thanks-text .lede {
  margin: 0 auto;
}

/* Jobs Grid */
.pg-thanks .first-jobs h2 {
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 16px;
  margin-bottom: 48px;
}

.pg-thanks .job-list {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.pg-thanks .job-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}

.pg-thanks .job-icon {
  width: 40px;
  height: 40px;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 15px/1 var(--font-mono);
  color: var(--sky);
}

.pg-thanks .job-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.pg-thanks .job-text p {
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

.pg-thanks .job-action {
  text-align: center;
}

@media (min-width: 768px) {
  .pg-thanks .job-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pg-thanks .thanks-content { display: contents; }
.pg-thanks .browser-mockup { min-width: 0; align-self: stretch; }
.pg-thanks .bm-workspace { min-height: 240px; padding: 86px 28px 28px; background: var(--ink); }
.pg-thanks .bm-workspace-label { font: 11px var(--font-mono); color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.pg-thanks .bm-workspace-tools { display: flex; gap: 10px; }
.pg-thanks .bm-workspace-tools span { flex: 1; padding: 18px 10px; color: var(--text-dim); border: 1px solid var(--line-soft); border-radius: 6px; font-size: 12px; text-align: center; }
.pg-thanks .bm-workspace-tools b { display: block; font: 600 21px var(--font-mono); color: var(--sky); margin-bottom: 10px; }
.pg-thanks .bm-sz-icon img { width: 22px; height: 22px; }
.pg-thanks .bm-url { min-width: 0; white-space: nowrap; overflow: hidden; }
.pg-thanks .bm-nav-btns { display: none; }
.pg-thanks .bm-tooltip { font-size: 12px; padding: 10px 14px; white-space: normal; width: 170px; right: -2px; }
.pg-thanks .bm-tooltip::before { right: 9px; }
.pg-thanks .bm-puzzle { flex-shrink: 0; }
.pg-thanks .thanks-text { margin: 0; align-self: center; min-width: 0; }
.pg-thanks .thanks-demo { min-height: 60px; padding: 0 36px; font-size: 20px; margin-top: 28px; }
.pg-thanks .thanks-art {
  margin: 0;
  align-self: center;
  border-radius: 12px;
  transition: box-shadow .35s ease;
}
.pg-thanks .thanks-art img { display: block; width: 100%; height: auto; }
.pg-thanks .thanks-art .thanks-dialog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  animation: thanks-dialog-float 3.2s cubic-bezier(.37, 0, .63, 1) infinite;
}
.pg-thanks .thanks-art::after {
  content: "";
  position: absolute;
  left: 88%;
  top: 14%;
  width: 5%;
  height: 8%;
  border-radius: 20%;
  box-shadow: 0 0 22px 5px rgba(61, 125, 255, .45);
  animation: toolbar-glow 2s ease-in-out 2;
  pointer-events: none;
}
.pg-thanks .open-addon-status { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
.pg-thanks .open-addon-status:empty { display: none; }
@keyframes thanks-dialog-float {
  0%, 100% { transform: translate3d(0, .8%, 0); }
  50% { transform: translate3d(0, -1.2%, 0); }
}
@keyframes toolbar-glow { 50% { opacity: .2; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pg-thanks .thanks-art:hover { box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 32px rgba(61, 125, 255, .18); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-thanks .thanks-art, .pg-thanks .thanks-art::after, .pg-thanks .thanks-art .thanks-dialog { animation: none; transition: none; }
  .pg-thanks .thanks-art .thanks-dialog { will-change: auto; }
}
.pg-thanks .first-jobs { grid-column: 1 / -1; }
.pg-thanks .job-card { min-width: 0; }
.pg-thanks .job-text { min-width: 0; }
.pg-thanks .job-action { text-align: left; }
@media (min-width: 900px) {
  .pg-thanks .thanks-wrap { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 72px clamp(64px, 7vw, 96px); }
  .pg-thanks .thanks-text { text-align: right; justify-self: end; }
  .pg-thanks .thanks-text .kicker { justify-content: flex-end; }
  .pg-thanks .thanks-text h1 { font-size: 54px; }
  .pg-thanks .thanks-text .lede { font-size: 17px; margin-left: auto; margin-right: 0; }
}
@media (max-width: 420px) {
  .pg-thanks .bm-toolbar { gap: 8px; padding: 8px; }
  .pg-thanks .bm-url { font-size: 10px; padding: 8px; gap: 5px; }
  .pg-thanks .bm-ext-btns { gap: 8px; padding: 0; }
  .pg-thanks .bm-puzzle { display: none; }
  .pg-thanks .bm-workspace { padding: 86px 14px 20px; }
  .pg-thanks .bm-workspace-tools { gap: 6px; }
  .pg-thanks .bm-workspace-tools span { padding: 14px 4px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pg-thanks .bm-tooltip { animation: none; } }
