/* Tema Grafito de Lens Workspaces (packages/workspaces/ui/theme-grafito.css + styles.css). */
:root {
  --font: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --ground: #1a1a1a;
  --raised: #202020;
  --raised-2: #262626;
  --ink: #ededed;
  --ink-2: #d6d6d6;
  --dim: #a3a3a3;
  --dim-3: #6b6b6b;
  --card-flat: #1e1e1e;
  --hairline: #262626;
  --hairline-strong: #2e2e2e;
  --accent: #c6f432;
  --state-working: var(--accent);
  --state-approval: #f5a524;
  --state-done: #34d399;
  --state-error: #ff8d97;
  --state-idle: #6b6b6b;
  --radius-card: 24px;
  --page-pad: 56px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.ic-20 { width: 20px; height: 20px; }
canvas.mochi { display: block; flex: none; }
.muted { color: var(--dim); }
.faint { color: var(--dim-3); }
.wrap { max-width: 1440px; margin: 0 auto; }

/* Botones (36 px) y piezas chicas */
.btn { height: 36px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 13px/1 var(--font); border: 0; cursor: pointer; white-space: nowrap; color: inherit; transition: transform 120ms ease-out, opacity 120ms ease-out; }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--ground); font-weight: 600; }
.btn-accent:hover { opacity: 0.92; }
.btn-ghost { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--dim-3); }
.btn-quiet { background: transparent; color: var(--dim); }
.btn-pill { border-radius: 999px; padding: 0 18px; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--raised-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--state-idle); display: inline-block; }
.dot.work { background: var(--state-working); }
.dot.wait { background: var(--state-approval); }
.dot.done { background: var(--state-done); }
.card { background: var(--raised); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.eyebrow { font: 500 12px/1 var(--mono); color: var(--dim-3); display: block; }

/* Navegación */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--page-pad); position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 24px; color: var(--dim); font-size: 13px; align-items: center; }
.nav-links a:hover { color: var(--ink); }

