/* NotchSmith landing: features, programmable, agents */

/* features */

.features {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s;
}

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

.card-lg { grid-column: span 6; min-height: 308px; }
.card-sm { grid-column: span 4; padding: 21px; min-height: 186px; }

.card-body h3,
.card-sm h3 {
  margin: 15px 0 7px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.card-sm h3 { margin-top: 13px; font-size: 16.5px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.card-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--text);
}

.card-ico .ico { width: 19px; height: 19px; }

.mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg-soft);
}

.card-body + .mini { margin-top: 20px; }

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 2px;
  font-size: 12px;
}

.mini-t {
  flex: 1;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 10.8px;
  color: var(--dim);
  white-space: nowrap;
}

.mini-usage {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--dim);
}

.mini-usage:first-child { margin-top: 0; }
.mini-usage b { color: var(--text); font-weight: 600; }
.mini .nmuted { color: var(--dim); }
.mini .warn-text { color: var(--warn); }
.mini .napp { background: #e2e5ed; color: #333a50; }
.mini .claude { background: #f8e5de; color: #873c24; }
.mini .codex { background: #dbeee5; color: #146042; }
.mini .opencode { background: #e8e5f6; color: #514687; }
.mini .nbar { margin-top: 1px; margin-bottom: 3px; background: var(--line); }

.mini-clip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 2px;
  font-size: 12px;
}

.mini-clip > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-media { flex-direction: row; align-items: center; gap: 12px; }
.mini-media-info { flex: 1; min-width: 0; }
.mini-media-info b { display: block; font-size: 12.5px; font-weight: 600; }

.mini-media-info > span {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-media-info .nbar { margin-top: 8px; }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  flex: none;
}

.eq i {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--ok);
  animation: eq 0.9s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.42s; }

/* programmable */

.programmable {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.prog-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
}

.prog-copy { padding-top: 6px; }

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.prog-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.prog-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.prog-list b { color: var(--text); font-weight: 600; }

.prog-demo {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 48px -36px #20263575;
  overflow: hidden;
}

.prog-tabs {
  display: flex;
  gap: 2px;
  padding: 8px;
  border-bottom: 1px solid var(--line-soft);
  background: #f7f7fa;
  overflow-x: auto;
  scrollbar-width: none;
}

.prog-tabs::-webkit-scrollbar { display: none; }

.prog-tab {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.prog-tab:hover { color: var(--text); }
.prog-tab.is-on { background: #e7e9f0; color: var(--text); }

.prog-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 386px;
}

.code-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}

.code-pane { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.widget-prompt {
  flex: 1;
  padding: clamp(20px, 3vw, 32px);
}

.widget-prompt p {
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 620;
}

.widget-prompt blockquote {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
  text-wrap: pretty;
}

.example-script { border-top: 1px solid var(--line-soft); }

.example-script summary {
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 550;
  color: var(--accent);
  cursor: pointer;
}

.example-script .pane-head { border-top: 1px solid var(--line-soft); }

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.pane-head .path {
  font-size: 10.8px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.copy:hover { color: var(--text); border-color: var(--line-2); }
.copy .ico { width: 12px; height: 12px; }
.copy.is-copied { color: var(--ok); border-color: rgba(48, 209, 88, 0.4); }

.code {
  flex: 1;
  margin: 0;
  padding: 14px 14px 18px;
  overflow: auto;
  font: 11.5px/1.78 var(--mono);
  color: #333853;
  counter-reset: line;
  tab-size: 2;
}

.code .cl {
  display: block;
  position: relative;
  min-width: max-content;
  padding-left: 34px;
  white-space: pre;
}

.code .cl::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  width: 22px;
  text-align: right;
  color: var(--dim);
  user-select: none;
}

.code .c { color: #646770; }
.code .s { color: #22643e; }
.code .k { color: #5643a3; }

.prev-col { display: flex; flex-direction: column; min-width: 0; }
.prev-pane { display: flex; flex-direction: column; flex: 1; }

.pv-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  min-height: 340px;
  background: #dce5ef url("assets/studio-wallpaper.webp") center / cover no-repeat;
  overflow: hidden;
}

.pv-notch {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(94%, 420px);
  min-height: 292px;
  padding: 26px 18px 14px;
  border-radius: 0 0 22px 22px;
  background: #000;
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.85);
}

.pv-cam {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #1d2a44, #06070a 72%);
  box-shadow: 0 0 0 2px #0b0b0d;
}

.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.pv-head b { font-weight: 600; }
.pv-head .nmuted { font-size: 10px; }

.pv-big {
  margin-top: 14px;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
}

.pv-big span { margin-left: 2px; font-size: 20px; color: #85858e; }

.pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.pv-grid > div {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  min-width: 0;
}

.pv-grid span {
  display: block;
  font-size: 9.5px;
  color: #85858e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-grid b {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 10px;
  color: var(--dim);
}

.pv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.pv-stats > div {
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.pv-stats span { display: block; font-size: 10px; color: #85858e; }
.pv-stats b { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; }

.nlist.compact .nrow { padding: 6px; }
.nlist.compact .ntxt b { font-size: 11.5px; }
.nlist.compact .ntxt span { font-size: 10px; }
.nlist.compact .nacc { font-size: 10px; }

.prog-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--dim);
}

.prog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* agents */

.agents-sec { background: var(--bg); }

.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  color: var(--muted);
}

.agent-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.agent-dot.c { background: #d97757; }
.agent-dot.x { background: #10a37f; }
.agent-dot.g { background: #6f8cff; }
.agent-dot.m { background: #8b8bff; }
.agent-dot.o { background: #b0b0bb; }

.agents-note {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--line-2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.terminal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 55px -40px #20263570;
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #f7f7fa;
}

.lights { display: flex; gap: 6px; flex: none; }
.lights i { width: 9px; height: 9px; border-radius: 50%; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.term-title { flex: 1; text-align: center; font-size: 10.5px; color: var(--dim); }

.term-chip {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e7e9f0;
  color: var(--dim);
  font: 600 9.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: none;
}

.term-body {
  padding: 16px 16px 18px;
  font: 12px/1.92 var(--mono);
  color: #313650;
}

.tline {
  padding: 1px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.terminal-card.is-running .tline,
.terminal-card.is-running .term-shot { opacity: 1; transform: none; }

.tuser {
  font: 600 clamp(17px, 2vw, 22px)/1.45 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
}
.tok { margin-top: 12px; color: var(--dim); }
.tick { color: var(--ok); }

.term-shot {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #0d0d11;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease .25s, transform .4s ease .25s;
}

.term-shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 9.5px;
  color: var(--dim);
}

.term-shot-body { padding: 5px 8px; }
.term-shot .mini-row { padding: 3px 2px; font-size: 11.5px; }

/* File tools, Screenshot Editor and setup */

.file-tools, .packs, .gallery {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}

.screenshot-tools {
  border-top: 1px solid var(--line-soft);
  background: #f4f6fb;
}

.screenshot-copy h2 {
  font-size: clamp(33px, 4.8vw, 60px);
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1.06;
  text-wrap: balance;
}

.drop-demo {
  display: grid;
  place-items: start center;
  min-height: 205px;
  margin-bottom: 16px;
  padding: 0 20px 24px;
  border: 1px solid #d0d7e2;
  border-radius: 22px;
  background: #dce5ef url("assets/studio-wallpaper.webp") center 55% / cover no-repeat;
}

.drop-demo-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 655px);
  padding: 22px;
  border-radius: 0 0 22px 22px;
  color: #f4f4f6;
  background: #121318;
  box-shadow: 0 15px 35px -18px #192239bd;
}

.drop-demo-file {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.drop-demo-file > .ico {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: #a2d1ff;
  background: #27364d;
}

.drop-demo-file small { display: block; color: #babcc5; }
.drop-demo-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.drop-demo-actions span {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 4px;
  border: 1px dashed #737682;
  border-radius: 9px;
  color: #e6e7ed;
  text-align: center;
  font-size: 12px;
}
.drop-demo-actions .drop-demo-active {
  border: 1px solid #90bcfb;
  color: #c4ddff;
  background: #1e3553;
}

.tool-formats .card { background: #f8f9fb; }

.screenshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.screenshot-copy .prog-list { margin-top: 18px; }

.shot-editor {
  overflow: hidden;
  border: 1px solid #d3d9e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 48px -30px #34435a96;
}

.shot-editor-header, .shot-editor-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--dim);
  font-size: 13px;
}

.shot-editor-header b { color: var(--text); }

.shot-editor-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border-block: 1px solid #e0e6ef;
}

.shot-editor-tools {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 8px;
  background: #f4f6fa;
}

.shot-editor-tools span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #43526b;
  background: #fff;
}

.shot-editor-canvas {
  display: grid;
  place-items: center;
  min-height: 290px;
  padding: clamp(18px, 5vw, 52px);
  background: linear-gradient(145deg, #a1c9f7, #c8caf9 58%, #e5c9ef);
}

.shot-editor-image {
  display: grid;
  gap: 5px;
  width: min(100%, 300px);
  padding: clamp(10px, 2vw, 20px);
  border-radius: 12px;
  color: #243254;
  background: #fff;
  box-shadow: 0 14px 32px -15px #37456d;
}

.shot-editor-image small { font-size: 12px; color: #4d6185; }
.shot-editor-image strong { margin-bottom: 8px; font-size: clamp(16px, 2vw, 24px); line-height: 1.12; }
.shot-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #e1e6f0;
  border-radius: 6px;
  font-size: 12px;
}
.shot-editor-row .ico { width: 12px; color: #23855e; }
.shot-editor-highlight { border: 2px solid #235bd3; color: #21489a; background: #eef4ff; font-weight: 650; }
.shot-editor-highlight span { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #235bd3; }
.shot-editor-footer { justify-content: space-between; }

.gallery { background: #f5f7fc; }
.gallery-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.gallery-items li {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 1081px) {
  .card-quarter { grid-column: span 3; }
}
@media (max-width: 940px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 675px) {
  .gallery-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drop-demo { min-height: 0; padding: 0 10px 14px; }
  .drop-demo-panel { padding: 14px; }
  .drop-demo-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-editor-canvas { min-height: 220px; }
}
