/* Feature cards: mini visuals drawn in the app's own surfaces */
.more-head { max-width: 760px; margin-bottom: 40px; }
.more-head h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 14px; letter-spacing: -0.04em; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); transition: background 0.3s, transform 0.4s var(--ease); }
.card:hover { background: #171717; transform: translateY(-4px); }
.card-vis { height: 200px; display: grid; place-items: center; padding: 20px; background: radial-gradient(90% 80% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%), #0d0d0d; }
.card-txt { padding: 18px 20px 22px; }
.card-txt h3 { font-family: var(--font); font-size: 17px; -webkit-text-stroke: 0; letter-spacing: -0.02em; }
.card-txt p { margin-top: 5px; color: var(--muted); font-size: 14px; }

.skin { font-family: 'Inter', system-ui, sans-serif; color: var(--a-text); }
.skin .mono { font-family: var(--a-mono); }
.skin .add { color: var(--a-ok); }
.skin .del { color: var(--a-danger); }

/* Worktrees */
.wt-stack { position: relative; width: 100%; max-width: 300px; }
.wt-card { padding: 16px 18px; border-radius: 8px; border: 1px solid var(--a-border-2); background: var(--a-panel); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.wt-card.back { position: absolute; inset: 0; transform: translate(14px, 14px) scale(0.98); opacity: 0.55; box-shadow: none; }
.wt-card:not(.back) { position: relative; }
.wt-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wt-card .dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--a-ok); }
.wt-card .tag { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--a-border-2); background: #262626; font-size: 12px; color: var(--a-text-2); }
.wt-card b { display: block; font-size: 17px; font-weight: 500; color: var(--a-heading); }
.wt-card p { margin: 4px 0 12px; font-size: 14px; color: var(--a-text-3); }
.wt-card .diff { display: flex; gap: 10px; font: 500 14px var(--a-mono); }

/* Routines */
.rt { width: 100%; max-width: 330px; display: grid; gap: 10px; }
.rt div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--a-border-2); background: var(--a-panel); font-size: 15px; color: var(--a-heading); }
.rt div span { min-width: 46px; font-size: 13px; color: var(--a-text-3); }
.rt div i { margin-left: auto; width: 34px; height: 20px; border-radius: 6px; background: #3a3a3a; position: relative; }
.rt div i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ddd; }
.rt div.on i { background: var(--a-ok); }
.rt div.on i::after { transform: translateX(14px); }

/* Command palette */
.pal { width: 100%; max-width: 340px; overflow: hidden; border-radius: 8px; border: 1px solid var(--a-border-3); background: var(--a-panel); font-size: 15px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.pal .in { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--a-border); color: var(--a-text-3); }
.pal kbd { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--a-border-2); font: 12px var(--a-mono); color: var(--a-text-3); }
.pal .row { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; color: var(--a-text-2); }
.pal .row.sel { background: #2a2a2a; color: #fff; }

/* Usage dashboard */
.dash { width: 100%; max-width: 330px; display: grid; gap: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles div { padding: 12px 14px; border-radius: 6px; border: 1px solid var(--a-border-2); background: var(--a-panel); }
.tiles small { display: block; font-size: 12.5px; color: var(--a-text-3); }
.tiles b { font-size: 26px; font-weight: 500; color: var(--a-heading); letter-spacing: -0.02em; }
.heat { display: grid; grid-template-rows: repeat(5, 1fr); grid-auto-flow: column; gap: 4px; justify-content: center; }
.heat i { width: 18px; height: 18px; border-radius: 4px; background: #1f1f1f; }
.heat i.l1 { background: #2a2a2a; }
.heat i.l2 { background: #4a4a4a; }
.heat i.l3 { background: #d2d2d2; }

/* Skills & rules */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 320px; }
.chips span { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--a-border-2); background: var(--a-panel); font: 14px var(--a-mono); color: var(--a-text-2); }
.chips span:nth-child(3n+1) { color: var(--a-code); }

/* Local-first */
.loc { display: flex; align-items: center; gap: 18px; }
.loc .box { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--a-border-3); background: var(--a-panel); box-shadow: 0 0 60px rgba(255, 255, 255, 0.06); }
.loc .box svg { width: 38px; height: 38px; stroke: #e8e8e6; }
.loc-t b { display: block; font-size: 18px; font-weight: 500; color: var(--a-heading); }
.loc-t span { font-size: 14px; color: var(--a-text-3); }

@media (max-width: 900px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .more-grid { grid-template-columns: 1fr; } }

/* Terminals */
.tm { width: 100%; max-width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-cell { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--a-border-2); background: #0b0b0b; font: 12.5px/1.6 var(--a-mono); color: var(--a-text-3); }
.tm-cell i { display: block; width: 6px; height: 6px; margin-bottom: 6px; border-radius: 50%; background: var(--a-ok); }
.tm-cell b { display: block; font-weight: 400; color: var(--a-heading); }
.tm-cell .ok { color: var(--a-ok); }

/* Memory */
.mem { width: 100%; max-width: 330px; display: grid; gap: 10px; }
.mem-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--a-border-2); background: var(--a-panel); }
.mem-row .mono { padding: 1px 8px; border-radius: 6px; background: var(--accent-soft); color: #e8e8e6; font-size: 12px; }
.mem-row b { font-weight: 400; font-size: 15px; color: var(--a-heading); }

/* Checkpoints */
.cp { width: 100%; max-width: 330px; display: grid; gap: 8px; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--a-border-2); background: var(--a-panel); font-size: 15px; color: var(--a-heading); }
.cp-row i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--a-text-3); flex: none; }
.cp-row small { margin-left: auto; color: var(--a-text-3); font-size: 12px; }
.cp-row em { font-style: normal; padding: 2px 10px; border-radius: 6px; background: var(--text); color: #111; font-size: 12px; font-weight: 500; }
.cp-row.on { border-color: var(--a-border-3); }
.cp-row.on i { border-color: #e8e8e6; background: #e8e8e6; }
.cp-row.on small { margin-left: 0; }
.cp-row.on span { flex: 1; }