/* Escena */
.scene { position: relative; min-height: 760px; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.55; pointer-events: none; }
.headline { position: relative; text-align: center; padding: 56px var(--page-pad) 0; }
.headline h1 { font-size: clamp(46px, 6.7vw, 96px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 700; }
.headline h1 span { color: var(--dim-3); }
.headline p { color: var(--dim); font-size: 18px; max-width: 620px; margin: 22px auto 0; }
.island-wrap { position: relative; display: flex; justify-content: center; margin-top: 36px; padding: 0 20px; }
.island { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 24px 48px -24px rgba(0, 0, 0, 0.7); }
.island .who { display: flex; flex-direction: column; line-height: 1.2; padding-right: 8px; }
.island .who b { font-size: 13px; font-weight: 600; }
.island .who span { font-size: 12px; color: var(--dim); }
.island .sep { width: 1px; height: 28px; background: var(--hairline-strong); }
.island .btn { height: 40px; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; border-top: 1px solid var(--hairline-strong); background: var(--card-flat); }
.crew { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; align-items: flex-end; gap: 72px; }
.mate { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mate .say { font-size: 12px; padding: 6px 10px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--ink-2); white-space: nowrap; }
.mate .tag { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.mate .tag span { font-weight: 400; color: var(--dim); }

/* Instalar */
.install { padding: 96px var(--page-pad) 0; display: grid; grid-template-columns: 380px 1fr; gap: 64px; scroll-margin-top: 24px; }
.install h2 { font-size: 44px; letter-spacing: -0.03em; line-height: 1.04; margin-top: 10px; }
.install .side p { color: var(--dim); margin-top: 14px; }
.install .side .btn { margin-top: 24px; }
.install .side .file { display: block; font-size: 12px; color: var(--dim-3); margin-top: 10px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; align-self: start; }
.tstep { overflow: hidden; display: flex; flex-direction: column; background: var(--raised); border-radius: var(--radius-card); border: 1px solid var(--hairline-strong); }
.tstep .vis { height: 150px; background: var(--ground); border-bottom: 1px solid var(--hairline-strong); padding: 16px; display: flex; align-items: center; justify-content: center; }
.tstep .txt { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tstep .n { font: 500 12px/1 var(--mono); color: var(--dim-3); }
.tstep b { display: block; font-size: 15px; font-weight: 600; margin-top: 8px; }
.tstep .txt > span { display: block; font-size: 12px; color: var(--dim); margin-top: 4px; }
.tstep .txt .btn { margin-top: 14px; align-self: flex-start; }
.folder { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.folder .ic { width: 40px; height: 40px; color: var(--dim); }
.fake-url { width: 100%; height: 30px; border-radius: 8px; background: var(--raised); display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.fake-url .ic { width: 13px; height: 13px; color: var(--dim); }
.toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; display: inline-block; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); }
.fakebtn { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 12px; box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink-2); background: var(--raised); }
.needs { margin: 12px var(--page-pad) 0 calc(var(--page-pad) + 380px + 64px); display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.needs .grow { flex: 1; }
.needs b { font-weight: 600; }
.needs .cmd { display: flex; align-items: center; gap: 8px; }

/* Qué trae */
.bento { padding: 96px var(--page-pad) 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; scroll-margin-top: 24px; }
.bento .card { padding: 24px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.bento h3 { font-size: 17px; letter-spacing: -0.01em; }
.bento .card p { color: var(--dim); font-size: 13px; margin-top: 6px; max-width: 340px; }
.bento .big { grid-column: span 2; grid-row: span 2; }
.bento .wide { grid-column: span 2; }
.bento .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.office { margin-top: auto; height: 240px; border-radius: 16px; background-color: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); position: relative; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 24px 24px; }
.office .desk { position: absolute; width: 72px; height: 28px; background: var(--raised-2); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.office .seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); }
.states-row { display: flex; gap: 14px; align-items: flex-end; }

/* Lens Sync */
.sync { margin: 12px var(--page-pad) 0; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr auto 1fr; align-items: center; gap: 24px; scroll-margin-top: 24px; }
.sync h2 { font-size: 34px; letter-spacing: -0.025em; line-height: 1.08; margin-top: 12px; }
.sync p { color: var(--dim); margin-top: 10px; font-size: 13px; max-width: 360px; }
.device { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.device .grow { flex: 1; }
.device .t { font-weight: 600; font-size: 13px; }
.device .s { font-size: 12px; color: var(--dim); }
.device .ic { color: var(--dim); }
.link { width: 120px; height: 1px; background: var(--hairline-strong); position: relative; }
.link canvas { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); }

footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px var(--page-pad); margin-top: 96px; border-top: 1px solid var(--hairline); color: var(--dim-3); font-size: 12px; }
footer .brand { font-size: 13px; color: var(--dim); font-weight: 500; }

/* Aviso al copiar */
.copied { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline-strong); font-size: 13px; transition: transform 160ms ease-out, opacity 160ms ease-out; z-index: 10; }
.copied[data-on="true"] { opacity: 1; transform: translate(-50%, 0); }
.copied .ic { color: var(--state-done); }

/* Tablet */
/* App de escritorio (Linux): descarga a la izquierda, pasos a la derecha. */
.desktop { margin: 12px var(--page-pad) 0; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; scroll-margin-top: 24px; }
.desktop h2 { font-size: 34px; letter-spacing: -0.025em; line-height: 1.08; margin-top: 12px; text-wrap: balance; }
.desktop p { color: var(--dim); margin-top: 10px; font-size: 13px; max-width: 420px; text-wrap: pretty; }
.desktop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.desktop .file { display: block; font-size: 12px; color: var(--dim-3); margin-top: 10px; }
.desktop-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.desktop-steps li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.desktop-steps .n { font-family: var(--mono); font-size: 12px; color: var(--dim-3); padding-top: 2px; }
.desktop-steps li > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.desktop-steps b { font-weight: 600; }
.desktop-steps .muted { color: var(--dim); font-size: 13px; }
.desktop-steps .cmd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.desktop > * { min-width: 0; }
.desktop-steps .cmd .kbd { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }

@media (max-width: 1180px) {
  :root { --page-pad: 32px; }
  .install { grid-template-columns: 1fr; gap: 32px; }
  .needs { margin-left: var(--page-pad); }
  .track { grid-template-columns: repeat(2, 1fr); }
  .crew { gap: 36px; }
  .sync { grid-template-columns: 1fr 1fr; }
  .sync .link { display: none; }
  .sync > div:first-child { grid-column: span 2; }
  .desktop { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil (390 px) */
@media (max-width: 720px) {
  :root { --page-pad: 20px; }
  .desktop { padding: 28px 22px; }
  .desktop h2 { font-size: 28px; }
  .nav { padding: 14px 20px; }
  .nav-links a:not(.btn) { display: none; }
  .scene { min-height: 520px; padding-bottom: 150px; }
  .grid-bg { background-size: 32px 32px; }
  .headline { text-align: left; padding-top: 24px; }
  .headline h1 { font-size: 46px; line-height: 0.98; letter-spacing: -0.04em; }
  .headline p { font-size: 14px; margin: 14px 0 0; }
  .island-wrap { display: none; }
  .floor { height: 110px; }
  .crew { bottom: 36px; gap: 14px; }
  .mate .say, .mate .tag { display: none; }
  .crew canvas.mochi { width: 64px !important; height: 64px !important; }
  .crew .mate:nth-child(2) canvas.mochi { width: 80px !important; height: 80px !important; }
  .needs .cmd code { white-space: normal; word-break: break-all; flex: 1; min-width: 0; }
  .office .seat { transform: scale(0.8); transform-origin: top left; }
  .island-mobile { display: block !important; padding: 0 20px; margin-top: -28px; position: relative; z-index: 2; }
  .island-mobile .island { width: 100%; border-radius: 24px; flex-wrap: wrap; padding: 10px; gap: 10px; }
  .island-mobile .island .who { flex: 1; }
  .island-mobile .island .btn { width: 100%; }
  .mobile-note { display: flex !important; }
  .install { padding-top: 48px; gap: 16px; }
  .install h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.12; }
  .install .side .btn, .install .side .file { display: none; }
  .track { grid-template-columns: 1fr; gap: 0; border-radius: 20px; border: 1px solid var(--hairline-strong); background: var(--raised); overflow: hidden; }
  .tstep { border: 0; border-radius: 0; border-bottom: 1px solid var(--hairline-strong); background: transparent; }
  .tstep:last-child { border-bottom: 0; }
  .tstep .vis { display: none; }
  .tstep .txt { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 16px; }
  .tstep .n { grid-row: span 3; width: 28px; height: 28px; border-radius: 8px; background: var(--raised-2); display: grid; place-items: center; }
  .tstep b { margin-top: 0; font-size: 14px; }
  .tstep .txt > span { margin-top: 0; }
  .tstep .txt .btn { margin-top: 8px; }
  .needs { flex-wrap: wrap; margin-top: 12px; }
  .needs .cmd { width: 100%; justify-content: space-between; }
  .bento { padding-top: 48px; grid-template-columns: 1fr; grid-auto-rows: auto; gap: 8px; }
  .bento .big, .bento .wide { grid-column: auto; grid-row: auto; }
  .bento .card { padding: 18px; border-radius: 20px; min-height: 0; }
  .bento .foot { margin-top: 16px; }
  .office { height: 210px; margin-top: 14px; }
  .office .desk { display: none; }
  .states-row { flex-wrap: wrap; }
  .states-row .faint { width: 100%; }
  .sync { grid-template-columns: 1fr; padding: 20px; border-radius: 20px; margin-top: 8px; }
  .sync > div:first-child { grid-column: auto; }
  .sync h2 { font-size: 24px; }
  footer { flex-direction: column; align-items: flex-start; margin-top: 48px; padding: 20px; }
}
.island-mobile, .mobile-note { display: none; }
.mobile-note { margin: 12px 20px 0; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline-strong); font-size: 12px; color: var(--dim); }
.mobile-note b { color: var(--ink); font-weight: 600; }
.mobile-note .ic { color: var(--dim); }

/* Apps vinculadas */
.apps { padding: 96px var(--page-pad) 0; scroll-margin-top: 24px; }
.apps-head { max-width: 560px; margin-bottom: 24px; }
.apps-head h2 { margin-top: 8px; }
.apps-head p { margin-top: 8px; font-size: 14px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; font-size: 16px; }
.app h3 { font-size: 17px; letter-spacing: -0.01em; }
.app p { color: var(--dim); font-size: 13px; }
.app-list { display: grid; gap: 4px; margin: 0; padding-left: 16px; color: var(--dim); font-size: 12.5px; }
.app-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.app-foot .cmd { flex-wrap: wrap; }
@media (max-width: 1180px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .apps { padding-top: 64px; } .apps-grid { grid-template-columns: 1fr; } .app-foot .kbd { white-space: normal; word-break: break-all; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
